您尚未登录。

楼主 # 2022-04-03 10:51:21

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

内核启动出错了???

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 10:29:00 +0800)

DRAM:  64 MiB
[17.330]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 10:29:00 +0800)

riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0
GNU ld (GNU Binutils) 2.32
=> setenv kernel_comp_addr_r 0x41000000 && setenv kernel_comp_size 0x530121 && booti 0x40080000 - 0x43000000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0b52c
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Device Tree to 0000000049ff1000, end 0000000049fffed1 ... OK

Starting kernel ...

Unhandled exception: Instruction access fault
EPC: 000000e0000000ae RA: ffffffe0000000ae TVAL: 000000e0000000ae
EPC: 000000dffe0af0ae RA: ffffffdffe0af0ae reloc adjusted
Unhandled exception: Load access fault
EPC: 0000000043f522a2 RA: 0000000043f52294 TVAL: 000000e0000000ae
EPC: 00000000420012a2 RA: 0000000042001294 reloc adjusted

Code: 35d6 f413 ffe4 5783 0004 470d 4989 8b8d (8363 00e7)


resetting ...
System reset not supported on this platform

离线

楼主 #1 2022-04-03 17:31:51

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

ZQ value = 0x2f***********
get_pmu_exist() = 4294967295
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: %s
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 17:28:35 +0800)

DRAM:  64 MiB
[23.846]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0b52c
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Device Tree to 0000000049ff1000, end 0000000049fffed1 ... OK

Starting kernel ...

## Transferring control to kernel (at address 40200000) 0 ...
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61+ (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #6 PREEMPT Thu Jan 13 21:57:43 CST 2022
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] cma: Reserved 16 MiB at 0x0000000047000000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 debug loglevel=7,initcall_debug=1 init=/init earlycon=sbi
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 99084K/129024K available (6746K kernel code, 749K rwdata, 2312K rodata, 192K init, 277K bss, 13556K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000102] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008137] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.020891] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.038213] Console: colour dummy device 80x25
[    0.040174] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.047878] pid_max: default: 32768 minimum: 301
[    0.054318] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.059900] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.082166] ASID allocator initialised with 65536 entries
[    0.085435] rcu: Hierarchical SRCU implementation.
[    0.092763] devtmpfs: initialized
[    0.297604] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.310043] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.316120] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.328334] pinctrl core: initialized pinctrl subsystem
[    0.341876] NET: Registered protocol family 16
[    0.363657] DMA: preallocated 256 KiB pool for atomic allocations
[    0.371638] cpuidle: using governor menu
[    0.907494] rtc_ccu: sunxi ccu init OK
[    0.976661] clock: sunxi ccu init OK
[    0.983286] clock: sunxi ccu init OK
[    1.694274] iommu: Default domain type: Translated
[    1.697338] sunxi iommu: irq = 4
[    1.710960] SCSI subsystem initialized
[    1.715944] usbcore: registered new interface driver usbfs
[    1.718857] usbcore: registered new interface driver hub
[    1.722176] usbcore: registered new device driver usb
[    1.728288] mc: Linux media interface: v0.10
[    1.731394] videodev: Linux video capture interface: v2.00
[    1.746314] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.755962] Advanced Linux Sound Architecture Driver Initialized.
[    1.764867] Bluetooth: Core ver 2.22
[    1.766708] NET: Registered protocol family 31
[    1.768504] Bluetooth: HCI device and connection manager initialized
[    1.774238] Bluetooth: HCI socket layer initialized
[    1.778988] Bluetooth: L2CAP socket layer initialized
[    1.784428] Bluetooth: SCO socket layer initialized
[    1.790969] pwm module init!
[    1.821122] clocksource: Switched to clocksource riscv_clocksource
[    1.984896] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    2.129339] thermal_sys: Registered thermal governor 'step_wise'
[    2.129411] thermal_sys: Registered thermal governor 'user_space'
[    2.137617] NET: Registered protocol family 2
[    2.152395] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.155899] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    2.163936] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    2.170589] TCP: Hash tables configured (established 1024 bind 1024)
[    2.177703] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.183974] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.192114] NET: Registered protocol family 1
[    2.222489] Initialise system trusted keyrings
[    2.225625] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    2.335111] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.318509] Key type asymmetric registered
[    3.320180] Asymmetric key parser 'x509' registered
[    3.323121] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.329636] io scheduler mq-deadline registered
[    3.334630] io scheduler kyber registered
[    3.338377] atomic64_test: passed
[    3.355155] [DISP]disp_module_init
[    3.363072] disp 5000000.disp: Adding to iommu group 0
[    3.673370] disp 5000000.disp: 5000000.disp supply vcc-lcd not found, using dummy regulator
[    3.678933] disp 5000000.disp: 5000000.disp supply vcc-pd not found, using dummy regulator
[    3.815206] [DISP] disp_sys_pwm_request,line:442:
[    3.815292] disp_sys_pwm_request pwm 8 fail! -517
[    3.819385] [DISP] disp_sys_pwm_config,line:509:
[    3.819446] disp_sys_pwm_Config, handle is NULL!
[    3.834089] display_fb_request,fb_id:0
[    3.840903] [DISP] Fb_copy_boot_fb,line:1444:
[    3.840955] no boot_fb0
[    3.847222] disp_al_manager_apply ouput_type:0
[    3.850326] [DISP] lcd_clk_config,line:731:
[    3.850538] disp 0, clk: pll(162000000),clk(162000000),dclk(27000000) dsi_rate(162000000)
[    3.850538]      clk real:pll(288000000),clk(288000000),dclk(48000000) dsi_rate(0)
[    3.873524] [DISP]disp_module_init finish
[    3.884122] sunxi_sid_init()506 - insmod ok
[    3.891577] [DISP] disp_sys_pwm_request,line:442:
[    3.891663] disp_sys_pwm_request pwm 8 fail! -517
[    3.895757] [DISP] disp_sys_pwm_config,line:509:
[    3.895819] disp_sys_pwm_Config, handle is NULL!
[    3.914956] [DISP] disp_sys_pwm_set_polarity,line:528:
[    3.915027] disp_sys_pwm_Set_Polarity, handle is NULL!
[    3.970357] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    4.004935] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    4.013285] uart uart0: get regulator failed
[    4.015196] uart uart0: uart0 supply uart not found, using dummy regulator
[    4.023967] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    4.028664] sw_console_setu▒[    4.037540] printk: console [ttyS0] enabled
[    4.037540] printk: console [ttyS0] enabled
[    4.044611] printk: bootconsole [sbi0] disabled
[    4.044611] printk: bootconsole [sbi0] disabled
[    4.064012] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    4.079468] uart uart1: get regulator failed
[    4.085043] uart uart1: uart1 supply uart not found, using dummy regulator
[    4.096389] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    4.113429] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    4.128728] uart uart3: get regulator failed
[    4.134341] uart uart3: uart3 supply uart not found, using dummy regulator
[    4.145622] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    4.166502] misc dump reg init
[    4.178246] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    4.186311] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    4.194607] [DISP] disp_sys_pwm_request,line:442:
[    4.194694] disp_sys_pwm_request pwm 8 fail! -517
[    4.206164] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    4.214390] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    4.222444] [DISP] disp_lcd_pwm_enable,line:1205:
[    4.222504] pwm device hdl is NULL
[    4.232374] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    4.239325] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    4.246975] [DISP] disp_sys_gpio_request,line:276:
[    4.247106] disp_sys_gpio_request failed, gpio_name=lcd_bl_en, gpio=123, value=0, ret=-517
[    4.263345] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
[    4.271652] [DISP] disp_device_attached_and_enable,line:233:
[    4.271736] attached ok, mgr0<-->dev0
[    4.283686] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    4.292440] [DISP] disp_device_attached_and_enable,line:236:
[    4.292617] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    4.309436] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    4.319366] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    4.327418] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
[    4.369116] libphy: Fixed MDIO Bus: probed
[    4.374103] CAN device driver interface
[    4.382227] RTL871X: module init start
[    4.386724] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    4.393739] RTL871X: module init ret=0
[    4.398244] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.406213] sunxi-ehci: EHCI SUNXI driver
[    4.417458] get ehci0-controller wakeup-source is fail.
[    4.425072] sunxi ehci0-controller don't init wakeup source
[    4.431807] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe0009f6a70, 0x:ffffffd004075000, irq_no:2e
[    4.446089] [sunxi-ehci0]: Not init ehci0
[    4.454199] get ehci1-controller wakeup-source is fail.
[    4.461783] sunxi ehci1-controller don't init wakeup source
[    4.468322] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe0009f6e30, 0x:ffffffd004079000, irq_no:31
[    4.482754] hci: sunxi_insmod_ehci()600 WARN: get supply failed
[    4.489872] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    4.498054] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    4.509557] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
[    4.541567] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    4.560479] hub 1-0:1.0: USB hub found
[    4.565834] hub 1-0:1.0: 1 port detected
[    4.580147] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.588036] sunxi-ohci: OHCI SUNXI driver
[    4.599448] get ohci0-controller wakeup-source is fail.
[    4.607190] sunxi ohci0-controller don't init wakeup source
[    4.614129] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe0009f75b0
[    4.625241] [sunxi-ohci0]: Not init ohci0
[    4.633290] get ohci1-controller wakeup-source is fail.
[    4.640691] sunxi ohci1-controller don't init wakeup source
[    4.647396] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe0009f7970
[    4.658650] hci: sunxi_insmod_ohci()265 WARN: get supply failed
[    4.665878] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    4.674060] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    4.687222] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
[    4.776042] hub 2-0:1.0: USB hub found
[    4.780915] hub 2-0:1.0: 1 port detected
[    4.797398] usbcore: registered new interface driver uas
[    4.806425] usbcore: registered new interface driver usb-storage
[    4.814399] usbcore: registered new interface driver ums-alauda
[    4.822326] usbcore: registered new interface driver ums-cypress
[    4.829957] usbcore: registered new interface driver ums-datafab
[    4.837899] usbcore: registered new interface driver ums_eneub6250
[    4.846191] usbcore: registered new interface driver ums-freecom
[    4.853895] usbcore: registered new interface driver ums-isd200
[    4.861628] usbcore: registered new interface driver ums-jumpshot
[    4.869333] usbcore: registered new interface driver ums-karma
[    4.877090] usbcore: registered new interface driver ums-onetouch
[    4.885431] usbcore: registered new interface driver ums-realtek
[    4.894441] usbcore: registered new interface driver ums-sddr09
[    4.902398] usbcore: registered new interface driver ums-sddr55
[    4.909798] usbcore: registered new interface driver ums-usbat
[    4.920291] mousedev: PS/2 mouse device common for all mice
[    4.941639] sunxi-rtc 7090000.rtc: registered as rtc0
[    4.947842] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T02:13:11 UTC (7991)
[    4.958081] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.969638] i2c /dev entries driver
[    4.975146] IR NEC protocol handler initialized
[    4.980518] IR RC5(x/sz) protocol handler initialized
[    4.986793] IR RC6 protocol handler initialized
[    4.992238] IR JVC protocol handler initialized
[    4.997591] IR Sony protocol handler initialized
[    5.003134] IR SANYO protocol handler initialized
[    5.008695] IR Sharp protocol handler initialized
[    5.014578] IR MCE Keyboard/mouse protocol handler initialized
[    5.021516] IR XMP protocol handler initialized
[    5.026885] ir_imon_decoder: IR iMON protocol handler initialized
[    5.034339] IR RCMM protocol handler initialized
[    5.047755] sunxi cedar version 1.1
[    5.054595] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    5.063832] VE: cedar-ve the get irq is 6
[    5.063832]
[    5.072435] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    5.072435]
[    5.102077] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    5.116727] Bluetooth: HCI UART driver ver 2.3
[    5.122375] Bluetooth: HCI UART protocol H4 registered
[    5.128458] Bluetooth: HCI UART protocol BCSP registered
[    5.134840] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    5.191793] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    5.204330] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    5.211974] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    5.218589] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    5.225732] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    5.232873] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    5.239789] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    5.246794] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    5.254038] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    5.264729] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    5.273844] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    5.282784] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.294813] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    5.315992] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.343143] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    5.359110] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    5.372053] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    5.379305] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    5.386338] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    5.393478] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    5.400288] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    5.407296] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    5.414542] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    5.421786] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    5.428931] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    5.445456] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.457694] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    5.478918] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.504829] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    5.513293] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    5.521486] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    5.528857] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.552226] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    5.572532] usbcore: registered new interface driver usbhid
[    5.579456] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.592603] usbhid: USB HID core driver
[    5.600564] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.609175] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.617714] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.626286] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.633920] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    5.672367] usbcore: registered new interface driver snd-usb-audio
[    5.712300] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    5.712300]
[    5.730418] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    5.745582] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    5.768135] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    5.775074] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    5.785875] [SNDCODEC][sunxi_card_init][583]:card init finished
[    5.797254] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    5.822937] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    5.840951] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    5.857323] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    5.870629] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    5.901611] NET: Registered protocol family 10
[    5.919959] Segment Routing with IPv6
[    5.927058] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.944581] NET: Registered protocol family 17
[    5.950070] can: controller area network core (rev 20170425 abi 9)
[    5.958348] NET: Registered protocol family 29
[    5.963981] can: raw protocol (rev 20170425)
[    5.968967] can: broadcast manager protocol (rev 20170425 t)
[    5.976048] can: netlink gateway (rev 20190810) max_hops=1
[    5.985266] Bluetooth: RFCOMM TTY layer initialized
[    5.991672] Bluetooth: RFCOMM socket layer initialized
[    5.997769] Bluetooth: RFCOMM ver 1.11
[    6.010815] Loading compiled-in X.509 certificates
[    6.037171] HDMI 2.0 driver init start!
[    6.042119] boot_hdmi=false
[    6.045993] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    6.058356] HDMI2.0 module init end
[    6.388611] twi twi2: twi2 supply twi not found, using dummy regulator
[    6.468542] random: fast init done
[    6.515054] sunxi_i2c_probe()2262 - [i2c2] probe success
[    6.598982] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.634732] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.644562] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

