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>
49 lines
706 B
Bash
Executable file
49 lines
706 B
Bash
Executable file
#!/bin/sh
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
. /lib/functions/leds.sh
|
|
. /lib/kirkwood.sh
|
|
|
|
get_status_led() {
|
|
case $(kirkwood_board_name) in
|
|
dockstar|\
|
|
goflexhome|\
|
|
goflexnet)
|
|
status_led="status:orange:fault"
|
|
;;
|
|
pogo_e02)
|
|
status_led="pogo_e02:orange:fault"
|
|
;;
|
|
linksys-audi)
|
|
status_led="audi:green:power"
|
|
;;
|
|
linksys-viper)
|
|
status_led="viper:white:health"
|
|
;;
|
|
nsa310b)
|
|
status_led="nsa310:green:sys"
|
|
;;
|
|
on100)
|
|
status_led="on100:green:health"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
set_state() {
|
|
get_status_led
|
|
|
|
case "$1" in
|
|
preinit)
|
|
status_led_blink_preinit
|
|
;;
|
|
failsafe)
|
|
status_led_blink_failsafe
|
|
;;
|
|
preinit_regular)
|
|
status_led_blink_preinit_regular
|
|
;;
|
|
done)
|
|
status_led_on
|
|
;;
|
|
esac
|
|
}
|