2 questions

Philippe MONROUX phi2-monroux at wanadoo.fr
Sat Dec 1 03:49:19 CET 2007


Bonjour,

From Peter Trapp <openmoko at genial.ms> :

> So I had a shorted boot menu with only two lines and no "cu" was working 
> (could connect but didn't get the prompt). 
> 
> Hidding the "boot" entry in u-boot resulted in a "bad magic number". Using 
> the "factory reset" button resulted in a proper booting device.

> Solution:
> Beside anything else what really helped was reflashing the 
> u-boot_env
> I received a working env from mmontour and flashed it 
> with "dfu-util -a 2" into the u-boot_env partition.

Ok. I've  made with  mm_env (from  mmontour) and I  get a  good u-boot
menu.

My  u-boot_env is  actually (directly  copied from  urxvt  terminal to
emacs with the mouse.)  There are some pb of output but  I think it is
because of cu...

======================================================================
In:    usbtty
Out:   usbtty
Err:   usbtty
DEVICE_CONFIGURED: 1
Enabling automatic fast charge
GTA01Bv4 # printenv           
bootargs=
baudrate=115200
usbtty=cdc_acm 
mtdids=nand0=neo1973-nand
mtdparts=mtdparts=neo1973-nand:0x00040000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d1c000(rootfs)
splashimage=nand read.e 0x32000000 splash 0x5000; unzip 0x32000000 0x33d00000 0x96000                                            
stdin=usbtty                                                                         
stdout=usbtty
zip 0x32000000 0x33d00000 0x960enu_1=USBConsole: setenv stdin usbtty;setenv stdout usbtty;setenv menu_2=SerialConsole:setenv stdin serial;setenv stdout serial;setenv stderr serial
menu_3=Poweroff:neo1973 power-off
bootcmd=setenv bootargs ${bootargs_base} ${mtdparts}; nand read.e 0x32000000 kernel; bootm 0x32000000
quiet=1                                                                                              
bootargs_base=rootfstype=jffs2 root=/dev/mtdblock4 console=tty0 loglevel=8
menu_4=SDBoot:setenv bootargs root=/dev/mmcblk0p1 rootdelay=5 console=tty0 loglevel=8 ${mtdparts};nand read.e 0x32000000 kernel;bootm 0x32000000
boot_menu_timeout=65000                                                                                                                         
bootdelay=10           
kernel;bootm 0x30
mtddevnum=0      
mtddevname=u-boot
pcf50606_int1=0x4b
                  
Environment size: 956/16380 bytes
======================================================================

But I cannot boot  by power button nor u-boot menu. I  think I have to
reflash kernel and rootfs.

Question :

(1) must I <<nand erase clean rootfs (kernel)>> before reflashing one ? 
(2) Is my empty bootargs= a problem ?

Regards

Philippe
-- 
http://perso.orange.fr/zygomaths/index.fr.html
http://www.gral.re




More information about the device-owners mailing list