离线

#2 2022-04-03 17:55:56

哇酷小二
本站客服
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,021
积分: 1897
个人网站

Re: 内核启动出错了???

换了串口吗?






淘宝: whycan.taobao.com 可提供技术支持 V3sR11 / F1C200s / D1 / D1s / XR32 / XR829 / XR806

在线

楼主 #3 2022-04-04 11:40:14

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

const boot0_file_head_t  fes1_head = {
    {
        /* jump_instruction */
        JUMP_INSTRUCTION,
        BOOT0_MAGIC,
        STAMP_VALUE,
        32,
        sizeof(boot_file_head_t),
        BOOT_PUB_HEAD_VERSION,
        (CONFIG_FES1_RUN_ADDR + sizeof(boot0_file_head_t) - sizeof(fes1_head.fes_union_addr)),
        CONFIG_FES1_RUN_ADDR,
        0,
        {
            0, 0, '3','.','0','.','0',0
        },
    },
    {
        //__u32 prvt_head_size;
        0,
        //char prvt_head_vsn[4];
        0,
        0,  /*power_mode*/
        {0},/* reserver[2] */
        //unsigned int                dram_para[32] ;
        {0},
        //__s32              uart_port;
        0,
        //normal_gpio_cfg       uart_ctrl[2];
        {
            {5, 3, 6, 1, 1, 0, {0} }, /* PE3: 6--RX */
            {5, 2, 6, 1, 1, 0, {0} }, /* PE2: 6--TX */
            //{ 2, 8, 4, 1, 1, 0, {0}},//PB8: 4--RX
            //{ 2, 9, 4, 1, 1, 0, {0}},//PB9: 4--TX
        },
        //__s32                         enable_jtag;
        0,
        //normal_gpio_cfg         jtag_gpio[5];
        {{0},{0},{0},{0},{0}},
        //normal_gpio_cfg        storage_gpio[32];
        {
            {6, 0, 2, 1, 2, 0, {0} },//PF0-5: 2--SDC
            {6, 1, 2, 1, 2, 0, {0} },
            {6, 2, 2, 1, 2, 0, {0} },
            {6, 3, 2, 1, 2, 0, {0} },
            {6, 4, 2, 1, 2, 0, {0} },
            {6, 5, 2, 1, 2, 0, {0} },
        },
        //char                             storage_data[512 - sizeof(normal_gpio_cfg) * 32];
        {0}
     },
    .hash = CI_INFO,
#ifdef CFG_SUNXI_SELECT_DRAM_PARA
    .fes_union_addr.extd_head.magic = DRAM_EXT_MAGIC,
#endif
};

修改 tina-d1-open/lichee/brandy-2.0/spl/fes/main/fes1_head.c

离线

楼主 #4 2022-04-05 01:16:25

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 00:09:54 +0800)

