From: <[email protected]>
This patch adds OpenWRT 12.09.1 support for the Belkin F5D8233-4 V4
wireless router.
Technical details for this router can be found at
http://www.belkin.com/us/support-product?rnId=332
and http://wikidevi.com/wiki/Belkin_F5D8233-4_v4
I've added the patch as an attachment to this message as well included
it inline.
Adds:
target/linux/ramips/rt288x/profiles/belkin-f5d8233_v4.mk
target/linux/ramips/files/arch/mips/ralink/rt288x/mach-f5d8233-v4.c
Modifies:
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/ramips/base-files/etc/uci-defaults/network
target/linux/ramips/base-files/lib/ramips.sh
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
target/linux/ramips/image/Makefile
target/linux/ramips/rt288x/config-3.3
u-boot tftp flash procedure:
You need a serial console. There is an unpopulated 4-pin header on
the board.
Has this pinout:
1 - Square Pad - 3.3V
2 - TX
3 - RX
4 - GND
From u-boot:
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.2
tftp 0x8a80000 sysupgrade.bin
erase 0xbc440000 0xbc7effff
protect off 0xbc440000 0xbc7effff
cp.b 0x8a80000 0xbc440000 0x3b0000
bootm
Signed-off-by: Chris Bajumpaa <[email protected]>
---
index bc4ea02..82878c0 100644
---
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -49,6 +49,7 @@ case "$FIRMWARE" in
;;
f5d8235-v1 | \
+ f5d8233-v4 | \
f5d8235-v2)
rt2x00_eeprom_extract "u-boot" 262144 512
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network
b/target/linux/ramips/base-files/etc/uci-defaults/network
index cf9c0bb..46b60e3 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -115,6 +115,10 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0"
;;
+ f5d8233-v4)
+ ucidef_set_interfaces_lan "eth0"
+ ;;
+
*)
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
if [ -n "${RT3X5X}" ]; then
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index 25a1205..a646cef 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -107,6 +107,9 @@ ramips_board_name() {
*"ESR-9753")
name="esr-9753"
;;
+ *"F5D8233 v4")
+ name="f5d8233-v4"
+ ;;
*"F5D8235 v1")
name="f5d8235-v1"
;;
diff --git
a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
index 83d2e26..186febd 100644
--- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
+++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
@@ -15,6 +15,7 @@ enum ramips_mach_type {
RAMIPS_MACH_GENERIC,
/* RT2880 based machines */
RAMIPS_MACH_F5D8235_V1, /* Belkin F5D8235 v1 */
+ RAMIPS_MACH_F5D8233_V4, /* Belkin F5D8233 v4 */
RAMIPS_MACH_RT_N15, /* Asus RT-N15 */
RAMIPS_MACH_V11ST_FE, /* Ralink V11ST-FE */
RAMIPS_MACH_WLI_TX4_AG300N, /* Buffalo WLI-TX4-AG300N */
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
index 31dcc81..3498737 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
@@ -2,6 +2,10 @@ if RALINK_RT288X
menu "Ralink RT288x machine selection"
+config RT288X_MACH_F5D8233_V4
+ bool "Belkin F5D8233 V4 board support"
+ select RALINK_DEV_GPIO_LEDS
+
config RT288X_MACH_F5D8235_V1
bool "Belkin F5D8235 V1 board support"
select RALINK_DEV_GPIO_LEDS
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
index 473f855..b783b49 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
@@ -14,6 +14,7 @@ obj-y := irq.o setup.o rt288x.o devices.o clock.o
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
obj-$(CONFIG_RT288X_MACH_F5D8235_V1) += mach-f5d8235-v1.o
+obj-$(CONFIG_RT288X_MACH_F5D8233_V4) += mach-f5d8233-v4.o
obj-$(CONFIG_RT288X_MACH_RT_N15) += mach-rt-n15.o
obj-$(CONFIG_RT288X_MACH_V11ST_FE) += mach-v11st-fe.o
obj-$(CONFIG_RT288X_MACH_WLI_TX4_AG300N) += mach-wli-tx4-ag300n.o
diff --git a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
index 3c0024b..7b4d973 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -254,6 +254,13 @@ define BuildFirmware/F5D8235
$(call BuildFirmware/Generic,$(1),$(2),$(call
mkcmdline,$(3),ttyS1,57600) $(call
mkmtd/phys,$(mtdlayout_f5d8235)),$(mtd_f5d8235_kernel_part_size),$(mtd_f5d8235_rootfs_part_size))
endef
+mtdlayout_f5d8233=192k(u-boot)ro,64k(nvram),896k(kernel),2880k(rootfs),64k(factory),3776k@0x40000(firmware)
+mtd_f5d8233_kernel_part_size=917504
+mtd_f5d8233_rootfs_part_size=2949120
+define BuildFirmware/F5D8233
+ $(call BuildFirmware/Generic,$(1),$(2),$(call
mkcmdline,$(3),ttyS1,57600) $(call
mkmtd/phys,$(mtdlayout_f5d8233)),$(mtd_f5d8233_kernel_part_size),$(mtd_f5d8233_rootfs_part_size))
+endef
+
define BuildFirmware/FONERA20N
$(call
BuildFirmware/GENERIC_8M,$(1),fonera20n,FONERA20N,ttyS1,57600,phys)
$(call BuildFirmware/Edimax,$(1),fonera20n,RSDK,NL1T,0x50000,0xc0000)
@@ -412,6 +419,10 @@ define Image/Build/Profile/F5D8235V1
$(call
Image/Build/Template/$(fs_squash)/$(1),F5D8235,f5d8235v1,F5D8235_V1)
endef
+define Image/Build/Profile/F5D8233V4
+ $(call
Image/Build/Template/$(fs_squash)/$(1),F5D8233,f5d8233v4,F5D8233_V4)
+endef
+
define Image/Build/Profile/RTN15
$(call
Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,rt-n15,RT-N15,ttyS1,57600,phys)
endef
@@ -427,6 +438,7 @@ endef
ifeq ($(CONFIG_RALINK_RT288X),y)
define Image/Build/Profile/Default
$(call Image/Build/Profile/F5D8235V1,$(1))
+ $(call Image/Build/Profile/F5D8233V4,$(1))
$(call Image/Build/Profile/RTN15,$(1))
$(call Image/Build/Profile/V11STFE,$(1))
$(call Image/Build/Profile/WLITX4AG300N,$(1))
@@ -677,3 +689,4 @@ define Image/Builddiff --git
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index bc4ea02..82878c0 100644
---
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -49,6 +49,7 @@ case "$FIRMWARE" in
;;
f5d8235-v1 | \
+ f5d8233-v4 | \
f5d8235-v2)
rt2x00_eeprom_extract "u-boot" 262144 512
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network
b/target/linux/ramips/base-files/etc/uci-defaults/network
index cf9c0bb..46b60e3 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -115,6 +115,10 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0"
;;
+ f5d8233-v4)
+ ucidef_set_interfaces_lan "eth0"
+ ;;
+
*)
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
if [ -n "${RT3X5X}" ]; then
diff --git a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index 25a1205..a646cef 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -107,6 +107,9 @@ ramips_board_name() {
*"ESR-9753")
name="esr-9753"
;;
+ *"F5D8233 v4")
+ name="f5d8233-v4"
+ ;;
*"F5D8235 v1")
name="f5d8235-v1"
;;
diff --git
a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
index 83d2e26..186febd 100644
--- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
+++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
@@ -15,6 +15,7 @@ enum ramips_mach_type {
RAMIPS_MACH_GENERIC,
/* RT2880 based machines */
RAMIPS_MACH_F5D8235_V1, /* Belkin F5D8235 v1 */
+ RAMIPS_MACH_F5D8233_V4, /* Belkin F5D8233 v4 */
RAMIPS_MACH_RT_N15, /* Asus RT-N15 */
RAMIPS_MACH_V11ST_FE, /* Ralink V11ST-FE */
RAMIPS_MACH_WLI_TX4_AG300N, /* Buffalo WLI-TX4-AG300N */
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
index 31dcc81..3498737 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
@@ -2,6 +2,10 @@ if RALINK_RT288X
menu "Ralink RT288x machine selection"
+config RT288X_MACH_F5D8233_V4
+ bool "Belkin F5D8233 V4 board support"
+ select RALINK_DEV_GPIO_LEDS
+
config RT288X_MACH_F5D8235_V1
bool "Belkin F5D8235 V1 board support"
select RALINK_DEV_GPIO_LEDS
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
index 473f855..b783b49 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
@@ -14,6 +14,7 @@ obj-y := irq.o setup.o rt288x.o devices.o clock.o
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
obj-$(CONFIG_RT288X_MACH_F5D8235_V1) += mach-f5d8235-v1.o
+obj-$(CONFIG_RT288X_MACH_F5D8233_V4) += mach-f5d8233-v4.o
obj-$(CONFIG_RT288X_MACH_RT_N15) += mach-rt-n15.o
obj-$(CONFIG_RT288X_MACH_V11ST_FE) += mach-v11st-fe.o
obj-$(CONFIG_RT288X_MACH_WLI_TX4_AG300N) += mach-wli-tx4-ag300n.o
diff --git a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
index 3c0024b..7b4d973 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -254,6 +254,13 @@ define BuildFirmware/F5D8235
$(call BuildFirmware/Generic,$(1),$(2),$(call
mkcmdline,$(3),ttyS1,57600) $(call
mkmtd/phys,$(mtdlayout_f5d8235)),$(mtd_f5d8235_kernel_part_size),$(mtd_f5d8235_rootfs_part_size))
endef
+mtdlayout_f5d8233=192k(u-boot)ro,64k(nvram),896k(kernel),2880k(rootfs),64k(factory),3776k@0x40000(firmware)
+mtd_f5d8233_kernel_part_size=917504
+mtd_f5d8233_rootfs_part_size=2949120
+define BuildFirmware/F5D8233
+ $(call BuildFirmware/Generic,$(1),$(2),$(call
mkcmdline,$(3),ttyS1,57600) $(call
mkmtd/phys,$(mtdlayout_f5d8233)),$(mtd_f5d8233_kernel_part_size),$(mtd_f5d8233_rootfs_part_size))
+endef
+
define BuildFirmware/FONERA20N
$(call
BuildFirmware/GENERIC_8M,$(1),fonera20n,FONERA20N,ttyS1,57600,phys)
$(call BuildFirmware/Edimax,$(1),fonera20n,RSDK,NL1T,0x50000,0xc0000)
@@ -412,6 +419,10 @@ define Image/Build/Profile/F5D8235V1
$(call
Image/Build/Template/$(fs_squash)/$(1),F5D8235,f5d8235v1,F5D8235_V1)
endef
+define Image/Build/Profile/F5D8233V4
+ $(call
Image/Build/Template/$(fs_squash)/$(1),F5D8233,f5d8233v4,F5D8233_V4)
+endef
+
define Image/Build/Profile/RTN15
$(call
Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,rt-n15,RT-N15,ttyS1,57600,phys)
endef
@@ -427,6 +438,7 @@ endef
ifeq ($(CONFIG_RALINK_RT288X),y)
define Image/Build/Profile/Default
$(call Image/Build/Profile/F5D8235V1,$(1))
+ $(call Image/Build/Profile/F5D8233V4,$(1))
$(call Image/Build/Profile/RTN15,$(1))
$(call Image/Build/Profile/V11STFE,$(1))
$(call Image/Build/Profile/WLITX4AG300N,$(1))
@@ -677,3 +689,4 @@ define Image/Build
endef
$(eval $(call BuildImage))
+
diff --git a/target/linux/ramips/rt288x/config-3.3
b/target/linux/ramips/rt288x/config-3.3
index d472e64..0737090 100644
--- a/target/linux/ramips/rt288x/config-3.3
+++ b/target/linux/ramips/rt288x/config-3.3
@@ -76,8 +76,8 @@ CONFIG_MTD_PHYSMAP=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_PER_CPU_KM=y
CONFIG_NET_RAMIPS=y
-# CONFIG_NET_RAMIPS_DEBUG is not set
-# CONFIG_NET_RAMIPS_DEBUG_FS is not set
+CONFIG_NET_RAMIPS_DEBUG=y
+CONFIG_NET_RAMIPS_DEBUG_FS=y
CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_PCI=y
@@ -91,6 +91,7 @@ CONFIG_RALINK_RT288X=y
# CONFIG_RALINK_RT305X is not set
# CONFIG_RALINK_RT3883 is not set
CONFIG_RAMIPS_WDT=y
+CONFIG_RT288X_MACH_F5D8233_V4=y
CONFIG_RT288X_MACH_F5D8235_V1=y
CONFIG_RT288X_MACH_RT_N15=y
CONFIG_RT288X_MACH_V11ST_FE=y
endef
$(eval $(call BuildImage))
+
diff --git a/target/linux/ramips/rt288x/config-3.3
b/target/linux/ramips/rt288x/config-3.3
index d472e64..0737090 100644
--- a/target/linux/ramips/rt288x/config-3.3
+++ b/target/linux/ramips/rt288x/config-3.3
@@ -76,8 +76,8 @@ CONFIG_MTD_PHYSMAP=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_PER_CPU_KM=y
CONFIG_NET_RAMIPS=y
-# CONFIG_NET_RAMIPS_DEBUG is not set
-# CONFIG_NET_RAMIPS_DEBUG_FS is not set
+CONFIG_NET_RAMIPS_DEBUG=y
+CONFIG_NET_RAMIPS_DEBUG_FS=y
CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_PCI=y
@@ -91,6 +91,7 @@ CONFIG_RALINK_RT288X=y
# CONFIG_RALINK_RT305X is not set
# CONFIG_RALINK_RT3883 is not set
CONFIG_RAMIPS_WDT=y
+CONFIG_RT288X_MACH_F5D8233_V4=y
CONFIG_RT288X_MACH_F5D8235_V1=y
CONFIG_RT288X_MACH_RT_N15=y
CONFIG_RT288X_MACH_V11ST_FE=y
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index bc4ea02..82878c0 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -49,6 +49,7 @@ case "$FIRMWARE" in
;;
f5d8235-v1 | \
+ f5d8233-v4 | \
f5d8235-v2)
rt2x00_eeprom_extract "u-boot" 262144 512
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index cf9c0bb..46b60e3 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -115,6 +115,10 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0"
;;
+ f5d8233-v4)
+ ucidef_set_interfaces_lan "eth0"
+ ;;
+
*)
RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
if [ -n "${RT3X5X}" ]; then
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 25a1205..a646cef 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -107,6 +107,9 @@ ramips_board_name() {
*"ESR-9753")
name="esr-9753"
;;
+ *"F5D8233 v4")
+ name="f5d8233-v4"
+ ;;
*"F5D8235 v1")
name="f5d8235-v1"
;;
diff --git a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
index 83d2e26..186febd 100644
--- a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
+++ b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
@@ -15,6 +15,7 @@ enum ramips_mach_type {
RAMIPS_MACH_GENERIC,
/* RT2880 based machines */
RAMIPS_MACH_F5D8235_V1, /* Belkin F5D8235 v1 */
+ RAMIPS_MACH_F5D8233_V4, /* Belkin F5D8233 v4 */
RAMIPS_MACH_RT_N15, /* Asus RT-N15 */
RAMIPS_MACH_V11ST_FE, /* Ralink V11ST-FE */
RAMIPS_MACH_WLI_TX4_AG300N, /* Buffalo WLI-TX4-AG300N */
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
index 31dcc81..3498737 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Kconfig
@@ -2,6 +2,10 @@ if RALINK_RT288X
menu "Ralink RT288x machine selection"
+config RT288X_MACH_F5D8233_V4
+ bool "Belkin F5D8233 V4 board support"
+ select RALINK_DEV_GPIO_LEDS
+
config RT288X_MACH_F5D8235_V1
bool "Belkin F5D8235 V1 board support"
select RALINK_DEV_GPIO_LEDS
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
index 473f855..b783b49 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/Makefile
@@ -14,6 +14,7 @@ obj-y := irq.o setup.o rt288x.o devices.o clock.o
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
obj-$(CONFIG_RT288X_MACH_F5D8235_V1) += mach-f5d8235-v1.o
+obj-$(CONFIG_RT288X_MACH_F5D8233_V4) += mach-f5d8233-v4.o
obj-$(CONFIG_RT288X_MACH_RT_N15) += mach-rt-n15.o
obj-$(CONFIG_RT288X_MACH_V11ST_FE) += mach-v11st-fe.o
obj-$(CONFIG_RT288X_MACH_WLI_TX4_AG300N) += mach-wli-tx4-ag300n.o
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 3c0024b..7b4d973 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -254,6 +254,13 @@ define BuildFirmware/F5D8235
$(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/phys,$(mtdlayout_f5d8235)),$(mtd_f5d8235_kernel_part_size),$(mtd_f5d8235_rootfs_part_size))
endef
+mtdlayout_f5d8233=192k(u-boot)ro,64k(nvram),896k(kernel),2880k(rootfs),64k(factory),3776k@0x40000(firmware)
+mtd_f5d8233_kernel_part_size=917504
+mtd_f5d8233_rootfs_part_size=2949120
+define BuildFirmware/F5D8233
+ $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),ttyS1,57600) $(call mkmtd/phys,$(mtdlayout_f5d8233)),$(mtd_f5d8233_kernel_part_size),$(mtd_f5d8233_rootfs_part_size))
+endef
+
define BuildFirmware/FONERA20N
$(call BuildFirmware/GENERIC_8M,$(1),fonera20n,FONERA20N,ttyS1,57600,phys)
$(call BuildFirmware/Edimax,$(1),fonera20n,RSDK,NL1T,0x50000,0xc0000)
@@ -412,6 +419,10 @@ define Image/Build/Profile/F5D8235V1
$(call Image/Build/Template/$(fs_squash)/$(1),F5D8235,f5d8235v1,F5D8235_V1)
endef
+define Image/Build/Profile/F5D8233V4
+ $(call Image/Build/Template/$(fs_squash)/$(1),F5D8233,f5d8233v4,F5D8233_V4)
+endef
+
define Image/Build/Profile/RTN15
$(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,rt-n15,RT-N15,ttyS1,57600,phys)
endef
@@ -427,6 +438,7 @@ endef
ifeq ($(CONFIG_RALINK_RT288X),y)
define Image/Build/Profile/Default
$(call Image/Build/Profile/F5D8235V1,$(1))
+ $(call Image/Build/Profile/F5D8233V4,$(1))
$(call Image/Build/Profile/RTN15,$(1))
$(call Image/Build/Profile/V11STFE,$(1))
$(call Image/Build/Profile/WLITX4AG300N,$(1))
@@ -677,3 +689,4 @@ define Image/Build
endef
$(eval $(call BuildImage))
+
diff --git a/target/linux/ramips/rt288x/config-3.3 b/target/linux/ramips/rt288x/config-3.3
index d472e64..0737090 100644
--- a/target/linux/ramips/rt288x/config-3.3
+++ b/target/linux/ramips/rt288x/config-3.3
@@ -76,8 +76,8 @@ CONFIG_MTD_PHYSMAP=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_PER_CPU_KM=y
CONFIG_NET_RAMIPS=y
-# CONFIG_NET_RAMIPS_DEBUG is not set
-# CONFIG_NET_RAMIPS_DEBUG_FS is not set
+CONFIG_NET_RAMIPS_DEBUG=y
+CONFIG_NET_RAMIPS_DEBUG_FS=y
CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_PCI=y
@@ -91,6 +91,7 @@ CONFIG_RALINK_RT288X=y
# CONFIG_RALINK_RT305X is not set
# CONFIG_RALINK_RT3883 is not set
CONFIG_RAMIPS_WDT=y
+CONFIG_RT288X_MACH_F5D8233_V4=y
CONFIG_RT288X_MACH_F5D8235_V1=y
CONFIG_RT288X_MACH_RT_N15=y
CONFIG_RT288X_MACH_V11ST_FE=y
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel