Guys... i´m having a big problem... my 256MB board doesn´t accept any u-boot... does anyone has a u-boot working for this board? thx in advance
U-boot 256 MB!!!
I had the same problem on my 1GB board, see the last post in the discussions here: http://bill.station51.net/index.php?post/2010/01/16/U-Boot-on-Mini2440 So you need to flash it directly to NAND, do the nand scrub and createbbt, and then flash it again to NAND.
stereo_m I have flashed the uboot to the nand with load flash 0... It boots fine, I do the scrub and createbbt, but how can I load the uboot itself to NAND?
You could do like described here: http://bill.station51.net/index.php?post/2010/01/16/U-Boot-on-Mini2440 1. Switch the system to NOR and boot with supervivi. 2. hit v in supervivi 3. i uploaded the u-boot.bin file 4. switch the system to NAND and boot up with u-boot. You'll get some errors. 5. Run nand scrubs and createbbt 6. switch back to NOR 7. hit v again and upload U-boot since you just erased it. 8. switch back to nand and it should boot up with minimal errors using u-boot. 9. run the dynpart and dynenv and saveenv as mentioned above. So if you load it to flash first, do nand scrub and createbbt, then you need to load it to flash again because you have just erased everything from flash. I'm not sure if this helps you, if not please write more clearly what you have done.
I have followed your tutorial, but the linux kernel hangs after several errors like this: jffs2_scan_inode_node(): CRC failed on node at 0x0000009c: Read 0xff6e6962, calculated 0x7422eea3 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000008e0: 0xf99d instead With: VFS: Mounted root (jffs2 filesystem) on device 31:3. Freeing init memory: 136K Warning: unable to open an initial console. Kernel panic - not syncing: No init found. Try passing init= option to kernel. The jffs2 image and the kernel works fine on an 128 MB board.
I have tried to generate a rootfs image with the default arguments EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --squash -s 0x200 -n -e 16KiB" (pagesize, erasesize) but it failed with hangs with Empty flash at 0x00483ffc ends at 0x00484000 Empty flash at 0x0048bfac ends at 0x0048c000 Empty flash at 0x0048ff74 ends at 0x00490000 errors, and did not found the initscript. BTW the uboot's nand info said: NAND 256MiB 3,3V 8-bit, page size 2048, sector size 128 KiB So my config: EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --squash -s 0x800 -n -e 128KiB" should work fine. Any idea would be appericated!