DRAM:  64 MiB
[22.346]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff1000, end 0000000049ffff29 ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #46 PREEMPT Mon Apr 4 23:14:30 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000047800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] On node 0 totalpages: 32256
[    0.000000]   DMA32 zone: 441 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 32256 pages, LIFO batch:7
[    0.000000] elf_hwcap is 0x20112d
[    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: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 root=/dev/mmcblk0p2 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M gpt=1 boot_type=1 mem=64M rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 108264K/129024K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 12568K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000307] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004777] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017361] Console: colour dummy device 80x25
[    0.017682] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.017965] pid_max: default: 32768 minimum: 301
[    0.020061] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020293] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.034897] ASID allocator initialised with 65536 entries
[    0.036141] rcu: Hierarchical SRCU implementation.
[    0.041720] devtmpfs: initialized
[    0.251069] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263605] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.263868] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.267180] pinctrl core: initialized pinctrl subsystem
[    0.278902] NET: Registered protocol family 16
[    0.302951] DMA: preallocated 256 KiB pool for atomic allocations
[    0.308515] cpuidle: using governor menu
[    0.737656] rtc_ccu: sunxi ccu init OK
[    0.805494] clock: sunxi ccu init OK
[    0.811072] clock: sunxi ccu init OK
[    1.183082] iommu: Default domain type: Translated
[    1.184340] sunxi iommu: irq = 4
[    1.196093] SCSI subsystem initialized
[    1.199461] usbcore: registered new interface driver usbfs
[    1.200362] usbcore: registered new interface driver hub
[    1.201308] usbcore: registered new device driver usb
[    1.202985] mc: Linux media interface: v0.10
[    1.203730] videodev: Linux video capture interface: v2.00
[    1.213765] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.220877] Advanced Linux Sound Architecture Driver Initialized.
[    1.227652] Bluetooth: Core ver 2.22
[    1.228169] NET: Registered protocol family 31
[    1.228332] Bluetooth: HCI device and connection manager initialized
[    1.228549] Bluetooth: HCI socket layer initialized
[    1.228752] Bluetooth: L2CAP socket layer initialized
[    1.229096] Bluetooth: SCO socket layer initialized
[    1.231226] pwm module init!
[    1.245464] g2d 5410000.g2d: Adding to iommu group 0
[    1.249712] G2D: rcq version initialized.major:250
[    1.264212] clocksource: Switched to clocksource riscv_clocksource
[    1.425951] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.558523] thermal_sys: Registered thermal governor 'step_wise'
[    1.558598] thermal_sys: Registered thermal governor 'user_space'
[    1.564466] NET: Registered protocol family 2
[    1.573777] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.574201] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.575211] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.575756] TCP: Hash tables configured (established 1024 bind 1024)
[    1.576578] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.577096] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.578970] NET: Registered protocol family 1
[    1.593844] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.599051] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.601331] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.601965] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.602161] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.602363] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.602795] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.610508] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.633253] Initialise system trusted keyrings
[    1.634978] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    1.741562] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.736650] Key type asymmetric registered
[    2.736810] Asymmetric key parser 'x509' registered
[    2.737069] io scheduler mq-deadline registered
[    2.737223] io scheduler kyber registered
[    2.737453] atomic64_test: passed
[    2.749990] [DISP]disp_module_init
[    2.758520] [DISP]disp_module_init finish
[    2.766384] sunxi_sid_init()506 - insmod ok
[    2.833860] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.837947] uart uart0: get regulator failed
[    2.838277] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.841385] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.841663] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.601440] printk: console [ttyS0] enabled
[    3.616699] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.632116] uart uart1: get regulator failed
[    3.637497] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.648636] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.665170] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.680257] uart uart3: get regulator failed
[    3.685639] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.696732] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.716011] misc dump reg init
[    3.739807] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.746309] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.788394] Error: Driver 'spi-nand' is already registered, aborting...
[    3.800417] libphy: Fixed MDIO Bus: probed
[    3.805693] CAN device driver interface
[    3.812926] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.820913] sunxi-ehci: EHCI SUNXI driver
[    3.831573] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.839081] sunxi-ohci: OHCI SUNXI driver
[    3.851022] usbcore: registered new interface driver uas
[    3.858421] usbcore: registered new interface driver usb-storage
[    3.866085] usbcore: registered new interface driver ums-alauda
[    3.873519] usbcore: registered new interface driver ums-cypress
[    3.881184] usbcore: registered new interface driver ums-datafab
[    3.888847] usbcore: registered new interface driver ums_eneub6250
[    3.896716] usbcore: registered new interface driver ums-freecom
[    3.904189] usbcore: registered new interface driver ums-isd200
[    3.911765] usbcore: registered new interface driver ums-jumpshot
[    3.919534] usbcore: registered new interface driver ums-karma
[    3.927008] usbcore: registered new interface driver ums-onetouch
[    3.935111] usbcore: registered new interface driver ums-realtek
[    3.942582] usbcore: registered new interface driver ums-sddr09
[    3.950160] usbcore: registered new interface driver ums-sddr55
[    3.957736] usbcore: registered new interface driver ums-usbat
[    3.967849] mousedev: PS/2 mouse device common for all mice
[    3.987025] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.993245] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:13:39 UTC (819)
[    4.003233] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.013400] i2c /dev entries driver
[    4.018912] IR NEC protocol handler initialized
[    4.024396] IR RC5(x/sz) protocol handler initialized
[    4.030262] IR RC6 protocol handler initialized
[    4.035725] IR JVC protocol handler initialized
[    4.041001] IR Sony protocol handler initialized
[    4.046570] IR SANYO protocol handler initialized
[    4.052039] IR Sharp protocol handler initialized
[    4.057706] IR MCE Keyboard/mouse protocol handler initialized
[    4.064655] IR XMP protocol handler initialized
[    4.069930] ir_imon_decoder: IR iMON protocol handler initialized
[    4.077177] IR RCMM protocol handler initialized
[    4.089031] sunxi cedar version 1.1
[    4.095553] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    4.102214] VE: install start!!!
[    4.102214]
[    4.109974] VE: cedar-ve the get irq is 6
[    4.109974]
[    4.118300] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    4.118300]
[    4.130395] VE: install end!!!
[    4.130395]
[    4.150507] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    4.163754] Bluetooth: HCI UART driver ver 2.3
[    4.169175] Bluetooth: HCI UART protocol H4 registered
[    4.175357] Bluetooth: HCI UART protocol BCSP registered
[    4.181548] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    4.230232] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    4.242569] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    4.250022] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    4.256861] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    4.263601] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    4.270536] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    4.277576] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    4.284607] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    4.291450] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    4.301850] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    4.310806] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    4.319464] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.331302] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    4.352310] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.378996] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.385350] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.408876] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.425740] usbcore: registered new interface driver usbhid
[    4.432196] usbhid: USB HID core driver
[    4.440891] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.469036] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.488087] usbcore: registered new interface driver snd-usb-audio
[    4.521231] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.538150] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    4.538150]
[    4.556246] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    4.568019] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.583383] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    4.592708] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.615608] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.630981] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    4.637789] mmc0: new high speed SDHC card at address 59b4
[    4.644992] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    4.658800] [SNDCODEC][sunxi_card_init][583]:card init finished
[    4.669414] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    4.691169] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    4.705152]  mmcblk0: p1 p2
[    4.734155] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    4.755818] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    4.770223] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    4.783422] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    4.814547] NET: Registered protocol family 10
[    4.833218] Segment Routing with IPv6
[    4.839991] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.857292] NET: Registered protocol family 17
[    4.862795] can: controller area network core (rev 20170425 abi 9)
[    4.870904] NET: Registered protocol family 29
[    4.876323] can: raw protocol (rev 20170425)
[    4.881314] can: broadcast manager protocol (rev 20170425 t)
[    4.888149] can: netlink gateway (rev 20190810) max_hops=1
[    4.897122] Bluetooth: RFCOMM TTY layer initialized
[    4.902871] Bluetooth: RFCOMM socket layer initialized
[    4.909603] Bluetooth: RFCOMM ver 1.11
[    4.926091] Loading compiled-in X.509 certificates
[    4.951655] HDMI2.0 module init end
[    5.311100] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.345671] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.355215] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.365679] clk: Not disabling unused clocks
[    5.370682] ALSA device list:
[    5.374682]   #0: audiocodec
[    5.380176] VFS: Unable to mount root fs via NFS, trying floppy.
[    5.387673] cfg80211: failed to load regulatory.db
[    5.444750] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    5.455679] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.465618] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.493129] devtmpfs: mounted
[    5.497790] Freeing unused kernel memory: 192K
[    5.502972] This architecture does not have kernel memory protection.
[    5.510622] Run /init as init process
[    5.536148] Kernel panic - not syncing: Requested init /init failed (error -13).
[    5.544758] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #46
[    5.551487] Call Trace:
[    5.554476] [<ffffffe0000323ce>] walk_stackframe+0x0/0xa0
[    5.560814] [<ffffffe0000325b0>] show_stack+0x2a/0x34
[    5.566738] [<ffffffe0006072de>] dump_stack+0x20/0x28
[    5.572656] [<ffffffe000037376>] panic+0xee/0x2b6
[    5.578209] [<ffffffe00061ac66>] kernel_init+0x8a/0xee
[    5.584242] [<ffffffe000031018>] ret_from_exception+0x0/0xc
[    5.590776] ---[ end Kernel panic - not syncing: Requested init /init failed (error -13). ]---

离线

楼主 #5 2022-04-05 09:35:15

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

clk_ignore_unused 坑

离线

楼主 #6 2022-04-05 09:42:41

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 00:09:54 +0800)

