On Mon, May 16, 2011 at 23:56, Christian <[email protected]> wrote:
> On 16/05/2011 06:46, Martin Jansa wrote:
>> On Sun, May 15, 2011 at 11:07:37PM +0200, Christian wrote:
>>
>>
>>> I tried to initialize the microSD-card:
>>>
>>> GTA02v6 # mmcinit
>>> Card Type: SD 2.0 SDHC
>>> Manufacturer: 0x02, OEM "TM"
>>> Product name: "SA04G", revision 0.4
>>> Serial number: 2620391846
>>> Manufacturing date: 2/2010
>>> MMC/SD size: 3MiB
>>>
>>> and tried to read from it:
>>>
>>> GTA02v6 # ext2ls mmc 0
>>> Failed to mount ext2 filesystem...
>>> ** Bad ext2 partition or disk - mmc 0:1 **
>>>
>> this is your vfat partition, isn't it?
>>
> yes indeed it is. I tried it again:
>
> GTA02v6 # fatls mmc 0
> 1852056 uimage.bin
>
> 1 file(s), 0 dir(s)
>
> GTA02v6 # ext2ls mmc 1
> Failed to mount ext2 filesystem...
> ** Bad ext2 partition or disk - mmc 1:1 **
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.
Now the kernel commands (specified in uboot env as bootcmd) shall tell the
kernel that it should find the rootfs on the second partition (mmcblk0p2).
The kernel got ext2/ext3 support and should boot up fine.
I guess, as other have mentioned, that the kernel commands points to
the wrong place
to find the rootfs.
If I should guess whats going on, I would look at the uboot envs:
> GTA02v6 # printenv
> boot_menu_timeout=60
> bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200
> console=tty0 loglevel=4 regular_boot
here you tell the kernel it should find its rootfs at /dev/mtdblock6:
> bootcmd=setenv bootargs ${bootargs_base} ${mtdparts}; nand read.e
> 0x32000000 kernel 0x200000; bootm 0x32000000
> bootdelay=5
here bootcmd is not reassigned:
> 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
This is just a wild guess from me, but maybe it should have been:
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
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user