Firefly开源社区

打印 上一主题 下一主题

[Linux] 内核加载挂了

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8

内核加载挂了

发表于 2020-3-2 16:03:16      浏览:3168 | 回复:1        打印      只看该作者   [复制链接] 楼主
板子使用的sdk源码包:Firefly-RK3308_Linux_SDK_git_20181116
编译uboot 用的是 :  .make.sh  roc-rk3308-cc
内核编译命令: make arch=arm64 firefly-rk3308_linux_defconfig
文件系统是ext2 格式自己制作的。但是烧写到板子上,加载内核的时候挂了。能看出那块出问题了?


pwm-regulator(vdd-core): init 1044000 uV
regulator(vdd-core) init 1044000 uV
MMC:   dwmmc@ff490000: 0
Using default environment

In:    serial@ff0c0000
Out:   serial@ff0c0000
Err:   serial@ff0c0000
Model: Rockchip RK3308 EVB
MMC Device 1 not found
no mmc device at slot 1
Card did not respond to voltage select!
mmc_init: -95, time 9

Device 0: No.1 FLASH ID:ef f1 0 95 0 0
SFTL version: 5.0.48 20180930
...FtlVpcCheckAndModify enter...
FtlCheckVpc 1ae = 40  30
Vendor: 0x0308 Rev: V1.00 Prod: rkflash-NandFlash
            Type: Hard Disk
            Capacity: 107.7 MB = 0.1 GB (220672 x 512)
... is now current device
enter Recovery mode!
CLK:
apll 816000 KHz
dpll 1300000 KHz
vpll0 1179647 KHz
vpll1 903167 KHz
aclk_bus 185714 KHz
hclk_bus 100000 KHz
pclk_bus 100000 KHz
aclk_peri 185714 KHz
hclk_peri 100000 KHz
pclk_peri 100000 KHz
hclk_audio 98303 KHz
pclk_audio 98303 KHz
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0
ANDROID: reboot reason: "recovery"
FDT load addr 0x10f00000 size 260 KiB
Booting kernel at 0x4080000 with fdt at 4a45800...


## Booting Android Image at 0x04080000 ...
Kernel load addr 0x02080000 size 4071 KiB
RAM disk load addr 0x11000000 size 5929 KiB
## Flattened Device Tree blob at 04a45800
   Booting using the fdt blob at 0x4a45800
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 0ef4a000, end 0f5140de ... OK
   Loading Device Tree to 000000000ef34000, end 000000000ef490b4 ... OK
Adding bank: start=0x00200000, size=0x0fe00000

