buildroot里想要增加Qt5的支持,于是make menuconfig->Target packages->Graphic libraries and applications(graphic/text)里勾选Qt5然后进入Qt5里勾选gui module和widgets module。其他不变,编译通过,下载到板子出问题。log如下
U-Boot SPL 2020.07 (Feb 22 2021 - 15:18:37 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
SPI-NAND: GigaDevice GD5F1GQ4UAYIG
SPI-NAND: U-Boot address: 53248
U-Boot 2020.07 (Feb 22 2021 - 15:18:37 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM: 64 MiB
MMC: mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 800x480 lcd console (overscan 0x0)
In: serial
Out: serial
Err: serial
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
- device: spi-nand@1
- parent: spi@1c05000
- driver: spi_nand
- type: NAND flash
- block size: 0x20000 bytes
- min I/O: 0x800 bytes
- OOB size: 64 bytes
- OOB available: 31 bytes
- 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 5767168 byte(s) (2816 page(s)) at offset 0x00080000
## Loading kernel from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'kernel@0' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x810000cc
Data Size: 4309048 Bytes = 4.1 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: crc32
Hash value: e3b9c8ad
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81000000 ...
Using 'conf@0' configuration
Trying 'fdt@0' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x8141c1e8
Data Size: 15655 Bytes = 15.3 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 7947cec8
Verifying Hash Integrity ... crc32+ OK
Booting using the fdt blob at 0x8141c1e8
Loading Kernel Image
Loading Device Tree to 80ff9000, end 80fffd26 ... OK
Cannot setup simplefb: node not found
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.92 (wei@wei-Virtual-Machine) (gcc version 8.4.0 (Buildroot -g22245a5-dirty)) #1 Mon Feb 22 15:19:54 CST 2021
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: Widora MangoPi R3
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x83000000
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3 net.ifnames=0 vt.global_cursor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1676K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[ 0.000051] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000145] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000893] Console: colour dummy device 80x30
[ 0.001001] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070267] pid_max: default: 32768 minimum: 301
[ 0.070813] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.070861] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.072768] CPU: Testing write buffer coherency: ok
[ 0.074851] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076050] devtmpfs: initialized
[ 0.088152] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.088220] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.092574] pinctrl core: initialized pinctrl subsystem
[ 0.095096] NET: Registered protocol family 16
[ 0.098873] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.101308] cpuidle: using governor menu
[ 0.145655] SCSI subsystem initialized
[ 0.146055] usbcore: registered new interface driver usbfs
[ 0.146217] usbcore: registered new interface driver hub
[ 0.146364] usbcore: registered new device driver usb
[ 0.146887] mc: Linux media interface: v0.10
[ 0.147012] videodev: Linux video capture interface: v2.00
[ 0.147160] pps_core: LinuxPPS API ver. 1 registered
[ 0.147181] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.147242] PTP clock support registered
[ 0.148339] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[ 0.149295] Advanced Linux Sound Architecture Driver Initialized.
[ 0.151826] clocksource: Switched to clocksource timer
[ 0.183614] thermal_sys: Registered thermal governor 'step_wise'
[ 0.184436] NET: Registered protocol family 2
[ 0.185957] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.186036] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.186092] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.186139] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.186400] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.186459] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.186976] NET: Registered protocol family 1
[ 0.189617] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.191530] Initialise system trusted keyrings
[ 0.192307] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.214758] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.215414] jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
[ 0.326977] Key type asymmetric registered
[ 0.327017] Asymmetric key parser 'x509' registered
[ 0.327198] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.327226] io scheduler mq-deadline registered
[ 0.327243] io scheduler kyber registered
[ 0.343507] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.368945] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.375157] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 0.376533] printk: console [ttyS0] disabled
[ 0.396863] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 27, base_baud = 6250000) is a 16550A
[ 0.831166] printk: console [ttyS0] enabled
[ 0.841002] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.862023] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.871601] SCSI Media Changer driver v0.25
[ 0.877570] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.890464] spi-nand spi0.0: GigaDevice SPI NAND was found.
[ 0.896165] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.905749] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.912218] Creating 4 MTD partitions on "spi0.0":
[ 0.917056] 0x000000000000-0x000000080000 : "u-boot"
[ 0.927453] 0x000000080000-0x000000600000 : "kernel.itb"
[ 0.936335] random: fast init done
[ 0.959366] 0x000000600000-0x000004600000 : "rom"
[ 1.192980] 0x000004800000-0x000007800000 : "overlay"
[ 1.370575] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.377230] ehci-platform: EHCI generic platform driver
[ 1.382931] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.389155] ohci-platform: OHCI generic platform driver
[ 1.394964] usbcore: registered new interface driver usb-storage
[ 1.402068] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.415709] i2c /dev entries driver
[ 1.419862] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 1.433689] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 1.444718] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[ 1.452582] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.462659] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.500724] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.510161] usbcore: registered new interface driver usbhid
[ 1.515853] usbhid: USB HID core driver
[ 1.520024] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[ 1.527351] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[ 1.539148] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[ 1.553092] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[ 1.569231] NET: Registered protocol family 17
[ 1.573921] Key type dns_resolver registered
[ 1.579324] Loading compiled-in X.509 certificates
[ 1.597773] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b278)
[ 1.606827] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073aab8)
[ 1.616391] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739658)
[ 1.624977] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a378)
[ 1.632753] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.639355] [drm] No driver support for vblank timestamp query.
[ 1.647073] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[ 1.656097] [drm] kms: can't enable cloning when we probably wanted to.
[ 1.727841] Console: switching to colour frame buffer device 100x30
[ 1.766721] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[ 1.775296] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.793120] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.799884] ALSA device list:
[ 1.802995] #0: F1C100s Audio Codec
[ 1.807263] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.815991] cfg80211: failed to load regulatory.db
[ 1.826173] unable to read id index table
[ 1.830575] List of all partitions:
[ 1.834263] 1f00 512 mtdblock0
[ 1.834272] (driver?)
[ 1.840881] 1f01 5632 mtdblock1
[ 1.840887] (driver?)
[ 1.847502] 1f02 65536 mtdblock2
[ 1.847509] (driver?)
[ 1.854115] 1f03 49152 mtdblock3
[ 1.854121] (driver?)
[ 1.860645] No filesystem could mount root, tried:
[ 1.860651] squashfs
[ 1.865564]
[ 1.869339] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[ 1.877676] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.92 #1
[ 1.883403] Hardware name: Allwinner suniv Family
[ 1.888178] [<c010e1a8>] (unwind_backtrace) from [<c010b954>] (show_stack+0x10/0x14)
[ 1.895951] [<c010b954>] (show_stack) from [<c06ee31c>] (panic+0xe8/0x2e4)
[ 1.902842] [<c06ee31c>] (panic) from [<c090135c>] (mount_block_root+0x2bc/0x31c)
[ 1.910320] [<c090135c>] (mount_block_root) from [<c0901568>] (prepare_namespace+0x128/0x188)
[ 1.918847] [<c0901568>] (prepare_namespace) from [<c06f6154>] (kernel_init+0x8/0x108)
[ 1.926759] [<c06f6154>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[ 1.934306] Exception stack(0xc2839fb0 to 0xc2839ff8)
[ 1.939354] 9fa0: 00000000 00000000 00000000 00000000
[ 1.947521] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.955683] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.962294] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2) ]---
离线
[ 1.854121] (driver?)
[ 1.860645] No filesystem could mount root, tried:
[ 1.860651] squashfs
[ 1.865564]
[ 1.869339] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
根文件系统系统出错了,没有勾选之前是可以的?
没勾选之前是可以的,我
make clean
make widora_mangopi_r3_defconfig
重新生成.config
再编译下载都正常
最近编辑记录 weiyouren (2021-02-22 16:26:10)
离线
那应该是 rootfs超过mtd2大小了, 你改一下 board/widora 目录下面的关于nnad的配置文件
我对比了下,加Qt和没加Qt的结果,差别应该就是没加Qt前编译出来的rootfs.squashfs大小是5.71M,加了Qt后rootfs.squashfs大小是12.2M
我看下载脚本里@REM %SELFPATH%\bin\dfu-util -a rom -D output\images\rootfs.squashfs这句话,虽然屏蔽了,但是意思是rom应该就是写入rootfs.squashfs这个文件的内容,然后我看/board/widora/mangopi/r3/devicetree/linux/devicetree.dts下的nand flash描述
partition@2 {
label = "rom";
reg = <0x600000 0x4000000>;
read-only;
};
大小0x4000000就是64M。够的啊,那为啥不行呢
离线