Page 1 of 1

求助,如何设置为只读文件系统呢?

Posted: 2025-02-19 6:51
by shenqidpanzi
为了让文件系统安全有保证,我想做成只读的文件系统?或者做成overlayroot,这需要怎么实现呢
求助

Re: 求助,如何设置为只读文件系统呢?

Posted: 2025-02-19 8:54
by Crocodile
您好,要修改成只读文件系统可以修改<SDK>/ buildroot/board/rockchip/rk3506/luckfox-overlay/etc/inittab

Code: Select all

// ::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mount -o remount,ro /
重新编译后烧录的系统就是只读系统

还有一种方式是换用squashfs(仅限spinand),这个没有实测过大致的思路为
1 修改buildroot打包的根文件系统类型
使用 ./build.sh buildroot-config 搜索 BR2_TARGET_ROOTFS_UBI_SQUASHFS
将 UBI root filesystem 修改为 squashfs
2 删掉 buildroot/configs/rockchip_rk3506_luckfox_defconfig 中 ubifs 的相关配置

Code: Select all

- #include "fs/ubifs.config"
3 使用 ./build.sh config 进入 Rootfs -> filesystem type 修改为 squashfs
4 修改设备树的bootargs,具体参数需要查询相关资料

Re: 求助,如何设置为只读文件系统呢?

Posted: 2025-02-19 14:33
by shenqidpanzi
你好,感谢你的帮助,由于第一种方案仍然可以使用mount -o remount,rw /,我打算选择了第二种方案,
但是我按照你的指点,还是出现了问题,下面是启动失败的日志,

Code: Select all

 0ac6b06a19 typ 24/11/13-17:22:48,fwver: v1.04
tREFI:4x, sr_idle:93, pd_idle:13
SRX
get rd_skew=0x2a, wr_skew=0x24
PHY drv:clk:60,ca:160,DQ:80,odt:480
vrefinner:50%, vrefout:50%
dram drv:40,odt:0
sr_dq:0, sr_ca:0, sr_clk:0
rg:0x1c-0x0-0x2, 0xf-0x0-0x2,status:a007
DDR3, 750MHz
BW=16 Col=10 Bk=8 CS0 Row=13 CS=1 Size=128MB
out
U-Boot SPL board init
U-Boot SPL 2017.09-g2b36fa3-dirty #libiao (Feb 19 2025 - 21:36:22)
sfc cmd=03H(6BH-x4)
SPI Nand ID ef aa 22
unrecognized JEDEC id bytes: ff, ef, aa
Trying to boot from MTD1
No misc partition
Trying fit image at 0x2000 sector
## Verified-boot: 0
## Checking optee 0x00001000 ... sha256(690eb8a14d...) + OK
## Checking uboot 0x00200000 ... sha256(6a9d202481...) + OK
## Checking fdt 0x002a1640 ... sha256(94765d3778...) + OK
Jumping to U-Boot(0x00200000) via OP-TEE(0x00001000)
Total: 60.141/99.598 ms

I/TC: 
I/TC: Status: cluster=0xc00, core=0xe100, bootcpu=0
I/TC: Next entry point address: 0x00200000
I/TC: OP-TEE version: 3.13.0-894-g0e7e5b3c7ff #chenjh (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 Tue Nov 12 09:21:23 CST 2024 arm, fwver: v1.25 
I/TC: OP-TEE memory: TEEOS 0x5e000 TA 0x1000 SHM 0x1000
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot


U-Boot 2017.09-g2b36fa3-dirty #libiao (Feb 19 2025 - 21:36:22 +0800)

Model: Luckfox Lyra
MPIDR: 0xf00
PreSerial: 0, raw, 0xff0a0000
DRAM:  128 MiB
Sysmem: init
Relocation Offset: 054f2000
Relocation fdt: 044fb430 - 044fedf0
CR: M/C/I
Using default environment

DM: v2
SPI Nand ID ef aa 22
Bootdev(atags): mtd 1
PartType: EFI
No misc partition
boot mode: normal
RESC: 'boot', blk@0x00006288
resource: sha256+
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
Could not find baseparameter partition
Model: Luckfox Lyra Plus
rockchip_set_ethaddr: vendor_storage_write failed -5
Rockchip UBOOT DRM driver version: v1.0.1
Using display timing dts
dsi@ff640000:  detailed mode clock 70000 kHz, flags[a]
    H: 0800 0840 0860 0880
    V: 1280 1310 1314 1324
bus_format: 100e
VOP:0xff600000 update mode to: 800x1280p60, type: MIPI0
VOP:0xff600000 set crtc_clock to 70000KHz, get 68181818Hz
Unsupported bt709f at 10bit csc depth, use bt601f instead
VOP:0xff600000 set plane [654x270->654x270@73x505] fmt[0] addr[0x5900000]
final DSI-Link bandwidth: 933 Mbps x 2
CLK: (arm clk use pvtpll, rate = 1200M)
  gpll 1500000 KHz
  v0pll 1179648 KHz
  v1pll 903168 KHz
  clk_gpll_div 187500 KHz
  clk_gpll_div_100m 93750 KHz
  clk_v0pll_div 147456 KHz
  clk_v1pll_div 129024 KHz
  aclk_bus_root 187500 KHz
  hclk_bus_root 147456 KHz
  pclk_bus_root 93750 KHz
  aclk_hsperi_root 147456 KHz
  hclk_ksperi_root 93750 KHz
Net:   eth1: ethernet@ff4d0000
Hit key to stop autoboot('CTRL+C'):  0 
## Booting FIT Image at 0x3ea7400 with size 0x00451000
Fdt Ramdisk skip relocation
No misc partition
## Loading kernel from FIT Image at 03ea7400 ...
   Using 'conf' configuration
## Verified-boot: 0
   Trying 'kernel' kernel subimage
     Description:  unavailable
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x03eb0800
     Data Size:    4488048 Bytes = 4.3 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x01100000
     Entry Point:  0x01100000
     Hash algo:    sha256
     Hash value:   fd5130812c1a5e5dc296aecc46a256190ddd0428f107becb23968eb9814b694e
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 03ea7400 ...
   Using 'conf' configuration
   Trying 'fdt' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x03ea7c00
     Data Size:    35588 Bytes = 34.8 KiB
     Architecture: ARM
     Load Address: 0x00063000
     Hash algo:    sha256
     Hash value:   d73fc7948554b3a07714a790947e63fb49f31fcdcdf091a27443ca5fb793fb3b
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x00063000 to 0x00063000
   Booting using the fdt blob at 0x00063000
   Loading Kernel Image from 0x03eb0800 to 0x01100000 ... OK
   kernel loaded at 0x01100000, end = 0x01547b70
   Using Device Tree in place at 00063000, end 0006eb03
## reserved-memory:
  trust@0: addr=0 size=62000
  drm-logo@0: addr=5900000 size=15a000
  ramoops@83000: addr=83000 size=2d000
Adding bank: 0x00000000 - 0x08000000 (size: 0x08000000)
Total: 947.518/1055.709 ms

Starting kernel ...

