ath79: create WNDR3700 series .dtsi and adjust WNDR3800
Prepare for addition of WNDR3700 and WNDR3700v2 by
separating the common parts into wndr3700.dtsi and
leaving just the device-specific things into wndr3800.dts
The three routers are identical except
* device IDs
* WNDR3700 (v1) has only 8 MB flash, while others have 16 MB.
Partition structure needs to be defined for each device.
* (WNDR3800 has 128 MB RAM, but RAM size is not in DTS)
Also separate the common parts of the image recipe.
(Drop also the initramfs recipe.)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
committed by
Mathias Kresin
parent
1d3ea7874d
commit
b58df9919e
@@ -134,20 +134,23 @@ define Device/pcs_cr5000
|
||||
endef
|
||||
TARGET_DEVICES += pcs_cr5000
|
||||
|
||||
define Device/netgear_wndr3800
|
||||
define Device/netgear_wndr3x00
|
||||
ATH_SOC := ar7161
|
||||
DEVICE_TITLE := NETGEAR WNDR3800
|
||||
NETGEAR_KERNEL_MAGIC := 0x33373031
|
||||
KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
|
||||
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
|
||||
NETGEAR_BOARD_ID := WNDR3800
|
||||
NETGEAR_HW_ID := 29763654+16+128
|
||||
IMAGE_SIZE := 15872k
|
||||
IMAGES := sysupgrade.bin factory.img
|
||||
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
|
||||
IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
|
||||
IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
|
||||
DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset
|
||||
endef
|
||||
|
||||
define Device/netgear_wndr3800
|
||||
$(Device/netgear_wndr3x00)
|
||||
DEVICE_TITLE := NETGEAR WNDR3800
|
||||
NETGEAR_KERNEL_MAGIC := 0x33373031
|
||||
NETGEAR_BOARD_ID := WNDR3800
|
||||
NETGEAR_HW_ID := 29763654+16+128
|
||||
IMAGE_SIZE := 15872k
|
||||
SUPPORTED_DEVICES += wndr3800
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndr3800
|
||||
|
||||
Reference in New Issue
Block a user