Starting kernel ...


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.143 (root@wyh-B85M-D3V) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #4 SMP PREEMPT Tue Nov 12 16:48:13 CST 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd042]
[    0.000000] earlycon: Early serial console at MMIO32 0xff0c0000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc00ff4e000 s35992 r8192 d29544 u73728
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64008
[    0.000000] Kernel command line: storagemedia=nand androidboot.slot_suffix= androidboot.serialno=c3d9b8674f4b94f6  rw rootwait earlycon=uart8250,mmio32,0xff0c0000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext2 snd_aloop.index=7
[    0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.000000] software IO TLB [mem 0x0fead000-0x0feed000] (0MB) mapped at [ffffffc00fead000-ffffffc00feecfff]
[    0.000000] Memory: 240408K/260096K available (5182K kernel code, 374K rwdata, 1768K rodata, 320K init, 490K bss, 19688K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff8008750000 - 0xffffff80087a0000   (   320 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008590000   (  5184 KB)
[    0.000000]     .rodata : 0xffffff8008590000 - 0xffffff8008750000   (  1792 KB)
[    0.000000]       .data : 0xffffff80087a0000 - 0xffffff80087fd808   (   375 KB)
[    0.000000]     fixed   : 0xffffffbffe7fd000 - 0xffffffbffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc000200000 - 0xffffffc010000000   (   254 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001858] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.002807] pid_max: default: 32768 minimum: 301
[    0.003360] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[    0.003962] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[    0.005392] sched-energy: CPU device node has no sched-energy-costs
[    0.006011] Invalid sched_group_energy for CPU0
[    0.006430] CPU0: update cpu_capacity 1024
[    0.006853] ASID allocator initialised with 65536 entries
[    0.016582] Detected VIPT I-cache on CPU1
[    0.016636] Invalid sched_group_energy for CPU1
[    0.016642] CPU1: update cpu_capacity 1024
[    0.016646] CPU1: Booted secondary processor [410fd042]
[    0.019605] Detected VIPT I-cache on CPU2
[    0.019642] Invalid sched_group_energy for CPU2
[    0.019646] CPU2: update cpu_capacity 1024
[    0.019650] CPU2: Booted secondary processor [410fd042]
[    0.022644] Detected VIPT I-cache on CPU3
[    0.022678] Invalid sched_group_energy for CPU3
[    0.022683] CPU3: update cpu_capacity 1024
[    0.022687] CPU3: Booted secondary processor [410fd042]
[    0.022756] Brought up 4 CPUs
[    0.027965] SMP: Total of 4 processors activated.
[    0.028404] CPU: All CPU(s) started at EL2
[    0.028903] Invalid sched_group_energy for CPU3
[    0.029325] Invalid sched_group_energy for Cluster3
[    0.029772] Invalid sched_group_energy for CPU2
[    0.030203] Invalid sched_group_energy for Cluster2
[    0.030652] Invalid sched_group_energy for CPU1
[    0.031068] Invalid sched_group_energy for Cluster1
[    0.031526] Invalid sched_group_energy for CPU0
[    0.031943] Invalid sched_group_energy for Cluster0
[    0.032931] devtmpfs: initialized
[    0.053191] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.054131] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.055082] pinctrl core: initialized pinctrl subsystem
[    0.056567] NET: Registered protocol family 16
[    0.062069] cpuidle: using governor menu
[    0.062468] Registered FIQ tty driver
[    0.063081] vdso: 2 pages (1 code @ ffffff8008596000, 1 data @ ffffff80087a4000)
[    0.063787] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.064618] DMA: preallocated 256 KiB pool for atomic allocations
[    0.069029] console [pstore-1] enabled
[    0.069381] pstore: Registered ramoops as persistent store backend
[    0.069965] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[    0.089649] fiq debugger fiq mode enabled
[[    0.090400] console [ttyFIQ0] enabled
    0.090400] console [ttyFIQ0] enabled