[    1.137728] Booting Linux on physical CPU 0xf00
[    1.137758] Linux version 6.1.99-rt36 (libiao@libiao-OptiPlex-7000) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP PREEMPT Wed Feb 19 19:45:15 CST 2025
[    1.137769] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    1.137779] CPU: div instructions available: patching division code
[    1.137785] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    1.138021] OF: fdt: Machine model: Luckfox Lyra Plus
[    1.139697] earlycon: uart8250 at MMIO32 0xff0a0000 (options '')
[    1.145663] printk: bootconsole [uart8250] enabled
[    1.146191] Memory policy: Data cache writealloc
[    1.146824] Reserved memory: created CMA memory pool at 0x06000000, size 32 MiB
[    1.147499] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    1.148774] Zone ranges:
[    1.149033]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    1.149607] Movable zone start for each node
[    1.150001] Early memory node ranges
[    1.150332]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    1.150910] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    1.158273] psci: probing for conduit method from DT.
[    1.158764] psci: PSCIv1.0 detected in firmware.
[    1.159192] psci: Using standard PSCI v0.2 function IDs
[    1.159675] psci: MIGRATE_INFO_TYPE not supported.
[    1.160117] psci: SMC Calling Convention v1.1
[    1.160658] percpu: Embedded 12 pages/cpu s16916 r8192 d24044 u49152
[    1.161364] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    1.161988] Kernel command line: storagemedia=mtd androidboot.storagemedia=mtd androidboot.mode=normal  rootwait noirqbalance earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=2 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 isolcpus=1,2 nohz_full=1,2 mtdparts=spi-nand0:0x400000@0x400000(uboot),0xc00000@0x800000(boot),0xa000000@0x2000000(rootfs),0x3f60000@0xc000000(lbdata) androidboot.fwver=ddr-v1.04-0ac6b06a19,tee-v1.25,uboot-2b36fa3-di-02/19/2025 user_debug=31
[    1.166746] Housekeeping: nohz unsupported. Build with CONFIG_NO_HZ_FULL
[    1.167454] Unknown kernel command line parameters "noirqbalance storagemedia=mtd nohz_full=1,2", will be passed to user space.
[    1.168575] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    1.169293] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.169978] mem auto-init: stack:off, heap alloc:off, heap free:off
[    1.173249] Memory: 88248K/131072K available (3702K kernel code, 390K rwdata, 1852K rodata, 180K init, 110K bss, 10056K reserved, 32768K cma-reserved)
[    1.174669] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=3, Nodes=1
[    1.175506] rcu: Preemptible hierarchical RCU implementation.
[    1.176044] rcu:     RCU event tracing is enabled.
[    1.176462] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=3.
[    1.177065] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    1.177759] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=3
[    1.178403] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    1.179726] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    1.190611] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    1.191205] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    1.192204] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    1.192946] Switching to timer-based delay loop, resolution 41ns
[    1.193817] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    1.194818] CPU: Testing write buffer coherency: ok
[    1.195312] pid_max: default: 4096 minimum: 301
[    1.195876] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.196563] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.198298] /cpus/cpu@f00 missing clock-frequency property
[    1.198843] /cpus/cpu@f01 missing clock-frequency property
[    1.199362] /cpus/cpu@f02 missing clock-frequency property
[    1.199875] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    1.201326] Setting up static identity map for 0x108240 - 0x108294
[    1.202205] rcu: Hierarchical SRCU implementation.
[    1.202213] rcu:     Max phase no-delay instances is 1000.
[    1.202308] printk: bootconsole [uart8250] printing thread started
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
[    1.204567] smp: Bringing up secondary CPUs ...
[    1.206034] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    1.207649] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    1.209112] smp: Brought up 1 node, 3 CPUs
[    1.209125] SMP: Total of 3 processors activated (144.00 BogoMIPS).
[    1.209132] CPU: All CPU(s) started in SVC mode.
[    1.211146] devtmpfs: initialized
[    1.218637] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.218840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    1.218867] futex hash table entries: 16 (order: -2, 1024 bytes, linear)
[    1.218964] pinctrl core: initialized pinctrl subsystem
[    1.220177] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    1.220669] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.225431] Registered FIQ tty driver
[    1.225733] thermal_sys: Registered thermal governor 'step_wise'
[    1.225741] thermal_sys: Registered thermal governor 'user_space'
[    1.225815] cpuidle: using governor ladder
[    1.225840] cpuidle: using governor menu
[    1.227270] ramoops: boot-log-0      0xd000@0x00083000
[    1.230322] ramoops: console 0x20000@0x00090000
[    1.230515] printk: console [ramoops-1] enabled
[    1.230525] pstore: Registered ramoops as persistent store backend
[    1.230529] ramoops: using 0x2d000@0x83000, ecc: 0
[    1.241377] printk: console [ramoops-1] printing thread started
[    1.241913] rockchip-gpio ff940000.gpio: probed /pinctrl/gpio@ff940000
[    1.242687] rockchip-gpio ff870000.gpio: probed /pinctrl/gpio@ff870000
[    1.243350] rockchip-gpio ff1c0000.gpio: probed /pinctrl/gpio@ff1c0000
[    1.243993] rockchip-gpio ff1d0000.gpio: probed /pinctrl/gpio@ff1d0000
[    1.247677] rockchip-gpio ff1e0000.gpio: probed /pinctrl/gpio@ff1e0000
[    1.247767] rockchip-pinctrl pinctrl: probed pinctrl
[    1.251079] platform ff600000.vop: Fixed dependency cycle(s) with /dsi@ff640000
[    1.251164] platform ff640000.dsi: Fixed dependency cycle(s) with /dsi@ff640000/panel@0
[    1.251180] platform ff640000.dsi: Fixed dependency cycle(s) with /vop@ff600000
[    1.255571] platform vdd-cpu: Fixed dependency cycle(s) with /vdd-cpu
[    1.263599] printk: console [ttyFIQ0] enabled
[    1.263609] printk: bootconsole [uart8250] disabled
[    1.263629] printk: bootconsole [uart8250] printing thread stopped
[    1.263933] Registered fiq debugger ttyFIQ0
[    1.266245] reg-fixed-voltage vdd-cpu: Fixed regulator specified with variable voltages
[    1.266259] reg-fixed-voltage: probe of vdd-cpu failed with error -22
[    1.266784] mc: Linux media interface: v0.10
[    1.266857] videodev: Linux video capture interface: v2.00
[    1.266893] pps_core: LinuxPPS API ver. 1 registered
[    1.266898] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.266915] PTP clock support registered
[    1.267297] printk: console [ttyFIQ0] printing thread started
[    1.268312] Advanced Linux Sound Architecture Driver Initialized.
[    1.269047] rockchip-cpuinfo cpuinfo: SoC            : 35060000
[    1.269064] rockchip-cpuinfo cpuinfo: Serial         : 7332a0ce2f890188
[    1.270044] clocksource: Switched to clocksource arch_sys_counter
[    1.272189] NET: Registered PF_INET protocol family
[    1.272394] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.273257] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.273287] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.273305] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.273324] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.273358] TCP: Hash tables configured (established 1024 bind 1024)
[    1.273668] UDP hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.273699] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes, linear)
[    1.273893] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.275603] rockchip-thermal ff650000.tsadc: tsadc is probed successfully!
[    1.276687] Initialise system trusted keyrings
[    1.277294] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    1.282345] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.282777] Key type asymmetric registered
[    1.282788] Asymmetric key parser 'x509' registered
[    1.282886] io scheduler mq-deadline registered
[    1.282894] io scheduler kyber registered
[    1.283114] io scheduler bfq registered
[    1.285687] pwm-backlight backlight: supply power not found, using dummy regulator
[    1.290785] dma-pl330 ff000000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.290802] dma-pl330 ff000000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[    1.292584] dma-pl330 ff008000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.292599] dma-pl330 ff008000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.292834] rockchip-system-monitor rockchip-system-monitor: system monitor probe
[    1.293629] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.295697] dw-mipi-dsi-rockchip ff640000.dsi: Fixed dependency cycle(s) with /dsi@ff640000/panel@0
[    1.295797] mipi-dsi ff640000.dsi.0: Fixed dependency cycle(s) with /dsi@ff640000
E/TC:0   plat_shm_get_page_num:373 plat_shm_get_page_num: type 6 alloc is not supported
[    1.298942] rockchip-drm display-subsystem: bound ff600000.vop (ops 0xb05b8ad4)
[    1.298983] dw-mipi-dsi-rockchip ff640000.dsi: failed to find panel or bridge: -517
[    1.300443] no ATF memory for init
[    1.301038] panel-simple-dsi ff640000.dsi.0: Expected bpc in {6,8} but got: 0
[    1.302735] rockchip-spi ff130000.spi: no high_speed pinctrl state
[    1.304167] rockchip-spi ff130000.spi: register misc device rkspi-dev1
[    1.304181] rockchip-spi ff130000.spi: probed, poll=0, rsd=0, cs-inactive=0, ready=0
[    1.305715] spi-nand spi2.0: Winbond SPI NAND was found.
[    1.305729] spi-nand spi2.0: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    1.307341] 4 cmdlinepart partitions found on MTD device spi-nand0
[    1.307357] Creating 4 MTD partitions on "spi-nand0":
[    1.307366] 0x000000400000-0x000000800000 : "uboot"
[    1.309755] 0x000000800000-0x000001400000 : "boot"
[    1.312260] 0x000002000000-0x00000c000000 : "rootfs"
[    1.315333] 0x00000c000000-0x00000ff60000 : "lbdata"
[    1.318339] CAN device driver interface
[    1.319061] rk3576_canfd ff320000.can: Failed to request rxchan
[    1.319571] rk3576_canfd ff320000.can: CAN info: use_dma = 0, rx_max_data = 4, fifo_depth = 64
[    1.320297] rk3576_canfd ff330000.can: Failed to request rxchan
[    1.320887] rk3576_canfd ff330000.can: CAN info: use_dma = 0, rx_max_data = 4, fifo_depth = 64
[    1.321030] PPP generic driver version 2.4.2
[    1.321961] i2c_dev: i2c /dev entries driver
[    1.322939] goodix_ts_probe() start
[    1.322964] Goodix-TS 2-005d: supply tp not found, using dummy regulator
[    1.346739] invalid GPIO -2
[    1.346750] invalid GPIO -2
[    1.346753] invalid GPIO -2
[    1.346757] invalid GPIO -2
[    1.346760] invalid GPIO -2
[    1.373383] invalid GPIO -2
[    1.383391] invalid GPIO -2
[    1.396711] invalid GPIO -2
[    1.396717] invalid GPIO -2
[    1.453377] invalid GPIO -2
[    1.470769] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.470779] invalid GPIO -2
[    1.486713] invalid GPIO -2
I/TC: ddr_plat_smc_handler: default
I/TC: ddr_plat_smc_handler: unhandled DDR SMC id(0x13)
[    1.496714] invalid GPIO -2
[    1.510045] invalid GPIO -2
[    1.510050] invalid GPIO -2
[    1.566709] invalid GPIO -2
[    1.567423] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.567431] invalid GPIO -2
[    1.583378] invalid GPIO -2
[    1.593379] invalid GPIO -2
[    1.606709] invalid GPIO -2
[    1.606715] invalid GPIO -2
[    1.663376] invalid GPIO -2
[    1.664084] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.664092] invalid GPIO -2
[    1.680043] invalid GPIO -2
[    1.690042] invalid GPIO -2
[    1.703377] invalid GPIO -2
[    1.703383] invalid GPIO -2
[    1.760042] invalid GPIO -2
[    1.760751] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.760759] invalid GPIO -2
[    1.777615] invalid GPIO -2
[    1.786719] invalid GPIO -2
[    1.800049] invalid GPIO -2
[    1.800056] invalid GPIO -2
[    1.856710] invalid GPIO -2
[    1.857435] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.857444] invalid GPIO -2
[    1.873378] invalid GPIO -2
[    1.883376] invalid GPIO -2
[    1.896708] invalid GPIO -2
[    1.896714] invalid GPIO -2
[    1.953381] invalid GPIO -2
[    1.954096] <<-GTP-ERROR->> I2C Read: 0x8000, 10 bytes failed, errcode: -6! Process reset.
[    1.954105] invalid GPIO -2
[    1.970044] invalid GPIO -2
[    1.980043] invalid GPIO -2
[    1.993377] invalid GPIO -2
[    1.993382] invalid GPIO -2
[    2.050043] invalid GPIO -2
[    2.050048] <<-GTP-ERROR->> I2C read 0x8000, 10 bytes, double check failed!
[    2.050053] <<-GTP-ERROR->> Failed to get chip-type, set chip type default: GOODIX_GT9
[    2.050761] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -6! Process reset.
[    2.050768] invalid GPIO -2
[    2.066712] invalid GPIO -2
[    2.076710] invalid GPIO -2
[    2.090043] invalid GPIO -2
[    2.090047] invalid GPIO -2
[    2.146710] invalid GPIO -2
[    2.146716] <<-GTP-ERROR->> GTP i2c test failed time 1.
[    2.164091] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -6! Process reset.
[    2.164100] invalid GPIO -2
[    2.180046] invalid GPIO -2
[    2.190042] invalid GPIO -2
[    2.203376] invalid GPIO -2
[    2.203382] invalid GPIO -2
[    2.260042] invalid GPIO -2
[    2.260047] <<-GTP-ERROR->> GTP i2c test failed time 2.
[    2.277426] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -6! Process reset.
[    2.277434] invalid GPIO -2
[    2.293378] invalid GPIO -2
[    2.303377] invalid GPIO -2
[    2.316710] invalid GPIO -2
[    2.316716] invalid GPIO -2
[    2.373376] invalid GPIO -2
[    2.373381] <<-GTP-ERROR->> GTP i2c test failed time 3.
[    2.390761] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -6! Process reset.
[    2.390770] invalid GPIO -2
[    2.406710] invalid GPIO -2
[    2.416709] invalid GPIO -2
[    2.430043] invalid GPIO -2
[    2.430048] invalid GPIO -2
[    2.486708] invalid GPIO -2
[    2.486713] <<-GTP-ERROR->> GTP i2c test failed time 4.
[    2.504089] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -6! Process reset.
[    2.504097] invalid GPIO -2
[    2.520044] invalid GPIO -2
[    2.530043] invalid GPIO -2
[    2.543375] invalid GPIO -2
[    2.543380] invalid GPIO -2
[    2.600065] invalid GPIO -2
[    2.600071] <<-GTP-ERROR->> GTP i2c test failed time 5.
[    2.616711] <goodix_ts_probe>_2786    I2C communication ERROR!
[    2.616719]    <goodix_ts_probe>_2863  prob error !!!!!!!!!!!!!!!
[    2.616723] invalid GPIO -2
[    2.616727] invalid GPIO -2
[    2.618134] cpu cpu0: bin=0
[    2.618200] cpu cpu0: leakage=0
[    2.618238] cpu cpu0: Failed to get reg
[    2.618333] cpu cpu0: failed to set opp config
[    2.618340] cpu cpu0: failed to init opp info
[    2.618344] Failed to initialize dvfs info cpu0
[    2.618653] Synopsys Designware Multimedia Card Interface Driver
[    2.620637] dwmmc_rockchip ff480000.mmc: No normal pinctrl state
[    2.620653] dwmmc_rockchip ff480000.mmc: No idle pinctrl state
[    2.620994] dwmmc_rockchip ff480000.mmc: IDMAC supports 32-bit address mode.
[    2.621024] dwmmc_rockchip ff480000.mmc: Using internal DMA controller.
[    2.621033] dwmmc_rockchip ff480000.mmc: Version ID is 270a
[    2.621088] dwmmc_rockchip ff480000.mmc: DW MMC controller at irq 48,32 bit host data width,256 deep fifo
[    2.621499] dwmmc_rockchip ff480000.mmc: Got CD GPIO
[    2.626505] NET: Registered PF_PACKET protocol family
[    2.626558] can: controller area network core
[    2.626690] NET: Registered PF_CAN protocol family
[    2.626815] can: raw protocol
[    2.626828] can: broadcast manager protocol
[    2.626842] can: netlink gateway - max_hops=1
[    2.627201] Registering SWP/SWPB emulation handler
[    2.627566] Loading compiled-in X.509 certificates
[    2.633438] rga2 ff610000.rga: probe successfully, irq = 50, hw_version:3.a.07135
[    2.633615] rga: IOMMU binding successfully, default mapping core[0x4]
[    2.633747] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    2.634015] rga: Module initialized. v1.3.6
[    2.654453] rockchip-drm display-subsystem: bound ff600000.vop (ops 0xb05b8ad4)
[    2.654535] rockchip-drm display-subsystem: bound ff640000.dsi (ops 0xb05ba064)
[    2.655702] [drm] Initialized rockchip 4.0.0 20140818 for display-subsystem on minor 0
[    2.667779] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    2.668091] rockchip-drm display-subsystem: [drm] run display error_event monitor
[    2.668351] adc_keys adc-keys: keymap is missing
[    2.668361] adc_keys: probe of adc-keys failed with error -22
[    2.668759] ubi0: attaching mtd2
[    2.708291] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    2.708372] mmc0: new high speed SDHC card at address aaaa
[    2.709059] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
[    2.711801]  mmcblk0: p1
[    2.987342] ubi0: scanning is finished
[    2.992467] ubi0: attached mtd2 (name "rootfs", size 160 MiB)
[    2.992488] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.992495] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.992501] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.992507] ubi0: good PEBs: 1280, bad PEBs: 0, corrupted PEBs: 0
[    2.992513] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.992519] ubi0: max/mean erase counter: 1/0, WL threshod: 4096, image sequence number: 1628562287
[    2.992527] ubi0: available PEBs: 0, total reserved PEBs: 1280, PEBs reserved for bad PEB handling: 40
[    2.994177] block ubiblock0_0: created from ubi0:0(rootfs)
[    2.994796] clk: Disabling unused clocks
[    2.995355] rockchip-pm rockchip-suspend: not set pwm-regulator-config
[    2.995569] rockchip-suspend not set sleep-mode-config for mem-lite
[    2.995577] rockchip-suspend not set wakeup-config for mem-lite
[    2.995584] rockchip-suspend not set sleep-mode-config for mem-ultra
[    2.995589] rockchip-suspend not set wakeup-config for mem-ultra
[    2.996151] ALSA device list:
[    2.996160]   No soundcards found.
[    2.996686] ubi0: background thread "ubi_bgt0d" started, PID 79
[    2.997128] List of all partitions:
[    2.997144] 1f00            4096 mtdblock0 
[    2.997151]  (driver?)
[    2.997156] 1f01           12288 mtdblock1 
[    2.997162]  (driver?)
[    2.997166] 1f02          163840 mtdblock2 
[    2.997171]  (driver?)
[    2.997176] 1f03           64896 mtdblock3 
[    2.997180]  (driver?)
[    2.997185] b300        31166976 mmcblk0 
[    2.997190]  driver: mmcblk
[    2.997194]   b301        31162880 mmcblk0p1 3ef045a0-01
[    2.997200] 
[    2.997206] fe00          153264 ubiblock0_0 
[    2.997210]  (driver?)
[    2.997213] No filesystem could mount root, tried: 
[    2.997215]  squashfs
[    2.997218] 
[    2.997222] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,0)
[    2.997233] CPU1: stopping
[    2.997243] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.1.99-rt36 #1
[    2.997251] Hardware name: Generic DT based system
[    2.997263]  unwind_backtrace from show_stack+0xb/0xc
[    2.997284]  show_stack from dump_stack_lvl+0x2b/0x34
[    2.997303]  dump_stack_lvl from do_handle_IPI+0x49/0xb8
[    2.997319]  do_handle_IPI from ipi_handler+0xd/0x14
[    2.997331]  ipi_handler from handle_percpu_devid_irq+0x2b/0x90
[    2.997346]  handle_percpu_devid_irq from handle_irq_desc+0xf/0x18
[    2.997361]  handle_irq_desc from gic_handle_irq+0x43/0x50
[    2.997376]  gic_handle_irq from generic_handle_arch_irq+0x19/0x2c
[    2.997396]  generic_handle_arch_irq from call_with_stack+0xd/0x10
[    2.997415] CPU2: stopping
[    2.997423] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.1.99-rt36 #1
[    2.997432] Hardware name: Generic DT based system
[    2.997438]  unwind_backtrace from show_stack+0xb/0xc
[    2.997453]  show_stack from dump_stack_lvl+0x2b/0x34
[    2.997468]  dump_stack_lvl from do_handle_IPI+0x49/0xb8
[    2.997484]  do_handle_IPI from ipi_handler+0xd/0x14
[    2.997496]  ipi_handler from handle_percpu_devid_irq+0x2b/0x90
[    2.997508]  handle_percpu_devid_irq from handle_irq_desc+0xf/0x18
[    2.997522]  handle_irq_desc from gic_handle_irq+0x43/0x50
[    2.997536]  gic_handle_irq from generic_handle_arch_irq+0x19/0x2c
[    2.997553]  generic_handle_arch_irq from call_with_stack+0xd/0x10
[    2.997572] CRU:
[    3.020697] 00000000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.021461] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.022223] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.022984] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.023745] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.024506] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.025266] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.026028] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.026789] 00000100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.027550] 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.028312] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.029073] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.029835] 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.030596] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.031357] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.032119] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.032879] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.033639] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.034401] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.035163] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.035924] 00000280: 00000005 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.036686] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.037447] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.038208] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.038970] 00000300: 000005c0 00000b67 00000229 00002a00 00000055 0008007d 00200177 00c00c35
[    3.039733] 00000320: 00000000 03723d09 00000000 00800c35 00070064 01290c80 00000000 00000583
[    3.040496] 00000340: 00000009 00000000 00002185 000013a7 00000000 00001000 00000001 00000000
[    3.041257] 00000360: 00000000 00000000 00000000 00000000 00000000 00000001 00000000 00000000
[    3.042019] 00000380: 00000410 00000050 00004100 00000900 00000024 00000020 0000041f 00004620
[    3.042781] 000003a0: 00000100 00000100 000011a3 00000000 00000000 00000000 00001111 00000000
[    3.043543] 000003c0: 00000000 00002720 00000eb2 00000100 00000100 00000101 0000000f 0000000f
[    3.044306] 000003e0: 00000000 00000000 000000a3 00000003 00000115 00000117 00000000 00000000
[    3.045067] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.045829] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.046591] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.047353] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.048113] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.048875] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.049635] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.050397] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.051159] 00000500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.051920] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.052682] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.053444] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.054205] 00000580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.054967] 000005a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.055728] 000005c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.056491] 000005e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.057252] 00000600: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.058013] 00000620: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.058773] 00000640: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.059535] 00000660: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.060297] 00000680: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.061058] 000006a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.061819] 000006c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.062580] 000006e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.063342] 00000700: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.064104] 00000720: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.064866] 00000740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.065627] 00000760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.066389] 00000780: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.067151] 000007a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.067912] 000007c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.068675] 000007e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.069437] 00000800: 0000ef10 0000001f 00000000 00000200 00001ff7 0000f700 0000fffd 00000fe0
[    3.070199] 00000820: 00000004 00000000 00000000 0000fde0 00000fff 0000ff00 000001ff 00000000
[    3.070961] 00000840: 000000ff 0000fcc0 0000ffff 000000d8 00000001 000001c0 00000000 00000000
[    3.071724] 00000860: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.072485] 00000880: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.073247] 000008a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.074008] 000008c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.074769] 000008e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.075531] 00000900: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.076292] 00000920: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.077054] 00000940: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.077816] 00000960: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.078577] 00000980: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.079339] 000009a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.080100] 000009c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.080861] 000009e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.081623] 00000a00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.082384] 00000a20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.083145] 00000a40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.083905] 00000a60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.084666] 00000a80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.085427] 00000aa0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.086187] 00000ac0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.086950] 00000ae0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.087711] 00000b00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.088473] 00000b20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.089236] 00000b40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.089998] 00000b60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.090759] 00000b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.091521] 00000ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.092282] 00000bc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.093044] 00000be0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.093806] 00000c00: 00000064 00000001 00000000 00000000 000018c0 00000000 00000000 00000000
[    3.094565] 00000c20: 00000000 00000000 00000000 00000000
[    3.095048] PMU CRU:
[    3.095257] 00000000: 0000207d 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[    3.096018] 00000020: 00001031 00000441 0026e979 00000007 00007f00 00000000 00000000 00000000
[    3.096781] 00000040: 0000204b 00002041 00439581 00000007 00007f00 00000000 00000000 00000000
[    3.097542] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.098303] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.099066] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.099828] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.100587] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.101347] 00000100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.102107] 00000120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.102867] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.103629] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.104390] 00000180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.105153] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.105914] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.106676] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.107436] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.108198] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.108958] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.109720] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.110482] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.111244] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.112005] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.112766] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.113528] 00000300: 00007c00 00000303 0040b71b 00000530 00001040 00000000 00000000 00000000
[    3.114290] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.115052] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.115814] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.116574] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.117334] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.118094] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.118855] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.119616] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.120378] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.121139] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.121900] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.122662] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.123424] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.124186] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.124946] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.125708] 00000500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.126468] 00000520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.127229] 00000540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.127991] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.128752] 00000580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.129513] 000005a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.130274] 000005c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.131035] 000005e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.131796] 00000600: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.132559] 00000620: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.133318] 00000640: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.134078] 00000660: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.134839] 00000680: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.135600] 000006a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.136360] 000006c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.137121] 000006e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.137884] 00000700: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.138645] 00000720: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.139407] 00000740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.140168] 00000760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.140930] 00000780: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.141691] 000007a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.142452] 000007c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.143214] 000007e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.143976] 00000800: 00008c00 0000403e 00000001 00000000 00000000 00000000 00000000 00000000
[    3.144739] 00000820: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.145501] 00000840: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.146263] 00000860: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.147024] 00000880: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.147785] 000008a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.148547] 000008c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.149308] 000008e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.150069] 00000900: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.150830] 00000920: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.151591] 00000940: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.152350] 00000960: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.153112] 00000980: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.153873] 000009a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.154635] 000009c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.155396] 000009e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.156154] 00000a00: 00000000 00000000
[    3.156500] CPU0 online:1
[    3.156748]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.157277]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.157801]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.158324]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.158848]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.159371]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.159894]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.160417]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.160941]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.161464]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.161988]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.162512]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.163036]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.163560]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.164083]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.164607]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.165130]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.165653]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.166178]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.166700]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.167223]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.167745]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.168268]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.168790]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.169312]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.169834]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.170357]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.170879]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.171402]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.171926]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.172448]  PC: <0xb02f34fa> rockchip_panic_notify+0x82/0xf4
[    3.172971]  PC: <0xb02f34fc> rockchip_panic_notify+0x84/0xf4
[    3.173494] 
[    3.173632] CPU1 online:0
[    3.173879]  PC: <0xb010f8de> do_handle_IPI+0x5a/0xb8
[    3.174383] 
[    3.174523] CPU2 online:0
[    3.174770]  PC: <0xb010f8de> do_handle_IPI+0x5a/0xb8
[    3.175272] 
[    3.175417]            CPU0       CPU1       CPU2       
[    3.175903]  27:       5600         20         18         -  27 Level     arch_timer
[    3.176597]  29:          0          0          0         -  32 Level     (null)
[    3.177257]  30:          0          0          0         -  36 Level     (null)
[    3.177918]  31:          0          0          0         -  40 Level     (null)
[    3.178578]  32:          0          0          0         -  44 Level     (null)
[    3.179238]  33:          0          0          0         -  48 Level     (null)
[    3.179898]  34:          0          0          0         - 147 Edge      debug-signal
[    3.180602]  35:          0          0          0         -  66 Level     debug
[    3.181252]  36:          0          0          0         -  90 Level     rockchip_thermal
[    3.181989]  37:          0          0          0         -  56 Level     rk_pwm_irq
[    3.182683]  38:          0          0          0         - 148 Level     ff000000.dma-controller
[    3.183473]  39:          0          0          0         - 149 Level     ff000000.dma-controller
[    3.184265]  40:          0          0          0         - 150 Level     ff008000.dma-controller
[    3.185054]  41:          0          0          0         - 151 Level     ff008000.dma-controller
[    3.185844]  42:         20          0          0         -  91 Level     ff600000.vop
[    3.186548]  43:          0          0          0         -  76 Level     ff130000.spi
[    3.187251]  44:       2592          0          0         - 117 Level     ff488000.spi
[    3.187956]  45:          0          0          0         -  77 Level     can0
[    3.188605]  46:          0          0          0         -  78 Level     can1
[    3.189254]  47:         55          0          0         -  74 Level     ff060000.i2c
[    3.189958]  48:         36          0          0         - 118 Level     dw-mci
[    3.190619]  49:          0          0          0         -  89 Level     ff4e8000.adc
[    3.191323]  50:          0          0          0         -  93 Level     rga2
[    3.191972]  51:          0          0          0  rockchip_gpio_irq  14 Edge      ff480000.mmc cd
[    4.192886]            CPU0       CPU1       CPU2       
[    4.193367]  27:       5600         20         18         -  27 Level     arch_timer
[    4.194060]  29:          0          0          0         -  32 Level     (null)
[    4.194719]  30:          0          0          0         -  36 Level     (null)
[    4.195378]  31:          0          0          0         -  40 Level     (null)
[    4.196037]  32:          0          0          0         -  44 Level     (null)
[    4.196697]  33:          0          0          0         -  48 Level     (null)
[    4.197357]  34:          0          0          0         - 147 Edge      debug-signal
[    4.198061]  35:          0          0          0         -  66 Level     debug
[    4.198711]  36:          0          0          0         -  90 Level     rockchip_thermal
[    4.199446]  37:          0          0          0         -  56 Level     rk_pwm_irq
[    4.200138]  38:          0          0          0         - 148 Level     ff000000.dma-controller
[    4.200928]  39:          0          0          0         - 149 Level     ff000000.dma-controller
[    4.201718]  40:          0          0          0         - 150 Level     ff008000.dma-controller
[    4.202508]  41:          0          0          0         - 151 Level     ff008000.dma-controller
[    4.203298]  42:         20          0          0         -  91 Level     ff600000.vop
[    4.204002]  43:          0          0          0         -  76 Level     ff130000.spi
[    4.204705]  44:       2592          0          0         - 117 Level     ff488000.spi
[    4.205409]  45:          0          0          0         -  77 Level     can0
[    4.206058]  46:          0          0          0         -  78 Level     can1
[    4.206706]  47:         55          0          0         -  74 Level     ff060000.i2c
[    4.207409]  48:         36          0          0         - 118 Level     dw-mci
[    4.208068]  49:          0          0          0         -  89 Level     ff4e8000.adc
[    4.208772]  50:          0          0          0         -  93 Level     rga2
[    4.209420]  51:          0          0          0  rockchip_gpio_irq  14 Edge      ff480000.mmc cd
[    4.210210] rockchip-thermal ff650000.tsadc: channal 0: temperature(26 C)
[    4.210817] THERMAL REGS:
[    4.211069] 00000000: 00000100 00000003 00000004 00000001 00000000 00000001 00000000 00000001
[    4.211831] 00000020: 00000000 00000000 00000000 000001fb 00000000 00000000 00000000 00000000
[    4.212591] 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.213353] 00000060: 00000000 00000000 00000000 0000028f 00000000 00000000 00000000 00000000
[    4.214111] 00000080: 00000000 00000000
[    4.214469] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,0) ]---

