[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian on ix2-200



Hello,

Just to follow up with the Orion guys, you can bring an ix2-200 NAS up to date with the latest debian.

The latest Squeeze installer do not seem to support this box. I tried with the various flavor of Openrd but the network H/W is not detected.
So I went back to install the an old distribution (jessie ?) using Michael instructions at https://www.cyrius.com/debian/kirkwood/openrd/install/

The ix2-200 does not like FAT formatted usb drives so I used ext2 as suggested in : http://blog.nobiscuit.com/2011/08/06/installing-debian-to-disk-on-an-ix2-200/

before you start the installer, you have to set the uboot environment :

setenv ethaddr AA:00:00:00:00:01 (supposed to disable eth0 which is not present on the ix-200)
setenv mainlineLinux yes
setenv arcNumber 1682

After you get to the end of the install, flashkernel does not know about the ix2-200, so you need to prepare the flash images manually by dropping to a shell and executing :

chroot /target
apt-get install mtd-utils uboot-mkimage uboot-envtools
cd /boot
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d initrd.img-2.6.32-5-kirkwood uInitrd
mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.32-5 -d vmlinuz-2.6.32-5-kirkwood uImage

Once you restart, you can set the uboot environment to autostart :

bootcmd=setenv bootargs ${bootargs_console}; run bootcmd_sata; bootm 0x00800000 0x01100000 bootargs=console=ttyS0,115200 bootcmd_sata=ide reset; ext2load ide 1:1 0x01100000 /uInitrd; ext2load ide 1:1 0x00800000 /uImage bootargs_console=console=ttyS0,115200 root=/dev/mapper/root-root

The ext2load ide x:1, the x is the position of the drive in the unit.
The root=/your root mount point need to be setup.

After you complete the initial install, you can dist-upgrade to wheezy, squeeze and then stretch with a few bumps. it helps to install only a minimum set of package to start with and then only install what you really want once you are inthe final distribution.

At some point, you might want to tell flashkernel about the ix2-200 by adding these statements in /etc/flashkernel

Machine: Marvell RD-88F6281 Reference Board
Kernel-Flavors: kirkwood DTB-Id: kirkwood-iomega_ix2_200.dtb
DTB-Append-From: 3.17-rc1
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
Required-Packages: u-boot-tools

I am not sure about the 3.17rc1 for the DTB-Append-From, but the 3.16 kernel is not DTB enabled and the 4.3 is.

For reference, attached is my final environment for U-Boot.

It works :
uname -a
Linux xt2 4.3.0-1-kirkwood #1 Debian 4.3.5-1 (2016-02-06) armv5tel GNU/Linux

Not the fastest machine in the world ... but to reference the fact that you can still use this little box with an up-to date distribution...

If somebody can tell us how to use the latest installers with the correct dtb file, it would be great ...

Regards

Francois



flashkernel db in /etc/flashkernel

Machine: Marvell RD-88F6281 Reference Board
Kernel-Flavors: kirkwood
DTB-Id: kirkwood-iomega_ix2_200.dtb
DTB-Append-From: 3.17-rc1
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
Required-Packages: u-boot-tools

Final Environment


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 24
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
CASset=min
MALLOC_len=1
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
bootargs_end=:::DB88FXX81:eth1:none
bootargs_root=root=/dev/sda1 rw
kernel@nand=nand read.e 2000000 900000 300000
console=console=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x900000(kernel),0x1400000@0xC00000(root),0x6000000@0x2000000(root2),0x300000@0x100000(iomega_zImage),0x300000@0x540000(iomega_initrd)
ethprime=egiga1
filesize=1be0f8
fileaddr=200000
netmask=255.255.255.0
ipaddr=192.168.1.11
serverip=192.168.1.100
eth1addr=00:D0:B8:0D:4C:2C
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_start=0x540000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
arcNumber=1682
ethaddr=AA:00:00:00:00:01
bootcmd=setenv bootargs ${bootargs_console}; run bootcmd_sata; bootm 0x00800000 0x01100000
bootargs=console=ttyS0,115200
bootcmd_sata=ide reset; ext2load ide 1:1 0x01100000 /uInitrd; ext2load ide 1:1 0x00800000 /uImage
bootargs_console=console=ttyS0,115200 root=/dev/mapper/root-root
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=no
ethact=egiga1

Environment size: 2411/16380 bytes
Marvell>>



Reply to: