我正在使用带有 imx_v6_v7_defconfig 的默认内核 5.10.72。我正在使用带有 ubifs 的 Nand 设备。
Nand 似乎配置正确:
3.792672] nand:找到设备,制造商 ID:0x2c,芯片 ID:0xd3
[3.799090] nand:Micron MT29F8G08ABACAH4
[3.803225] nand:1024 MiB,SLC,擦除大小:256 KiB,页面大小:4096,OOB 大小:224
[3.813 998 ] 在第 262080 页找到坏块表,版本 0x01
[ 3.820632] 在第 262016 页找到坏块表,版本 0x01
[ 3.827360] 在 MTD 设备 gpmi-nand 上找到 5 个 cmdlinepart 分区
[ 3.833665] 在“gpmi-nand”上创建 5 个 MTD 分区:
[3.838761]0x000000000000-0x000004000000:“nandboot”
[3.859429]0x000004000000-0x000005000000:“nandkernel”
[3.875295]0x000005000 000-0x000006000000:“nanddtb”
[3.890736] 0x000006000000-0x000007000000:“nandtee”
[3.906265]0x000007000000-0x000040000000:“nandrootfs”
[3.939410]gpmi-nand 112000.nand-controller:驱动程序已注册。
下面的错误日志:
[11.527727] ubi0:默认快速映射池大小:180
[11.534212] ubi0:默认快速映射 WL 池大小:90
[11.539795] ubi0:附加 mtd4
[11.559797] ------------[在此剪切]- ----------
[11.566384] 警告:CPU:0 PID:1 在 drivers/of/base.c:1361 of_phandle_iterator_args+0x64/0x7c
[11.576773] 链接的模块:
[11.581439] CPU:0 PID:1 Comm:swapper/0 未被污染 5.10.72+g06213bb0115f #19
[11.588792] 硬件名称:Freescale i.MX6 Quad/DualLite(设备树)
[11.595376] [](unwind_backtrace)来自 [ ] (show_stack+0x10/0x14)
[ 11.603165] [] (show_stack) 来自 [] (dump_stack+0xcc/0xf4)
[ 11.610434] [] (dump_stack) 来自 [] ( __警告+0xd4/0x154)
[ 11.617446] [] (__warn) 来自 [] (warn_slowpath_fmt+0x74/0xa8) [
11.624978] [] (warn_slowpath_fmt) 来自 [] (of_phandle_iterator_args+0x64/ 0x7c)
[ 11.634069 ] [] (of_phandle_iterator_args) 来自 [] (__of_parse_phandle_with_args+0xbc/0xf8) [
11.644110] [] (__of_parse_phandle_with_args) 来自 [] (of_parse_phandle_ with_args+0x28/0x38)
[ 11.654332] [ ] (of_parse_phandle_with_args) 来自 [] (of_dma_request_slave_channel+0x114/0x234)
[ 11.664724] [] (of_dma_request_slave_channel) 来自 [] (dma_request_chan+0 x30/0x28c) [ 11.674167] [
] (dma_request_chan) 来自 [] (gpmi_run
time_resume+0x98/0x108)
[ 11.682830] [] (gpmi_runtime_resume) 来自 [] (__rpm_callback+0x74/0x138) [ 11.691310] [] (__rpm_callback)
来自 [] (rpm_callback+0x 50/0x74)
[ 11.699093 ] [] (rpm_callback) 来自 [] (rpm_resume+0x618/0x858)
[ 11.706702] [] (rpm_resume) 来自 [] (__pm_runtime_resume+0x50/0x68)
[ 11.7 14745] [ ] (__pm_runtime_resume) 来自 [] (gpmi_
NFC_exec_op+0x60/0x8a0)
[ 11.723400] [] (gpmi_nfc_exec_op) 来自 [] (nand_lp_exec_read_page _op+0x1b0/0x214)
[ 11.732663] [] (nand_lp_exec_read_page_op) 来自 [] (gpmi_ecc_read_subpage+0x1e8/0x358)
[ 11.742355] [] (gpmi_ecc_read_subpage) 来自 [] (nand_read_oob+0x2e8/0x73c)
[ 11.751011] [] (nand_read_oob) 来自 [] (mtd_read_oob+0x84/0x148)
[ 11.758796] [] (mtd_read_oob) 来自 [] (mtd_read+0x 60/0x90) [
11.766061 ] [] (mtd_read) 来自 [] (ubi_io_read+0xb8/0x344)
[ 11.773324] [] (ubi_io_read) 来自 [] (ubi_io_read_ec_hdr+0x48/0x22c )
[ 11.781456] [ ] (ubi_io_read_ec_hdr) 来自 [] (scan_peb+0x68/0x830)
[ 11.789330] [] (scan_peb) 来自 [] (ubi_attach+0x144/0x338)
[ 1 1.796594] [] (ubi_attach) 来自 [] (ubi_attach_mtd_dev+0x540/0xc7c)
[ 11.804730] [] (ubi_attach_mtd_dev) 来自 [] (ubi_init+0x16c/0x234)
[ 11.812691] [] (ubi_init) 来自 [] (do_one_initcall+0x84/0x444) [
11.820303] [] (do_one_initcall) 来自 [] (kernel_init_freeable+0x1 a4/0x234)
[ 11.829044 ] [] (kernel_init_freeable) 来自 [] (kernel_init+0x8/0x118)
[ 11.837268] [] (kernel_init) 来自 [] (ret_from_fork+0x14/0x20)
[ 11.8 44871]异常stack(0xc20fdfb0 to 0xc20fdff8)
[ 11.849960] dfa0: 00000000 00000000 00000000 00000000
[ 11.858175] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 11.866388] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 11.874826] irq event stamp: 1287159
[ 11.879206] hardirqs 最后启用于 (1287187): [] _raw_spin_unlock_irq+0x20/0x58
[ 11.888495] hardirqs 最后禁用于 (1287214): [] __schedule+0x4c0/0x934 [ 11.897170]
softirqs 最后启用于 ( 1287154): [] __do_softirq+0x328/0x68c
[11.905942] softirqs 最后禁用于 (1287145): [] __irq_exit_rcu+0x16c/0x1f8
[11.914859] ---[ 结束跟踪 a49 5202b5e051311 ]---
[ 11.921175 ] gpmi-nand 112000.nand-controller: error -ENODEV: DMA channel request failed
[11.930955] ubi0 warning: ubi_io_read: error -19 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
[11.942768] ubi0 警告: ubi_io_read: error -22 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
[11.953641] ubi0 警告:ubi_io_read:从 PEB 0:0 读取 64 个字节时出现错误 -22,只读 0 个字节,重试
[11.964601] ubi0 错误:ubi_io_read:从 PEB 0:0 读取 64 个字节时出现错误 -22,读取 0 bytes
[ 11.974916] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW 5.10.72+g06213bb0115f #19
[ 11.983652] 硬件名称:Freescale i.MX6 Quad/DualLite(设备树)
[ 11.990232] [] (unwind_backtrace) 来自 [] (show_stack+0x10/0x14)
[ 11.998018] [] (show_stack) 来自 [] (dump_stack+0xcc/0xf4) [
12.005283] [] (dump_堆栈) 来自 [] (ubi_io_read+0x138/0x344)
[ 12.012806] [] (ubi_io_read) 来自 [] (ubi_io_read_ec_hdr+0x48/0x22c)
[ 12.020934] [] (ubi_io_read_ec_hdr) 来自 [] (scan_peb+0x68/0x830) [
12.028803] [] (scan_peb) 来自 [] (ubi_attach+0x 144/0x338)
[ 12.036062 ] [] (ubi_attach) 来自 [] (ubi_attach_mtd_dev+0x540/0xc7c)
[ 12.044195] [] (ubi_attach_mtd_dev) 来自 [] (ubi_init+0x16c/ 0x234)
[ 12.052157] [ ] (ubi_init) 来自 [] (do_one_initcall+0x84/0x444)
[ 12.059768] [] (do_one_initcall) 来自 [] (kernel_init_freeable+0x1a4/0x234)
[ 12 .068510] [] (kernel_init_freeable) 来自 [] (kernel_init+0x8/0x118)
[ 12.076726] [] (kernel_init) 来自 [] (ret_from_fork+0x14/0x20)
[ 12.084327] Exception stack(0xc20fdfb0 to 0xc20fdff8)
[ 12.089414] dfa0: 00000000 00000000 00000000 00000000
[ 12.097626] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 12.105837] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 12.114278] ubi0 error: ubi_attach_mtd_dev : 无法附加 mtd4,错误 -22
[12.124607] UBI 错误:无法附加 mtd4
[12.172159] 输入:gpio-keys as /devices/platform/gpio-keys/input/input2
[12.214914] OF: fdt: not creating '/ sys/firmware/fdt':CRC 检查失败
[12.238306] cfg80211:加载编译的 X.509 监管数据库证书
[12.328249] cfg80211:加载 X.509 证书'sforshee:00b28ddf47aef9cea7'
[ 12.347207] 平台 regulatory.0:regulatory.db 的直接固件加载失败,出现错误 -2
[ 12.360072] ALSA 设备列表:
[ 12.365091] 未找到声卡。
[12.369301]平台regulatory.0:回退到sysfs fallback for:regulatory.db
[12.404375]VFS:无法打开根设备“ubi0:rootfs”或未知块(0,0):错误-19
[12.416031]请附加正确的“root=”引导选项;以下是可用的分区:
[ 12.426223] 0100 65536 ram0
[ 12.426251] (驱动程序?)
[ 12.433364] 0101 65536 ram1
[ 12.434115] (驱动
程序?) [ 12.441009] 0102 65536 ram2
[ 1 2.441034](司机?)
[12.448154] 0103 65536 ram3
[ 12.448890] (驱动程序?)
[ 12.455844] 0104 65536 ram4
[ 12.455870] (驱动程序?)
[ 12.462950] 0105 65536 ram5
[ 12.463674] (驱动程序?)
[ 12.470562] 0106 65536 ram6
[ 12.470587] (驱动程序?) [
12.477549] 0107 6 5536 ram7
[12.477574](驱动程序?)
[12.485402]0108 65536 ram8
[ 12.485428] (驱动程序?)
[ 12.492385] 0109 65536 ram9
[ 12.492412] (驱动程序?)
[ 12.499308] 010a 65536 ram10 [ 12.499332
] (驱动程序?)
[ 12.5064 65] 010b 65536 ram11
[ 12.507186] (驱动程序?)
[ 12.514235 ] 010c 65536 ram12
[ 12.514262] (驱动程序?)
[ 12.521244] 010d 65536 ram13
[ 12.521270] (驱动程序?) [
12.528300] 010e 65536 ram14
[ 12.528325] (驱动程序?)
[12.535450]010f 65536 ram15
[ 12.536165] (驱动程序?)
[ 12.543234] 1f00 65536 mtdblock0
[ 12.543262] (驱动程序?)[
12.550608] 1f01 16384 mtdblock1 [ 12.550636] (驱动程序?)[ 12.558128] 1f 02 16384 mtdblock2 [ 12.558859] (驱动程序?)[ 12.566255] 1f03 16384 mtdblock3 [ 12.566283] (驱动程序?)[ 12.573771] 1f04 933888 mtdblock4 [ 12.574490] (驱动程序?)[ 12.581822] 内核恐慌 - 不同步:VFS:无法在未知块(0,0)[ 12.5903 62] ---[结束内核恐慌 - 不同步:VFS:无法在未知块(0,0)上安装根 fs]---
0