下面的是我根据你的提示配置
1. ./build.sh buildroot-config

Code: Select all

                      [*] ubi image containing an ubifs/squashfs root filesystem                                                                      │ │
  │ │                                                                UBI root filesystem (squashfs)  --->                                                                                      │ │
  │ │                                                          [*]   squashfs use static vol type                                                                                              │ │
  │ │                                                          (0x800) minimum I/O unit size                                                                                                   │ │
  │ │                                                          (0x20000) physical eraseblock size                                                                                              │ │
  │ │                                                          (512) sub-page size                                                                                                             │ │
  │ │                                                          [ ]   Use custom config file                                                                                                    │ │
  │ │                                                          ()    Additional ubinize options                                                                                                │ │
  │ │                                                          [ ] ubifs root filesystem                                                                                                       │ │
  │ │                                                          [ ] yaffs2 root filesystem


2.vim buildroot/configs/rockchip_rk3506_luckfox_defconfi

Code: Select all


#include "fs/vfat.config"
#include "multimedia/audio.config"
#include "lvgl/lvgl_rkadk.config"
BR2_PACKAGE_CAN_UTILS=y
BR2_PACKAGE_COLLECTD=y

 BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_TARGET_GENERIC_ROOT_PASSWD="luckfox"
BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD=y
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_ROOTFS_UBI_SQUASHFS=y
BR2_TARGET_SERIAL_SHELL_GETTY=y
                                 

