2012-07-16 22:32:00 +00:00
|
|
|
#
|
2014-05-28 21:43:42 +00:00
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
2012-07-16 22:32:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
|
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2014-06-26 10:14:14 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2020-01-26 16:22:28 +00:00
|
|
|
checkpoint,l-50|\
|
2018-01-08 22:49:22 +00:00
|
|
|
cloudengines,pogoe02|\
|
|
|
|
cloudengines,pogoplugv4|\
|
2024-01-05 17:42:53 +00:00
|
|
|
dlink,dns320l|\
|
2021-01-02 18:49:42 +00:00
|
|
|
globalscale,sheevaplug|\
|
kirkwood: add support for Iomega Storcenter ix2-200
Iomega Storcenter ix2-200 is a dual SATA NAS powered by a Marvell
Kirkwood SoC clocked at 1GHz. It has 256MB of RAM and 32MB of
flash memory, 3x USB 2.0 and 1x 1Gbit/s NIC
Specification:
- SoC: Marvell Kirkwood 88F6281
- CPU/Speed: 1000Mhz
- Flash-Chip: Hynix NAND
- Flash size: 32 MiB,erase size:16 KiB,page size:512,OOB size:16
- RAM: 256MB
- LAN: 1x 1000 Mbps Ethernet
- WiFi: none
- 3x USB 2.0
- UART: for serial console
Installation instructions - easy steps:
1. download factory.bin and copy into tftp server
2. access uboot environment with serial cable and run
```
setenv mainlineLinux yes
setenv arcNumber 1682
setenv console 'console=ttyS0,115200n8'
setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
setenv bootargs_root 'root='
setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
saveenv
setenv serverip 192.168.1.1
setenv ipaddr 192.168.1.13
tftpboot 0x00800000 factory.bin
nand erase 0x100000 $(filesize)
nand write 0x00800000 0x100000 $(filesize)
run bootcmd
```
3. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)
Installation steps nand bad blocks proof:
1. download initramfs-uImage and copy into usb ext2 partition
```
mkfs.ext2 -L ext2 /dev/sdh1
mount -t ext2 /dev/sdh1 /mnt
cp initramfs-uImage /mnt/initramfs.bin
umount /mnt
```
2. access uboot environment with serial cable and run
```
setenv mainlineLinux yes
setenv arcNumber 1682
setenv console 'console=ttyS0,115200n8'
setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
setenv bootargs_root 'root='
setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
saveenv
usb reset; ext2load usb 0:1 0x00800000 /initramfs.bin; bootm 0x00800000
```
3. log into openwrt and sysupgrade to install into flash
```
sysupgrade -n /tmp/sysupgrade.bin
```
4. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)
Signed-off-by: Ademar Arvati Filho <arvati@hotmail.com>
2018-07-06 00:56:58 +00:00
|
|
|
iom,ix2-200|\
|
2024-03-12 00:54:38 +00:00
|
|
|
iom,ix4-200d|\
|
2020-06-12 22:36:01 +00:00
|
|
|
linksys,e4200-v2|\
|
|
|
|
linksys,ea4500|\
|
2020-08-30 20:26:14 +00:00
|
|
|
netgear,readynas-duo-v2|\
|
2018-01-08 22:49:22 +00:00
|
|
|
raidsonic,ib-nas62x0|\
|
|
|
|
seagate,dockstar|\
|
2017-12-28 09:18:48 +00:00
|
|
|
zyxel,nsa310b|\
|
2020-05-02 13:33:14 +00:00
|
|
|
zyxel,nsa310s|\
|
2018-01-08 22:49:22 +00:00
|
|
|
zyxel,nsa325)
|
2012-07-16 22:32:00 +00:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
|
|
|
|
;;
|
2020-06-12 22:36:01 +00:00
|
|
|
linksys,ea3500)
|
2015-11-11 12:48:29 +00:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
|
|
|
|
;;
|
2012-07-16 22:32:00 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
config_load ubootenv
|
|
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
|
|
|
|
exit 0
|