aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-08 18:11:55 +0000
committerJohn Crispin <john@openwrt.org>2016-03-08 18:11:55 +0000
commit993989880a1f2f5ad0877ba47d4e99919cfa8bf2 (patch)
treed4c66c67ad86224de9d4ba84e8bdb7a948e321f6 /target/linux/brcm2708/base-files
parentcd2114e19ceffb17b0f093718334148859f1adac (diff)
downloadupstream-993989880a1f2f5ad0877ba47d4e99919cfa8bf2.tar.gz
upstream-993989880a1f2f5ad0877ba47d4e99919cfa8bf2.tar.bz2
upstream-993989880a1f2f5ad0877ba47d4e99919cfa8bf2.zip
brcm2708: add Raspberry Pi 3 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 48967
Diffstat (limited to 'target/linux/brcm2708/base-files')
-rwxr-xr-xtarget/linux/brcm2708/base-files/etc/board.d/02_network5
-rw-r--r--target/linux/brcm2708/base-files/etc/diag.sh7
-rw-r--r--target/linux/brcm2708/base-files/etc/inittab2
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh5
-rw-r--r--target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm27087
5 files changed, 14 insertions, 12 deletions
diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index c47e8f0e23..7642c06c49 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2014-2015 OpenWrt.org
+# Copyright (C) 2014-2016 OpenWrt.org
. /lib/functions/uci-defaults.sh
. /lib/brcm2708.sh
@@ -13,7 +13,8 @@ board=$(brcm2708_board_name)
case "$board" in
rpi-b |\
rpi-b-plus |\
-rpi-2-b)
+rpi-2-b |\
+rpi-3-b)
ucidef_set_interface_lan "eth0"
;;
esac
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index 3a8dc86112..de21bcd8aa 100644
--- a/target/linux/brcm2708/base-files/etc/diag.sh
+++ b/target/linux/brcm2708/base-files/etc/diag.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-#
-# Copyright (C) 2015 OpenWrt.org
-#
+# Copyright (C) 2015-2016 OpenWrt.org
. /lib/functions/leds.sh
. /lib/brcm2708.sh
@@ -13,7 +11,8 @@ set_state() {
status_led="led0"
;;
rpi-b-plus |\
- rpi-2-b)
+ rpi-2-b |\
+ rpi-3-b)
status_led="led1"
;;
esac
diff --git a/target/linux/brcm2708/base-files/etc/inittab b/target/linux/brcm2708/base-files/etc/inittab
index c05c5551bc..a6c0bc85a6 100644
--- a/target/linux/brcm2708/base-files/etc/inittab
+++ b/target/linux/brcm2708/base-files/etc/inittab
@@ -1,4 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
-ttyAMA0::askfirst:/bin/ash --login
+::askconsole:/bin/ash --login
tty1::askfirst:/bin/ash --login
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index cb4089d8e2..5a59a2826d 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2015 OpenWrt.org
+# Copyright (C) 2015-2016 OpenWrt.org
ifname=""
@@ -21,6 +21,9 @@ brcm2708_detect() {
"Raspberry Pi 2 Model B Rev"*)
board_name="rpi-2-b"
;;
+ "Raspberry Pi 3 Model B Rev"*)
+ board_name="rpi-3-b"
+ ;;
*)
board_name="unknown"
;;
diff --git a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
index 154b01c4fe..578172e1da 100644
--- a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
+++ b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
@@ -1,7 +1,5 @@
#!/bin/sh
-#
-# Copyright (C) 2015 OpenWrt.org
-#
+# Copyright (C) 2015-2016 OpenWrt.org
. /lib/brcm2708.sh
@@ -9,7 +7,8 @@ set_preinit_iface() {
case "$(brcm2708_board_name)" in
rpi-b |\
rpi-b-plus |\
- rpi-2-b)
+ rpi-2-b |\
+ rpi-3-b)
ifname=eth0
;;
esac