3. ./build.sh config

Code: Select all

filesystem type (squashfs)  ---> 
4.vim ./kernel-6.1/arch/arm/boot/dts/rk3506g-luckfox-lyra-plus.dts

Code: Select all

                 bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=2 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 isolcpus=1,2 nohz_full=1,2 noirqbalance";

我不知道哪里出了问题,希望能得到你的帮助,期待你的回复

Re: 求助,如何设置为只读文件系统呢?

Posted: 2025-02-19 14:38
by shenqidpanzi
下面是我的编译打包信息,我不知道为什么会提示根文件挂载不上去

rootfs.img(/home/libiao/RK3506G2/buildroot/output/rockchip_rk3506_luckfox/images/rootfs.squashfs): 87M

Code: Select all


==========================================
          Start packing firmwares
==========================================
Linking /home/libiao/RK3506G2/output/firmware/parameter.txt from /home/libiao/RK3506G2/device/rockchip/.chip/parameter-lyra-spinand.txt...
Running mk-extra-parts.sh - build_extra_part succeeded.
Packed files:
MiniLoaderAll.bin(/home/libiao/RK3506G2/u-boot/rk3506_spl_loader_v1.04.110.bin): 263K
boot.img(/home/libiao/RK3506G2/kernel-6.1/zboot.img): 5.8M
parameter.txt(/home/libiao/RK3506G2/device/rockchip/.chips/rk3506/parameter-lyra-spinand.txt): 363
rootfs.img(/home/libiao/RK3506G2/buildroot/output/rockchip_rk3506_luckfox/images/rootfs.squashfs): 87M
uboot.img(/home/libiao/RK3506G2/u-boot/uboot.img): 4.0M
Making update image...
==========================================
          Start packing update image
