您尚未登录。

楼主 # 2022-07-04 09:16:18

sniper
会员
注册时间: 2022-02-23
已发帖子: 8
积分: 3

linux-4.19启动报错 全志kernel

下载全新的linux-4.19.36版本,使用 sunxi_defconfig 编译出来

U-Boot 2022.01 (Jul 02 2022 - 15:24:55 +0800) Allwinner Technology

CPU:   Allwinner A10 (SUN4I)
Model: Cubietech Cubieboard
DRAM:  1 GiB
WDT:   Not starting watchdog@1c20c90
NAND:  4096 MiB
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select! : -110
Unknown monitor
Unknown monitor
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c0b000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 3 USB Device(s) found
scanning bus usb@1c1c400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x800000, size 0x8000
 32768 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x800000
 8388608 bytes read: OK
## Booting kernel from Legacy Image at 40008000 ...
   Image Name:   Linux-4.19.36
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4448184 Bytes = 4.2 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 40000000
   Booting using the fdt blob at 0x40000000
EHCI failed to shut down host controller.
   Loading Kernel Image
using: FDT
   Loading Device Tree to 49ff7000, end 49fffec3 ... OK
DE is present but not probed
## Transferring control to Linux (at address 40008000)...

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.36 (sniper@sniper-VirtualBox) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #1 SMP Sat Jul 2 13:02:15 CST 2022
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Cubietech Cubieboard
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x460 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s38860 r8192 d22580 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: ubi.mtd=7 root=ubi0:system console=ttyS0,115200 rootfstype=ubifs earlyprintk rw
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] BUG: Bad page state in process swapper  pfn:70482
[    0.000000] page:efdd1040 count:0 mapcount:-237 mapping:00000000 index:0x1
[    0.000000] flags: 0x40000000()
[    0.000000] raw: 40000000 00000100 00000200 00000000 00000001 00000035 ffffff12 00000000
[    0.000000] page dumped because: nonzero mapcount
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.36 #1
[    0.000000] Hardware name: Allwinner sun4i/sun5i Families
[    0.000000] [<c0110528>] (unwind_backtrace) from [<c010c7d0>] (show_stack+0x10/0x14)
[    0.000000] [<c010c7d0>] (show_stack) from [<c06ff890>] (dump_stack+0x88/0x9c)
[    0.000000] [<c06ff890>] (dump_stack) from [<c01fc25c>] (bad_page+0xe8/0x148)
[    0.000000] [<c01fc25c>] (bad_page) from [<c01fc81c>] (free_pcppages_bulk+0x170/0x550)
[    0.000000] [<c01fc81c>] (free_pcppages_bulk) from [<c01fe064>] (free_unref_page+0x5c/0x64)
[    0.000000] [<c01fe064>] (free_unref_page) from [<c0201728>] (free_highmem_page+0x28/0x78)
[    0.000000] [<c0201728>] (free_highmem_page) from [<c0a059d8>] (mem_init+0x274/0x448)
[    0.000000] [<c0a059d8>] (mem_init) from [<c0a00c04>] (start_kernel+0x23c/0x460)
[    0.000000] [<c0a00c04>] (start_kernel) from [<00000000>] (  (null))
[    0.000000] Disabling lock debugging due to kernel taint
[    0.000000] BUG: Bad page state in process swapper  pfn:70483
[    0.000000] page:efdd1060 count:0 mapcount:-237 mapping:00000000 index:0x1
[    0.000000] flags: 0x40000000()
[    0.000000] raw: 40000000 00000100 00000200 00000000 00000001 00000034 ffffff12 00000000
[    0.000000] page dumped because: nonzero mapcount
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G    B             4.19.36 #1
[    0.000000] Hardware name: Allwinner sun4i/sun5i Families
[    0.000000] [<c0110528>] (unwind_backtrace) from [<c010c7d0>] (show_stack+0x10/0x14)
[    0.000000] [<c010c7d0>] (show_stack) from [<c06ff890>] (dump_stack+0x88/0x9c)
[    0.000000] [<c06ff890>] (dump_stack) from [<c01fc25c>] (bad_page+0xe8/0x148)
[    0.000000] [<c01fc25c>] (bad_page) from [<c01fc81c>] (free_pcppages_bulk+0x170/0x550)
[    0.000000] [<c01fc81c>] (free_pcppages_bulk) from [<c01fe064>] (free_unref_page+0x5c/0x64)
[    0.000000] [<c01fe064>] (free_unref_page) from [<c0201728>] (free_highmem_page+0x28/0x78)
[    0.000000] [<c0201728>] (free_highmem_page) from [<c0a059d8>] (mem_init+0x274/0x448)
[    0.000000] [<c0a059d8>] (mem_init) from [<c0a00c04>] (start_kernel+0x23c/0x460)
[    0.000000] [<c0a00c04>] (start_kernel) from [<00000000>] (  (null))
[    0.000000] BUG: Bad page state in process swapper  pfn:70682
[    0.000000] page:efdd5040 count:0 mapcount:-194 mapping:00000000 index:0x1
[    0.000000] flags: 0x40000000()
[    0.000000] raw: 40000000 00000100 00000200 00000000 00000001 00000034 ffffff3d 00000000
[    0.000000] page dumped because: nonzero mapcount
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G    B             4.19.36 #1
[    0.000000] Hardware name: Allwinner sun4i/sun5i Families
[    0.000000] [<c0110528>] (unwind_backtrace) from [<c010c7d0>] (show_stack+0x10/0x14)
[    0.000000] [<c010c7d0>] (show_stack) from [<c06ff890>] (dump_stack+0x88/0x9c)

感觉像是 memory 的问题,正常的应该会显示下面的内容,
.png

请大家帮忙指点一下,是不是memory 的配置有问题?

离线

楼主 #2 2022-07-05 10:01:05

sniper
会员
注册时间: 2022-02-23
已发帖子: 8
积分: 3

Re: linux-4.19启动报错 全志kernel

linux-xc 说:

提供一些思路,你的打印信息有Bug

BUG: Bad page state in process swapper

https://bugzilla.redhat.com/show_bug.cgi?id=1048442

还是没有一点思路

离线

页脚

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

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