ca27b3d370
The Cisco ON100 device is a Kirkwood based router: SoC: Marvell 88F6282 1600Mhz SDRAM memory: 512MB DDR3 1333Mhz Gigabit ethernet: 2x Marvell 88E1310 (over RGMII) Flash memory: 512MB 2 bi-colour status LEDs (green/red) 1 Reset button 1 USB 2.0 port (on back) 1 SDIO slot (on back) This commit adds a target profile of "Cisco Systems ON100" under the target system "Marvell Kirkwood". Flashing can be performed over tftp, once "dhcp" has been issued: tftpboot ${loadaddr} lede-kirkwood-on100-squashfs-factory.bin nand erase 0x0c0000 ${filesize} nand write ${loadaddr} 0x0c0000 ${filesize} Once flashed, set environment variables to boot: setenv bootcmd nand read \${loadaddr} 0x0c0000 0x540000\; setenv bootargs \; bootm saveenv Signed-off-by: Makoto Takeuchi <mak0@lxsys.co.uk>
98 lines
1.5 KiB
Bash
Executable file
98 lines
1.5 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
#
|
|
|
|
KIRKWOOD_BOARD_NAME=
|
|
KIRKWOOD_MODEL=
|
|
|
|
kirkwood_board_detect() {
|
|
local machine
|
|
local name
|
|
|
|
machine=$(cat /proc/device-tree/model)
|
|
|
|
case "$machine" in
|
|
"Seagate FreeAgent Dockstar")
|
|
name="dockstar"
|
|
;;
|
|
|
|
"Seagate GoFlex Home")
|
|
name="goflexhome"
|
|
;;
|
|
|
|
"Seagate GoFlex Net")
|
|
name="goflexnet"
|
|
;;
|
|
|
|
"Iomega Iconnect")
|
|
name="iconnect"
|
|
;;
|
|
|
|
"RaidSonic ICY BOX IB-NAS62x0 (Rev B)")
|
|
name="ib62x0"
|
|
;;
|
|
|
|
"Cisco Systems ON100")
|
|
name="on100"
|
|
;;
|
|
|
|
"Cloud Engines Pogoplug E02")
|
|
name="pogo_e02"
|
|
;;
|
|
|
|
"Linksys EA3500")
|
|
name="linksys-audi"
|
|
;;
|
|
|
|
"Linksys E4200v2 / EA4500")
|
|
name="linksys-viper"
|
|
;;
|
|
|
|
"Globalscale Technologies Guruplug Server Plus")
|
|
name="guruplug-server-plus"
|
|
;;
|
|
|
|
"Globalscale Technologies SheevaPlug")
|
|
name="sheevaplug"
|
|
;;
|
|
|
|
"Globalscale Technologies eSATA SheevaPlug")
|
|
name="sheevaplug-esata"
|
|
;;
|
|
|
|
"ZyXEL NSA310b")
|
|
name="nsa310b"
|
|
;;
|
|
|
|
"ZyXEL NSA310S")
|
|
name="nsa310s"
|
|
;;
|
|
|
|
"ZyXEL NSA325")
|
|
name="nsa325"
|
|
;;
|
|
|
|
*)
|
|
name="generic"
|
|
;;
|
|
esac
|
|
|
|
[ -z "$KIRKWOOD_BOARD_NAME" ] && KIRKWOOD_BOARD_NAME="$name"
|
|
[ -z "$KIRKWOOD_MODEL" ] && KIRKWOOD_MODEL="$machine"
|
|
|
|
[ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
|
|
|
|
echo "$KIRKWOOD_BOARD_NAME" > /tmp/sysinfo/board_name
|
|
echo "$KIRKWOOD_MODEL" > /tmp/sysinfo/model
|
|
}
|
|
|
|
kirkwood_board_name() {
|
|
local name
|
|
|
|
[ -f /tmp/sysinfo/board_name ] || kirkwood_board_detect
|
|
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
|
[ -z "$name" ] && name="unknown"
|
|
|
|
echo "$name"
|
|
}
|