==========================================
Generating package-file for update:
# NAME  PATH
package-file    package-file
parameter       parameter.txt
bootloader      MiniLoaderAll.bin
uboot   uboot.img
boot    boot.img
rootfs  rootfs.img
Packing /home/libiao/RK3506G2/output/firmware/update.img for update...
Android Firmware Package Tool v2.27
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0x8b,userspace=0x1
Add file: ./parameter.txt
parameter,Add file: ./parameter.txt done,offset=0x1000,size=0x177,userspace=0x1,flash_address=0x00000000
Add file: ./MiniLoaderAll.bin
bootloader,Add file: ./MiniLoaderAll.bin done,offset=0x1800,size=0x419c0,userspace=0x84
Add file: ./uboot.img
uboot,Add file: ./uboot.img done,offset=0x43800,size=0x400000,userspace=0x800,flash_address=0x00002000
Add file: ./boot.img
boot,Add file: ./boot.img done,offset=0x443800,size=0x5b3800,userspace=0xb67,flash_address=0x00004000
Add file: ./rootfs.img
rootfs,Add file: ./rootfs.img done,offset=0x9f7000,size=0x562c000,userspace=0xac58,flash_address=0x00010000
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.23********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!

Re: 求助,如何设置为只读文件系统呢?

Posted: 2025-02-20 5:11
by shenqidpanzi
只读文件的问题我解决了,只要第三步不修改就好,
但是我却遇到了启动的问题,如果接入电脑usb口,那么系统会一直的不停重启,如果接入电源适配器就没有问题,
因为我想就电脑这样192.168.123.100这个usb网口就能使用起来,不知道改如何解决
1.启动失败的日志

