MicroSD cards support questions in gta02
Ed Kapitein
ed at kapitein.org
Sat Feb 26 00:14:02 CET 2011
On 02/25/2011 10:08 PM, Πρεκατές Αλέξανδρος wrote:
> Having spend a day and some trying to boot qtmoko or shr trying different
> combinations (bootloader+ distributions + partition scheme ) from two micro
> sd card i own, without any success , and since the cards are accesible from
> linux kernel i'd like to pledge for help in that issue. I admit i havent play
> more with uboot enviroment and uboot prompt but i've tries the rootdelay
> option.
>
> Some questions:
> 1)For example why there is need each dist to have its customized bootloader
> file? Doesnt that imply that there is no general bootloader working like in
> desktop pcs?
>
> 2)Why generally speaking its so difficult to boot from a sdcard? Is the microsd
> interface closed and thus a libre drivers has holes? Is it a card's fault ?
> (in what way , shouldnt they comply with a standard? ). Is it glamo hardware
> thing? Is the glamo mmc driver 's fault ? All the above in different
> combinations?
>
>
>
> Some reports (the kernel? or the bootloader? stops and i get messages like
> below)
>
> qi booting shr ------------
> SoftDog: cannot register miscdev on minor=130 (err=-16)
> EXT2-fs (mmcblk0p1): error: ext2_lookup: deleted inode referenced : 267697
> Kernel panic - not syncing : No init found. Try passing init=option to kernel
>
>
> uboot booting shr-----------------
> card type :SD 2.0 SDHC
> Manufacturer:
> Product name: "SA08G", revision 0.4
> Serial number:
> Manufacturing date: 4/2010
> MMC/SD size : 3MiB
>
> Unable to read uImage.bin from mmc 1:2
> wrong image format for bootm command
>
> Error cant get kernel image
>
>
>
> Related reports:
> https://docs.openmoko.org/trac/ticket/1815
> https://docs.openmoko.org/trac/ticket/1719
> https://https://docs.openmoko.org/trac/ticket/1743docs.openmoko.org/trac/ticket/1743
>
> PS: my 2 cards are 8 GB microSDHC memory card Kingston (class 4 :
> 15MBit/s-2MB/s) and a 1GB from a nokia phone with no company logo. Also i've
> asked a friend and i'll try with a sandisk 4GB.
>
>
> Thanks!
> Alexandros
> librephone.gr
>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>
Hi Alexandros,
I use sd cards to run a distro and it works "fine" ( there are some problems with the speed an reliability )
I would suggest to format the sd card as one partion with ext2 (on a pc with a sd card reader for example)
and put the qtmoko kernel in the /boot directory of the card and name it uImage-GTA02.bin.
And write "console=tty0 loglevel=3 rootwait panic=10 glamo_mci.sd_max_clk=5000000 glamo_mci.sd_post_power_clock=5000000 glamo_mci.sd_slow_ratio=16" in /boot/append-GTA02
Could you please report back what happens when you try to boot then from the SD card.
It should start a kernel and panic at the end loading the kernel. ( there is no init yet)
Please hold the power button to get some diagnostics printed on your screen.
Kind regards,
Ed
cut and paste:
mke2fs /dev/sdb1 ( assuming /dev/sdb is your sd card )
mkdir /tmp/mpt
mount /dev/sdb1 /tmp/mpt
mkdir /tmp/mpt/boot
cp /some/place/qtmoko_kernel /tmp/mpt/boot/uImage-GTA02.bin
echo "console=tty0 loglevel=3 rootwait panic=10 glamo_mci.sd_max_clk=5000000 glamo_mci.sd_post_power_clock=5000000 glamo_mci.sd_slow_ratio=16" > /tmp/mpt/boot/append-GTA02
umount /tmp/mpt
eject /dev/sdb
put the card in the freerunner and boot using qi.
More information about the community
mailing list