Ticket #1815 (closed defect: fixed)

Opened 11 years ago

Last modified 20 months ago

u-boot fails to detect sandisk 8gb microsdhc correctly

Reported by: x Owned by: openmoko-kernel
Priority: normal Milestone:
Component: kernel Version: GTA02v5
Severity: normal Keywords: u-boot sdhc sandisk
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:


tested with u-boot from daily 20080809 (gitr54).
on mmcinit u-boot detects:

GTA02v5 # mmcinit
Card Type: SD 2.0 SDHC

iManufacturer: 0x03, OEM "SD"

Product name: "SU08G", revision 8.0
Serial number: 1091827341
Manufacturing date: 6/2009
MMC/SD size: 3MiB
GTA02v5 #

and booting from it fails.
the packaging of the card says:

Mobile Premier
High Performance + TrustedFlash?
8GB microSDHC Card with Reader

the card works fine/correctly with linux.

Change History

comment:1 Changed 11 years ago by dolfje

This may be a duplicate of #1719 or #1768,

comment:2 Changed 11 years ago by x

if i understand them correctly, both #1719 and #1768 describe problems with sdhc cards under linux.
i didn't have any problems using the card under linux (i.e., after booting the os) - at least until now.
the problem described above occurs before booting linux (i.e. the os), the bootloader u-boot - or more precisely the mmcinit command in it - seems not to recognize the card (or more precisely: its capacity) correctly, and consequently booting from it fails.

comment:3 Changed 11 years ago by zecke

  • Status changed from new to assigned
  • Owner changed from openmoko-devel to openmoko-kernel
  • Component changed from unknown to System Software

Changing Component to System Software as this is an u-boot problem.

comment:4 Changed 11 years ago by Sascha

I had the same problem with a "SanDisk?® Mobile Ultra™ microSDHC™ 8GB Card" - only the "Serial number" and the "Manufacturing date" strings differ.
First I partitioned/formated the card with GNU Parted and I could not boot from it.
Then with fdisk and mkfs.ext2 and I can boot debian without problems now.

Disk /dev/mmcblk0: 8168 MB, 8168931328 bytes
39 heads, 5 sectors/track, 81820 cylinders
Units = cylinders of 195 * 512 = 99840 bytes
Disk identifier: 0x000d8e91

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               1       81820     7977447+  83  Linux

although mmcinit still says

MMC/SD size: 3MiB



comment:5 Changed 11 years ago by x