Code: Select all

Running sysctl: OK
[   10.422819] rk_gmac-dwmac ff4d0000.ethernet: IRQ eth_lpi not found
[   10.423034] rk_gmac-dwmac ff4d0000.ethernet: supply phy not found, using dummy regulator
[   10.423215] rk_gmac-dwmac ff4d0000.ethernet: clock input or output? (output).
[   10.423228] rk_gmac-dwmac ff4d0000.ethernet: Can not read property: tx_delay.
[   10.423233] rk_gmac-dwmac ff4d0000.ethernet: set tx_delay to 0xffffffff
[   10.423240] rk_gmac-dwmac ff4d0000.ethernet: Can not read property: rx_delay.
[   10.423245] rk_gmac-dwmac ff4d0000.ethernet: set rx_delay to 0xffffffff
[   10.423259] rk_gmac-dwmac ff4d0000.ethernet: integrated PHY? (no).
[   10.423270] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock mac_clk_rx
[   10.423279] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock mac_clk_tx
[   10.423304] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_ref
[   10.423312] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_refout
[   10.423321] rk_gmac-dwmac ff4d0000.ethernet: cannot get clock clk_mac_speed
[   10.423570] rk_gmac-dwmac ff4d0000.ethernet: init for RMII
[   10.423779] rk_gmac-dwmac ff4d0000.ethernet: User ID: 0x40, Synopsys ID: 0x51
[   10.423799] rk_gmac-dwmac ff4d0000.ethernet:         DWMAC4/5
[   10.423807] rk_gmac-dwmac ff4d0000.ethernet: DMA HW capability register supported
[   10.423813] rk_gmac-dwmac ff4d0000.ethernet: RX Checksum Offload Engine supported
[   10.423818] rk_gmac-dwmac ff4d0000.ethernet: TX Checksum insertion supported
[   10.423823] rk_gmac-dwmac ff4d0000.ethernet: Wake-Up On Lan supported
[   10.423900] rk_gmac-dwmac ff4d0000.ethernet: TSO supported
[   10.423908] rk_gmac-dwmac ff4d0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[   10.423918] rk_gmac-dwmac ff4d0000.ethernet: Enabled RFS Flow TC (entries=10)
[   10.423925] rk_gmac-dwmac ff4d0000.ethernet: TSO feature enabled
[   10.423932] rk_gmac-dwmac ff4d0000.ethernet: Using 40/40 bits DMA host/device width
modprobe: module aic8800_fdrv.ko not found in modules.dep
modprobe: module aic_load_fw.ko not found in modules.dep
[   10.851826] rockchip-usb2phy ff2b0000.usb2-phy: error -ENXIO: IRQ index 0 not found
[   10.906520] SCSI subsystem initialized
[   10.988868] usbcore: registered new interface driver usbfs
[   10.988920] usbcore: registered new interface driver hub
[   10.989505] usbcore: registered new device driver usb
[   11.030949] dwc2 ff740000.usb: supply vusb_d not found, using dummy regulator
[   11.031113] dwc2 ff740000.usb: supply vusb_a not found, using dummy regulator
[   11.034905] dwc2 ff740000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[   11.036081] dwc2 ff780000.usb: supply vusb_d not found, using dummy regulator
[   11.036248] dwc2 ff780000.usb: supply vusb_a not found, using dummy regulator
[   11.051213] dwc2 ff780000.usb: DWC OTG Controller
[   11.051246] dwc2 ff780000.usb: new USB bus registered, assigned bus number 1
[   11.051286] dwc2 ff780000.usb: irq 59, io mem 0xff780000
[   11.052054] hub 1-0:1.0: USB hub found
[   11.052101] hub 1-0:1.0: 1 port detected
[   11.208803] usbcore: registered new interface driver usb-storage
[   11.322228] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   11.337219] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   11.338501] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[   11.341059] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   11.341083] cfg80211: failed to load regulatory.db
Populating /dev using udev: [   11.566498] udevd[275]: starting version 3.2.14
[   11.637051] udevd[276]: starting eudev-3.2.14
[   12.112520] mtdblock: MTD device 'uboot' is NAND, please consider using UBI block devices instead.
[   12.119180] mtdblock: MTD device 'boot' is NAND, please consider using UBI block devices instead.
[   12.125505] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   12.141173] mtdblock: MTD device 'lbdata' is NAND, please consider using UBI block devices instead.
[   12.746140] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
done
DDR 0ac6b06a19 typ 24/11/13-17:22:48,fwver: v1.04
tREFI:4x, sr_idle:93, pd_idle:13
PHY drv:clk:60,ca:160,DQ:80,odt:480
vrefinner:50%, vrefout:50%
dram drv:40,odt:0
sr_dq:0, sr_ca:0, sr_clk:0
rg:0x22-0x0-0x2, 0x19-0x0-0x2,status:a007
rdtrn:0xf-0x29-0x44(0x35)
wrtrn:0x9-0x2a-0x4b(0x42)
DDR3, 750MHz
BW=16 Col=10 Bk=8 CS0 Row=13 CS=1 Size=128MB
out
U-Boot SPL board init
U-Boot SPL 2017.09-g2b36fa3-dirty #libiao (Feb 20 2025 - 10:09:36)
sfc cmd=03H(6BH-x4)
SPI Nand ID ef aa 22
unrecognized JEDEC id bytes: ff, ef, aa
Trying to boot from MTD1
No misc partition
Trying fit image at 0x2000 sector
## Verified-boot: 0
## Checking optee 0x00001000 ... sha256(690eb8a14d...) + OK
## Checking uboot 0x00200000 ... sha256(0cd237fada...) + OK
## Checking fdt 0x002a1640 ... sha256(94765d3778...) + OK
Jumping to U-Boot(0x00200000) via OP-TEE(0x00001000)
Total: 60.94/103.849 ms

