NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/58037: faster SD cards not working on Hummingboard Pulse



>Number:         58037
>Category:       kern
>Synopsis:       faster SD cards not working on Hummingboard Pulse
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 14 15:40:00 +0000 2024
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.10
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD h-pulse.aprisoft.de 10.99.10 NetBSD 10.99.10 (GENERIC64) #427: Thu Mar 14 12:31:00 CET 2024 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

I needed more space on / for this device so tried moving to a bigger SD
card, but the only ones I had handy were all faster standards. I dimly
remember talking to Jared about unimplemented "training" for this controller
(but of course I forgot all details and apparently filed no PR to document
it back then).

A maximal C10 card works:

[   2.1614261] sdmmc1: SD card status: 4-bit, C10
[   2.1714268] ld1 at sdmmc1: <0xfe:0x3432:SD16G:0x20:0x0000ea76:0x153>
[   2.1714268] ld1: 7680 MB, 3900 cyl, 64 head, 63 sec, 512 bytes/sect x 15728640 sectors
[   2.1857443] ld1: 4-bit width, High-Speed/SDR25, 50.000 MHz


A faster card does not work:

[   2.1818279] sdmmc1: SD card status: 4-bit, C10, U1
[   2.1918277] ld1 at sdmmc1: <0x03:0x5344:SL16G:0x80:0x11b1259d:0x103>
[   2.1918277] ld1: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors
[   2.2118320] ld1: 15387648 trailing sectors not covered by disklabel
[   2.2218330] ld1: 4-bit width, DDR50, 50.000 MHz

leads to:

[  12.9580666] ld1a: error reading fsbn 5286912 of 5286912-5287039 (ld1 bn 5483520; cn 2677 tn 32 sn 0), retrying
[  13.4680988] sdhc1: data crc error
[  23.4687196] ld1a: error reading fsbn 10366848 of 10366848-10366975 (ld1 bn 10563456; cn 5157 tn 60 sn 0), retrying
[  23.9787510] sdhc1: data crc error
...

same as:

[   2.1715747] sdmmc1: SD card status: 4-bit, C10, U1, V10, A1
[   2.1815755] ld1 at sdmmc1: <0x74:0x4a60:USDU1:0x20:0x290372be:0x0fc>
[   2.1915755] ld1: 29007 MB, 7366 cyl, 128 head, 63 sec, 512 bytes/sect x 59406336 sectors
[   2.1915755] ld1: 43677696 trailing sectors not covered by disklabel
[   2.2062342] ld1: 4-bit width, DDR50, 50.000 MHz



>How-To-Repeat:

Try to boot a HummingBoard Pulse from a U1 or faster SD card.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index