I repartitioned the card, and now booting from it works.
I find it very hard to believe that it has anything to do with the partitioning-tool used (and i didn't use gparted in the first place). Obviously it's also not the case that booting works if the kernel happens to reside in the first 3mb (i can boot from the 2nd partition now, which is behind the first 2gb partition).
So the mmcinit reporting 3mb as capacity in the end seems to be just a cosmetic problem. Though there are still cases left where booting doesn't work (plus, i had spurious problems mounting the rootfs by a kernel that was loaded from the very same fs, which might be a related problem)

comment:6 Changed 11 years ago by olberger

I just experienced the same problem as initially reported, but for a 2Gb card.

The card is a sandisk 2GB SDSDQ-2048-E11MK microSD, but mmcinit reports the following with U-Boot 1.3.2-moko12 (Aug 26 2008 - 08:24:58) :
GTA02v5 # mmcinit
Card Type: SD 2.0
Manufacturer: 0x03, OEM "SD"
Product name: "SU02G", revision 8.0
Serial number: 24786483
Manufacturing date: 3/2008
MMC/SD size: 511MiB

Hope this helps (and doesn't mess, as the initial report was about 8Gb cards).

comment:7 Changed 11 years ago by x

regarding the cases where booting doesn't work, i found a reproducible one: i can boot from partitions 1 and 2 (both 2gb, starting at 0 and 2gb respectively) but i can't boot from partition 3 (which starts at 4gb and has a size of 2gb). using ext2load to load the kernel doesn't work. with ext2ls i can see the directory (/boot), but no contents (it appears empty). after booting linux, accessing partition 3 works fine. i also did an fsck.ext2, reporting everything is fine.

comment:8 Changed 10 years ago by nomeata


what’s the state of this bug? It seems at least Qi works fine with one partition on a large microSD-card...


comment:9 Changed 10 years ago by andy

  • HasPatchForReview unset

Qi has a bunch of improvements around ext2 / 3 parsing and SHDC code that aren't planned to get backported. U-Boot code will have trouble touching stuff after 4GB, and can't figure out the size correctly for 4GB and more either. Qi shouldn't have that problem... and Qi should be faster at processing ext2 / 3 content.

comment:10 Changed 10 years ago by andy

  • Status changed from assigned to closed
  • Resolution set to fixed

Closing this as "fixed in Qi".

comment:11 Changed 2 years ago by RoberMync

Cialis Acheter En Pharmacie <a href=http://zol1.xyz/ordering-zoloft-online.php>Ordering Zoloft Online</a> Where To Buy Viagra In Canada Achat Cialis Securise <a href=http://cial1.xyz/cialis-usa.php>Cialis Usa</a> Cialis Per Impotenza Viagra Sildenafil Citrate <a href=http://viag1.xyz/cheap-viagra-samples.php>Cheap Viagra Samples</a> About Amoxicillin Buy Doxycycline For Fish <a href=http://cial5mg.xyz/buy-cialis-online-cheap.php>Buy Cialis Online Cheap</a> Ez Online Pharmacy Cialis 20mg Lilly Preis <a href=http://viag1.xyz/mail-order-viagra.php>Mail Order Viagra</a> Propecia O Urolosin Amoxicillin Wholesale World Market Price <a href=http://cialis.ccrpdc.com/generic-cialis-100mg.php>Generic Cialis 100mg</a> Clomid 2 Comprimes Levitra Brand Online <a href=http://viag1.xyz/viagra-online-sales.php>Viagra Online Sales</a> Discount Direct Stendra Website Mastercard Accepted Pharmacy Cialis 4cpr Riv 20mg <a href=http://kama1.xyz/buy-kamagra-online.php>Buy Kamagra Online</a> Robaxin 750 Mg Online No Prescription Levitra Rezeptfrei Shop <a href=http://viag1.xyz/cheap-viagra-samples.php>Cheap Viagra Samples</a> Buy Vigora 50 Ed Drugs <a href=http://zol1.xyz/order-zoloft-online.php>Order Zoloft Online</a> Clomid A Quoi Sert Commander Clomid <a href=http://viag1.xyz/online-viagra.php>Online Viagra</a> Viagra Tablet En France Con Prezzi Kamagra Prescrizione <a href=http://zol1.xyz/zoloft-generic.php>Zoloft Generic</a> Misoprostol Seul Online cialis generika kaufen <a href=http://kama1.xyz/online-pharmacy-kamagra.php>Online Pharmacy Kamagra</a> Cialis Efectos Secundarios A Largo Plazo Comparaison Prix Viagra Cialis Levitra <a href=http://kama1.xyz/where-to-order-kamagra.php>Where To Order Kamagra</a> Store Brand Propecia Commander Nolvadex <a href=http://zol1.xyz/zoloft-free-trial.php>Zoloft Free Trial</a> Buy Levothyroxine Online Without Script

comment:12 Changed 20 months ago by AnnaTitovka

comment:13 Changed 20 months ago by Abrahammaime

cialis 20 mg opis

<a href="http://cialisgsaa.com/">generic cialis online</a>

cialis apoteket pris

<a href=http://cialisgsaa.com/>buy generic cialis</a>

comment:14 Changed 20 months ago by AlexandrBut

<a href=http://exportmebel.ru>Да уж..</a> <a href=http://nabaze.ru>чего</a> <a href=http://trimaservice.ru>только</a> <a href=http://appolloshop.ru>и не</a> <a href=http://domkastrul.ru>бывает..</a>

comment:15 Changed 20 months ago by AntonFomin

<a href=http://dveri-piterburg.ru>Динамично</a> <a href=http://emkos.ru>все</a> <a href=http://gengaz.ru>это и</a> <a href=http://gengaz.ru>очень</a> <a href=http://grandturizm.ru>позитивно</a>

comment:16 Changed 20 months ago by AlexKuzin

<a href=http://grayns.ru>Где-то я</a> <a href=http://kompbook.ru> это уже </a> <a href=http://profsoftorg.ru>видел… </a> <a href=http://refta.ru>А если по теме </a> <a href=http://qpf5.ru>то спасибо.</a>

comment:17 Changed 20 months ago by AlexDubov

<a href=http://7802467.ru>По моему</a> <a href=http://zarylem-online.ru>Вам нужно</a> <a href=http://auto-accent.ru>чаще отдыхать,</a> <a href=http://alzor.ru>очень уж</a>

<a href=http://atrol.ru>Вы заработались.</a>

comment:18 Changed 20 months ago by ArturBrin

<a href=http://dreamstroi.ru>Хоть </a> <a href=http://avtoplastik-vrn.ru> кто-то </a> <a href=http://avtoservis178.ru>здравомыслящий </a> <a href=http://esysts.ru>остался, </a> <a href=http://dressed-baby.ru>спасибо!</a>

comment:19 Changed 20 months ago by AntonNilov

<a href=http://fitnexer.ru>Прочитал весь текст,</a> <a href=http://kuhnis.ru> в принципе есть</a> <a href=http://motorey.ru>кое-что новое.</a> <a href=http://odivanax.ru> жалко </a> <a href=http://paketo.ru>что редко пишите.</a>

comment:20 Changed 20 months ago by AndreiDeev

<a href=http://pozvonite.ru>Спасибо</a> <a href=http://realty21century.ru> за</a> <a href=http://realtyfly.ru>информацию.</a> <a href=http://service-vorwerk.ru>Буду</a> <a href=http://roffy.ru>иметь ввиду.</a>

comment:21 Changed 20 months ago by AndreiDeev

<a href=http://pozvonite.ru>Да если </a> <a href=http://realty21century.ru>копнуть в инете </a> <a href=http://realtyfly.ru>подобного </a> <a href=http://roffy.ru>добра </a> <a href=http://service-vorwerk.ru>навалом!</a>

comment:22 Changed 20 months ago by AlikKotov

<a href=http://vodoteplomer.ru>Прикольно,</a> <a href=http://shop-asia.ru>буду</a> <a href=http://svr-technology.ru>теперь</a> <a href=http://akadem-remont.ru>сюда</a> <a href=http://artehserv.ru>заглядывать</a>

comment:23 Changed 20 months ago by ArtmArdov

<a href=http://batutut.ru>Неожиданный</a> <a href=http://burx.ru>поворот</a> <a href=http://eur-style.ru>событий</a> <a href=http://canax.ru> респект</a> <a href=http://electroom.ru> ,спасибо!</a>

comment:24 Changed 20 months ago by AlexZotov

<a href=http://ferbs.ru>Где</a> <a href=http://landshaftnydizain.ru>то я</a> <a href=http://mapclub.ru>это</a> <a href=http://mapclub.ru>уже</a> <a href=http://ininternet.ru>видел</a>

comment:25 Changed 20 months ago by ArtemZotov

<a href=http://neiru.ru>Динамично</a> <a href=http://podmoskvu.ru>все</a> <a href=http://nornout.ru>это и</a> <a href=http://nornout.ru>очень</a> <a href=http://podsumok.ru>позитивно</a>

Note: See TracTickets for help on using tickets.