openbouffalo / buildroot_bouffalo

Linux Image for the BL808 CPU by Bouffalo Lab
128 stars 34 forks source link

SD timeout #16

Open eeucalyptus opened 1 year ago

eeucalyptus commented 1 year ago

Hi, I'm trying to run it on my Ox64. I flashed the low-load fw and the image, and dd'd the sdcard.img to two different sd-cards.The bootloader and the kernel start without a problem, but the rootfs doesn't get mounted and linux stops booting.

Here is my bootlog:

  ____               __  __      _       _       _     
 |  _ \             / _|/ _|    | |     | |     | |    
 | |_) | ___  _   _| |_| |_ __ _| | ___ | | __ _| |__  
 |  _ < / _ \| | | |  _|  _/ _` | |/ _ \| |/ _` | '_ \ 
 | |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |
 |____/ \___/ \__,_|_| |_| \__,_|_|\___/|_|\__,_|_.__/ 

Build:01:11:33,Jan 26 2023
Copyright (c) 2022 Bouffalolab team
dynamic memory init success,heap size = 11 Kbyte 
sig1:ffff32ff
[I][LowLoad] D0 start...
[I][LowLoad] low_load start... 
[I][LowLoad] Section dtb(1) - Start 0x58080100, Size 2827
[I][LowLoad] Copying DTB to 0x51ff8000...0x51ff8b0b
[I][LowLoad] Done!
[I][LowLoad] Section OpenSBI(2) - Start 0x58090100, Size 109864
[I][LowLoad] Copying OpenSBI to 0x3ef80000...0x3ef9ad28
[I][LowLoad] Done!
[I][LowLoad] Section Kernel(3) - Start 0x580b0100, Size 3854406
[I][LowLoad] Uncompressing Kernel to 0x50000000...
[I][LowLoad] Done!
[I][LowLoad] CRC: 00000000
[I][LowLoad] load time: 444565 us 
[I][LowLoad] Setting PMP
[I][LowLoad] Booting OpenSBI at 0x000000003ef80000 with DTB at 0x51ff8000

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : Pine64 Ox64
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 1000000Hz
Platform Console Device   : bflb_uart
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : ---
Platform Shutdown Device  : ---
Firmware Base             : 0x3ef80000
Firmware Size             : 200 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x00000000e4008000-0x00000000e400bfff (I)
Domain0 Region01          : 0x00000000e4000000-0x00000000e4007fff (I)
Domain0 Region02          : 0x000000003ef80000-0x000000003efbffff ()
Domain0 Region03          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000050000000
Domain0 Next Arg1         : 0x0000000051ff8000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 0
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcvx
Boot HART ISA Extensions  : time
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 38
Boot HART MHPM Count      : 8
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109
[    0.000000] Linux version 6.2.0-rc5 (bouffalo@eike-XPS-13-9380) (riscv64-unknown-linux-gnu-gcc (Xuantie-900 linux-5.10.4 glibc gcc Toolchain V2.6.1 B-20220906) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 Thu Jan 26 01:08:36 CET 2023
[    0.000000] Machine model: Pine64 Ox64
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000050000000-0x0000000053ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000050000000-0x0000000053ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000050000000-0x0000000053ffffff]
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10002
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] riscv: base ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16160
[    0.000000] Kernel command line: console=ttyS0,2000000 loglevel=8 earlycon=sbi root=PARTLABEL=rootfs rootwait rootfstype=ext4
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 50144K/65536K available (3861K kernel code, 4573K rwdata, 2048K rodata, 2118K init, 301K bss, 15392K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@e0000000: mapped 64 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv-timer: riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.000003] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[    0.000913] Console: colour dummy device 80x25
[    0.001158] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[    0.001679] pid_max: default: 32768 minimum: 301
[    0.002392] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.002732] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.007697] cblist_init_generic: Setting adjustable number of callback queues.
[    0.008016] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.008927] ASID allocator using 16 bits (65536 entries)
[    0.010102] EFI services will not be available.
[    0.011139] devtmpfs: initialized
[    0.014314] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.014813] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.017525] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.018413] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.018805] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.023354] bflb-ipc 30005000.mailbox: Bouffalo Lab IPC mailbox interrupt controller
[    0.028379] SCSI subsystem initialized
[    0.031030] clocksource: Switched to clocksource riscv_clocksource
[    0.059887] NET: Registered PF_INET protocol family
[    0.060581] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.062663] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.063161] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.063554] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.064028] TCP bind hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.064461] TCP: Hash tables configured (established 512 bind 512)
[    0.065142] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.065481] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.066216] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.068806] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.071134] NET: Registered PF_ALG protocol family
[    0.071505] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.071851] io scheduler mq-deadline registered
[    0.072105] io scheduler kyber registered
[    0.072443] io scheduler bfq registered
[    0.077177] 30002000.serial: ttyS0 at MMIO 0x30002000 (irq = 2, base_baud = 2500000) is a BFLB UART
[    0.077659] printk: console [ttyS0] enabled
[    0.077659] printk: console [ttyS0] enabled
[    0.078106] printk: bootconsole [sbi0] disabled
[    0.078106] printk: bootconsole [sbi0] disabled
[    0.079782] 2000aa00.serial: ttyS1 at MMIO 0x2000aa00 (irq = 3, base_baud = 2500000) is a BFLB UART
[    0.108809] brd: module loaded
[    0.125755] loop: module loaded
[    0.126948] physmap-flash 58500000.xip_flash: physmap platform flash device: [mem 0x58500000-0x588fffff]
[    0.132831] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    0.133327] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    0.133940] PPP generic driver version 2.4.2
[    0.134677] PPP BSD Compression module registered
[    0.134991] PPP Deflate Compression module registered
[    0.136129] sdhci: Secure Digital Host Controller Interface driver
[    0.136522] sdhci: Copyright(c) Pierre Ossman
[    0.136792] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.137569] riscv-pmu-sbi: SBI PMU extension is available
[    0.137977] riscv-pmu-sbi: 16 firmware and 10 hardware counters
[    0.139987] NET: Registered PF_INET6 protocol family
[    0.141455] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    0.145808] Segment Routing with IPv6
[    0.146255] In-situ OAM (IOAM) with IPv6
[    0.146732] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.148776] NET: Registered PF_PACKET protocol family
[    0.149232] Key type dns_resolver registered
[    0.173708] debug_vm_pgtable: [debug_vm_pgtable         ]: Validating architecture page table helpers
[    0.188088] mmc0: SDHCI controller on 20060000.sdhci [20060000.sdhci] using DMA
[    0.188849] Waiting for root device PARTLABEL=rootfs...
[   10.467048] mmc0: Timeout waiting for hardware cmd interrupt.
[   10.467427] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[   10.467823] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000000
[   10.468221] mmc0: sdhci: Blk size:  0x00000000 | Blk cnt:  0x00000000
[   10.468617] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000000
[   10.469014] mmc0: sdhci: Present:   0x01f70000 | Host ctl: 0x00000001
[   10.469411] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[   10.469807] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00008007
[   10.470204] mmc0: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
[   10.470600] mmc0: sdhci: Int enab:  0x00ff0083 | Sig enab: 0x00ff0083
[   10.470997] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[   10.471394] mmc0: sdhci: Caps:      0x25fc0080 | Caps_1:   0x00002f77
[   10.471791] mmc0: sdhci: Cmd:       0x00000000 | Max curr: 0x00000000
[   10.472187] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
[   10.472584] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[   10.472980] mmc0: sdhci: Host ctl2: 0x00004000
[   10.473258] mmc0: sdhci: ============================================
[   20.707049] mmc0: Timeout waiting for hardware cmd interrupt.
[   20.707428] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[   20.707823] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000000
[   20.708220] mmc0: sdhci: Blk size:  0x00000000 | Blk cnt:  0x00000000
[   20.708617] mmc0: sdhci: Argument:  0x00000000 | Trn mode: 0x00000000
[   20.709014] mmc0: sdhci: Present:   0x01f70000 | Host ctl: 0x00000001
[   20.709410] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[   20.709807] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00008007
[   20.710203] mmc0: sdhci: Timeout:   0x00000000 | Int stat: 0x00000000
[   20.710600] mmc0: sdhci: Int enab:  0x00ff0083 | Sig enab: 0x00ff0083
[   20.710997] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[   20.711393] mmc0: sdhci: Caps:      0x25fc0080 | Caps_1:   0x00002f77
[   20.711790] mmc0: sdhci: Cmd:       0x00000502 | Max curr: 0x00000000
[   20.712187] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
[   20.712584] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[   20.712980] mmc0: sdhci: Host ctl2: 0x00004000
[   20.713257] mmc0: sdhci: ============================================