[    0.091073] bootconsole [uart0] disabled
[    0.091073] bootconsole [uart0] disabled
[    0.091708] Registered fiq debugger ttyFIQ0
WARNING: suspend_mode_handler: Not support call: 0x4
[    0.103947] vcc_1v8: regulator get failed, ret=-517
[    0.104868] vcc_1v8_codec: regulator get failed, ret=-517
[    0.105771] vcc_1v8: supplied by vcc_io
[    0.105887] vcc_1v8_codec: supplied by vcc_io
[    0.109280] Advanced Linux Sound Architecture Driver Initialized.
[    0.109970] Bluetooth: Core ver 2.21
[    0.110037] NET: Registered protocol family 31
[    0.110054] Bluetooth: HCI device and connection manager initialized
[    0.110075] Bluetooth: HCI socket layer initialized
[    0.110091] Bluetooth: L2CAP socket layer initialized
[    0.110131] Bluetooth: SCO socket layer initialized
[    0.111242] rockchip-cpuinfo cpuinfo: Serial         : 2351742cfaa2a9b5
[    0.111831] clocksource: Switched to clocksource arch_sys_counter
[    0.114293] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[    0.114623] NET: Registered protocol family 2
[    0.115314] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.115376] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
[    0.115432] TCP: Hash tables configured (established 2048 bind 2048)
[    0.115513] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.115546] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.115756] NET: Registered protocol family 1
[    0.116097] Unpacking initramfs...
[    0.564461] Freeing initrd memory: 5928K
[    0.565072] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.576280] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.579487] io scheduler noop registered (default)
[    0.580665] phy phy-ff008000.syscon:usb2-phy@100.0: Failed to get VBUS supply regulator
[    0.584961] dma-pl330 ff2c0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.585003] dma-pl330 ff2c0000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[    0.587326] dma-pl330 ff2d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.587364] dma-pl330 ff2d0000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.587713] rockchip-pvtm ff000000.grf:pmu-pvtm: failed to get rst 0 pmu
[    0.587895] rockchip-pvtm ff00c000.syscon:pvtm: failed to get rst 0 core
[    0.589391] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
[    0.591732] ff0e0000.serial: ttyS4 at MMIO 0xff0e0000 (irq = 12, base_baud = 6770833) is a 16550A
[    0.593653] [drm] Initialized drm 1.1.0 20060810
[    0.593843] random: nonblocking pool is initialized
[    0.596539] Unable to detect cache hierarchy for CPU 0
[    0.597126] Rockchip WiFi SYS interface (V1.00) ...
[    0.597562] ff400000.usb supply vusb_d not found, using dummy regulator
[    0.597685] ff400000.usb supply vusb_a not found, using dummy regulator
[    0.599938] dwc2 ff400000.usb: Configuration mismatch. dr_mode forced to device
[    0.599978] dwc2 ff400000.usb: 128 invalid for host_nperio_tx_fifo_size. Check HW configuration.
[    0.600001] dwc2 ff400000.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration.
[    0.600048] dwc2 ff400000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    0.823309] phy phy-ff008000.syscon:usb2-phy@100.0: charger = USB_SDP_CHARGER
[    0.824211] i2c /dev entries driver
[    0.825390] rk3x-i2c ff050000.i2c: Initialized RK3xxx I2C bus at ffffff80088b6000
[    0.828297] rk_tsadcv2_temp_to_code: Invalid conversion table: code=4095, temperature=2147483647
[    0.828542] rockchip-thermal ff1f0000.tsadc: tsadc is probed successfully!
[    0.829145] Bluetooth: HCI UART driver ver 2.3
[    0.829170] Bluetooth: HCI UART protocol H4 registered
[    0.829182] Bluetooth: HCI UART protocol LL registered
[    0.829446] cpu cpu0: leakage=15
[    0.829737] cpu cpu0: Failed to get pvtm
[    0.831068] cpu cpu0: l=0 h=2147483647 hyst=5000 l_limit=1200000000 h_limit=0
[    0.832516] Synopsys Designware Multimedia Card Interface Driver
[    0.833583] dwmmc_rockchip ff4a0000.dwmmc: num-slots property not found, assuming 1 slot is available
[    0.833733] dwmmc_rockchip ff4a0000.dwmmc: IDMAC supports 32-bit address mode.
[    0.833783] dwmmc_rockchip ff4a0000.dwmmc: Using internal DMA controller.
[    0.833807] dwmmc_rockchip ff4a0000.dwmmc: Version ID is 270a
[    0.833906] dwmmc_rockchip ff4a0000.dwmmc: DW MMC controller at irq 25,32 bit host data width,256 deep fifo
[    0.833988] dwmmc_rockchip ff4a0000.dwmmc: No vmmc regulator found
[    0.834011] dwmmc_rockchip ff4a0000.dwmmc: No vqmmc regulator found
[    0.834393] dwmmc_rockchip ff4a0000.dwmmc: allocated mmc-pwrseq
[    0.845003] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.856004] dwmmc_rockchip ff4a0000.dwmmc: 1 slots initialized
[    0.856793] is31fl32xx 1-003c: register write to 0x00 failed (error -6),val=0
[    0.880985] mmc_host mmc0: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    0.917903] mmc_host mmc0: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    0.957059] is31fl32xx 1-003c: register write to 0x00 failed (error -6),val=0
[    0.958966] mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
[    1.058034] is31fl32xx 1-003c: register write to 0x00 failed (error -6),val=0
[    1.159049] is31fl32xx_init_regs, write to shutdown register failed
[    1.159248] is31fl32xx 1-003c: register write to 0x26 failed (error -6),val=1
[    1.260093] is31fl32xx 1-003c: register write to 0x26 failed (error -6),val=1
[    1.361085] is31fl32xx 1-003c: register write to 0x26 failed (error -6),val=1
[    1.462658] rockchip-dmc dmc: failed to get the count of devfreq-event in /dmc node
[    1.463178] rockchip-dmc dmc: Failed to get leakage
[    1.463384] rockchip-dmc dmc: Failed to get pvtm
[    1.464009] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[    1.464061] rockchip-dmc dmc: don't add devfreq feature
[    1.467782] rknandc_base v1.1 2017-01-11
[    1.468515] rknandc ff4b0000.nandc: rknandc_probe clk rate = 147456000
[    1.468639] rkflash_dev_init
[    1.468671] init rkflash[0]
[    1.468731] No.1 FLASH ID:ef f1 0 95 0 0
[    1.468765] SFTL version: 5.0.50 20181227
[    1.505697] ...FtlVpcCheckAndModify enter...
[    1.519622] FtlCheckVpc 1ae = 40  30
[    1.520614] rkflash[0] init success
[    1.521023] rkflashd vendor storage init ok !
[    1.526131]  rkflash0: p1 p2 p3 p4 p5
[    1.527707] rksfc_base v1.1 2016-01-08
[    1.532423] rk3308-acodec ff560000.acodec: Don't need pa-drv gpio
[    1.532460] rk3308-acodec ff560000.acodec: De-pop as much as possible
[    1.532590] The acodec version is: a
[    1.533223] 1-001a supply AVDD not found, using dummy regulator
[    1.533308] 1-001a supply DVDD not found, using dummy regulator
[    1.533381] 1-001a supply PVDD_A not found, using dummy regulator
[    1.533435] 1-001a supply PVDD_B not found, using dummy regulator
[    1.533492] 1-001a supply PVDD_C not found, using dummy regulator
[    1.533550] 1-001a supply PVDD_D not found, using dummy regulator
[    1.533783] tas571x 1-001a: error requesting pdn_gpio: -16
[    1.534158] tas571x: probe of 1-001a failed with error -16
[    1.538916] rk-multicodecs bluetooth-sound: card: 0 has not been locked, re-probe again
[    1.538961] rk-multicodecs bluetooth-sound: check_lock_card failed: -517
[    1.539277] rk-multicodecs vad-sound: ASoC: CPU DAI (null) not registered
[    1.540460] NET: Registered protocol family 10
[    1.541702] NET: Registered protocol family 17
[    1.541778] NET: Registered protocol family 15
[    1.542067] Bluetooth: RFCOMM TTY layer initialized
[    1.542102] Bluetooth: RFCOMM socket layer initialized
[    1.542139] Bluetooth: RFCOMM ver 1.11
[    1.542170] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.542196] Bluetooth: HIDP socket layer initialized
[    1.542218] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    1.542793] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    1.542868] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6255
[    1.542887] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[    1.542899] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    1.543003] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 0, flags = 1.
[    1.543022] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[    1.543033] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    1.543048] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[    1.543139] [BT_RFKILL]: Enter rfkill_rk_init
[    1.543632] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 135.
[    1.543683] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,power_gpio = 139.
[    1.543749] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 140.
[    1.543770] [BT_RFKILL]: bluetooth_platdata_parse_dt: clk_get failed!!!.
[    1.543892] [BT_RFKILL]: Request irq for bt wakeup host
[    1.543960] [BT_RFKILL]: ** disable irq
[    1.544175] [BT_RFKILL]: bt_default device registered.
[    1.544745] flash vendor_init_thread!
[    1.544769] flash vendor storage:20170308 ret = -1
[    1.546970] input: adc-keys as /devices/platform/adc-keys/input/input0
[    1.548281] rk-multicodecs bluetooth-sound: card: 0 has not been locked, re-probe again
[    1.548318] rk-multicodecs bluetooth-sound: check_lock_card failed: -517
[    1.620565] rk-multicodecs vad-sound: multicodec <-> pdm-i2s-dais mapping ok
[    1.624366] rk-multicodecs bluetooth-sound: dummy_codec <-> ff350000.i2s mapping ok
[    1.626243] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.10 (r)
[    1.626280] ======== dhd_wlan_init_plat_data ========
[    1.626293] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[    1.626311] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=35, oob_irq_flags=0x418
[    1.626321] dhd_wlan_init_gpio: WL_REG_ON=-1
[    1.626332] dhd_wifi_platform_load: Enter
[    1.626396] Power-up adapter 'DHD generic adapter'
[    1.626468] wifi_platform_set_power = 1
[    1.626480] ======== PULL WL_REG_ON(-1) HIGH! ========
[    1.626492] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    1.626504] [WLAN_RFKILL]: wifi turn on power. -1
[    1.627222] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    1.627689] hctosys: unable to open rtc device (rtc0)
[    1.641534] vcc_sd: disabling
[    1.641587] vbus_host: disabling
[    1.641602] vccio_sd: disabling
[    1.642016] ALSA device list:
[    1.642039]   #0: rockchip,rk3308-vad
[    1.642050]   #1: rockchip,rk3308-pcm
[    1.642060]   #7: Loopback 1
[    1.642476] Freeing unused kernel memory: 320K
Starting logging: [    1.681294] Unable to handle kernel paging request at virtual address eff[ de  f 1.c68012908] Unabble to3 a3h%a
dle kernel paging request at virtual address ffffefc00bf3a3%0
回复

使用道具 举报

发表于 2020-3-3 16:48:19        只看该作者  沙发
1. 开发板要区分是ROC-RK3308-CC还是ROC-RK3308B-CC
2. 编译方法参考各开发板的维基教程
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表