DRAM:  64 MiB
[19.106]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff1000, end 0000000049ffff29 ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #46 PREEMPT Mon Apr 4 23:14:30 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000047800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] On node 0 totalpages: 32256
[    0.000000]   DMA32 zone: 441 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 32256 pages, LIFO batch:7
[    0.000000] elf_hwcap is 0x20112d
[    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: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 root=/dev/mmcblk0p2 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M gpt=1 boot_type=1 mem=64M rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 108264K/129024K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 12568K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000307] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004774] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017351] Console: colour dummy device 80x25
[    0.017671] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.017955] pid_max: default: 32768 minimum: 301
[    0.020053] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020286] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.034887] ASID allocator initialised with 65536 entries
[    0.036130] rcu: Hierarchical SRCU implementation.
[    0.041704] devtmpfs: initialized
[    0.250633] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263157] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.263418] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.266726] pinctrl core: initialized pinctrl subsystem
[    0.278422] NET: Registered protocol family 16
[    0.302424] DMA: preallocated 256 KiB pool for atomic allocations
[    0.307974] cpuidle: using governor menu
[    0.736405] rtc_ccu: sunxi ccu init OK
[    0.804152] clock: sunxi ccu init OK
[    0.809534] clock: sunxi ccu init OK
[    1.182116] iommu: Default domain type: Translated
[    1.183373] sunxi iommu: irq = 4
[    1.195113] SCSI subsystem initialized
[    1.198483] usbcore: registered new interface driver usbfs
[    1.199383] usbcore: registered new interface driver hub
[    1.200328] usbcore: registered new device driver usb
[    1.202005] mc: Linux media interface: v0.10
[    1.202747] videodev: Linux video capture interface: v2.00
[    1.212769] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.219990] Advanced Linux Sound Architecture Driver Initialized.
[    1.226638] Bluetooth: Core ver 2.22
[    1.227156] NET: Registered protocol family 31
[    1.227318] Bluetooth: HCI device and connection manager initialized
[    1.227537] Bluetooth: HCI socket layer initialized
[    1.227739] Bluetooth: L2CAP socket layer initialized
[    1.228082] Bluetooth: SCO socket layer initialized
[    1.230211] pwm module init!
[    1.244437] g2d 5410000.g2d: Adding to iommu group 0
[    1.248674] G2D: rcq version initialized.major:250
[    1.263144] clocksource: Switched to clocksource riscv_clocksource
[    1.424640] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.557051] thermal_sys: Registered thermal governor 'step_wise'
[    1.557125] thermal_sys: Registered thermal governor 'user_space'
[    1.562767] NET: Registered protocol family 2
[    1.572291] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.572704] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.573717] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.574264] TCP: Hash tables configured (established 1024 bind 1024)
[    1.575084] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.575600] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.577471] NET: Registered protocol family 1
[    1.592294] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.597505] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.599780] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.600412] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.600608] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.600810] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.601244] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.608950] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.631652] Initialise system trusted keyrings
[    1.633135] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    1.739799] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.720905] Key type asymmetric registered
[    2.721066] Asymmetric key parser 'x509' registered
[    2.721325] io scheduler mq-deadline registered
[    2.721478] io scheduler kyber registered
[    2.721709] atomic64_test: passed
[    2.734600] [DISP]disp_module_init
[    2.742701] [DISP]disp_module_init finish
[    2.750564] sunxi_sid_init()506 - insmod ok
[    2.818150] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.822002] uart uart0: get regulator failed
[    2.822330] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.825676] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.825953] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.586041] printk: console [ttyS0] enabled
[    3.601067] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.616705] uart uart1: get regulator failed
[    3.621872] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.633014] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.649539] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.664855] uart uart3: get regulator failed
[    3.670021] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.681078] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.700338] misc dump reg init
[    3.724328] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.730619] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.776991] Error: Driver 'spi-nand' is already registered, aborting...
[    3.789119] libphy: Fixed MDIO Bus: probed
[    3.794393] CAN device driver interface
[    3.801618] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.809595] sunxi-ehci: EHCI SUNXI driver
[    3.820248] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.827752] sunxi-ohci: OHCI SUNXI driver
[    3.839678] usbcore: registered new interface driver uas
[    3.847076] usbcore: registered new interface driver usb-storage
[    3.854738] usbcore: registered new interface driver ums-alauda
[    3.862171] usbcore: registered new interface driver ums-cypress
[    3.869834] usbcore: registered new interface driver ums-datafab
[    3.877495] usbcore: registered new interface driver ums_eneub6250
[    3.885366] usbcore: registered new interface driver ums-freecom
[    3.892830] usbcore: registered new interface driver ums-isd200
[    3.900403] usbcore: registered new interface driver ums-jumpshot
[    3.908172] usbcore: registered new interface driver ums-karma
[    3.915645] usbcore: registered new interface driver ums-onetouch
[    3.923751] usbcore: registered new interface driver ums-realtek
[    3.931225] usbcore: registered new interface driver ums-sddr09
[    3.938802] usbcore: registered new interface driver ums-sddr55
[    3.946369] usbcore: registered new interface driver ums-usbat
[    3.956499] mousedev: PS/2 mouse device common for all mice
[    3.975669] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.981893] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T16:08:55 UTC (58135)
[    3.992083] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.002243] i2c /dev entries driver
[    4.007752] IR NEC protocol handler initialized
[    4.013029] IR RC5(x/sz) protocol handler initialized
[    4.019101] IR RC6 protocol handler initialized
[    4.024566] IR JVC protocol handler initialized
[    4.029835] IR Sony protocol handler initialized
[    4.035390] IR SANYO protocol handler initialized
[    4.040862] IR Sharp protocol handler initialized
[    4.046530] IR MCE Keyboard/mouse protocol handler initialized
[    4.053476] IR XMP protocol handler initialized
[    4.058746] ir_imon_decoder: IR iMON protocol handler initialized
[    4.065996] IR RCMM protocol handler initialized
[    4.077848] sunxi cedar version 1.1
[    4.084362] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    4.091024] VE: install start!!!
[    4.091024]
[    4.098781] VE: cedar-ve the get irq is 6
[    4.098781]
[    4.107094] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    4.107094]
[    4.119181] VE: install end!!!
[    4.119181]
[    4.139273] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    4.152512] Bluetooth: HCI UART driver ver 2.3
[    4.157925] Bluetooth: HCI UART protocol H4 registered
[    4.164102] Bluetooth: HCI UART protocol BCSP registered
[    4.170294] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    4.219001] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    4.231331] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    4.238783] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    4.245618] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    4.252361] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    4.259297] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    4.266333] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    4.273379] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    4.280222] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    4.290622] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    4.299586] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    4.308250] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.320092] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    4.341108] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.368073] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.374431] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.397955] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.414823] usbcore: registered new interface driver usbhid
[    4.421277] usbhid: USB HID core driver
[    4.429966] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.457819] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.477134] usbcore: registered new interface driver snd-usb-audio
[    4.510253] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.527170] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    4.527170]
[    4.545259] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    4.557010] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.572344] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    4.581684] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.604565] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.619927] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    4.626741] mmc0: new high speed SDHC card at address 59b4
[    4.633921] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    4.647746] [SNDCODEC][sunxi_card_init][583]:card init finished
[    4.658355] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    4.680103] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    4.694072]  mmcblk0: p1 p2
[    4.723078] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    4.744753] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    4.759147] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    4.772335] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    4.803441] NET: Registered protocol family 10
[    4.822090] Segment Routing with IPv6
[    4.828856] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.846130] NET: Registered protocol family 17
[    4.851639] can: controller area network core (rev 20170425 abi 9)
[    4.859745] NET: Registered protocol family 29
[    4.865158] can: raw protocol (rev 20170425)
[    4.870152] can: broadcast manager protocol (rev 20170425 t)
[    4.876977] can: netlink gateway (rev 20190810) max_hops=1
[    4.885952] Bluetooth: RFCOMM TTY layer initialized
[    4.891700] Bluetooth: RFCOMM socket layer initialized
[    4.898416] Bluetooth: RFCOMM ver 1.11
[    4.914874] Loading compiled-in X.509 certificates
[    4.940309] HDMI2.0 module init end
[    5.299122] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.333001] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.342928] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.353680] clk: Not disabling unused clocks
[    5.358689] ALSA device list:
[    5.362191]   #0: audiocodec
[    5.366077] cfg80211: failed to load regulatory.db
[    5.374751] VFS: Unable to mount root fs via NFS, trying floppy.
[    5.433704] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    5.764712] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[    5.793733] EXT4-fs (mmcblk0p2): recovery complete
[    5.846751] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.856733] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.885237] devtmpfs: mounted
[    5.889681] Freeing unused kernel memory: 192K
[    5.895068] This architecture does not have kernel memory protection.
[    5.902521] Run /init as init process
[    6.152117] random: fast init done
ntpd: send failed: Network is unreachable

[root@Risc-v /root]#

[root@Risc-v /root]# busybox --help
BusyBox v1.34.1 (2022-04-04 10:09:25 PDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp, arping, ascii, awk, base32, base64, basename, bc, beep, blkdiscard, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat, chattr, chgrp,
        chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crc32, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,
        dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, factor, fakeidentd, fallocate, false, fatattr, fbset, fbsplash,
        fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head,
        hexdump, hexedit, hostid, hostname, httpd, hwclock, i2cdetect, i2cdump, i2cget, i2cset, i2ctransfer, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm,
        ipcs, iplink, ipneigh, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls,
        lsattr, lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma, lzop, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo,
        modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netcat, netstat, nice, nl, nmeter, nohup, nproc, nsenter, nslookup, ntpd, od, openvt, partprobe, passwd, paste, patch, pgrep, pidof,
        ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev, readlink, readprofile, realpath, reboot, reformime, remove-shell,
        renice, reset, resize, resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-init, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfattr, setfont,
        setkeycodes, setlogcons, setpriv, setserial, setsid, setuidgid, sha1sum, sha256sum, sha3sum, sha512sum, showkey, shred, shuf, slattach, sleep, smemcap, softlimit, sort, split, ssl_client, start-stop-daemon, stat, strings, stty,
        su, sulogin, sum, sv, svc, svlogd, svok, swapoff, swapon, switch_root, sysctl, syslogd, tac, tail, tar, taskset, tc, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true,
        truncate, ts, tty, ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol, udhcpc, udhcpc6, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq, unix2dos, unlink, unlzma, unshare, unxz,
        unzip, uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, w, wall, watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd, xz, xzcat, yes, zcat, zcip
[root@Risc-v /root]#

成功启动 !

离线

楼主 #7 2022-04-05 16:51:14

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

    dram: dram {
        device_type = "dram";
        compatible = "allwinner,dram";
        clocks = <&ccu CLK_PLL_DDR0>;
        clock-names = "pll_ddr";
    };

    memory@40000000 {
        device_type = "memory";
        reg = <0x0 0x40000000 0x0 0x8000000>;
    };

f133 的 内存是 128M??? 坑!!!

离线

楼主 #8 2022-04-05 17:03:14

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 16:57:13 +0800)