I/TC: 
I/TC: Status: cluster=0xc00, core=0xe100, bootcpu=0
I/TC: Next entry point address: 0x00200000
I/TC: OP-TEE version: 3.13.0-894-g0e7e5b3c7ff #chenjh (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 Tue Nov 12 09:21:23 CST 2024 arm, fwver: v1.25 
I/TC: OP-TEE memory: TEEOS 0x5e000 TA 0x1000 SHM 0x1000
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot


U-Boot 2017.09-g2b36fa3-dirty #libiao (Feb 20 2025 - 10:09:36 +0800)

Model: Luckfox Lyra
MPIDR: 0xf00
PreSerial: 0, raw, 0xff0a0000
DRAM:  128 MiB
Sysmem: init
Relocation Offset: 054f2000
Relocation fdt: 044fb430 - 044fedf0
CR: M/C/I
Using default environment

DM: v2
SPI Nand ID ef aa 22
Bootdev(atags): mtd 1
PartType: EFI
No misc partition
boot mode: None
RESC: 'boot', blk@0x00006288
resource: sha256+
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
Could not find baseparameter partition
Model: Luckfox Lyra Plus
rockchip_set_ethaddr: vendor_storage_write failed -5
Rockchip UBOOT DRM driver version: v1.0.1
Using display timing dts
dsi@ff640000:  detailed mode clock 70000 kHz, flags[a]
    H: 0800 0840 0860 0880
    V: 1280 1310 1314 1324
