您尚未登录。

楼主 # 2024-01-15 18:37:26

happy粥
会员
注册时间: 2022-04-12
已发帖子: 8
积分: 18

兄弟们!请教个全志A20问题:内核启动报错panic - not syncing怎么解决啊?

始终报错 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004。
打印信息在这

U-Boot 2021.04 (Jan 15 2024 - 11:33:30 +0800) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment

Setting up a 720x576i composite-pal console (overscan 32x20)
In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
7534840 bytes read in 633 ms (11.4 MiB/s)
25751 bytes read in 5 ms (4.9 MiB/s)
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Device Tree to 49ff6000, end 49fff496 ... OK

Starting kernel happy ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.15.0-rc5-Allwinner-Happy (happy@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 6.3-2017.05) 6.3.1 20170404, GNU ld (Linaro_Binutils-2017.05) 2.27.0.20161019) #33 SMP PREEMPT Mon Jan 15 17:33:19 CST 2024
[    0.000000][    T0] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: div instructions available: patching division code
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Cubietech Cubieboard2
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000][    T0] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] percpu: Embedded 12 pages/cpu s18124 r8192 d22836 u49152
[    0.000000][    T0] pcpu-alloc: s18124 r8192 d22836 u49152 alloc=12*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p3 rootwait rw earlyprintk loglevel=8
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] Memory: 918752K/1048576K available (9216K kernel code, 2299K rwdata, 5076K rodata, 1024K init, 3435K bss, 31520K reserved, 98304K cma-reserved, 262144K highmem)
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x4a4/0x67c with crng_init=0
[    0.000000][    T0] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000][    T0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002][    T0] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008697][    T0] Switching to timer-based delay loop, resolution 41ns
[    0.015885][    T0] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.026141][    T0] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.036611][    T0] Console: colour dummy device 80x30
[    0.041912][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.052885][    T0] pid_max: default: 32768 minimum: 301
[    0.058881][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.066922][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.078791][    T0] CPU: Testing write buffer coherency: ok
[    0.085009][    T1] /cpus/cpu@0 missing clock-frequency property
[    0.091100][    T1] /cpus/cpu@1 missing clock-frequency property
[    0.097125][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.105057][    T1] Setting up static identity map for 0x40100000 - 0x40100060
[    0.112613][    T1] rcu: Hierarchical SRCU implementation.
[    0.121487][    T1] smp: Bringing up secondary CPUs ...
[    0.128186][    T1] smp: Brought up 1 node, 1 CPU
[    0.133013][    T1] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.139937][    T1] CPU: All CPU(s) started in SVC mode.
[    0.147079][    T1] devtmpfs: initialized
[    0.207943][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.218535][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.230303][    T1] pinctrl core: initialized pinctrl subsystem
[    0.241582][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.250412][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.263169][    T1] audit: initializing netlink subsys (disabled)
[    0.271934][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.271953][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.278752][   T23] audit: type=2000 audit(0.103:1): state=initialized audit_enabled=0 res=1
[    0.295127][    T1] cpuidle: using governor ladder
[    0.300004][    T1] cpuidle: using governor menu
[    0.304874][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.313623][    T1] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.362817][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1c0d000.lcd-controller
[    0.373238][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1c0c000.lcd-controller
[    0.383633][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1e20000.display-frontend
[    0.394175][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1e00000.display-frontend
[    0.407019][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1c0d000.lcd-controller
[    0.417425][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1c0c000.lcd-controller
[    0.427801][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1e20000.display-frontend
[    0.438358][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1e00000.display-frontend
[    0.573423][    T1] SCSI subsystem initialized
[    0.578227][    T1] libata version 3.00 loaded.
[    0.583986][    T1] usbcore: registered new interface driver usbfs
[    0.590501][    T1] usbcore: registered new interface driver hub
[    0.596791][    T1] usbcore: registered new device driver usb
[    0.603264][    T1] mc: Linux media interface: v0.10
[    0.608487][    T1] videodev: Linux video capture interface: v2.00
[    0.614959][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.620671][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.630612][    T1] PTP clock support registered
[    0.637076][    T1] Advanced Linux Sound Architecture Driver Initialized.
[    0.648874][    T1] clocksource: Switched to clocksource arch_sys_counter
[    0.657473][    T1] VFS: Disk quotas dquot_6.6.0
[    0.662476][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.670994][    T1] FS-Cache: Loaded
[    0.675259][    T1] CacheFiles: Loaded
[    0.716669][    T1] NET: Registered PF_INET protocol family
[    0.722756][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.733751][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.743101][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.751725][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.759744][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    0.767207][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.774666][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.783438][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.792077][    T1] RPC: Registered named UNIX socket transport module.
[    0.798839][    T1] RPC: Registered udp transport module.
[    0.804340][    T1] RPC: Registered tcp transport module.
[    0.809760][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.817729][    T1] armv7-pmu pmu: hw perfevents: no interrupt-affinity property, guessing.
[    0.827788][    T1] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.842069][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.897302][    T1] NFS: Registering the id_resolver key type
[    0.903245][    T1] Key type id_resolver registered
[    0.908180][    T1] Key type id_legacy registered
[    0.916995][    T1] Key type cifs.spnego registered
[    0.922052][    T1] Key type cifs.idmap registered
[    0.926902][    T1] ntfs: driver 2.1.32 [Flags: R/W].
[    0.933788][    T1] fuse: init (API version 7.34)
[    1.022593][    T1] bounce: pool size: 64 pages
[    1.027703][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.035909][    T1] io scheduler mq-deadline registered
[    1.041184][    T1] io scheduler kyber registered
[    1.064341][    T1] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.340788][    T1] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.360131][    T1] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    1.371343][    T1] printk: console [ttyS0] disabled
[    1.397062][    T1] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 56, base_baud = 1500000) is a U6_16550A
[    1.406903][    T1] printk: console [ttyS0] enabled
[    1.406903][    T1] printk: console [ttyS0] enabled
[    1.416668][    T1] printk: bootconsole [earlycon0] disabled
[    1.416668][    T1] printk: bootconsole [earlycon0] disabled
[    1.443330][    T1] brd: module loaded
[    1.487644][    T1] loop: module loaded
[    1.491610][    T1] the cryptoloop driver has been deprecated and will be removed in in Linux 5.16
[    1.505763][    T1] libphy: Fixed MDIO Bus: probed
[    1.514682][    T1] CAN device driver interface
[    1.520509][    T1] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.530079][    T1] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.537180][    T1] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.544184][    T1] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.550843][    T1] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.558025][    T1] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.565043][    T1] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.570756][    T1] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    1.578690][    T1] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.585090][    T1] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    1.594810][    T1] libphy: stmmac: probed
[    1.609371][    T1] PPP generic driver version 2.4.2
[    1.615224][    T1] PPP BSD Compression module registered
[    1.620735][    T1] PPP Deflate Compression module registered
[    1.626573][    T1] PPP MPPE Compression module registered
[    1.632083][    T1] NET: Registered PF_PPPOX protocol family
[    1.638670][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.646024][    T1] ehci-platform: EHCI generic platform driver
[    1.652402][    T1] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.659420][    T1] ohci-platform: OHCI generic platform driver
[    1.666546][    T1] mousedev: PS/2 mouse device common for all mice
[    1.673486][    T1] i2c_dev: i2c /dev entries driver
[    1.680296][    T1] device-mapper: uevent: version 1.0.3
[    1.687208][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    1.697525][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    1.704913][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    1.712280][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    1.721682][    T1] usbcore: registered new interface driver ushc
[    1.728782][   T75] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.738793][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.746474][    T7] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pi not found, using dummy regulator
[    1.757255][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.774762][    T1] usbcore: registered new interface driver usbhid
[    1.781266][    T1] usbhid: USB HID core driver
[    1.787143][    T1] ashmem: initialized
[    1.792964][   T75] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.800773][    T7] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    1.812423][    T1] [HuXiLED]:/***************************/
[    1.818570][    T1] [HuXiLED]:----------MODULE------------
[    1.824269][    T1] [HuXiLED]:--NAME:My Huxi LED Driver---
[    1.829975][    T1] [HuXiLED]:/***************************/
[    1.836042][    T1] [HuXiLED]:Finding compatible gpio node! :gpio_huxi:0
[    1.843073][    T1] [HuXiLED]:Module HuXiLed Time_HuXiA = <300> !
[    1.843073][    T1]
[    1.843193][    T1] [HuXiLED]:Get gpio242:htled_gpio number from node!
[    1.858707][    T1] [HuXiLED]:Get gpio243:hxled_gpio number from node!
[    1.865765][    T1] Get gpio device major=241,minor=0
[    1.872701][    T1] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    1.882353][    T1] Initializing XFRM netlink socket
[    1.887582][    T1] NET: Registered PF_PACKET protocol family
[    1.893554][    T1] NET: Registered PF_KEY protocol family
[    1.899068][    T1] can: controller area network core
[    1.904430][    T1] NET: Registered PF_CAN protocol family
[    1.909994][    T1] can: raw protocol
[    1.913702][    T1] can: broadcast manager protocol
[    1.918703][    T1] can: netlink gateway - max_hops=1
[    1.925107][    T1] Key type dns_resolver registered
[    1.930408][    T1] Registering SWP/SWPB emulation handler
[    1.937415][    T1] registered taskstats version 1
[    1.942333][   T22] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.951455][    T1] kmemleak: Kernel memory leak detector initialized (mem pool available: 15894)
[    1.960436][   T95] kmemleak: Automatic memory scanning thread started
[    1.967276][   T22] mmc0: new SDHC card at address 0001
[    1.979671][   T22] mmcblk0: mmc0:0001 SD16G 29.5 GiB
[    1.987461][    T1] Key type encrypted registered
[    2.013990][   T22]  mmcblk0: p1 p2 p3 p4
[    2.088045][   T75] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    2.104385][    T1] printk: console [netcon0] enabled
[    2.109601][    T1] netconsole: network logging started
[    2.115448][    T1] ALSA device list:
[    2.119242][    T1]   No soundcards found.
[    2.400464][    C0] random: fast init done
[    6.301092][    T1] EXT4-fs (mmcblk0p3): recovery complete
[    6.310302][    T1] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    6.321082][    T1] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    6.328313][    T1] devtmpfs: mounted
[    6.333334][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    6.341158][    T1] Run /sbin/init as init process
[    6.346006][    T1]   with arguments:
[    6.349712][    T1]     /sbin/init
[    6.353137][    T1]   with environment:
[    6.356984][    T1]     HOME=/
[    6.360050][    T1]     TERM=linux
[    6.364090][    T1] Run /etc/init as init process
[    6.368991][    T1]   with arguments:
[    6.372784][    T1]     /etc/init
[    6.376161][    T1]   with environment:
[    6.380037][    T1]     HOME=/
[    6.383111][    T1]     TERM=linux
[    6.387042][    T1] Run /bin/init as init process
[    6.391880][    T1]   with arguments:
[    6.395593][    T1]     /bin/init
[    6.398969][    T1]   with environment:
[    6.402848][    T1]     HOME=/
[    6.405956][    T1]     TERM=linux
[    6.409808][    T1] Run /bin/sh as init process
[    6.414454][    T1]   with arguments:
[    6.418173][    T1]     /bin/sh
[    6.421366][    T1]   with environment:
[    6.425245][    T1]     HOME=/
[    6.428336][    T1]     TERM=linux
[    6.454707][    T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    6.463086][    T1] CPU: 0 PID: 1 Comm: sh Not tainted 5.15.0-rc5-Allwinner-Happy #33 2cbe631b8feb782ec637f4454c93c0defca4b1ea
[    6.474472][    T1] Hardware name: Allwinner sun7i (A20) Family
[    6.480391][    T1] [<c010a714>] (unwind_backtrace) from [<c0105a80>] (show_stack+0x10/0x14)
[    6.488847][    T1] [<c0105a80>] (show_stack) from [<c09bfa58>] (dump_stack_lvl+0x40/0x4c)
[    6.497117][    T1] [<c09bfa58>] (dump_stack_lvl) from [<c09bd4a0>] (panic+0x100/0x2e4)
[    6.505122][    T1] [<c09bd4a0>] (panic) from [<c011eb5c>] (do_exit+0x9e4/0xb7c)
[    6.512521][    T1] [<c011eb5c>] (do_exit) from [<c011fdb0>] (do_group_exit+0x3c/0xb8)
[    6.520440][    T1] [<c011fdb0>] (do_group_exit) from [<c012b6f4>] (get_signal+0x1a0/0x854)
[    6.528794][    T1] [<c012b6f4>] (get_signal) from [<c0104ee4>] (do_work_pending+0x100/0x5cc)
[    6.537321][    T1] [<c0104ee4>] (do_work_pending) from [<c01000c0>] (slow_work_pending+0xc/0x20)
[    6.546194][    T1] Exception stack(0xc1871fb0 to 0xc1871ff8)
[    6.551939][    T1] 1fa0:                                     ???????? ???????? ???????? ????????
[    6.560800][    T1] 1fc0: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
[    6.569661][    T1] 1fe0: ???????? ???????? ???????? ???????? ???????? ????????
[    6.576970][    T1] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---

百度搜了一下说是什么EABI编译问题,更改之后还是不行,还有说根文件系统问题,换了之后也还是同样错误。芯片是全志A20。我实在黔驴技穷了,来个大神救救孩子吧。

离线

#1 2024-01-17 19:17:09

ktouch
会员
注册时间: 2023-11-27
已发帖子: 18
积分: 3

Re: 兄弟们!请教个全志A20问题:内核启动报错panic - not syncing怎么解决啊?

A20是个很古老的芯片了吧

离线

页脚

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

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