ar71xx: fix wndr3800 machine name
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Nov 2011 20:09:38 +0000 (20:09 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 24 Nov 2011 20:09:38 +0000 (20:09 +0000)
This fixes the machine name in /proc/cpuinfo and luci status page machine name.

Signed-off-by: Petri Rosenström <petri.rosenstrom@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29326 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
target/linux/ar71xx/image/Makefile

index 6ea97ed..513f0d2 100755 (executable)
@@ -169,6 +169,9 @@ ar71xx_board_name() {
        *WNDR3700v2)
                name="wndr3700v2"
                ;;
        *WNDR3700v2)
                name="wndr3700v2"
                ;;
+       *WNDR3800)
+               name="wndr3800"
+               ;;
        *WNR2000)
                name="wnr2000"
                ;;
        *WNR2000)
                name="wnr2000"
                ;;
index fd11366..cc327e6 100755 (executable)
@@ -133,7 +133,7 @@ platform_check_image() {
                }
                return 0
                ;;
                }
                return 0
                ;;
-       wndr3700v2)
+       wndr3700v2|wndr3800)
                [ "$magic_long" != "33373031" ] && {
                        echo "Invalid image type."
                        return 1
                [ "$magic_long" != "33373031" ] && {
                        echo "Invalid image type."
                        return 1
index 0df9c7f..358f1a9 100644 (file)
@@ -288,3 +288,5 @@ static void __init wndr3700v2_setup(void)
 
 MIPS_MACHINE(AR71XX_MACH_WNDR3700V2, "WNDR3700v2", "NETGEAR WNDR3700v2",
             wndr3700v2_setup);
 
 MIPS_MACHINE(AR71XX_MACH_WNDR3700V2, "WNDR3700v2", "NETGEAR WNDR3700v2",
             wndr3700v2_setup);
+MIPS_MACHINE(AR71XX_MACH_WNDR3800, "WNDR3800", "NETGEAR WNDR3800",
+            wndr3700v2_setup);
index 78d8bdd..be7df85 100644 (file)
@@ -70,6 +70,7 @@ enum ar71xx_mach_type {
        AR71XX_MACH_WHR_HP_GN,  /* Buffalo WHR-HP-GN */
        AR71XX_MACH_WNDR3700,   /* NETGEAR WNDR3700 */
        AR71XX_MACH_WNDR3700V2, /* NETGEAR WNDR3700v2 */
        AR71XX_MACH_WHR_HP_GN,  /* Buffalo WHR-HP-GN */
        AR71XX_MACH_WNDR3700,   /* NETGEAR WNDR3700 */
        AR71XX_MACH_WNDR3700V2, /* NETGEAR WNDR3700v2 */
+       AR71XX_MACH_WNDR3800,   /* NETGEAR WNDR3800 */
        AR71XX_MACH_WNR2000,    /* NETGEAR WNR2000 */
        AR71XX_MACH_WP543,      /* Compex WP543 */
        AR71XX_MACH_WRT160NL,   /* Linksys WRT160NL */
        AR71XX_MACH_WNR2000,    /* NETGEAR WNR2000 */
        AR71XX_MACH_WP543,      /* Compex WP543 */
        AR71XX_MACH_WRT160NL,   /* Linksys WRT160NL */
index febbfb9..790dfda 100644 (file)
@@ -689,10 +689,11 @@ wndr3700_cmdline=board=WNDR3700 console=ttyS0,115200
 wndr3700_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),6656k(rootfs),64k(art)ro,7680k@0x70000(firmware)
 wndr3700v2_cmdline=board=WNDR3700v2 console=ttyS0,115200
 wndr3700v2_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware)
 wndr3700_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),6656k(rootfs),64k(art)ro,7680k@0x70000(firmware)
 wndr3700v2_cmdline=board=WNDR3700v2 console=ttyS0,115200
 wndr3700v2_mtdlayout=mtdparts=spi0.0:320k(u-boot)ro,128k(u-boot-env)ro,1024k(kernel),14848k(rootfs),64k(art)ro,15872k@0x70000(firmware)
+wndr3800_cmdline=board=WNDR3800 console=ttyS0,115200
 define Image/Build/Profile/WNDR3700
        $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3700,$(wndr3700_cmdline),wndr3700_mtdlayout,3700,WNDR3700,"" NA,)
        $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3700v2,$(wndr3700v2_cmdline),wndr3700v2_mtdlayout,3701,WNDR3700v2,"",-H 29763654+16+64)
 define Image/Build/Profile/WNDR3700
        $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3700,$(wndr3700_cmdline),wndr3700_mtdlayout,3700,WNDR3700,"" NA,)
        $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3700v2,$(wndr3700v2_cmdline),wndr3700v2_mtdlayout,3701,WNDR3700v2,"",-H 29763654+16+64)
-       $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3800,$(wndr3700v2_cmdline),wndr3700v2_mtdlayout,3701,WNDR3800,"",-H 29763654+16+128)
+       $(call Image/Build/Template/$(fs_64k)/$(1),Netgear,wndr3800,$(wndr3800_cmdline),wndr3700v2_mtdlayout,3701,WNDR3800,"",-H 29763654+16+128)
 endef
 
 wr400n_cmdline=board=WRT400N console=ttyS0,115200
 endef
 
 wr400n_cmdline=board=WRT400N console=ttyS0,115200
This page took 0.026964 seconds and 4 git commands to generate.