**** BEGIN LOGGING AT Thu Apr 24 02:59:56 2008 Apr 24 06:31:38 what target do I use to run a shell script that downloads an extra part of the source code. Apr 24 06:31:48 - needs to be after the source is unpackged Apr 24 06:31:57 in a Makefile obviously. Apr 24 06:32:33 trying to get asterisk1.4.19.1 to work but ilbc codec requires a sep download to happen - they have a script to get the source. Apr 24 16:07:16 * Nix pokes blogic Apr 24 19:48:39 * Nix wonders if there is a tutorial for integrating u-boot with openwrt somewhere... Apr 24 19:51:50 Nix: i think i have a build directory for the openmoko u-boot somewhere Apr 24 19:51:59 Nix: i can give you that as reference Apr 24 19:52:40 nbd: I have a fully working u-boot for my platform Apr 24 19:52:51 i mean the openwrt package directory Apr 24 19:52:56 ok Apr 24 19:53:28 http://nbd.name/uboot-openmoko.mk Apr 24 19:53:32 you can remove lots of stuff in that one Apr 24 19:53:36 What I want to do is add some profiles under blogic's IFXMIPS target for my different boards Apr 24 19:53:56 hmm.. thanks Apr 24 19:54:17 also.. I have another strange issue.. Apr 24 19:54:31 I can boot the openwrt kernel and rootfs only once... Apr 24 19:54:44 I think the kernel erases itself from flash as it boots up.. Apr 24 19:54:50 so I have to reflash every time.. Apr 24 19:54:58 what happens on the next boot? Apr 24 19:55:09 it does screens of: Apr 24 19:55:10 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0x2705 instead Apr 24 19:55:11 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xe46d instead Apr 24 19:55:29 then the 2nd boot does: Apr 24 19:55:31 Hit any key to stop autoboot: 0 Apr 24 19:55:31 ## Booting image at b03f4fff ... Apr 24 19:55:31 Bad Magic Number Apr 24 19:55:42 weird that the kernel erases itself Apr 24 19:55:46 I guess I have my partitions screwed up Apr 24 19:55:56 show me the partition table from the first boot Apr 24 19:56:01 from dmesg Apr 24 19:56:36 Creating 4 MTD partitions on "ifxmips_mtd": Apr 24 19:56:37 0x00000000-0x00020000 : "U-Boot" Apr 24 19:56:38 0x00020000-0x00030000 : "U-Boot-Env" Apr 24 19:56:40 0x00030000-0x00040000 : "kernel" Apr 24 19:56:42 0x00040000-0x00400000 : "rootfs" Apr 24 19:56:44 mtd: partition "rootfs" set to be root filesystem Apr 24 19:56:46 split_squashfs: no squashfs found in "ifxmips_mtd" Apr 24 19:56:48 ifxmips_mtd: added ifxmips flash with 4MB Apr 24 19:57:17 I think I have a missmatch between my uboot partions and my kernel partitions.. Apr 24 19:57:22 if I understand the problem correctly Apr 24 19:58:44 erm. your kernel partition only takes up one eraseblock? Apr 24 19:58:45 :) Apr 24 20:00:01 heh.. that is possibly the problem Apr 24 20:00:07 yup Apr 24 20:00:21 so how do I teach the kernel otherwise? Apr 24 20:00:27 blogic did that bit.. Apr 24 20:00:41 or is it my uboot that is screwed? Apr 24 20:00:46 i'll check the source Apr 24 20:02:51 is your kernel flashed at offset 0x00030000? Apr 24 20:05:03 hmm.. I dont know.. I just ran "run update_kernel" :-) Apr 24 20:05:32 Bytes transferred = 799881 (c3489 hex) Apr 24 20:05:32 For img_addr 0xb03f4fff, nextStartAddr 0xb03f5000 and preEndAddr 0xb0050000 Apr 24 20:05:37 etc Apr 24 20:11:15 what's the contents of update_kernel? Apr 24 20:11:48 update_kernel=tftpboot 80400000 $(bootfile);upgrade kernel 80400000 $(filesize) 1 Apr 24 20:12:14 update_rootfs=tftpboot 80400000 $(root_filesystem);upgrade rootfs 80400000 $(filesize) 0 Apr 24 20:14:05 and what's 'upgrade'? Apr 24 20:14:56 uboot-openmoko.mk <-- Where should this go? I see that there is a u-boot under "target/linux/at91/image/u-boot" if I do something similar for "target/linux/ifxmips/" is that the best solution? Apr 24 20:15:05 package/uboot-something/Makefile Apr 24 20:15:14 it's a regular openwrt package directory Apr 24 20:15:18 except it doesn't build .ipk files Apr 24 20:15:22 but puts stuff in bin/ Apr 24 20:15:42 you can select it in the default packages from the target makefile Apr 24 20:15:51 like DEFAULT_PACKAGES += uboot-something Apr 24 20:16:23 ooh.. sexy. ok thanks Apr 24 20:16:43 http://pastebin.com/d42b65580 <- printenv Apr 24 20:26:57 Nix: # Apr 24 20:26:58 f_rootfs_addr=0xB0050000 Apr 24 20:27:45 f_kernel_addr=0xb0331b70 Apr 24 20:27:47 yes Apr 24 20:27:56 those do not match the mtd setup Apr 24 20:28:08 kernel needs to be at B0030000 Apr 24 20:28:17 filesystem needs to be at kernel+kernelsize+padding Apr 24 20:28:29 ok. thats how my u-boot came.. Apr 24 20:28:30 or maybe directly after the kernel Apr 24 20:28:30 dunno Apr 24 20:28:40 i think blogic uses his own setup of that Apr 24 20:28:44 right.. Apr 24 20:28:56 I wish he would provide the u-boot that he uses.. then I could patch it at least! Apr 24 20:28:57 lol Apr 24 20:29:36 the original uboot might be fine Apr 24 20:29:41 maybe you just need his environment Apr 24 20:29:52 I guess so Apr 24 20:30:42 hehe.. your u-boot makefile doesnt like mips much.. Apr 24 20:30:43 lol Apr 24 20:30:49 hard coded arm switches Apr 24 20:31:16 yeah, just put in your own uboot Apr 24 20:33:06 hmm.. ok. I see what you are doing.. Apr 24 20:33:28 I guess I am just gonna take point that whole thing at my svn and get rid of the patch step Apr 24 20:40:36 nbd: thanks for your help.. its home time for me.. almost midnight.. the wife is gonna kill me :-D Apr 24 20:40:50 :) Apr 24 20:43:48 grrr.. Apr 24 20:43:57 just managed to break your uboot makefile somehow Apr 24 20:44:21 Makefile:128: *** Download/default is missing the VERSION field.. Stop. Apr 24 20:44:31 but I dont have a Download section :-( Apr 24 20:45:20 I deleted your "$(eval $(call Download,om_patches))" bit Apr 24 20:47:19 ahh.. found the issue **** ENDING LOGGING AT Fri Apr 25 02:59:57 2008