The SDHCI register dump continues several times afterwards.

This is the parted-output for one of the SD's:

Model: SD SD02G (sd/mmc)
Disk /dev/mmcblk0: 1967MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name    Flags
 1      17,4kB  1074MB  1074MB               swap    swap
 2      1074MB  1611MB  537MB   ext4         rootfs

Am I missing something, or is there something going on with the SDHCI?

arm000 commented 1 year ago

Another user reported this issue in the 0x64 discord, but it has not been root caused. In that case, the failure was board specific. So likely you didn't do anything wrong, but there is some bug that's causing sdhci init to be non-deterministic.

Fishwaldo commented 1 year ago

If you comfortably with a bit of kernel hacking please join us in the #ox64-nutcracker channel at pine64 (https://wiki.pine64.org/wiki/Main_Page#Chat_Platforms)

alexhorner commented 1 year ago

For anyone who wants to provide your own debug information from your example of this issue, if you flash these binaries with BLDevCube, and then use the normal SD card image, you'll find it starts spewing a whole ton of debug information regarding exactly what the SDHCI controller is doing at any given time, including errors and retries: MMC Debug Binaries.zip

Orsira commented 1 year ago

This with a SanDisk Class 2 8GB microSD card and the Kernel 6.2-rc5 release of buildroot. I had similar issues with a 4GB card (can't find it to check the specs) but not with a PNY Elite-X 64GB card. ox64_mmc_debug.txt

eeucalyptus commented 1 year ago

I tried out my other boards and turns out I picked the only one of them which has issues with SDs. Here's the logs of all 5. 01 is the one with issues. I labelled the boards, so if you need to test something, just reach out and ask :) I'll look into possible assembly-issues soon, so if something is wrong with the soldering or alike, I will tell you. 2023-01-29_mmc_Ox64_01.log 2023-01-29_mmc_Ox64_02.log 2023-01-29_mmc_Ox64_03.log 2023-01-29_mmc_Ox64_04.log 2023-01-29_mmc_Ox64_05.log

grant-olson commented 1 year ago

Adding this datapoint. I have 3 boards, 1 has the problems described above. People have reported the SDK works fine on the bad boards getting back to software. I ran U-Boot on the bad board and got an error not seen on the good boards:

U-Boot 2023.04-rc1-g2c940eed61-dirty (Feb 10 2023 - 10:48:57 -0500)

DRAM:  64 MiB
Core:  33 devices, 16 uclasses, devicetree: separate
MMC:   mmc@20060000: 0
Loading Environment from <NULL>... OK
In:    serial
Out:   serial
Err:   serial
Net:   
Warning: emac@20070000 (eth0) using random MAC address - ae:c1:88:31:99:4f
eth0: emac@20070000
=> mmc part
sdhci_send_command: Timeout for status update!

Which makes me think this is more hardware than software.

Annoyingly, the same U-Boot program only succeeds on 1 of the two boards that have been running buildroot. However the failing board recognizes the device but does nothing with any mmc operation. It does not report the error above.

alexhorner commented 1 year ago

Little more information. Was using one of my Ox64 boards this evening to test something completely unrelated, and it just stopped working. Was working one moment, removed the SD card to add some more files, reinserted and reset the board and it just started getting IO errors and timing out.

Rewrote my buildroot to the card from scratch, same issue. Tried the card in another board, worked fine.

matusnovak commented 1 year ago

I am also having this issue but only with one of my SD cards. I am using bl808-linux-pine64_ox64_full_defconfig.tar.gz version 0.0.5. The latest release at the time of writing this comment.

image

The SD card on the left is the problematic one. It was causing the exact same issue. I got that Netac SD card from the Enter 3D printer.

The problem has disappeared when I have put the OS into the Verbatim one. Same OS, same board, different SD card.

alexhorner commented 1 year ago

I am also having this issue but only with one of my SD cards. I am using bl808-linux-pine64_ox64_full_defconfig.tar.gz version 0.0.5. The latest release at the time of writing this comment.

image

The SD card on the left is the problematic one. It was causing the exact same issue. I got that Netac SD card from the Enter 3D printer.

The problem has disappeared when I have put the OS into the Verbatim one. Same OS, same board, different SD card.

Thanks for the info! looks like it is basically impossible to specifically get that Netac card for me, only higher capacity Netac cards. All information like this is helpful though!

Masonrf commented 1 year ago

I am having a similar issue with a PNY 4GB microSD. Here is the output using the mmc debug binaries and 0.0.5 sdcard image: debug-output.txt

MartinEssink commented 1 year ago

I am also getting these errors (Got data interrupt 0x00000002 even though no data operation was in progress) on a m1s dock board running the latest release, combined with a 2GB Sandisk MicroSD. I get two of the messages below shortly after after another, repeated approximately every 6 seconds. It appears to be some regular command to retrieve the status form the card (MMC_SEND_STATUS) from what I am able to find.

[   73.966826] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
[   73.967376] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[   73.967770] mmc0: sdhci: Sys addr:  0x51341040 | Version:  0x00000000
[   73.968169] mmc0: sdhci: Blk size:  0x00007200 | Blk cnt:  0x00000000
[   73.968567] mmc0: sdhci: Argument:  0xb7db0000 | Trn mode: 0x00000023
[   73.968965] mmc0: sdhci: Present:   0x01f70000 | Host ctl: 0x00000002
[   73.969363] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[   73.969760] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000207
[   73.970157] mmc0: sdhci: Timeout:   0x0000000e | Int stat: 0x00000000
[   73.970555] mmc0: sdhci: Int enab:  0x02ff008b | Sig enab: 0x02ff008b
[   73.970953] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[   73.971350] mmc0: sdhci: Caps:      0x25fc0080 | Caps_1:   0x00002f77
[   73.971748] mmc0: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[   73.972145] mmc0: sdhci: Resp[0]:   0x00000e00 | Resp[1]:  0xc93efbcf
[   73.972543] mmc0: sdhci: Resp[2]:   0x325f5a83 | Resp[3]:  0x00002600
[   73.972941] mmc0: sdhci: Host ctl2: 0x00004000
[   73.973218] mmc0: sdhci: ============================================

20230205_m1s_sd.txt

ckahlo commented 1 year ago

Hi everybody, had the very same issue a couple of weeks ago with an older 8GB no-name card. Then changed it to a SanDisk 32GB and everything worked fine. Seems to be some difference in older controllers. Using a more recent (still cheap) SD card seems to work around this issue. Tested with 4 boards and thought first it's due to a missing capacitor (C23, https://files.pine64.org/doc/ox64/PINE64_Ox64_PCB_Placement-Bottom-20221018.pdf) on one of these boards. But it was just the card. Best, CK

MartinEssink commented 1 year ago

I have found the same. In my post above I used a very old 2gb card (Sandisk). A much more recent 32gb (Kingston Canvas Select) card works absolutely fine.

eeucalyptus commented 1 year ago

We are facing at least two separate problems here. Some have problems with specific SD-cards. Changing them will result in a working device. But others have problems with specific boards with all SD-cards. Changing the SD-card doesn't seem to help in those cases, changing the board does. I'm not saying that these are not related, but it might be good to differentiate between those. The workaround "Just use a different SD-Card" only applies to the former case...

dotsam commented 1 year ago

I'm having similar issues, which manifest differently since the 1.0 build that loads the uBoot config and kernel from the SD card. I usually see a Card did not respond to voltage select! : -110 error. I've had the same issue with a new Samsung 64GB card, and with a no-name 16GB card. Repeated attempts to query mmc info/partitions from uBoot do eventually succeed, but I've yet to get the card reading on boot to the point where it can load the kernel.

Boot Logs ``` resetting ... [I][] [I][] ____ ____ __ __ _ [I][] / __ \ | _ \ / _|/ _| | | [I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___ [I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \ [I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) | [I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/ [I][] | | [I][] |_| [I][] [I][] Powered by BouffaloLab [I][] Build:11:52:04,Mar 6 2023 [I][] Copyright (c) 2023 OpenBouffalo team [I][] Copyright (c) 2022 Bouffalolab team [I][] dynamic memory init success,heap s[I][LowLoad] D0 start... [I][LowLoad] low_load start... [I][LowLoad] Header at 0x5d5ff000 [I][LowLoad] Section dtb(1) - Start 0x5d5ff100, Size 14314 [I][LowLoad] Copying DTB to 0x51ff8000...0x51ffb7ea [I][LowLoad] Done! [I][LowLoad] Section OpenSBI(2) - Start 0x5d60f100, Size 109864 [I][LowLoad] Copying OpenSBI to 0x3ef80000...0x3ef9ad28 [I][LowLoad] Done! [I][LowLoad] Section Kernel(3) - Start 0x5d62f100, Size 315597 [I][LowLoad] Uncompressing Kernel to 0x50000000... [I][LowLoad] Done! [I][LowLoad] CRC: 00000000 [I][LowLoad] load time: 61449 us [I][LowLoad] Setting PMP [I][LowLoad] Booting OpenSBI at 0x000000003ef80000 with DTB at 0x51ff8000 OpenSBI v1.2 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : Pine64 Ox64 (D0) Platform Features : medeleg Platform HART Count : 1 Platform IPI Device : aclint-mswi Platform Timer Device : aclint-mtimer @ 1000000Hz Platform Console Device : bflb_uart Platform HSM Device : --- Platform PMU Device : --- Platform Reboot Device : --- Platform Shutdown Device : --- Firmware Base : 0x3ef80000 Firmware Size : 200 KB Runtime SBI Version : 1.0 Domain0 Name : root Domain0 Boot HART : 0 Domain0 HARTs : 0* Domain0 Region00 : 0x00000000e4008000-0x00000000e400bfff (I) Domain0 Region01 : 0x00000000e4000000-0x00000000e4007fff (I) Domain0 Region02 : 0x000000003ef80000-0x000000003efbffff () Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x0000000050000000 Domain0 Next Arg1 : 0x0000000051ff8000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Boot HART ID : 0 Boot HART Domain : root Boot HART Priv Version : v1.11 Boot HART Base ISA : rv64imafdcvx Boot HART ISA Extensions : time Boot HART PMP Count : 8 Boot HART PMP Granularity : 4096 Boot HART PMP Address Bits: 38 Boot HART MHPM Count : 8 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 U-Boot 2023.04-rc2 (Mar 06 2023 - 11:48:40 +0000) DRAM: 64 MiB Core: 36 devices, 17 uclasses, devicetree: board MMC: mmc@20060000: 0 Loading Environment from FAT... Card did not respond to voltage select! : -110 ** Bad device specification mmc 0 ** Loading Environment from nowhere... OK In: serial@30002000 Out: serial@30002000 Err: serial@30002000 Net: Warning: emac@20070000 (eth0) using random MAC address - 2a:8c:ed:3a:b1:dd eth0: emac@20070000 Hit any key to stop autoboot: 0 => mmc info => mmc info => mmc list mmc@20060000: 0 => mmc info Device: mmc@20060000 Manufacturer ID: fe OEM: 3432 Name: SD16G Bus Speed: 50000000 Mode: SD High Speed (50MHz) Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.9 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes => mmc part Card did not respond to voltage select! : -110 => mmc part => mmc part Card did not respond to voltage select! : -110 => mmc part Card did not respond to voltage select! : -110 => mmc part => mmc info => mmc rescan Card did not respond to voltage select! : -110 => mmc part Card did not respond to voltage select! : -110 => mmc list mmc@20060000: 0 => mmc part => mmc list mmc@20060000: 0 => mmc info => mmc info => mmc info Device: mmc@20060000 Manufacturer ID: fe OEM: 3432 Name: SD16G Bus Speed: 50000000 Mode: SD High Speed (50MHz) Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.9 GiB Bus Width: 1-bit Erase Group Size: 512 Bytes => mmc part Card did not respond to voltage select! : -110 => mmc part Partition Map for MMC device 0 -- Partition Type: EFI Part.Start LBA.End LBA..Name .Attributes .Type GUID .Partition GUID 1.0x00000022.0x00200021."swap" .attrs:.0x0000000000000000 .type:.0657fd6d-a4ab-43c4-84e5-0933c84b4f4f .guid:.1e8f47da-1fe0-4ce5-867d-467e1027f57f 2.0x00200022.0x00264021."boot" .attrs:.0x0000000000000004 .type:.ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 .guid:.37383271-fed8-4153-92f6-b11fc09cc215 3.0x00264022.0x00364021."rootfs" .attrs:.0x0000000000000000 .type:.0fc63daf-8483-4772-8e79-3d69d8477de4 .guid:.8b92754e-3c44-4417-b919-88f2a56550d3 => ```
osster commented 1 year ago

Card did not respond to voltage select! : -110 error

I had the same error.

lbthomsen commented 1 year ago

image

Left one does not work, right one works, both are reasonably quick ones.