bus_format: 100e
VOP:0xff600000 update mode to: 800x1280p60, type: MIPI0
VOP:0xff600000 set crtc_clock to 70000KHz, get 68181818Hz
Unsupported bt709f at 10bit csc depth, use bt601f instead
VOP:0xff600000 set plane [654x270->654x270@73x505] fmt[0] addr[0x5900000]
final DSI-Link bandwidth: 933 Mbps x 2
CLK: (arm clk use pvtpll, rate = 1200M)
  gpll 1500000 KHz
  v0pll 1179648 KHz
  v1pll 903168 KHz
  clk_gpll_div 187500 KHz
  clk_gpll_div_100m 93750 KHz
  clk_v0pll_div 147456 KHz
  clk_v1pll_div 129024 KHz
  aclk_bus_root 187500 KHz
  hclk_bus_root 147456 KHz
  pclk_bus_root 93750 KHz
  aclk_hsperi_root 147456 KHz
  hclk_ksperi_root 93750 KHz
Net:   eth1: ethernet@ff4d0000
Hit key to stop autoboot('CTRL+C'):  0 
## Booting FIT Image at 0x3ea7400 with size 0x00451000
Fdt Ramdisk skip relocation
No misc partition
## Loading kernel from FIT Image at 03ea7400 ...
   Using 'conf' configuration
## Verified-boot: 0
   Trying 'kernel' kernel subimage
     Description:  unavailable
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x03eb0800
     Data Size:    4488048 Bytes = 4.3 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x01100000
     Entry Point:  0x01100000
     Hash algo:    sha256
     Hash value:   fd5130812c1a5e5dc296aecc46a256190ddd0428f107becb23968eb9814b694e
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 03ea7400 ...
   Using 'conf' configuration
   Trying 'fdt' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x03ea7c00
     Data Size:    35588 Bytes = 34.8 KiB
     Architecture: ARM
     Load Address: 0x00063000
     Hash algo:    sha256
     Hash value:   d73fc7948554b3a07714a790947e63fb49f31fcdcdf091a27443ca5fb793fb3b
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x00063000 to 0x00063000
   Booting using the fdt blob at 0x00063000
   Loading Kernel Image from 0x03eb0800 to 0x01100000 ... OK
   kernel loaded at 0x01100000, end = 0x01547b70
   Using Device Tree in place at 00063000, end 0006eb03
## reserved-memory:
  trust@0: addr=0 size=62000
  drm-logo@0: addr=5900000 size=15a000
  ramoops@83000: addr=83000 size=2d000
Adding bank: 0x00000000 - 0x08000000 (size: 0x08000000)
Total: 946.526/1058.914 ms

Starting kernel ...

[    1.140447] Booting Linux on physical CPU 0xf00
[    1.140477] Linux version 6.1.99-rt36 (libiao@libiao-OptiPlex-7000) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP PREEMPT Wed Feb 19 19:45:15 CST 2025
[    1.140488] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    1.140498] CPU: div instructions available: patching division code
[    1.140504] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    1.140738] OF: fdt: Machine model: Luckfox Lyra Plus
[    1.142408] earlycon: uart8250 at MMIO32 0xff0a0000 (options '')
[    1.148375] printk: bootconsole [uart8250] enabled
[    1.148903] Memory policy: Data cache writealloc
[    1.149536] Reserved memory: created CMA memory pool at 0x06000000, size 32 MiB
[    1.150211] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    1.151485] Zone ranges:
[    1.151743]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    1.152318] Movable zone start for each node
2.启动正常的日志

Code: Select all

[   12.135273] mtdblock: MTD device 'lbdata' is NAND, please consider using UBI block devices instead.
[   12.742672] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
done
Starting irqbalance: OK
Starting system message bus: done
Starting bluetoothd: OK
Starting network: OK
/etc/init.d/S45usbconfig: line 6: /etc/.usb_config: Read-only file system
/etc/init.d/S45usbconfig: line 7: /etc/.usb_config: Read-only file system
Starting sshd: OK
starting usbdevice service, log saved to /var/log/usbdevice.log
Starting collectd: [   14.465015] rk_gmac-dwmac ff4d0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   14.470784] rk_gmac-dwmac ff4d0000.ethernet eth0: PHY [stmmac-1:01] driver [Generic PHY] (irq=POLL)
[   14.471841] dwmac4: Master AXI performs any burst length
[   14.471870] rk_gmac-dwmac ff4d0000.ethernet eth0: No Safety Features support found
[   14.471895] rk_gmac-dwmac ff4d0000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   14.474026] rk_gmac-dwmac ff4d0000.ethernet eth0: registered PTP clock
[   14.488191] rk_gmac-dwmac ff4d0000.ethernet eth0: configuring for phy/rmii link mode
/etc/init.d/S60netdevice: line 26: /etc/.eth0_macaddr: Read-only file system
[S60netdevice] Saved current MAC address (8a:27:26:00:d7:df) to /etc/.eth0_macaddr
OK
fstrim: Starting fstrim process (434)...
Starting input-event-daemon: input-event-daemon: no listener found!
done


Re: 求助,如何设置为只读文件系统呢?

Posted: 2025-02-20 6:20
by Crocodile
系统的启动脚本会读写配置文件,设置成只读系统后就不能生效了,尝试将 /etc/init.d/S45usbconfig 和 /etc/init.d/S60netdevice 删除,默认情况下usb 应该仅开启 adb 功能,要开启 rndis 功能需要在镜像构建前添加usb配置,添加一个 .usb_config 文件到 <SDK>/buildroot/board/rockchip/rk3506/luckfox-overlay/etc/ 下,内容:

Code: Select all

usb_rndis_en
usb_adb_en
重新编译 rootfs 即可