From: Jaya K. <jay...@gm...> - 2007-10-17 12:59:38
|
Hi Gumstix friends, I'm a gumstix newbie. My apologies if this question may have been answered elsewhere [I googled but didn't hit a solution]. I'm on a gumstix connex 16MB flash. It came with u-boot 1.1.4 and a pre-existing 1441 gumstix-buildroot based rootfs. (1441 also builds u-boot 1.1.4) I was working on a device driver for a modified 2.6.20gum kernel and had not replaced the rootfs image with an updated kernel. I was just using fatload mmc 1 a2000000 uImage.bin and then booting from that MMC->ram loaded kernel each time. This has been working fine for me for at least a week or 2. However, after a driver induced panic today, I seemed to have managed to corrupt the jffs2 image to the point that it did not boot. I got lots of unknown node errors and failure to boot even after 10 mins. So I decided it was time to reflash my rootfs. I believe the 1441 rootfs includes the uImage.bin. The eventual error that I got was that cp.b couldn't write the 40000 flash sector which flinfo reports as being RO below. I felt afraid of doing protect off 1:2-2 for fear of bricking it. Any and all advice/pointers are welcome. I'm also on #gumstix. Thanks, jaya ps: on an unrelated note, has anyone gotten a 2.6.22 kernel .mk or setup up? i think top of truck gumstix-buildroot was 2.6.21 when i last looked. GUM> fatload mmc 1 a2000000 rootfs.arm_nofpu_cfb.jffs2 reading rootfs.arm_nofpu_cfb.jffs2 3680784 bytes read GUM> protect on 1:0-1 Protect Flash Sectors 0-1 in Bank # 1 .. done GUM> erase all Erase Flash Bank # 1 - Warning: 3 protected sectors will not be erased! ............................................................................................................................. done GUM> cp.b a2000000 40000 ${filesize} Copy to Flash... Can't write to protected Flash sectors GUM> boot Instruction Cache is ON ### JFFS2 loading 'boot/uImage' to 0xa2000000 find_inode failed for name=uImage load: Failed to find inode ### JFFS2 LOAD ERROR<0> for boot/uImage! GUM> flinfo Bank # 1: CFI conformant FLASH (16 x 16) Size: 16 MB in 128 Sectors Erase timeout 4096 ms, write timeout 0 ms, buffer write timeout 1024 ms, buffer size 32 Sector Start Addresses: 00000000 (RO) 00020000 (RO) 00040000 (RO) 00060000 00080000 |