A Dissabte 21 Maig 2011 18:09:17, Christian va escriure:
> On 20/05/2011 17:54, wrote Flemming Richter Mikkelsen:
> > This is as I expect as (as far as I know), uboot does not support
> > ext2/ext3. Uboot should find a kernel (uImage.bin) on the first
> > partition (mmcblk0p1) and boot that kernel.
> 
> Ahh okay

Not true. NOR uboot can't read ext2,  but most of the 2008 uboots can 

> ...
> I tried with:
> 
> setenv menu_1 Boot from microSD (FAT+ext2): bootcmd=setenv bootargs
> rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} ro; mmcinit;
> fatload mmc 1 0x32000000 ${sd_image_name}; bootm 0x32000000
> 
> after that the device rebootet straightaway. I did not have the chance
> to call saveenv.

It booted immediately because incorrect escaping ";" are to be escaped
or act as command separator ending the variable declaration and the next
command will run(all ; and $ and linefeed shall be escaped):

setenv menu_1 Boot from microSD (FAT+ext2): bootcmd=setenv bootargs 
rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 \${mtdparts} ro\; 
mmcinit\;fatload mmc 1 0x32000000 \${sd_image_name}\; bootm 0x32000000
 

> After the reboot I got the error unable to mount rootfs on unknown-block
> (179,2)

Are you sure of the partition table on the SD ( mine has only two partitions
fat on partition one and ext3 on partition 3) and it boots the following:

bootargs_card=rootfstype=ext3 console=ttySAC2,115200 console=tty0 rootwait 
glamo_mci.sd_max_clk=16373000 g_ether.host_addr=00:1F:11:01:1F:C2 
g_ether.dev_addr=00:1F:11:01:1F:C2 regular_boot
mtdparts=mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)
level=loglevel=7
sd_image_name=/boot/uImage-GTA02.bin
bootcmd=setenv bootargs ${bootargs_card} ${mtdparts} ${level} 
root=/dev/mmcblk0p3 ; mmcinit;ext2load mmc 1:3 0x32000000 
${sd_image_name};bootm 0x32000000


_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to