页次: 1
不好意思,晕哥,再请教下,是不是设备树里不特意注明这个mtd是只读的,默认就是可读写的吗?
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins_a>;
status = "okay";
spi-max-frequency = <50000000>;
flash: w25q128@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x070000>;
read-only;
};
partition@070000 {
label = "dtb";
reg = <0x070000 0x10000>;
read-only;
};
partition@080000 {
label = "kernel";
reg = <0x080000 0x400000>;
read-only;
};
partition@480000 {
label = "rootfs";
reg = <0x480000 0xB80000>;
};
};
我要实现OTA,那是不是意味着前三个mtd的 read-only必须去掉?
想更新设备树和内核!其实主要是设备树要更新,uboot应该不用更新的!!!
页次: 1