DRAM:  64 MiB
[23.161]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff0fb ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #48 PREEMPT Tue Apr 5 10:58:34 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    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: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    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] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 43716K/63488K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 11580K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000305] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004777] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017683] Console: colour dummy device 80x25
[    0.018005] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.018288] pid_max: default: 32768 minimum: 301
[    0.020395] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020636] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.035262] ASID allocator initialised with 65536 entries
[    0.036501] rcu: Hierarchical SRCU implementation.
[    0.042063] devtmpfs: initialized
[    0.253030] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263843] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.264109] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.267423] pinctrl core: initialized pinctrl subsystem
[    0.279113] NET: Registered protocol family 16
[    0.301405] DMA: preallocated 256 KiB pool for atomic allocations
[    0.307020] cpuidle: using governor menu
[    0.735690] rtc_ccu: sunxi ccu init OK
[    0.803603] clock: sunxi ccu init OK
[    0.809221] clock: sunxi ccu init OK
[    1.180159] iommu: Default domain type: Translated
[    1.181409] sunxi iommu: irq = 4
[    1.193147] SCSI subsystem initialized
[    1.196537] usbcore: registered new interface driver usbfs
[    1.197440] usbcore: registered new interface driver hub
[    1.198397] usbcore: registered new device driver usb
[    1.200095] mc: Linux media interface: v0.10
[    1.200758] videodev: Linux video capture interface: v2.00
[    1.210820] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.217997] Advanced Linux Sound Architecture Driver Initialized.
[    1.224785] Bluetooth: Core ver 2.22
[    1.225305] NET: Registered protocol family 31
[    1.225467] Bluetooth: HCI device and connection manager initialized
[    1.225686] Bluetooth: HCI socket layer initialized
[    1.225889] Bluetooth: L2CAP socket layer initialized
[    1.226236] Bluetooth: SCO socket layer initialized
[    1.228377] pwm module init!
[    1.242628] g2d 5410000.g2d: Adding to iommu group 0
[    1.246854] G2D: rcq version initialized.major:250
[    1.259592] clocksource: Switched to clocksource riscv_clocksource
[    1.422296] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.555294] thermal_sys: Registered thermal governor 'step_wise'
[    1.555368] thermal_sys: Registered thermal governor 'user_space'
[    1.561331] NET: Registered protocol family 2
[    1.570874] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.571291] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.571705] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.572067] TCP: Hash tables configured (established 512 bind 512)
[    1.572883] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.573399] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.575277] NET: Registered protocol family 1
[    1.590815] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.595601] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.597871] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.598518] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.598713] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.598914] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.599347] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.607283] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.628350] Initialise system trusted keyrings
[    1.629998] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    1.736855] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.733600] Key type asymmetric registered
[    2.733761] Asymmetric key parser 'x509' registered
[    2.734021] io scheduler mq-deadline registered
[    2.734175] io scheduler kyber registered
[    2.734405] atomic64_test: passed
[    2.746889] [DISP]disp_module_init
[    2.755400] [DISP]disp_module_init finish
[    2.763265] sunxi_sid_init()506 - insmod ok
[    2.831267] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.835210] uart uart0: get regulator failed
[    2.835539] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.838653] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.838930] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.596298] printk: console [ttyS0] enabled
[    3.611407] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.626879] uart uart1: get regulator failed
[    3.632260] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.643430] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.659874] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.675007] uart uart3: get regulator failed
[    3.680388] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.691575] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.710775] misc dump reg init
[    3.734544] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.741040] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.755120] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.762969] Creating 6 MTD partitions on "spi0.0":
[    3.768592] 0x000000000000-0x000000100000 : "boot0"
[    3.822567] 0x000000100000-0x000000120000 : "opensbi"
[    3.862443] 0x000000120000-0x000000220000 : "u-boot"
[    3.912532] 0x000000220000-0x000000240000 : "dtb"
[    3.952436] 0x000000240000-0x000000840000 : "kernel"
[    3.978286] random: fast init done
[    4.092449] 0x000000840000-0x000008000000 : "rootfs"
[    6.243331] Error: Driver 'spi-nand' is already registered, aborting...
[    6.255180] libphy: Fixed MDIO Bus: probed
[    6.260183] CAN device driver interface
[    6.267416] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.275172] sunxi-ehci: EHCI SUNXI driver
[    6.285547] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.293059] sunxi-ohci: OHCI SUNXI driver
[    6.305045] usbcore: registered new interface driver uas
[    6.312429] usbcore: registered new interface driver usb-storage
[    6.320093] usbcore: registered new interface driver ums-alauda
[    6.327444] usbcore: registered new interface driver ums-cypress
[    6.335103] usbcore: registered new interface driver ums-datafab
[    6.342768] usbcore: registered new interface driver ums_eneub6250
[    6.350692] usbcore: registered new interface driver ums-freecom
[    6.358157] usbcore: registered new interface driver ums-isd200
[    6.365730] usbcore: registered new interface driver ums-jumpshot
[    6.373502] usbcore: registered new interface driver ums-karma
[    6.380978] usbcore: registered new interface driver ums-onetouch
[    6.388771] usbcore: registered new interface driver ums-realtek
[    6.396443] usbcore: registered new interface driver ums-sddr09
[    6.404133] usbcore: registered new interface driver ums-sddr55
[    6.411710] usbcore: registered new interface driver ums-usbat
[    6.421876] mousedev: PS/2 mouse device common for all mice
[    6.432682] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    6.452928] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.459142] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:33 UTC (33)
[    6.468838] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.479002] i2c /dev entries driver
[    6.484515] IR NEC protocol handler initialized
[    6.489992] IR RC5(x/sz) protocol handler initialized
[    6.495856] IR RC6 protocol handler initialized
[    6.501314] IR JVC protocol handler initialized
[    6.506587] IR Sony protocol handler initialized
[    6.512146] IR SANYO protocol handler initialized
[    6.517613] IR Sharp protocol handler initialized
[    6.523280] IR MCE Keyboard/mouse protocol handler initialized
[    6.530230] IR XMP protocol handler initialized
[    6.535503] ir_imon_decoder: IR iMON protocol handler initialized
[    6.542745] IR RCMM protocol handler initialized
[    6.554671] sunxi cedar version 1.1
[    6.561180] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    6.567838] VE: install start!!!
[    6.567838]
[    6.575398] VE: cedar-ve the get irq is 6
[    6.575398]
[    6.583726] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    6.583726]
[    6.595817] VE: install end!!!
[    6.595817]
[    6.615896] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.629145] Bluetooth: HCI UART driver ver 2.3
[    6.634555] Bluetooth: HCI UART protocol H4 registered
[    6.640737] Bluetooth: HCI UART protocol BCSP registered
[    6.646928] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    6.696626] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    6.709024] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.716489] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.723324] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.730258] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.737009] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.744043] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.751079] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.757928] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.768336] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.777253] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.785991] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.797816] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.818834] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.845525] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    6.851887] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.874279] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.892240] usbcore: registered new interface driver usbhid
[    6.898698] usbhid: USB HID core driver
[    6.907380] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.934615] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.954607] usbcore: registered new interface driver snd-usb-audio
[    6.987797] mmc0: host does not support reading read-only switch, assuming write-enable
[    7.004241] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    7.004241]
[    7.022320] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    7.034082] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.049455] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    7.058791] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.080916] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    7.097129] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    7.103932] mmc0: new high speed SDHC card at address 59b4
[    7.111101] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    7.124966] [SNDCODEC][sunxi_card_init][583]:card init finished
[    7.135667] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    7.157208] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    7.169379]  mmcblk0: p1 p2
[    7.201860] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    7.219810] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    7.234372] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    7.247412] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    7.278480] NET: Registered protocol family 10
[    7.297312] Segment Routing with IPv6
[    7.304014] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.321177] NET: Registered protocol family 17
[    7.326684] can: controller area network core (rev 20170425 abi 9)
[    7.334798] NET: Registered protocol family 29
[    7.340209] can: raw protocol (rev 20170425)
[    7.345200] can: broadcast manager protocol (rev 20170425 t)
[    7.352028] can: netlink gateway (rev 20190810) max_hops=1
[    7.361040] Bluetooth: RFCOMM TTY layer initialized
[    7.366791] Bluetooth: RFCOMM socket layer initialized
[    7.373556] Bluetooth: RFCOMM ver 1.11
[    7.388034] Loading compiled-in X.509 certificates
[    7.416156] HDMI2.0 module init end
[    7.768610] ubi0: attaching mtd5
[    7.910357] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    9.096708] random: crng init done
[   14.351475] ubi0: scanning is finished
[   14.483322] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[   14.490260] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   14.498270] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   14.506374] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   14.514865] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[   14.522085] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   14.530703] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[   14.541386] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[   14.552315] ubi0: background thread "ubi_bgt0d" started, PID 63
[   14.568661] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   14.602462] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   14.612387] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   14.622752] clk: Not disabling unused clocks
[   14.627755] ALSA device list:
[   14.631776] cfg80211: failed to load regulatory.db
[   14.637862]   #0: audiocodec
[   14.654466] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   15.752530] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[   15.762363] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.774074] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[   15.786511] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[   15.794470] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[   15.832954] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[   15.869313] devtmpfs: mounted
[   15.874377] Freeing unused kernel memory: 192K
[   15.879773] This architecture does not have kernel memory protection.
[   15.887226] Run /init as init process
ntpd: send failed: Network is unreachable
[root@Risc-v /root]#
[root@Risc-v /root]# uname -a
Linux Risc-v 5.4.61 #48 PREEMPT Tue Apr 5 10:58:34 CST 2022 riscv64 GNU/Linux
[root@Risc-v /root]#
[root@Risc-v /root]# bash -version
GNU bash, version 5.1.8(1)-release (riscv64-unknown-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

spi-nand 启动成功了!!!

最近编辑记录 Cadence (2022-04-05 17:08:20)

离线

楼主 #9 2022-04-05 17:40:41

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

d1s spi-nand 完整的启动 log

HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 17:29:15 +0800)

