forked from Ivasoft/openwrt
brcm2708: add Raspberry Pi 3 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 48967
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user