milkv-duo / duo-buildroot-sdk

Milk-V Duo Official buildroot SDK
391 stars 169 forks source link

Unable to run release v1.1.1 on milk-v duo s #117

Closed thecapn32 closed 2 months ago

thecapn32 commented 2 months ago

Hi I want to try my milk-v duo s (without emmc) but it get's stuck

Here is the full captured output of milk-v duo s from uart connection:

 C.SCS/0/0.WD.URPL.SDI/25000000/6000000.BS/SD.PS.SD/0x0/0x1000/0x1000/0.PE.BS.SD/0x1000/0x8400/0x8400/0.BE.J.
FSBL Jb2829:g34fb84e88:2024-05-28T21:08:17+08:00
st_on_reason=d0000
st_off_reason=800e0003
P2S/0x1000/0xc00a400.
SD/0x9400/0x1000/0x1000/0.P2E.
DPS/0xa400/0x2000.
SD/0xa400/0x2000/0x2000/0.DPE.
cv181x DDR init.
ddr_param[0]=0x78075562.
pkg_type=1
D2_4_1
DDR3-4G-BGA
Data rate=1866.
DDR BIST PASS
PLLS/OD.
C2S/0xc400/0x9fe00000/0x3600.
SD/0xc400/0x3600/0x3600/0.RSC.
C2RET.:

[M1S./208x4f2a5010]/P0rxe8 0s0y0s0t0e0m0 /i0nxi1tb 0d0o0n.e

RT: [1.290577]CVIRTOS Build Date:May 28 2024  (Time :21:08:16) 
RT: [1.296491]Post system init done
RT: [1.299806]create cvi task
RT: [1.302622][cvi_spinlock_init] succeess
RT: [1.306526]prvCmdQuRunTask run
SD/0xfa00/0x1b000/0x1b000/0.ME.
L2/0x2aa00.
SD/0x2aa00/0x200/0x200/0.L2/0x414d3342/0xcafedefd/0x80200000/0x40000/0x40000
COMP/1.
SD/0x2aa00/0x40000/0x40000/0.DCP/0x80200020/0x1000000/0x81900020/0x40000/1.
DCP/0x865d8/0.
Loader_2nd loaded.
Switch RTC mode to xtal32k
Jump to monitor at 0x80000000.
OPENSBI: next_addr=0x80200020 arg1=0x80080000
OpenSBI v0.9
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : Milk-V DuoS
Platform Features         : mfdeleg
Platform HART Count       : 1
Platform IPI Device       : clint
Platform Timer Device     : clint
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform SysReset Device  : ---
Firmware Base             : 0x80000000
Firmware Size             : 132 KB
Runtime SBI Version       : 0.3

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00          : 0x0000000074000000-0x000000007400ffff (I)
Domain0 Region01          : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000080200020
Domain0 Next Arg1         : 0x0000000080080000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

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

U-Boot 2021.10 (May 28 2024 - 21:08:09 +0800) cvitek_cv181x

DRAM:  510 MiB
gd->relocaddr=0x94f4c000. offset=0x14d4c000
set_rtc_register_for_power
MMC:   cv-sd@4310000: 0, wifi-sd@4320000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet@4070000 (eth0) using random MAC address - 82:61:4b:c0:1b:a7
eth0: ethernet@4070000
Hit any key to stop autoboot:  1  0 
Boot from SD ...
sdhci_send_command: Timeout for status update!
mmc1 : finished tuning, code:-1
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout increasing to: 200 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 400 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 800 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 1600 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 3200 ms.
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
sdhci_send_command: MMC: 0 busy timeout.
sdhci_set_clock: Timeout to wait cmd & data inhibit
unable to select a mode
cv181x_c906# y
Unknown command 'y' - try 'help'
cv181x_c906# 
thecapn32 commented 2 months ago

I just tried a different sd card and it is working.

sorry guys