I found the thread: unable to read from Sandisk 8Gb SD
http://downloads.openmoko.org/daily/testing-om-gta02-20081024.uImage.bin
Image Name: openmoko/2.6.24+gitr75986+f5b973
Created: 2008-10-24 12:17:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1757432 Bytes = 1.7 MB
It works just fine!!!
新買的Tresend 8G SHDC class4 uSD
本來是想可以灌個好幾個distribution什麼的
結果問題一堆...
結論是,現在只有qtextended/mwest的kernel能支援8G的uSD
u-boot能support 8G uSD
但是bootargs裡不能再放${}之類的變數,u-boot直接把${bootargs}送給kernel,不會展開變數
kernel裡只有QT extended的mwester的kernel可以讀8G uSD的partition table
約081022用debian的install.sh下載的uImage.bin
Image Name: openmoko/2.6.24+r5+gitr1+ca19d15
Created: 2008-09-11 10:06:55 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1935876 Bytes = 1.8 MB
uImage-gta02-g291a9d50_mwester-stable.bin
Image Name: Openmoko Freerunner Kernel
Created: 2008-10-03 15:57:45 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1938960 Bytes = 1.8 MB
Om2008.9-gta02-20080916.uImage.bin
Image Name: Openmoko/2.6.24+git75969+a1e97c6
Created: 2008-09-03 11:06:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1894652 Bytes = 1.8 MB
my u-boot: 2008/08/26
8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G
kernel是約081022用debian的install.sh下載的,放在partition 1
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
${rootfstype}和${root}給kernel時竟然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0
暫時先用
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
kernel complain
1. cannot read partition table
2. cannot open root mmcblk0p1 or unknown-block(179,1)
3. available partition只有/dev/mmcblk0
512MB uSD
partition 1: 250MB
partition 2: 240MB
kernel是約081022用debian的install.sh下載的,放在partition 1
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常 (partition 3,4不存在)
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
2. cannot open root ${root} or unknown-block(2,0)
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
kernel complain: No init found
Ok,這才是預期中的結果
8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G
kernel是uImage-gta02-g291a9d50_mwester-stable.bin,放在partition 3
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
2. cannot open root ${root} or unknown-block(2,0)
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
kernel complain: No init found
符合預期
==>看來是debian的kernel(uImage.bin)沒辦法讀8G uSD的partition table
8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G
kernel是Om2008.9-gta02-20080916.uImage.bin,放在partition 3
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常
setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0
==>Om2008.9-gta02-20080916.uImage.bin狀況同debian
8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G
qt-extended 4.4+uImage-gta02-g291a9d50_mwester-stable.bin放在partition 3
=================
setenv root /dev/mmcblk0p3;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;
正常開機
沒有留言:
張貼留言