Openmediavault 0.6 kralizec on Netgear Stora

How to install Openmediavault 0.6 Kralizec from start to finish on a Marvel Kirkwood such as the Netgear Stora

Needed - 

  1. Netgear stora or similar
  2. serial console cable

Step 1 - Modify u-boot

I used the stora u-boot from Doozan forum, Thanks Bodhi    uboot

Using a tftp server, I like Serva

Setup your tftp server's ip address and your stora  for me  My laptop is running at 192.168.2.91 and DNS320 at 192.168.2.88
 setenv serverip 192.168.2.91
 setenv ipaddr 192.168.2.89
saveenv
reset
Interrupt the boot again.
tftpboot 0x800000 uboot.2014.07-tld-1.netgear_ms2110.mtd0.kwb
nand erase 0x0 0x80000
nand write.e 0x800000 0x0 0x80000
reset

Step 2 - build main drive

I happen to have a 500G drive. 

root@debian:~# fdisk /dev/sda


Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4944b284

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     975002047      195312+  83  Linux
/dev/sda2       975002048   976773167      885560   82  Linux swap / Solaris

Command (m for help): ^C
root@debian:~# 


Step 3 - extract rootfs


I like to use the most current file system, fortunately bodhi has been doing a great job of making an updated kernel and rootfs available.  Thanks Bodhi.!  keep up the good work.  doozan forums

On a separate machine or with a Davy's rootfs  you can build the new drive.

mount /dev/sda1 /mnt
cd /mnt
tar -xf /root/Debian-3.14.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 

now some adjustment of the fstab

nano /mnt/etc/fstab

# /etc/fstab: static file system information.
#
#            
/dev/sda1      /               ext4    defaults           0       1
/dev/sda2      swap            swap    defaults           0       0
tmpfs           /tmp            tmpfs   defaults        0       0


Step 4 - some adjustments to u-boot

reboot and interrupt the boot process.

 setenv boot_sata1 'mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts; ide reset; ext2load ide 0:1 0x800000 /uImage; ext2load ide 0:1 0x01100000 /uInitrd; bootm 0x00800000 0x01100000'

 setenv  bootargs 'console=ttyS0,115200 root=LABEL=USBROOT rootdelay=10 rootfstype=ext4 mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)'
 saveenv
 reset

FYI  the username and password are root/root

Enable IPv6

  1. Make sure you have the proper ipv6 support packages installed: apt-get install iproute iputils-ping iputils-tracepath
  2. Other ipv6 related packages can be found by searching apt-cache search ipv6
  3. Test to see that the ipv6 kernel module is loaded: lsmod |grep ipv6

  4. 2.a) If the module is not loaded, run: modprobe ipv6
  5. 2.b) Add ipv6 to /etc/modules to have the module load at boot time. Read ‘man 5 modules’ for documentation on this file’s format.
  6. To enable privacy addressing for all network interfaces, add these lines to /etc/sysctl.conf
  7. net.ipv6.conf.all.use_tempaddr=2 
  8. net.ipv6.conf.default.use_tempaddr=2

Step 5 - Install Openmediavault

update sources.list

nano /etc/apt/sources.list

deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy main contrib non-free

deb http://ftp.us.debian.org/debian wheezy-proposed-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy-proposed-updates main contrib non-free

deb http://ftp.us.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy-updates main contrib non-free

deb http://ftp.us.debian.org/debian wheezy-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy-backports main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

apt-get update && apt-get upgrade -y

The rest of the install I credit openmediavault forums  Thanks ryecoaaron

1 - echo "deb http://packages.openmediavault.org/public kralizec main" > /etc/apt/sources.list.d/openmediavault.list
2 - apt-get update
3 - apt-get install openmediavault-keyring postfix
4 - apt-get update
5 - apt-get install openmediavault
6 - omv-initsystem





Comments

Anonymous said…
Hi,
Is it possible to replace original uboot?
I am little bit affraid to touch it.