Globalscale SheevaPlug: * Marvell Kirkwood 88F6281 * 512 MB SDRAM * 512 MB Flash * Gigabit Network * USB 2.0 * SD slot * Serial console The device is supported in mainline uboot/linux the commit adds only some openwrt config for building an image. Installation: 1 - Update uboot: setenv ipaddr '192.168.0.111' setenv serverip '192.168.0.1' tftpboot u-boot.kwb nand erase 0x0 0x100000 nand write 0x800000 0x0 0x100000 reset 2 - Install OpenWRT: setenv ethaddr 00:50:43:01:xx:xx saveenv setenv ipaddr '192.168.0.111' setenv serverip '192.168.0.1' tftpboot openwrt-kirkwood-globalscale_sheevaplug-squashfs-factory.bin nand erase.part ubi nand write 0x800000 ubi 0x600000 reset Signed-off-by: BERENYI Balazs <balazs@wee.hu> Reviewed-by: Pawel Dembicki <paweldembicki@gmail.com> [add vendor name for uboot-kirkwood, merge patches, copy to 5.10, add AUTORELEASE for uboot-kirkwood, refresh patches] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
50 lines
1 KiB
Text
50 lines
1 KiB
Text
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/functions/system.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
"checkpoint,l-50")
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8 dmz" "eth0"
|
|
;;
|
|
"cisco,on100")
|
|
ucidef_set_interface_lan "eth0 eth1"
|
|
;;
|
|
"cloudengines,pogoe02"|\
|
|
"cloudengines,pogoplugv4"|\
|
|
"globalscale,sheevaplug"|\
|
|
"iom,iconnect-1.1"|\
|
|
"iom,ix2-200"|\
|
|
"raidsonic,ib-nas62x0"|\
|
|
"seagate,blackarmor-nas220"|\
|
|
"seagate,dockstar"|\
|
|
"seagate,goflexhome"|\
|
|
"seagate,goflexnet"|\
|
|
"zyxel,nsa310s")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
;;
|
|
"linksys,e4200-v2"|\
|
|
"linksys,ea3500"|\
|
|
"linksys,ea4500")
|
|
ucidef_set_interfaces_lan_wan "ethernet1 ethernet2 ethernet3 ethernet4" "internet"
|
|
ucidef_set_interface_macaddr "wan" $( mtd_get_mac_ascii u_env eth1addr )
|
|
;;
|
|
"zyxel,nsa310b"|\
|
|
"zyxel,nsa325")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
|
|
;;
|
|
*)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|