cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

Rebooting from sd card failed. . .

Open StilluSmile opened this issue 3 years ago • 0 comments

Is there an existing CVA6 bug for this?

  • [X] I have searched the existing bug issues

Bug Description

Last month, I successfully booted and ran linux system from sd card. Today I tried to run again, but found that boot from sd card failed, prompting "Wrong Image Format for bootm command ERROR: can't get kernel image!"

I don't know what is wrong, maybe u-boot is not working properly. Because when I started successfully last time, the serial output was "U-Boot 2021.07-rc4-g920075ecfa", but this time it was "U-Boot 2021.07-rc4-g920075ecfa-dirty".

After Boot from Configuration Memory Device, the serial port prints as follows: Domain0 Boot HART : 0 Domain0 HARTs : 0* Domain0 Region00 : 0x0000000002008000-0x000000000200bfff (I) Domain0 Region01 : 0x0000000002000000-0x0000000002007fff (I) Domain0 Region02 : 0x0000000080000000-0x000000008003ffff () Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff (R,W,X) Domain0 Next Address : 0x0000000080200000 Domain0 Next Arg1 : 0x0000000082200000 Domain0 Next Mode : S-mode Domain0 SysReset : yes

Boot HART ID : 0 Boot HART Domain : root Boot HART ISA : rv64imafdcsu Boot HART Features : scounteren,mcounteren Boot HART PMP Count : 16 Boot HART PMP Granularity : 8 Boot HART PMP Address Bits: 54 Boot HART MHPM Count : 0 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109

U-Boot 2021.07-rc4-g920075ecfa-dirty (Nov 17 2022 - 19:05:17 +0800)

CPU: rv64imafdc DRAM: 1 GiB MMC: xps-spi@20000000:mmc@0: 0 Loading Environment from nowhere... OK In: uart@10000000 Out: uart@10000000 Err: uart@10000000 Net: No ethernet found. Hit any key to stop autoboot: 0 Device: xps-spi@20000000:mmc@0 Manufacturer ID: 9f OEM: 5449 Name: SD32G Bus Speed: 12500000 Mode: MMC legacy Rd Block Len: 512 SD version 2.0 High Capacity: Yes Capacity: 29.1 GiB Bus Width: 1-bit

MMC read: dev # 0, block # 1048576, count 20480 ... 20480 blocks read: OK Wrong Image Format for bootm command ERROR: can't get kernel image! =>

Has anyone else encountered this problem? Thank you very much for your answers and replies~

StilluSmile avatar Nov 17 '22 12:11 StilluSmile