Openmoko Bug #2341: u-boot environment isn't saved

Openmoko Public Trac bugs at docs.openmoko.org
Wed Jun 2 22:13:28 CEST 2010


#2341: u-boot environment isn't saved
----------------------+-----------------------------------------------------
 Reporter:  aikipooh  |          Owner:  openmoko-devel
     Type:  defect    |         Status:  new           
 Priority:  highest   |      Milestone:                
Component:  unknown   |        Version:                
 Severity:  critical  |       Keywords:  nand          
 Haspatch:  0         |      Blockedby:                
Estimated:            |    Patchreview:                
 Blocking:            |   Reproducible:  always        
----------------------+-----------------------------------------------------
 I'm trying to modify kernel parameters, I do setenv, then saveenv. And the
 latter doesn't seem to write the NAND. Everywhere I see that it should
 write something like:

 GTA01Bv3 # saveenv
 Saving Environment to NAND...
 Erasing Nand...Writing to Nand... done
 GTA01Bv3 #

 But i get (the log follows, i leave the tail of previous printenv to
 compare):

 mtddevnum=0
 mtddevname=nor

 Environment size: 1093/262140 bytes
 GTA02v6 # setenv foo 1
 GTA02v6 # printenv
 boot_menu_timeout=60
 bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200
 console=tty0 loglevel=4 regular_boot
 bootcmd=setenv bootargs ${bootargs_base} ${mtdparts}; nand read.e
 0x32000000 kernel 0x200000; bootm 0x32000000
 bootdelay=5
 menu_1=Boot from microSD (FAT+ext2): setenv bootargs ${bootargs_base}
 rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} ro; mmcinit;
 fatload mmc 1 0x32000000 ${sd_image_name}; bootm 0x32000000
 menu_4=Set console to USB: setenv stdin usbtty; setenv stdout usbtty;
 setenv stderr usbtty
 menu_5=Set console to serial: setenv stdin serial; setenv stdout serial;
 setenv stderr serial
 menu_6=Reboot: reset
 menu_8=Power off: neo1973 power-off
 sd_image_name=uImage.bin
 stderr=usbtty
 stdin=usbtty
 stdout=usbtty
 usbtty=cdc_acm
 mtdids=nor0=physmap-flash,nand0=neo1973-nand
 pcb_rev=0x101
 pcf50633_int1=0x80
 pcf50633_int2=0x02
 mtdparts=mtdparts=physmap-
 flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
 partition=nor0,0
 mtddevnum=0
 mtddevname=nor
 foo=1

 Environment size: 1099/262140 bytes
 GTA02v6 # saveenv
 a0000(rootfs)
 pnt to NAND...
 Erasing Nand...GTA02v6 #

 So there is nothing about writing NAND. What should i do in this
 situation?

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2341>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list