DRAM:  64 MiB
[00.334]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Reading 131072 byte(s) (64 page(s)) at offset 0x00220000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00240000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff0fb ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #48 PREEMPT Tue Apr 5 10:58:34 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    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: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    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] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 43716K/63488K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 11580K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000027] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000354] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000986] Console: colour dummy device 80x25
[    0.001033] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001053] pid_max: default: 32768 minimum: 301
[    0.001259] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001280] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003282] ASID allocator initialised with 65536 entries
[    0.003484] rcu: Hierarchical SRCU implementation.
[    0.004206] devtmpfs: initialized
[    0.017783] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.018563] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018601] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.019143] pinctrl core: initialized pinctrl subsystem
[    0.020724] NET: Registered protocol family 16
[    0.022554] DMA: preallocated 256 KiB pool for atomic allocations
[    0.023275] cpuidle: using governor menu
[    0.055733] rtc_ccu: sunxi ccu init OK
[    0.064399] clock: sunxi ccu init OK
[    0.065463] clock: sunxi ccu init OK
[    0.104117] iommu: Default domain type: Translated
[    0.104310] sunxi iommu: irq = 4
[    0.105480] SCSI subsystem initialized
[    0.105866] usbcore: registered new interface driver usbfs
[    0.105966] usbcore: registered new interface driver hub
[    0.106101] usbcore: registered new device driver usb
[    0.106303] mc: Linux media interface: v0.10
[    0.106370] videodev: Linux video capture interface: v2.00
[    0.107637] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.108402] Advanced Linux Sound Architecture Driver Initialized.
[    0.109045] Bluetooth: Core ver 2.22
[    0.109138] NET: Registered protocol family 31
[    0.109150] Bluetooth: HCI device and connection manager initialized
[    0.109175] Bluetooth: HCI socket layer initialized
[    0.109191] Bluetooth: L2CAP socket layer initialized
[    0.109232] Bluetooth: SCO socket layer initialized
[    0.109566] pwm module init!
[    0.111172] g2d 5410000.g2d: Adding to iommu group 0
[    0.111690] G2D: rcq version initialized.major:250
[    0.112545] clocksource: Switched to clocksource riscv_clocksource
[    0.125553] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.142864] thermal_sys: Registered thermal governor 'step_wise'
[    0.142871] thermal_sys: Registered thermal governor 'user_space'
[    0.143496] NET: Registered protocol family 2
[    0.144402] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.144450] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.144472] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.144488] TCP: Hash tables configured (established 512 bind 512)
[    0.144663] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.144708] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.144978] NET: Registered protocol family 1
[    0.146298] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.146941] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.147226] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    0.147295] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    0.147305] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    0.147314] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.147378] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    0.148151] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    0.149892] Initialise system trusted keyrings
[    0.150142] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.157818] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.178896] Key type asymmetric registered
[    0.178915] Asymmetric key parser 'x509' registered
[    0.178945] io scheduler mq-deadline registered
[    0.178954] io scheduler kyber registered
[    0.178977] atomic64_test: passed
[    0.180298] [DISP]disp_module_init
[    0.181042] [DISP]disp_module_init finish
[    0.181824] sunxi_sid_init()506 - insmod ok
[    0.189854] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.190337] uart uart0: get regulator failed
[    0.190368] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.190781] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.190812] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    0.915227] printk: console [ttyS0] enabled
[    0.920829] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.932308] uart uart1: get regulator failed
[    0.937149] uart uart1: uart1 supply uart not found, using dummy regulator
[    0.945260] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    0.954890] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.966355] uart uart3: get regulator failed
[    0.971139] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.979246] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    0.989117] misc dump reg init
[    0.994853] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.000789] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.010608] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.017808] Creating 6 MTD partitions on "spi0.0":
[    1.023251] 0x000000000000-0x000000100000 : "boot0"
[    1.043816] 0x000000100000-0x000000120000 : "opensbi"
[    1.063817] 0x000000120000-0x000000220000 : "u-boot"
[    1.083814] 0x000000220000-0x000000240000 : "dtb"
[    1.103781] 0x000000240000-0x000000840000 : "kernel"
[    1.111863] random: fast init done
[    1.133829] 0x000000840000-0x000008000000 : "rootfs"
[    1.403981] Error: Driver 'spi-nand' is already registered, aborting...
[    1.411850] libphy: Fixed MDIO Bus: probed
[    1.416508] CAN device driver interface
[    1.421075] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.428409] sunxi-ehci: EHCI SUNXI driver
[    1.433272] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.440195] sunxi-ohci: OHCI SUNXI driver
[    1.445384] usbcore: registered new interface driver uas
[    1.451404] usbcore: registered new interface driver usb-storage
[    1.458267] usbcore: registered new interface driver ums-alauda
[    1.464988] usbcore: registered new interface driver ums-cypress
[    1.471750] usbcore: registered new interface driver ums-datafab
[    1.478570] usbcore: registered new interface driver ums_eneub6250
[    1.485602] usbcore: registered new interface driver ums-freecom
[    1.492374] usbcore: registered new interface driver ums-isd200
[    1.499099] usbcore: registered new interface driver ums-jumpshot
[    1.506015] usbcore: registered new interface driver ums-karma
[    1.512642] usbcore: registered new interface driver ums-onetouch
[    1.519531] usbcore: registered new interface driver ums-realtek
[    1.526354] usbcore: registered new interface driver ums-sddr09
[    1.533111] usbcore: registered new interface driver ums-sddr55
[    1.539784] usbcore: registered new interface driver ums-usbat
[    1.546858] mousedev: PS/2 mouse device common for all mice
[    1.553760] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.566144] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.571903] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:05 UTC (5)
[    1.580853] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.586666] i2c /dev entries driver
[    1.590673] IR NEC protocol handler initialized
[    1.595781] IR RC5(x/sz) protocol handler initialized
[    1.601412] IR RC6 protocol handler initialized
[    1.606489] IR JVC protocol handler initialized
[    1.611536] IR Sony protocol handler initialized
[    1.616709] IR SANYO protocol handler initialized
[    1.621950] IR Sharp protocol handler initialized
[    1.627217] IR MCE Keyboard/mouse protocol handler initialized
[    1.633747] IR XMP protocol handler initialized
[    1.638796] ir_imon_decoder: IR iMON protocol handler initialized
[    1.645614] IR RCMM protocol handler initialized
[    1.651355] sunxi cedar version 1.1
[    1.655573] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.661820] VE: install start!!!
[    1.661820]
[    1.667399] VE: cedar-ve the get irq is 6
[    1.667399]
[    1.673801] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.673801]
[    1.685397] VE: install end!!!
[    1.685397]
[    1.691815] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.700932] Bluetooth: HCI UART driver ver 2.3
[    1.705945] Bluetooth: HCI UART protocol H4 registered
[    1.711672] Bluetooth: HCI UART protocol BCSP registered
[    1.717626] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.727698] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.737718] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.743942] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.750256] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.756696] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.763123] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.769627] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.776156] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.782688] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.789696] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.795232] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.801866] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.813032] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.833157] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.857596] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.863355] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.875574] usbcore: registered new interface driver usbhid
[    1.881792] usbhid: USB HID core driver
[    1.887959] usbcore: registered new interface driver snd-usb-audio
[    1.897965] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    1.897965]
[    1.915142] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    1.926576] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    1.936066] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    1.941751] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    1.951569] [SNDCODEC][sunxi_card_init][583]:card init finished
[    1.960906] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    1.972233] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    1.984480] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    1.992713] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.004328] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.016476] NET: Registered protocol family 10
[    2.023056] Segment Routing with IPv6
[    2.027368] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.035008] NET: Registered protocol family 17
[    2.040046] can: controller area network core (rev 20170425 abi 9)
[    2.047171] NET: Registered protocol family 29
[    2.052140] can: raw protocol (rev 20170425)
[    2.056948] can: broadcast manager protocol (rev 20170425 t)
[    2.063301] can: netlink gateway (rev 20190810) max_hops=1
[    2.069779] Bluetooth: RFCOMM TTY layer initialized
[    2.075364] Bluetooth: RFCOMM socket layer initialized
[    2.081126] Bluetooth: RFCOMM ver 1.11
[    2.086249] Loading compiled-in X.509 certificates
[    2.094329] HDMI2.0 module init end
[    2.125683] ubi0: attaching mtd5
[    2.369537] random: crng init done
[    2.682691] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    3.142823] ubi0: scanning is finished
[    3.160998] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[    3.167468] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.175207] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.182814] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.190576] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    3.197300] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    3.205490] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[    3.215617] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[    3.225944] ubi0: background thread "ubi_bgt0d" started, PID 60
[    3.233375] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.244531] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.251994] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.261821] clk: Not disabling unused clocks
[    3.266686] cfg80211: failed to load regulatory.db
[    3.272130] ALSA device list:
[    3.275550]   #0: audiocodec
[    3.280603] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.445935] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    3.455213] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.466302] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[    3.478161] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    3.485569] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[    3.502185] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    3.514323] devtmpfs: mounted
[    3.517871] Freeing unused kernel memory: 192K
[    3.522881] This architecture does not have kernel memory protection.
[    3.530061] Run /init as init process
ntpd: send failed: Network is unreachable
[root@Risc-v /root]#

离线

楼主 #10 2022-04-09 22:39:22

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 4 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 10 2022 - 10:55:44 +0800)

