netgear,wndap660)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
;;
+netgear,wndr4700)
+ ubootenv_add_uci_config "/dev/mtd0" "0x40000" "0x20000" "0x20000" "1"
+ ubootenv_add_uci_config "/dev/mtd0" "0x60000" "0x20000" "0x20000" "1"
+ ;;
wd,mybooklive)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000" "1"
ubootenv_add_uci_config "/dev/mtd1" "0x1000" "0x1000" "0x1000" "1"
partition@0 {
label = "uboot";
reg = <0x00000000 0x00180000>;
+ compatible = "fixed-partitions";
read-only;
+
+ partition@40000 {
+ label = "u-boot-env-main";
+ compatible = "u-boot,env-redundant-count";
+ reg = <0x00040000 0x20000>; /* one block is 128k */
+ read-only;
+ };
+
+/*
+ * Causes u_boot_env: probe of 4e4000000.ndfc:nand:partitions:partition@0:partition@60000
+ * failed with error -17
+ *
+ * partition@60000 {
+ * label = "u-boot-env-redundant";
+ * compatible = "u-boot,env-redundant-count";
+ * reg = <0x00060000 0x20000>;
+ * read-only;
+ * };
+ */
};
partition@180000 {
partition@0 {
label = "kernel";
- reg = <0x00000000 0x00380000>;
+ reg = <0x00000000 0x00480000>;
compatible = "fixed-partitions";
#address-cells = <1>;
*/
};
- partition@380000 {
+ partition@480000 {
label = "ubi";
- reg = <0x00380000 0x014e0000>;
+ reg = <0x00480000 0x013e0000>;
};
};
IMAGE_SIZE := 24960k
IMAGES := factory.img sysupgrade.bin
ARTIFACTS := device-tree.dtb
- KERNEL_SIZE := 3584k
+ KERNEL_SIZE := 4608k
# append a fake/empty rootfs to fool netgear's uboot
# CHECK_DNI_FIRMWARE_ROOTFS_INTEGRITY in do_chk_dniimg()
KERNEL := kernel-bin | lzma -d16 | uImage lzma | pad-offset $$(BLOCKSIZE) 64 | \
NETGEAR_HW_ID := 29763875+128+256
UBINIZE_OPTS := -E 5
SUPPORTED_DEVICES += wndr4700
+ DEVICE_COMPAT_VERSION := 2.0
+ DEVICE_COMPAT_MESSAGE := kernel and ubi partitions had to be resized. \
+ Upgrade via sysupgrade mechanism is not possible.
endef
TARGET_DEVICES += netgear_wndr4700