请教各位大神赐教,如题
ubifs是用buildroot生成的
log如下
2.013952] ubi0: attaching mtd3
[ 2.017405] ubi0: MTD device 3 is write-protected, attach in read-only mode
[ 2.034202] random: crng init done
[ 2.551002] ubi0: scanning is finished
[ 2.555209] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 2.562888] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 2.570228] UBI error: cannot attach mtd3
[ 2.574983] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.592818] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.599780] vcc3v3: disabling
[ 2.602817] ALSA device list:
[ 2.605902] #0: F1C100s Audio Codec
[ 2.610541] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.619345] cfg80211: failed to load regulatory.db
[ 2.626938] List of all partitions:
[ 2.630538] 1f00 1280 mtdblock0
[ 2.630545] (driver?)
[ 2.637295] 1f01 128 mtdblock1
[ 2.637302] (driver?)
[ 2.643888] 1f02 7168 mtdblock2
[ 2.643893] (driver?)
[ 2.650563] 1f03 65536 mtdblock3
[ 2.650569] (driver?)
[ 2.657219] 1f04 48768 mtdblock4
[ 2.657225] (driver?)
[ 2.663793] No filesystem could mount root, tried:
[ 2.663799] ubifs
[ 2.668744]
[ 2.672303] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 2.680693] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #127
[ 2.687841] Hardware name: Allwinner suniv Family
[ 2.692649] [<c010e3f8>] (unwind_backtrace) from [<c010b9dc>] (show_stack+0x10/0x14)
[ 2.700474] [<c010b9dc>] (show_stack) from [<c0116e18>] (panic+0xe8/0x2e4)
[ 2.707404] [<c0116e18>] (panic) from [<c0a01338>] (mount_block_root+0x1fc/0x27c)
[ 2.714942] [<c0a01338>] (mount_block_root) from [<c0a014c8>] (mount_root+0x110/0x154)
[ 2.722907] [<c0a014c8>] (mount_root) from [<c0a01634>] (prepare_namespace+0x128/0x188)
[ 2.730973] [<c0a01634>] (prepare_namespace) from [<c07f5e30>] (kernel_init+0x8/0x110)
[ 2.738953] [<c07f5e30>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[ 2.746556] Exception stack(0xc3833fb0 to 0xc3833ff8)
[ 2.751636] 3fa0: 00000000 00000000 00000000 00000000
[ 2.759855] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.768067] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2.774716] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) ]---
最近编辑记录 mxfh (2021-11-10 11:46:12)
离线
搞了两天多,原来是文件系统开始地址写错了,导致一直ubi_read_volume_table: the layout volume was not found报错;太粗心了
[ 1.648725] ubi0: attaching mtd3
[ 1.779503] ubi0: scanning is finished
[ 1.788276] random: crng init done
[ 1.848548] ubi0: volume 0 ("rootfs") re-sized from 67 to 104 LEBs
[ 1.856386] ubi0: attached mtd3 (name "rootfs", size 16 MiB)
[ 1.862060] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 1.869040] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 1.875869] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 1.882817] ubi0: good PEBs: 126, bad PEBs: 2, corrupted PEBs: 0
[ 1.888848] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 1.896093] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 463946186
[ 1.905148] ubi0: available PEBs: 0, total reserved PEBs: 126, PEBs reserved for bad PEB handling: 18
[ 1.914900] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.923076] ubi0: background thread "ubi_bgt0d" started, PID 95
[ 1.958575] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.965423] vcc3v3: disabling
[ 1.968409] ALSA device list:
[ 1.971378] #0: F1C100s Audio Codec
[ 1.976151] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.984869] cfg80211: failed to load regulatory.db
[ 2.003895] UBIFS: parse sync
[ 2.013337] UBIFS (ubi0:0): Mounting in unauthenticated mode
[ 2.034338] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 101
[ 2.289008] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.296552] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.306513] UBIFS (ubi0:0): FS size: 7618560 bytes (7 MiB, 60 LEBs), journal size 1396736 bytes (1 MiB, 11 LEBs)
[ 2.316699] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.322536] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7EA172D1-362A-4194-B528-DD7DC9F89643, small LPT model
[ 2.351056] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.371077] devtmpfs: mounted
[ 2.378680] Freeing unused kernel memory: 1024K
[ 2.386944] Run /sbin/init as init process
最近编辑记录 mxfh (2021-11-11 16:42:13)
离线
请问一下 文件系统开始地址怎么确定的啊
离线
文件系统开始地址怎么确定
离线
T113-S3 SPI NAND的也是这个错误:
[ 2.868258] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[ 2.875530] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[ 2.885432] sunxi-ohci 4200400.ohci1-controller: irq 62, io mem 0x04200400
[ 2.966078] hub 2-0:1.0: USB hub found
[ 2.970328] hub 2-0:1.0: 1 port detected
[ 2.976801] ubi0: attaching mtd3
[ 3.111226] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:3
[ 3.176601] ubi0: scanning is finished
[ 3.180857] ubi0 error: ubi_read_volume_table: the layout volume was not found
[ 3.189249] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 3.197210] UBI error: cannot attach mtd3
[ 3.201731] UBI: block: can't open volume on ubi0_-1, err=-19
[ 3.208739] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
[ 3.225921] sunxi-vin-core 5809000.vinc: Adding to iommu group 0
[ 3.233657] sunxi-vin-core 5809200.vinc: Adding to iommu group 0
[ 3.241902] sun8iw20-pinctrl pio: pin PE13 already requested by 4500000.eth; cannot claim for pio:141
[ 3.252311] sun8iw20-pinctrl pio: pin-141 (pio:141) status -22
[ 3.259169] [VIN_WARN]get csi isp clk fail
[ 3.263798] [VIN_WARN]get csi isp src clk fail
[ 3.268800] [VIN_WARN]get csi mipi clk fail
[ 3.273504] [VIN_WARN]get csi mipi src clk fail
[ 3.278604] [VIN_WARN]get csi isp mbus clk fail
[ 3.283711] [VIN_WARN]Get isp reset control fail
[ 3.289105] [VIN_ERR]n5 request i2c1 adapter failed!
[ 3.297818] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.309027] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.316563] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.321306] clk: Not disabling unused clocks
[ 3.326265] cfg80211: failed to load regulatory.db
[ 3.331003] ALSA device list:
[ 3.339720] #0: audiocodec
[ 3.343010] alloc_fd: slot 0 not NULL!
[ 3.347623] /dev/root: Can't open blockdev
[ 3.352269] VFS: Cannot open root device "ubiblock0_5" or unknown-block(0,0): error -6
[ 3.361141] Please append a correct "root=" boot option; here are the available partitions:
[ 3.370526] 1f00 1024 mtdblock0
[ 3.370529] (driver?)
[ 3.377866] 1f01 3072 mtdblock1
[ 3.377868] (driver?)
[ 3.385203] 1f02 1024 mtdblock2
[ 3.385206] (driver?)
[ 3.392545] 1f03 125952 mtdblock3
[ 3.392547] (driver?)
[ 3.399869] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.409134] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.61 #28
[ 3.415861] Hardware name: Generic DT based system
[ 3.421250] [<c010e2f8>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[ 3.429934] [<c010a8bc>] (show_stack) from [<c079f030>] (dump_stack+0x7c/0x98)
[ 3.438033] [<c079f030>] (dump_stack) from [<c0119d2c>] (panic+0x104/0x3dc)
[ 3.445843] [<c0119d2c>] (panic) from [<c0c01278>] (mount_block_root+0x258/0x300)
[ 3.454235] [<c0c01278>] (mount_block_root) from [<c0c014bc>] (prepare_namespace+0x118/0x178)
[ 3.463795] [<c0c014bc>] (prepare_namespace) from [<c07b3714>] (kernel_init+0x8/0x118)
[ 3.472673] [<c07b3714>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 3.481155] Exception stack(0xef079fb0 to 0xef079ff8)
[ 3.486814] 9fa0: 00000000 00000000 00000000 00000000
[ 3.495980] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.505145] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.512562] CPU0: stopping
[ 3.515595] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #28
[ 3.522322] Hardware name: Generic DT based system
[ 3.527695] [<c010e2f8>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[ 3.536376] [<c010a8bc>] (show_stack) from [<c079f030>] (dump_stack+0x7c/0x98)
[ 3.544473] [<c079f030>] (dump_stack) from [<c010c6b0>] (handle_IPI+0xc0/0x168)
[ 3.552671] [<c010c6b0>] (handle_IPI) from [<c03aa24c>] (gic_handle_irq+0x70/0x78)
[ 3.561160] [<c03aa24c>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[ 3.569543] Exception stack(0xc0d01f40 to 0xc0d01f88)
[ 3.575205] 1f40: 000093b0 ef7b9574 00000000 c0115280 00000001 c0d00000 c0d03e28 c0d03e64
[ 3.584372] 1f60: 00000000 efffc3c0 c0c2f0c0 00000000 c0d7f830 c0d01f90 c0107fd8 c0107fdc
[ 3.593535] 1f80: 60000113 ffffffff
[ 3.597447] [<c01021cc>] (__irq_svc) from [<c0107fdc>] (arch_cpu_idle+0x2c/0x38)
[ 3.605740] [<c0107fdc>] (arch_cpu_idle) from [<c013e920>] (do_idle+0xb8/0x120)
[ 3.613935] [<c013e920>] (do_idle) from [<c013ec24>] (cpu_startup_entry+0x18/0x1c)
[ 3.622422] [<c013ec24>] (cpu_startup_entry) from [<c0c00c68>] (start_kernel+0x340/0x3d0)
[ 3.631590] [<c0c00c68>] (start_kernel) from [<00000000>] (0x0)
[ 3.638237] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
离线
改了 sys_partition.fex
;---------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------
; 固件下载参数配置
;---------------------------------------------------------------------------------------------------
;***************************************************************************************************
; mbr的大小, 以Kbyte为单位
;***************************************************************************************************
[mbr]
size = 252
;***************************************************************************************************
; 分区配置
;
;
; partition 定义范例:
; [partition] ; //表示是一个分区
; name = USERFS2 ; //分区名称
; size = 16384 ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
; downloadfile = "123.fex" ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
; keydata = 1 ; //私有数据分区,重新量产数据将不丢失
; encrypt = 1 ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
; user_type = ? ; //私有用法
; verify = 1 ; //要求量产完成后校验是否正确
;
; 注:1、name唯一, 不允许同名
; 2、name最大12个字符
; 3、size = 0, 将创建一个无大小的空分区
; 4、align to logical block size(504 sectors), leb size = 2*(1 nand phy block size - 1 phy page size)
;***************************************************************************************************
[partition_start]
[partition]
name = boot-resource
size = 504
downloadfile = "boot-resource.fex"
user_type = 0x8000
[partition]
name = env
size = 504
downloadfile = "env.fex"
user_type = 0x8000
[partition]
name = env-redund
size = 504
downloadfile = "env.fex"
user_type = 0x8000
[partition]
name = boot
size = 10808
downloadfile = "boot.fex"
user_type = 0x8000
[partition]
name = rootfs
size = 61440
downloadfile = "rootfs.fex"
user_type = 0x8000
;[partition]
; name = dsp0
; size = 2048
; downloadfile = "dsp0.fex"
; user_type = 0x8000
;[partition]
; name = recovery
; size = 16128
; ;downloadfile = "recovery.fex"
; user_type = 0x8000
[partition]
name = private
size = 10240
user_type = 0x8000
[partition]
name = rootfs_data
size = 10240
user_type = 0x8000
[partition]
name = UDISK
name = rootfs_data
size = 10240
user_type = 0x8000
重烧之后:
[ 3.174464] ubi0: scanning is finished
[ 3.183783] ubi0 error: vtbl_check: too large reserved_pebs 770, good PEBs 492
[ 3.191919] ubi0 error: vtbl_check: volume table check failed: record 8, error 9
[ 3.200205] Volume table record 8 dump:
[ 3.204513] reserved_pebs 770
[ 3.208125] alignment 1
[ 3.211553] data_pad 0
[ 3.214970] vol_type 1
[ 3.218387] upd_marker 0
[ 3.221816] name_len 5
[ 3.225233] name UDISK
[ 3.229040] crc 0xc31608a0
[ 3.233600] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd3, error -22
[ 3.241555] UBI error: cannot attach mtd3
[ 3.246052] UBI: block: can't open volume on ubi0_-1, err=-19
[ 3.253085] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
[ 3.270216] sunxi-vin-core 5809000.vinc: Adding to iommu group 0
[ 3.277895] sunxi-vin-core 5809200.vinc: Adding to iommu group 0
[ 3.286111] sun8iw20-pinctrl pio: pin PE13 already requested by 4500000.eth; cannot claim for pio:141
[ 3.296497] sun8iw20-pinctrl pio: pin-141 (pio:141) status -22
[ 3.303399] [VIN_WARN]get csi isp clk fail
[ 3.307996] [VIN_WARN]get csi isp src clk fail
[ 3.313010] [VIN_WARN]get csi mipi clk fail
[ 3.317700] [VIN_WARN]get csi mipi src clk fail
[ 3.322816] [VIN_WARN]get csi isp mbus clk fail
[ 3.327906] [VIN_WARN]Get isp reset control fail
[ 3.333300] [VIN_ERR]n5 request i2c1 adapter failed!
[ 3.342125] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.353398] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.360959] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.370618] cfg80211: failed to load regulatory.db
[ 3.376088] clk: Not disabling unused clocks
[ 3.381016] ALSA device list:
[ 3.384342] #0: audiocodec
[ 3.387573] alloc_fd: slot 0 not NULL!
[ 3.392183] /dev/root: Can't open blockdev
[ 3.396782] VFS: Cannot open root device "ubiblock0_5" or unknown-block(0,0): error -6
[ 3.405693] Please append a correct "root=" boot option; here are the available partitions:
[ 3.415086] 1f00 1024 mtdblock0
[ 3.415090] (driver?)
[ 3.422424] 1f01 3072 mtdblock1
[ 3.422426] (driver?)
[ 3.429747] 1f02 1024 mtdblock2
[ 3.429749] (driver?)
[ 3.437088] 1f03 125952 mtdblock3
[ 3.437090] (driver?)
[ 3.444422] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.453687] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.61 #28
[ 3.460414] Hardware name: Generic DT based system
[ 3.465804] [<c010e2f8>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[ 3.474488] [<c010a8bc>] (show_stack) from [<c079f030>] (dump_stack+0x7c/0x98)
[ 3.482587] [<c079f030>] (dump_stack) from [<c0119d2c>] (panic+0x104/0x3dc)
[ 3.490397] [<c0119d2c>] (panic) from [<c0c01278>] (mount_block_root+0x258/0x300)
[ 3.498789] [<c0c01278>] (mount_block_root) from [<c0c014bc>] (prepare_namespace+0x118/0x178)
[ 3.508350] [<c0c014bc>] (prepare_namespace) from [<c07b3714>] (kernel_init+0x8/0x118)
[ 3.517228] [<c07b3714>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[ 3.525710] Exception stack(0xef079fb0 to 0xef079ff8)
[ 3.531369] 9fa0: 00000000 00000000 00000000 00000000
[ 3.540535] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.549700] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.557118] CPU0: stopping
[ 3.560152] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.61 #28
[ 3.566879] Hardware name: Generic DT based system
[ 3.572252] [<c010e2f8>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[ 3.580933] [<c010a8bc>] (show_stack) from [<c079f030>] (dump_stack+0x7c/0x98)
[ 3.589029] [<c079f030>] (dump_stack) from [<c010c6b0>] (handle_IPI+0xc0/0x168)
[ 3.597227] [<c010c6b0>] (handle_IPI) from [<c03aa24c>] (gic_handle_irq+0x70/0x78)
[ 3.605715] [<c03aa24c>] (gic_handle_irq) from [<c01021cc>] (__irq_svc+0x6c/0xa8)
[ 3.614099] Exception stack(0xc0d01f40 to 0xc0d01f88)
[ 3.619761] 1f40: 0000ad64 ef7b9574 00000000 c0115280 00000001 c0d00000 c0d03e28 c0d03e64
[ 3.628928] 1f60: 00000000 efffc3c0 c0c2f0c0 00000000 c0d7f830 c0d01f90 c0107fd8 c0107fdc
[ 3.638091] 1f80: 60000113 ffffffff
[ 3.642003] [<c01021cc>] (__irq_svc) from [<c0107fdc>] (arch_cpu_idle+0x2c/0x38)
[ 3.650296] [<c0107fdc>] (arch_cpu_idle) from [<c013e920>] (do_idle+0xb8/0x120)
[ 3.658491] [<c013e920>] (do_idle) from [<c013ec24>] (cpu_startup_entry+0x18/0x1c)
[ 3.666978] [<c013ec24>] (cpu_startup_entry) from [<c0c00c68>] (start_kernel+0x340/0x3d0)
[ 3.676146] [<c0c00c68>] (start_kernel) from [<00000000>] (0x0)
[ 3.682797] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
离线
正常的应该是这样:
[ 3.707830] ubi0: scanning is finished
[ 3.719826] ubi0: attached mtd3 (name "sys", size 251 MiB)
[ 3.725984] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[ 3.733740] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[ 3.741360] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.749179] ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0
[ 3.756007] ubi0: user volume: 8, internal volumes: 1, max. volumes count: 128
[ 3.764118] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[ 3.773487] ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40
[ 3.783947] ubi0: background thread "ubi_bgt0d" started, PID 1055
[ 3.784464] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
[ 3.804843] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.806638] clk: Not disabling unused clocks
[ 3.814564] cfg80211: failed to load regulatory.db
[ 3.819392] ALSA device list:
[ 3.828084] #0: audiocodec
[ 3.831310] #1: snddaudio0
[ 3.834541] alloc_fd: slot 0 not NULL!
[ 3.839923] UBIFS (ubi0:5): Mounting in unauthenticated mode
[ 3.890637] UBIFS (ubi0:5): recovery needed
[ 3.974590] UBIFS (ubi0:5): recovery deferred
[ 3.979620] UBIFS (ubi0:5): UBIFS: mounted UBI device 0, volume 5, name "rootfs", R/O mode
[ 3.988896] UBIFS (ubi0:5): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 4.000030] UBIFS (ubi0:5): FS size: 60641280 bytes (57 MiB, 235 LEBs), journal size 8515584 bytes (8 MiB, 33 LEBs)
[ 4.011739] UBIFS (ubi0:5): reserved for root: 0 bytes (0 KiB)
[ 4.018291] UBIFS (ubi0:5): media format: w4/r0 (latest is w5/r0), UUID 24286302-76C0-4928-8BA8-637743520998, small LPT model
[ 4.031322] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[ 4.039292] devtmpfs: mounted
[ 4.044367] Freeing unused kernel memory: 1024K
[ 4.049608] Run /init as init process
can't run '/etc/preinit': No such file or directory
[ 4.205558] UBIFS (ubi0:5): completing deferred recovery
[ 4.419783] UBIFS (ubi0:5): background thread "ubifs_bgt0_5" started, PID 1067
[ 4.428059] UBIFS (ubi0:5): deferred recovery completed
usb0 current mode: null
Starting switch usb0 to device mode.
[ 5.766817] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
device_chose finished!
Starting adb: [ 5.853665] file system registered
OK
init adb main
Handling main()
[ 5.921333] read descriptors
[ 5.924621] read strings
[ 6.046955] /dev/by-name/UDISK: Can't open blockdev
formating /dev/by-name/UDISK to vfat...
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to ANSI_X3.4-1968: Invalid argument
Cannot initialize conversion from ANSI_X3.4-1968 to codepage 850: Invalid argument
Using internal CP850 conversion table
mkfs.vfat: unable to discover size of /dev/by-name/UDISK
[ 6.106075] UBIFS (ubi0:7): Mounting in unauthenticated mode
[ 6.112620] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 1138
[ 6.164723] UBIFS (ubi0:7): recovery needed
[ 6.170280] android_work: sent uevent USB_STATE=CONNECTED
[ 6.204373] UBIFS (ubi0:7): recovery completed
[ 6.209626] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "UDISK"
[ 6.217934] UBIFS (ubi0:7): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 6.229196] UBIFS (ubi0:7): FS size: 101412864 bytes (96 MiB, 393 LEBs), journal size 5160960 bytes (4 MiB, 20 LEBs)
[ 6.241029] configfs-gadget gadget: high-speed config #1: c
[ 6.247416] android_work: sent uevent USB_STATE=CONFIGURED
[ 6.247638] UBIFS (ubi0:7): reserved for root: 4789980 bytes (4677 KiB)
[ 6.261000] UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID CAD22824-BF6F-4AC2-8F3A-51050C50BF38, small LPT model
Welcome to Allwinner Tina5.0 Platform
Tina5.0 login: [ 34.406554] pio-18: disabling
[ 34.409886] pio-33: disabling
离线
玛德,什么没动,换了一片W25N01GVZEIG就可以了,看来全志SDK软件上面对SPI NAND处理真是渣。
离线
全志sdk一直很垃圾,管理混乱导致。
还能在股市混全靠低价
离线
改dts搞定了,什么情况一脸懵逼???
由:
spi0_pins_a: spi0@0 {
pins = "PC2", "PC4", "PC5","PC7", "PC6"; /*clk mosi miso hold wp*/
function = "spi0";
drive-strength = <10>;
};
spi0_pins_b: spi0@1 {
pins = "PC3";
function = "spi0";
drive-strength = <10>;
bias-pull-up; /* only CS should be pulled up */
};
spi0_pins_c: spi0@2 {
pins = "PC2", "PC3", "PC4", "PC5","PC6", "PC7";
function = "gpio_in";
drive-strength = <10>;
};
改成:
spi0_pins_a: spi0@0 {
pins = "PC2", "PC4", "PC5"; /* clk, mosi, miso */
function = "spi0";
muxsel = <2>;
drive-strength = <20>;
};
spi0_pins_b: spi0@1 {
pins = "PC3", "PC7", "PC6";
function = "spi0";
muxsel = <2>;
drive-strength = <20>;
bias-pull-up; /* cs, hold, wp should be pulled up */
};
spi0_pins_c: spi0@2 {
pins = "PC2", "PC3", "PC4", "PC5","PC6", "PC7";
function = "gpio_in";
muxsel = <0>;
drive-strength = <10>;
};
离线