DRAM:  64 MiB
[00.336]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Reading 131072 byte(s) (64 page(s)) at offset 0x00220000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00240000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0760c
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff17a ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #79 PREEMPT Sun Apr 10 10:21:14 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    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: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    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] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 42744K/63488K available (6745K kernel code, 755K rwdata, 2285K rodata, 196K init, 277K bss, 12552K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000026] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000358] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001008] Console: colour dummy device 80x25
[    0.001056] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001077] pid_max: default: 32768 minimum: 301
[    0.001265] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001285] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003252] ASID allocator initialised with 65536 entries
[    0.003449] rcu: Hierarchical SRCU implementation.
[    0.004176] devtmpfs: initialized
[    0.016259] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.017054] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017089] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.017606] pinctrl core: initialized pinctrl subsystem
[    0.019115] NET: Registered protocol family 16
[    0.021034] DMA: preallocated 256 KiB pool for atomic allocations
[    0.021752] cpuidle: using governor menu
[    0.056071] rtc_ccu: sunxi ccu init OK
[    0.063634] clock: sunxi ccu init OK
[    0.064720] clock: sunxi ccu init OK
[    0.114122] iommu: Default domain type: Translated 
[    0.114316] sunxi iommu: irq = 4
[    0.115493] SCSI subsystem initialized
[    0.115869] usbcore: registered new interface driver usbfs
[    0.115971] usbcore: registered new interface driver hub
[    0.116091] usbcore: registered new device driver usb
[    0.116300] mc: Linux media interface: v0.10
[    0.116373] videodev: Linux video capture interface: v2.00
[    0.117585] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.118316] Advanced Linux Sound Architecture Driver Initialized.
[    0.118998] Bluetooth: Core ver 2.22
[    0.119090] NET: Registered protocol family 31
[    0.119103] Bluetooth: HCI device and connection manager initialized
[    0.119130] Bluetooth: HCI socket layer initialized
[    0.119145] Bluetooth: L2CAP socket layer initialized
[    0.119187] Bluetooth: SCO socket layer initialized
[    0.119498] pwm module init!
[    0.121163] g2d 5410000.g2d: Adding to iommu group 0
[    0.121671] G2D: rcq version initialized.major:250
[    0.122567] clocksource: Switched to clocksource riscv_clocksource
[    0.135379] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.152771] thermal_sys: Registered thermal governor 'step_wise'
[    0.152777] thermal_sys: Registered thermal governor 'user_space'
[    0.153359] NET: Registered protocol family 2
[    0.154263] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.154307] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.154326] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.154343] TCP: Hash tables configured (established 512 bind 512)
[    0.154516] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154565] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154832] NET: Registered protocol family 1
[    0.156154] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.156793] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.157066] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    0.157139] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    0.157152] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    0.157163] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.157225] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    0.157988] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    0.159763] Initialise system trusted keyrings
[    0.160014] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.167482] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.187695] Key type asymmetric registered
[    0.187712] Asymmetric key parser 'x509' registered
[    0.187738] io scheduler mq-deadline registered
[    0.187748] io scheduler kyber registered
[    0.187772] atomic64_test: passed
[    0.189049] [DISP]disp_module_init
[    0.189674] [DISP]disp_module_init finish
[    0.190437] sunxi_sid_init()506 - insmod ok
[    0.198681] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.199175] uart uart0: get regulator failed
[    0.199208] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.199581] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.199611] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    0.924272] printk: console [ttyS0] enabled
[    0.929849] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.941416] uart uart1: get regulator failed
[    0.946255] uart uart1: uart1 supply uart not found, using dummy regulator
[    0.954326] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    0.963965] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.975423] uart uart3: get regulator failed
[    0.980208] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.988352] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    0.998259] misc dump reg init
[    1.002517] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    1.009779] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    1.017396] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    1.024719] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    1.032110] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    1.038653] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    1.045596] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    1.053329] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    1.061195] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    1.069353] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    1.077061] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    1.083843] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    1.091353] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
[    1.099654] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[    1.107274] [ADDR_MGT] addr_mgt_probe: success.
[    1.113695] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.119630] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.129419] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.136653] Creating 6 MTD partitions on "spi0.0":
[    1.142009] 0x000000000000-0x000000100000 : "boot0"
[    1.163914] 0x000000100000-0x000000120000 : "opensbi"
[    1.183885] 0x000000120000-0x000000220000 : "u-boot"
[    1.203876] 0x000000220000-0x000000240000 : "dtb"
[    1.223925] 0x000000240000-0x000000840000 : "kernel"
[    1.231886] random: fast init done
[    1.253888] 0x000000840000-0x000008000000 : "rootfs"
[    1.514036] Error: Driver 'spi-nand' is already registered, aborting...
[    1.521902] libphy: Fixed MDIO Bus: probed
[    1.526560] CAN device driver interface
[    1.531135] RTL871X: module init start
[    1.535474] RTL871X: module init ret=0
[    1.539660] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.546981] sunxi-ehci: EHCI SUNXI driver
[    1.551841] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.558816] sunxi-ohci: OHCI SUNXI driver
[    1.563992] usbcore: registered new interface driver uas
[    1.570008] usbcore: registered new interface driver usb-storage
[    1.576869] usbcore: registered new interface driver ums-alauda
[    1.583592] usbcore: registered new interface driver ums-cypress
[    1.590354] usbcore: registered new interface driver ums-datafab
[    1.597187] usbcore: registered new interface driver ums_eneub6250
[    1.604205] usbcore: registered new interface driver ums-freecom
[    1.610965] usbcore: registered new interface driver ums-isd200
[    1.617688] usbcore: registered new interface driver ums-jumpshot
[    1.624620] usbcore: registered new interface driver ums-karma
[    1.631192] usbcore: registered new interface driver ums-onetouch
[    1.638129] usbcore: registered new interface driver ums-realtek
[    1.644968] usbcore: registered new interface driver ums-sddr09
[    1.651644] usbcore: registered new interface driver ums-sddr55
[    1.658374] usbcore: registered new interface driver ums-usbat
[    1.666969] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.672772] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T02:00:54 UTC (7254)
[    1.681933] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.687748] i2c /dev entries driver
[    1.691758] IR NEC protocol handler initialized
[    1.696864] IR RC5(x/sz) protocol handler initialized
[    1.702497] IR RC6 protocol handler initialized
[    1.707572] IR JVC protocol handler initialized
[    1.712647] IR Sony protocol handler initialized
[    1.717794] IR SANYO protocol handler initialized
[    1.723063] IR Sharp protocol handler initialized
[    1.728307] IR MCE Keyboard/mouse protocol handler initialized
[    1.734835] IR XMP protocol handler initialized
[    1.739876] ir_imon_decoder: IR iMON protocol handler initialized
[    1.746698] IR RCMM protocol handler initialized
[    1.752440] sunxi cedar version 1.1
[    1.756652] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.762950] VE: install start!!!
[    1.762950] 
[    1.768515] VE: cedar-ve the get irq is 6
[    1.768515] 
[    1.774924] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.774924] 
[    1.786517] VE: install end!!!
[    1.786517] 
[    1.792964] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.802030] Bluetooth: HCI UART driver ver 2.3
[    1.807045] Bluetooth: HCI UART protocol H4 registered
[    1.812803] Bluetooth: HCI UART protocol BCSP registered
[    1.818726] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.825988] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
[    1.832370] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
[    1.838966] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
[    1.838966] 
[    1.847644] [XR_BT_LPM] bluesleep_probe: uart_index(1)
[    1.856665] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.866682] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.872909] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.879226] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.885664] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.892074] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.898604] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.905138] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.911643] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.918692] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.924226] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.930882] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.942041] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.962197] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.986626] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.992299] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.004629] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    2.014653] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    2.020827] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    2.027314] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    2.033796] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    2.040258] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    2.046820] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.058400] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    2.064940] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    2.071446] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    2.078110] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    2.088023] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.099173] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.110814] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    2.121512] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.133117] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.157436] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    2.165090] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.177337] usbcore: registered new interface driver usbhid
[    2.183664] usbhid: USB HID core driver
[    2.190106] usbcore: registered new interface driver snd-usb-audio
[    2.197171] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.208792] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.220988] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    2.220988] 
[    2.238334] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    2.249322] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.261388] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    2.269623] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    2.278795] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.291832] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    2.297780] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    2.307608] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.319408] [SNDCODEC][sunxi_card_init][583]:card init finished
[    2.326208] mmc0: new high speed SDHC card at address 59b4
[    2.334457] mmcblk0: mmc0:59b4 SMI   7.52 GiB 
[    2.342235] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    2.355792]  mmcblk0: p1 p2
[    2.359965] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.373218] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    2.385094] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.397641] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    2.405904] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.417590] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.429505] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.440880] mmc1: new high speed SDIO card at address 0001
[    2.448861] NET: Registered protocol family 10
[    2.454587] RTL871X: CHIP TYPE: RTL8188F
[    2.460671] Segment Routing with IPv6
[    2.465103] RTL871X: rtw_hal_config_rftype RF_Type is 3 TotalTxPath is 1 
[    2.472966] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.480445] NET: Registered protocol family 17
[    2.485516] RTL871X: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[    2.494668] can: controller area network core (rev 20170425 abi 9)
[    2.501670] NET: Registered protocol family 29
[    2.506890] RTL871X: SetHwReg8188F: hci_sus_state=1
[    2.512380] can: raw protocol (rev 20170425)
[    2.518957] RTL871X: SetHwReg8188F: bMacPwrCtrlOn=1
[    2.524451] can: broadcast manager protocol (rev 20170425 t)
[    2.530793] can: netlink gateway (rev 20190810) max_hops=1
[    2.536958] RTL871X: SetHwReg8188F: hci_sus_state=2
[    2.542747] RTL871X: PowerOnCheck: val_mix:0x0000063f, res:0x0000063f
[    2.549930] RTL871X: PowerOnCheck: 0x100 the result of cmd52 and cmd53 is the same.
[    2.558898] Bluetooth: RFCOMM TTY layer initialized
[    2.564492] Bluetooth: RFCOMM socket layer initialized
[    2.570257] Bluetooth: RFCOMM ver 1.11
[    2.574615] RTL871X: PowerOnCheck: 0x1B8 test Pass.
[    2.581033] Loading compiled-in X.509 certificates
[    2.586503] RTL871X: EEPROM type is E-FUSE
[    2.593975] HDMI2.0 module init end
[    2.603014] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[    2.650154] ubi0: attaching mtd5
[    2.709971] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x98
[    2.717432] RTL871X: HW EFUSE
[    2.721824] RTL871X: hal_com_config_channel_plan chplan:0x20
[    2.734278] RTL871X: kfree flag:1
[    2.738511] RTL871X: bb_gain:1
[    2.745143] RTL871X: rtl8188f_FirmwareDownload((null)) tmp_ps=3
[    2.752294] RTL871X: rtl8188f_FirmwareDownload fw: FW_NIC, size: 21020
[    2.760197] RTL871X: rtl8188f_FirmwareDownload: fw_ver=4 fw_subver=0000 sig=0x88f1, Month=08, Date=22, Hour=17, Minute=36
[    2.773067] RTL871X: rtl8188f_FirmwareDownload(): Shift for fw header!
[    2.780892] RTL871X: rtl8188f_FirmwareDownload by IO write!
[    2.867451] random: crng init done
[    3.092731] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    3.249552] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x07050105
[    3.264912] RTL871X: _8051Reset8188: Finish
[    3.278635] RTL871X: _FWFreeToGo: Polling FW ready OK! (15, 20ms), REG_MCUFWDL:0x070501c6
[    3.288112] RTL871X: rtl8188f_FirmwareDownload: DLFW OK !
[    3.294733] RTL871X: rtl8188f_FirmwareDownload success. write_fw:1, 520ms
[    3.304026] RTL871X:  <=== rtl8188f_FirmwareDownload()
[    3.315146] RTL871X: hal_read_mac_hidden_rpt OK! (1, 10ms), fwdl:1, id:0x19
[    3.329193] RTL871X: SetHwReg8188F: bMacPwrCtrlOn=0
[    3.334945] RTL871X: SetHwReg8188F: hci_sus_state=3
[    3.347593] RTL871X: SetHwReg8188F: hci_sus_state=0
[    3.353384] RTL871X: rtw_hal_read_chip_info in 850 ms
[    3.362279] RTL871X: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13
[    3.375134] RTL871X: rtw_alloc_macid((null)) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:1
[    3.385187] RTL871X: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=1
[    3.393229] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    3.405840] RTL871X: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[    3.416393] RTL871X: default power by rate loaded
[    3.425270] RTL871X: rtw_macaddr_cfg mac addr:68:b9:d3:8b:ca:65
[    3.434045] RTL871X: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[    3.446196] RTL871X: rtw_wiphy_alloc(phy0)
[    3.451766] RTL871X: rtw_wdev_alloc(padapter=00000000bcc9db8d)
[    3.458908] RTL871X: rtw_wiphy_register(phy0)
[    3.464383] RTL871X: Register RTW cfg80211 vendor cmd(0x67) interface 
[    3.475038] RTL871X: _rtw_reg_notifier
[    3.479226] RTL871X: _rtw_reg_notifier_apply: NL80211_REGDOM_SET_BY_CORE to DRV
[    3.491286] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=68:b9:d3:8b:ca:65
[    3.503397] RTL871X: cfg80211_rtw_get_txpower
[    4.200801] ubi0: scanning is finished
[    4.219173] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[    4.225640] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.233335] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.240906] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.248694] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    4.255421] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    4.263505] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[    4.273619] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[    4.283942] ubi0: background thread "ubi_bgt0d" started, PID 67
[    4.291341] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.302436] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.310130] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.319831] clk: Not disabling unused clocks
[    4.324731] ALSA device list:
[    4.328046]   #0: audiocodec
[    4.332054] cfg80211: failed to load regulatory.db
[    4.338613] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    4.407070] UBIFS (ubi0:0): recovery needed
[    4.490727] UBIFS (ubi0:0): recovery deferred
[    4.495803] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    4.505076] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    4.516165] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[    4.528025] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    4.535433] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[    4.551501] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    4.563183] devtmpfs: mounted
[    4.566742] Freeing unused kernel memory: 196K
[    4.571696] This architecture does not have kernel memory protection.
[    4.578930] Run /init as init process
[root@Risc-v /root]# ifconfig -a
lo        Link encap:Local Loopback  
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 68:B9:D3:8B:CA:65  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root@Risc-v /root]#
[root@Risc-v /root]# 
[root@Risc-v /root]# cat /etc/wpa_action.sh
#!/bin/sh
/sbin/ifconfig wlan0 up
/usr/sbin/wpa_supplicant -i "wlan0" -c "/etc/wpa_supplicant.conf" -B
/sbin/udhcpc -i wlan0 -T 10 -s /usr/share/udhcpc/default.script
[root@Risc-v /root]# . /etc/wpa_action.sh
Successfully initialized wpa_supplicant
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
[   40.951254] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.1.6, server 192.168.1.1
udhcpc: lease of 192.168.1.6 obtained from 192.168.1.1, lease time 259200
/usr/share/udhcpc/default.script: Adding DNS 192.168.1.1
[root@Risc-v /root]#

