ipq60xx: add DPtech AP3000-2C support#14022
Conversation
| &qpic_nand { | ||
| status = "okay"; | ||
|
|
||
| compatible = "qcom,ipq6018-nand", "qcom,ebi2-nandc-bam-v1.5.0"; |
There was a problem hiding this comment.
不加入这个,nand部分会有一个无效的分区表
这个机是norplusnand结构
There was a problem hiding this comment.
partitions {
status = "disabled";
};
这样就行
There was a problem hiding this comment.
partitions { status = "disabled"; };这样就行
早就试过这种方式一样有nand部分的无效分区表
There was a problem hiding this comment.
你不要用 qcom,smem-part
另外缺了 nand-ecc-*
There was a problem hiding this comment.
试过了无论将禁用注册分区状态注册到nand@0的内部/外部都不行
ecc的深度只能加成4,加到8的话不识别或者出错
不加深度/进步大小,驱动默认会分配4/512
qcom,smem-part用跟不用都会生成无效的分区表,造成冲突
就只能当前的设置可以正确的读nand里的数据
luci页面升级也没问题
There was a problem hiding this comment.
那就设置 4/512,uboot 是原厂的吗?
| }; | ||
|
|
||
| partition@510000 { | ||
| compatible = "u-boot,env"; |
There was a problem hiding this comment.
label全部改成小写fw_printenv会提示找不到
root@LEDE:/# cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "rootfs"
mtd1: 000c0000 00010000 "0:sbl1"
mtd2: 00010000 00010000 "0:mibib"
mtd3: 00020000 00010000 "0:bootconfig"
mtd4: 00020000 00010000 "0:bootconfig1"
mtd5: 001a0000 00010000 "0:qsee"
mtd6: 001a0000 00010000 "0:qsee_1"
mtd7: 00010000 00010000 "0:devcfg"
mtd8: 00010000 00010000 "0:devcfg_1"
mtd9: 00040000 00010000 "0:rpm"
mtd10: 00040000 00010000 "0:rpm_1"
mtd11: 00010000 00010000 "0:cdt"
mtd12: 00010000 00010000 "0:cdt_1"
mtd13: 00010000 00010000 "0:appsblenv"
mtd14: 000a0000 00010000 "0:appsbl"
mtd15: 000a0000 00010000 "0:appsbl_1"
mtd16: 00040000 00010000 "0:art"
root@LEDE:/# fw_printenv
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
root@LEDE:/#
There was a problem hiding this comment.
root@LEDE:/# fw_printenv
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 65536 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 61440 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 57344 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 53248 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 49152 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 45056 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 40960 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 36864 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 32768 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 28672 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 24576 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 20480 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 16384 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 12288 bytes but got 4096
Warning on /sys/bus/nvmem/devices/mtd13/nvmem: Attempted to read 8192 bytes but got 4096
baudrate=115200
bootargs=console=ttyMSM0,115200n8
bootcmd=bootipq
bootdelay=2
eth1addr=50:24:ac:11:ec:2
eth2addr=0:3:7f:23:5:5
eth3addr=0:3:7f:23:5:5
eth4addr=0:3:7f:23:5:6
ethact=eth0
ethaddr=0:24:ac:11:ec:2
fdt_high=0x48500000
fdtcontroladdr=4a494004
flash_type=7
fsbootargs=ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs
ipaddr=192.168.1.1
machid=8030200
mtddevname=fs
mtddevnum=0
mtdids=nand0=nand0,nand1=spi0.0
mtdparts=mtdparts=nand0:0x8000000@0x0(fs),
nand_erasesize=1000
nand_oobsize=0
nand_writesize=100
netmask=255.255.255.0
partition=nand0,0
serverip=192.168.1.2
soc_hw_version=20170100
soc_version_major=1
soc_version_minor=0
stderr=serial@78B1000
stdin=serial@78B1000
stdout=serial@78B1000
root@LEDE:/#
保留 compatible的结果
There was a problem hiding this comment.
我是这样改的,识别不到,只有提交的状态是可以正常识别的
partition@510000 {
label = "0:appsblenv";
reg = <0x510000 0x10000>;
nvmem-layout {
compatible = "u-boot,env";
#address-cells = <1>;
#size-cells = <1>;
env-size = <0x10000>;
};
};
| }; | ||
|
|
||
| partition@510000 { | ||
| compatible = "u-boot,env"; |
There was a problem hiding this comment.
label全部改成小写fw_printenv会提示找不到
root@LEDE:/# cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "rootfs"
mtd1: 000c0000 00010000 "0:sbl1"
mtd2: 00010000 00010000 "0:mibib"
mtd3: 00020000 00010000 "0:bootconfig"
mtd4: 00020000 00010000 "0:bootconfig1"
mtd5: 001a0000 00010000 "0:qsee"
mtd6: 001a0000 00010000 "0:qsee_1"
mtd7: 00010000 00010000 "0:devcfg"
mtd8: 00010000 00010000 "0:devcfg_1"
mtd9: 00040000 00010000 "0:rpm"
mtd10: 00040000 00010000 "0:rpm_1"
mtd11: 00010000 00010000 "0:cdt"
mtd12: 00010000 00010000 "0:cdt_1"
mtd13: 00010000 00010000 "0:appsblenv"
mtd14: 000a0000 00010000 "0:appsbl"
mtd15: 000a0000 00010000 "0:appsbl_1"
mtd16: 00040000 00010000 "0:art"
root@LEDE:/# fw_printenv
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
root@LEDE:/#
Signed-off-by: Willem Lee <1980490718@qq.com>
No description provided.