When I do saveenv on uboot i get: MINI2440 # saveenv Saving Environment to NAND... Erasing Nand...MINI2440 # And I think I should get: Saving Environment to NAND... Erasing Nand...Writing to Nand... done After reboot environmental variables are not saved. I can't set bootcmd and thus I can't boot my linux. After a reset this is what I see (I think this is the reason): Erasing Nand...MINI2440 # reset� U-Boot 1.3.2-mini2440 (Oct 30 2011 - 10:56:54) I2C: ready DRAM: 64 MB NOR Flash not found. Use hardware switch and 'flinit' Flash: 0 kB NAND: 1024 MiB *** Warning - bad CRC or NAND, using default environment USB: S3C2410 USB Deviced In: serial Out: serial Err: serial MAC: 08:08:11:18:12:27 Hit any key to stop autoboot: 0 MINI2440 # Is this normal - Warning - bad CRC or NAND, using default environment? What can I do to fix it? regards, -- Luke
problems saveenv (and thus booting linux)
Also ls and fsinfo command give me some strange errors about nand: MINI2440 # ls Scanning JFFS2 FS: get_fl_mem_nand: can't alloc 872115028 bytes off = 0x24588 magic 0x1985 type 0x0 node.totlen = 872115028 done. MINI2440 # fsinfo ### filesystem type is JFFS2 Scanning JFFS2 FS: get_fl_mem_nand: can't alloc 872115028 bytes off = 0x24588 magic 0x1985 type 0x0 node.totlen = 872115028 done. Compression: NONE frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: ZERO frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: RTIME frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: RUBINMIPS frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: COPY frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: DYNRUBIN frag count: 0 compressed sum: 0 uncompressed sum: 0 Compression: ZLIB frag count: 0 compressed sum: 0 uncompressed sum: 0 MINI2440 #
The warning is normal behaviour. Check your environment by doing "printenv". Which time zone are you in?
from http://wiki.openmoko.org/wiki/NAND_bad_blocks: Once you issue "dynpart", the partition configuration is put in the "mtdparts" environment variable. If you "saveenv" the environment, it is saved into the non-volatile environment partition.
mtdpart is the command specified in the tutorial. Is that just a read of the partitions? Is dynpart the same as nand createbbt?
Damn, it's awkward when you're asking me questions... dynpart is for dynamic partitioning based on the result of the bbt calculation. mtdpart just prints current partition table.