WIFI 成功连接!!!

最近编辑记录 Cadence (2022-04-10 11:05:40)

离线

楼主 #11 2022-04-10 17:25:35

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

关于WIFI的调试信息操控
比如去掉如下信息:

[    7.866999] RTL871X: EEPROM type is E-FUSE
[    7.873956] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[    8.137127] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x98
[    8.144661] RTL871X: HW EFUSE
[    8.148152] RTL871X: 0x000: 
[    8.148199] 29 
[    8.151763] 81 
[    8.153862] 03 
[    8.155963] CC 
[    8.158065] 00 
[    8.160355] 00 
[    8.162460] 50 
[    8.164562] 00    
[    8.166663] 00 
[    8.169061] 00 
[    8.171350] 04 
[    8.173455] CC 
[    8.175557] 0A 
[    8.177660] 0C 
[    8.179949] 00 
[    8.182053] 00
[    8.186081] RTL871X: 0x010: 
[    8.186125] 2A 
[    8.189515] 2A 
[    8.191819] 2A 
[    8.193923] 2A 
[    8.196025] 2A 
[    8.198127] 2A 
[    8.200421] 2D 
[    8.202527] 2D    
[    8.204629] 2D 
[    8.207028] 2D 
[    8.209129] 2D 
[    8.211422] 03 
[    8.213526] FF 
[    8.215630] FF 
[    8.217731] FF 
[    8.220024] FF
[    8.224055] RTL871X: 0x020: 

1.修改drivers/net/wireless/rtl8189fs/include/autoconf.h
注释掉227行 CONFIG_DEBUG

227 //#define CONFIG_DEBUG /* DBG_871X, etc... */

2.修改drivers/net/wireless/rtl8189fs/core/rtw_debug.c

25 u32 GlobalDebugLevel = _drv_err_;

修改为

u32 GlobalDebugLevel = _drv_always_;

3.关掉全部调试信息
修改drivers/net/wireless/rtl8189fs/os_dep/linux/rtw_proc.c

135行 if( log_level >= _drv_always_ && log_level <= _drv_debug_ )

改为

if( log_level >= 0 && log_level <= _drv_debug_ )

启动起来后在sh里执行

echo 0 > /proc/net/rtl8189fs/log_level

或者drivers/net/wireless/rtl8189fs/core/rtw_debug.c

u32 GlobalDebugLevel = 0;

动态打开全部调试信息

echo 10 > /proc/net/rtl8189fs/log_level

最近编辑记录 Cadence (2022-04-10 17:30:47)

离线

楼主 #12 2022-04-26 08:01:40

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

wpa_supplicant.conf配置

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
    ssid="#####"
    scan_ssid=1
    proto=RSN
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    #psk="########"
    psk=4b5d43faf757b6ff8d02c1f2a051522c87c562c7c2349355bb342dc490bf563a
    priority=5
}

wifi启动脚本

#!/bin/sh
/sbin/ifconfig wlan0 up
/usr/sbin/wpa_supplicant -i "wlan0" -c "/etc/wpa_supplicant.conf" -B
/sbin/udhcpc -i wlan0 -T 10 -s /usr/share/udhcpc/default.script

cat /usr/share/udhcpc/default.script

#!/bin/sh

# udhcpc script edited by Tim Riker <Tim@Rikers.org>

[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1

[ -n "$subnet" ] && NETMASK="netmask $subnet"

# return 0 if root is mounted on a network filesystem
root_is_nfs() {
        sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
        grep -q "^/ \(nfs\|smbfs\|ncp\|coda\)$"
}

BROADCAST="broadcast +"

[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"

case "$1" in
        deconfig)
                if ! root_is_nfs ; then
            /sbin/ip addr flush dev $interface
            /sbin/ip link set dev $interface up
                fi
                ;;

        renew|bound)
            /sbin/ip addr add dev $interface local $ip/$mask $BROADCAST

                if [ -n "$router" ] ; then
                        if ! root_is_nfs ; then
                while /sbin/ip route del default dev $interface 2>/dev/null ; do
                    :
                done
                        fi

                        metric=10
                        for i in $router ; do
                /sbin/ip route add default via $i metric $metric
                metric=$(($metric + 1))
                        done
                fi

                # Update resolver configuration file
                R=""
                [ -n "$domain" ] && R="domain $domain
"
                for i in $dns; do
                        echo "$0: Adding DNS $i"
                        R="${R}nameserver $i
"
                done

                ;;
esac

exit 0

放在这里备忘

最近编辑记录 Cadence (2022-04-26 08:04:57)

离线

楼主 #13 2022-05-08 17:51:09

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

这 coremark.exe ???

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18926
Total time (secs): 18.926000
Iterations/Sec   : 105.674733
Iterations       : 2000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 105.674733 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

这是通过xfel 在ddr2里启动的
可能是CPU速度没设对

最近编辑记录 Cadence (2022-05-08 18:18:25)

离线

楼主 #14 2022-05-08 18:14:45

Cadence
会员
注册时间: 2022-04-01
已发帖子: 56
积分: 65

Re: 内核启动出错了???

这 coremark.exe ???

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13040
Total time (secs): 13.040000
Iterations/Sec   : 2300.613497
Iterations       : 30000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2300.613497 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

这是上电 spi-nand 启动的

最近编辑记录 Cadence (2022-05-08 18:17:35)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn