平台:V3S + tina
修改sys_partition.fex文件后,系统启动后查看df和实际的配置不一致
###################我是分界线#############################
[partition_start]
[partition]
name = bootlogo
size = 3328
downloadfile = "bootlogo.fex"
user_type = 0x8000
[partition]
name = boot-res
size = 512
downloadfile = "boot-resource.fex"
user_type = 0x8000
[partition]
name = env
size = 512
downloadfile = "env.fex"
user_type = 0x8000
[partition]
name = boot
size = 8192
downloadfile = "boot.fex"
user_type = 0x8000
[partition]
name = rootfs
size = 81920
downloadfile = "rootfs.fex"
user_type = 0x8000
[partition]
name = rootfs_data
size = 81920
user_type = 0x8000
[partition]
name = misc
size = 128
user_type = 0x8000
[partition]
name = private
size = 512
user_type = 0x8000
###################我是分界线#############################
root@None:/# cat /proc/partitions
major minor #blocks name
93 0 256 nanda
93 8 256 nandb
93 16 4096 nandc
93 24 40960 nandd
93 32 40960 nande
93 40 64 nandf
93 48 256 nandg
93 56 25536 nandh
179 0 15558144 mmcblk0
179 1 15554048 mmcblk0p1
###################我是分界线#############################
root@None:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2048 2048 0 100% /
devtmpfs 11040 0 11040 0% /dev
tmpfs 27936 20 27916 0% /tmp
离线
仔细研究了一下,上层配置的分区参数从log来看是ok的。
-total partitions:9-
-name- -start- -size-
bootlogo : 200000 1a0000
boot-res : 3a0000 40000
env : 3e0000 40000
boot : 420000 400000
rootfs : 820000 c800000
rootfs_data : d020000 c800000
misc : 19820000 10000
private : 19830000 40000
UDISK : 19870000 0
-----------------------------------
set root to /dev/nande
[NE]parameter error 606976,4 !
disable nand error: FDT_ERR_BADPATH
disable nand error: FDT_ERR_BADPATH
## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
PowerBus = 2( 2:vBus 3:acBus other: not exist)
从这里来看,是uboot没有识别到nand。但是kernel是识别到了nand的各项参数。
===========================我是分界线==================================
总结:有点晕,kernel中以及识别成功了nand的各项参数,并且mbr也ok了。这里用的是tina的全志的nand静态库,很多东西都看不到,有没有可以移植到bsp的spinand可以替代???
[ 2.453877] [NAND]nand probe
[ 2.457131] kernel:nand version: 2 8 20190408 1958
[ 2.466256] NAND_ReadPhyArch: get old physic arch ok, use old cfg, now:0x2 0x6d - old:0x2 0x6d!
[ 2.506207] [NAND]nand0_cache_level is no used
[ 2.511608] [NAND]nand_capacity_level is no used
[ 2.520351] [NE]mbr read 12
[ 2.524225] [NE]mbr read ok!
[ 2.527441] [NE]mbr read end!
[ 2.530850] [NE]mbr partition start!
[ 2.535887] [NE]mbr partition ok!
[ 2.539617] [NE]mbr partition end!
[ 2.543395] [NE]new nand info init!!
[ 2.547639] [NE]mbr read 12
[ 2.551542] [NE]mbr read ok!
[ 2.554755] [NE]mbr read end!
[ 2.558048] [NE]get mbr_data table
[ 2.562983] [ND]ok get factory_bad_block table!
[ 2.569284] [NE]new_bad_block table new format!
[ 2.575129] [ND]ok get a new bad table!
[ 2.580580] [ND]build all_phy partition start!
[ 2.585528] [NE]mbr partition start!
[ 2.590278] [NE]mbr partition ok!
[ 2.593972] [NE]mbr partition end!
离线
此贴结束:tina被索智使用软件模拟spi方式来驱动spi nand,而且提供给我们的是静态库,没得搞头
离线