Port-RISCV archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Allwinner D1
On Sat, Jan 11, 2025 at 02:36:41PM +0800, Rui-Xiang Guo wrote:
> I am attempting to add sunxitimer via riscv_timer_register(), and then get
> the output:
> [...]
> [ 1.0000030] sunxitimer0: interrupting on plic0 irq 75
> [ 1.0023310] sunximmc0: host reset
> [ 1.0023310] sunximmc0: width = 1
> [ 1.0027578] sdmmc0 at sunximmc0
> [ 1.9569563] sdmmc1 at sunximmc1
> [ 1.9600358] sunximmc0: update clock
> [ 2.9153101] sunximmc0: update clock
> [ 2.9153101] sunximmc0: update clock
> [ 4.8278825] WARNING: system needs entropy for security; see entropy(7)
> [ 8.6557525] panic: kernel diagnostic assertion "p != NULL" failed: file "/usr/src/sys/kern/kern_clock.c", line 446
> [ 8.6557525] cpu0: Begin traceback...
> [ 8.6557525] have_addr: true
> [ 8.6557525] addr: ffffffc04e1ebb60
> [ 8.6557525] count: 65535
> [ 8.6557525] modif:
> [ 8.6557525] trace fp ffffffc04e1ebb60
After enabling clint in the firmware instead of attaching sunxitimer,
the host controller starts activities but can't detect the card.
[...]
[ 1.6914471] sunximmc0: mmc intr idst=00000000 mint=00000004
[ 1.6914471] sunximmc0: mmc intr idst=00000000 mint=00000808
[ 1.6914471] sunximmc0: host controller error, mint=0x00000808
[ 1.7099755] sdmmc1: 4-bit width, 50.000 MHz
[ 1.7099755] sunximmc0: i/o error 5
[ 1.7099755] sunximmc0: update clock
[ 1.7220301] sdmmc0: sdmem_mem_send_scr: error = 5
[ 1.7220301] sdmmc0: SD_SEND_SCR send failed.
[ 1.7309457] sdmmc0: mem init failed
[ 1.7309457] sdmmc0: init failed
[ 1.7309457] sunximmc0: opcode 7 flags 0x0 data 0x0 datalen 0 blklen 0
[ 1.7439451] sunximmc0: cmdval = 80000000
[ 1.7439451] sunximmc0: mmc intr idst=00000000 mint=00000004
[ 1.7534039] sunximmc0: width = 1
[ 1.7534039] sunximmc0: update clock
[...]
The complete log is in:
https://github.com/picohive/netbsd-mangopi-mq-pro/blob/main/boot-debug-mmc.log
and the diff:
https://github.com/picohive/netbsd-mangopi-mq-pro/blob/main/sunxi_mmc.c.diff
Any suggestions?
-rxg
Home |
Main Index |
Thread Index |
Old Index