您尚未登录。

#1 Re: 全志 SOC » linux-4.19启动报错 全志kernel » 2022-07-05 10:01:05

linux-xc 说:

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

BUG: Bad page state in process swapper

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

还是没有一点思路

#2 全志 SOC » linux-4.19启动报错 全志kernel » 2022-07-04 09:16:18

sniper
回复: 2

下载全新的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 的配置有问题?

#3 Re: 全志 SOC » 全志F1C100S usb裸机驱动移植(暂支持device hid类和cdc类) » 2022-06-22 09:53:12

微凉VeiLiang 说:
樊星 说:

哪里有介绍芯片usb寄存器的文档?600里面没有,找了个a20里面只有host。

只有MUSB的官方寄存器文档,全志的好像没有见过

MUSB的官方寄存器文档 在哪里可以下 ?

#4 Re: 全志 SOC » 全志R40使用UMS烧写/备份镜像 » 2022-02-28 17:38:43

请问你的uboot 是怎么配置的? 我想启用 ums 功能,但是编译会报错。
可以发一份你的 config给我吗?

#5 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2022-02-28 17:23:54

有没有 在 uboot 中就 支持 u盘功能的?我想在 uboot 阶段就支持 对SD卡的烧写操作。

#6 Re: 全志 SOC » 分享一个用于烧录SD-NAND或EMMC的xfel版本,目前支持F133/D1S » 2022-02-24 08:34:47

xboot 说:

同一个驱动,VID,PID一致,协议也大同小异

不知道对于fes ,电脑端的软件是哪个呢?我大概看了一下uboot的fes 下载,首先usb的驱动是一样的,mmc 的读写也不会有什么区别,按道理来讲 xfel 也能做到这个下载速度,为什么现在没做到,我怀疑是不是sram不够大,导致写mmc的时候没有整块写。

#7 Re: 全志 SOC » 分享一个用于烧录SD-NAND或EMMC的xfel版本,目前支持F133/D1S » 2022-02-23 09:52:17

如果是先将 image 下到 ddr, 再从 ddr 写到 SD 卡,这样速度会不会 快一点呢?

#8 全志 SOC » 全志A10/A20 nand flash系统开发 » 2022-02-23 09:03:30

sniper
回复: 1

全志A10/A20 nand flash系统开发

本文介绍 全志soc(A10/A20) 从nand flash启动系统,包括下载系统到nand flash的原理及方法,强调是nand flash启动而不是sd卡启动。<br />
解决的问题

全志的资料真的太少了,而且很多不开源,这个坑真的巨大。
文本主要解决了以下几点问题
1.全志soc nand 启动原理;
2. 研究了 全志soc nand 控制器的使用,及驱动;
3. 如何下载bootloader(boot0)到nand flash, 并启动 ;
详贴请看:

https://blog.csdn.net/m5123k/article/details/122235672

页脚

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

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