[OpenWrt-Devel] [Patch] ipq806x: add support for Netgear D7800
Imre Kaloz
kaloz at openwrt.org
Wed Dec 23 08:17:21 EST 2015
On Wed, 23 Dec 2015 14:12:00 +0100, Tathagata Das <tathagata at alumnux.com>
wrote:
<snip>
> - r7500)
> + r7500 |\
> + d7800)
> nand_do_platform_check $board $1
> return $?;
> ;;
> @@ -21,7 +22,8 @@
> case "$board" in
> AP148 |\
> - r7500)
> + r7500 |\
> + d7800)
> nand_do_upgrade "$1"
> ;;
> esac
Please follow the abc, please ;)
> Index: trunk/target/linux/ipq806x/base-files/lib/ipq806x.sh
> ===================================================================
> --- trunk/target/linux/ipq806x/base-files/lib/ipq806x.sh (revision
> 47890)
> +++ trunk/target/linux/ipq806x/base-files/lib/ipq806x.sh (working
> copy)
> @@ -23,6 +23,9 @@
> *"R7500")
> name="r7500"
> ;;
> + *"D7800")
> + name="d7800"
> + ;;
> esac
> [ -z "$name" ] && name="unknown"
ditto
> Index: trunk/target/linux/ipq806x/base-files/etc/board.d/01_leds
> ===================================================================
> --- trunk/target/linux/ipq806x/base-files/etc/board.d/01_leds (revision
> 47890)
> +++ trunk/target/linux/ipq806x/base-files/etc/board.d/01_leds (working
> copy)
> @@ -11,7 +11,8 @@
> board=$(ipq806x_board_name)
> case "$board" in
> -r7500)
> +r7500 |\
> +d7800)
> ucidef_set_led_usbdev "usb1" "USB 1" "r7500:white:usb1" "1-1"
> ucidef_set_led_usbdev "usb2" "USB 2" "r7500:white:usb3" "3-1"
> ucidef_set_led_netdev "wan" "WAN" "r7500:white:wan" "eth0"
> Index: trunk/target/linux/ipq806x/base-files/etc/board.d/02_network
> ===================================================================
> --- trunk/target/linux/ipq806x/base-files/etc/board.d/02_network
> (revision 47890)
> +++ trunk/target/linux/ipq806x/base-files/etc/board.d/02_network
> (working copy)
> @@ -13,7 +13,8 @@
> case "$board" in
> ap148 |\
> -r7500)
> +r7500 |\
> +d7800)
> ucidef_add_switch "switch0" \
> "1:lan" "2:lan" "3:lan" "4:lan" "6 at eth1" "5:wan" "0 at eth0"
> ;;
ditto
> Index:
> trunk/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X
> 4-D7800-device-tree.patch
> ===================================================================
> ---
> trunk/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X
> 4-D7800-device-tree.patch (revision 0)
> +++
> trunk/target/linux/ipq806x/patches-3.18/801-ARM-qcom-add-Netgear-Nighthawk-X
> 4-D7800-device-tree.patch (revision 0)
> @@ -0,0 +1,381 @@
> +--- a/arch/arm/boot/dts/Makefile 2015-09-22 18:30:09.033530282 +0530
> ++++ b/arch/arm/boot/dts/Makefile 2015-09-23 17:06:44.892947581 +0530
> +@@ -362,6 +362,7 @@
> + qcom-ipq8064-ap148.dtb \
> + qcom-ipq8064-db149.dtb \
> + qcom-ipq8064-r7500.dtb \
> ++ qcom-ipq8064-d7800.dtb \
> + qcom-msm8660-surf.dtb \
> + qcom-msm8960-cdp.dtb \
> + qcom-msm8974-sony-xperia-honami.dtb
ditto
> +--- a/arch/arm/boot/dts/qcom-ipq8064-d7800.dts 1970-01-01
> 05:30:00.000000000 +0530
> ++++ b/arch/arm/boot/dts/qcom-ipq8064-d7800.dts 2015-09-23
> 17:06:45.336947567 +0530
> +@@ -0,0 +1,368 @@
This should be qcom-ipq8064-netgear-d7800.dts
<snip>
> ++ chosen {
> ++ bootargs = "rootfstype=squashfs noinitrd";
I doubt this is needed.
Imre
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list