Install firmware on a fresh disk (EZ Media & ix2-ng)

From NAS-Central Iomega Wiki
Jump to: navigation, search

Download imager firmware

For the EZ Media, download EZMedia-recovery-4.0.2.9960.zip. For the ix2-ng, download ix2-ng-4.0.2.9960-recovery.zip

Create imager stick

Extract the file to a FAT formatted USB stick, of at least 1GB.

Prepare disk

Ensure both disks are initialized with GPT partition table. Use the utility gdisk or fdisk to do this.

Now extract the files zImage and initrd from emctools/xxx_images/xxx.tgz. Connect the disk to your (Linux) PC, and write the files to the raw disk:

dd if=/path/to/zImage of=/dev/sdb seek=2048 
dd if=/path/to/initrd of=/dev/sdb seek=8192

Of course doublecheck that sdb is your intended nas disk. dd will happily overwrite whatever you offer as target.

Install firmware

Put the disk in the nas, plugin the stick, power it up, and after about 10 minutes (depending on your USB stick), the box should power-off. Remove the stick, and power it on again. After a few minutes you can connect to the webinterface. If there is an indication in the web page that the box is still starting, leave it alone until it's done. It is initializing the data volume. If you interrupt it, there will be

No shares

When there are no shares available, do a factory reset (System->Factory Reset). After rebooting, connect to webinterface. If there is an indication in the web page that the box is still starting, leave it alone until it's done. It is initializing the data volume.

Recovery log

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** ix2-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE 

U-Boot 1.1.4 (Oct 28 2011 - 15:18:22) Marvell version: 3.6.1 - EMC

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

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 800Mhz
SysClock = 533Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Found ADT7473, program PWM1 ... OK
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: Hitachi HDS721075CLA332                  Firm: JP3OA3GH Ser#:       JP2740HP0ZKJNH
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  3 ��� 2 ��� 1 ��� 0 

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: Hitachi HDS721075CLA332                  Firm: JP3OA3GH Ser#:       JP2740HP0ZKJNH
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512)


IDE read: device 1 block # 2048, count 6144 ... 6144 blocks read: OK

IDE read: device 1 block # 8192, count 6144 ... 6144 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2013-03-12  21:25:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2943440 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
   Image Name:   
   Created:      2013-04-08  17:29:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2834369 Bytes =  2.7 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho142.iomegacorp.com) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) Tue Mar 12 17:25:32 EDT 2013 v0.0.9 Tue Mar 12 17:25:32 EDT 2013
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 64960
Kernel command line: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 243584KB available (5480K code, 371K data, 140K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1589.24 BogoMIPS (lpj=7946240)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :  1393.200 MB/sec
   8regs     :  1096.000 MB/sec
   32regs    :  1070.800 MB/sec
xor: using function: arm4regs (1393.200 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP  Soc: 88F6282 A1 LE

 Detected Tclk 200000000 and SysClk 533333333 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1    133 MB/s
raid6: int32x2    156 MB/s
raid6: int32x4    164 MB/s
raid6: int32x8    126 MB/s
raid6: using algorithm int32x4 (164 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2768K
RTC has been updated!!!
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000edd4)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 481
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 1:0:0:0: Direct-Access     Hitachi  HDS721075CLA332  JP3O PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sda] 1465149168 512-byte logical blocks: (750 GB/698 GiB)
sd 1:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Proc tool API enabled
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
SPI Serial flash detected @ 0xf4000000, 1024KB (256sec x 4KB)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
0x00000007f000-0x000000080000 : "env"
0x00000007e000-0x00000007f000 : "env2"
 sda:Using Hamming 1-bit ECC for NAND device
No NAND device found!!!
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
 unknown partition table
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
iBoard_model 2
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2000-01-01 00:05:05 UTC (946685105)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Make node for mtd devices
HDD /dev/sda detected
cat: can't open '/sys/block/sdb/removable': No such file or directory
sh: mtd5: unknown operand
Create fw_env.config in /etc
Model name is ix2-ng
mdadm: cannot open /dev/sda1: No such device or address
cat: can't open '/sys/block/sda/sda1/size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/block///size': No such file or directory
Valid Disk 1 in md0: 
Valid Disk 2 in md0: 
USB Device node is /dev/sdb1
Checking to see the if the reset button is pressed or not
scsi 2:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 7913472 512-byte logical blocks: (4.05 GB/3.77 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
Checking for valid image on system
mdadm: /dev/md0 not identified in config file.
mdadm: md device /dev/md0 does not appear to be md: md0 stopped.
active.
mdadm: stopped /dev/md0
mdadm: /dev/md0 not identified in config file.
mount: mounting /dev/md0_vg/BFDlv on sysroot/boot failed: No such file or directory
umount: cannot umount /sysroot/boot: Invalid argument
Checking if there is an attached EMC Imager
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Checking for pre-image script... none.
Image tar file found: /usb_drive/emctools/ix2-ng_images/*.tgz
Extract Image tar file.
apps
apps.md5
config
config.md5
initrd
initrd.md5
oem
oem.md5
zImage
zImage.md5
apps is valid
config is valid
initrd is valid
zImage is valid
Found EMC Imager with apps and config image...
Started USB Imaging...
md: md0 stopped.
mdadm: stopped /dev/md0
mdadm: /dev/md0 not identified in config file.
---Mounting volume
mount: mounting /dev/md0_vg/BFDlv on sysroot/boot failed: No such file or directory
Going to do a full install
umount: cannot umount /sysroot/boot: Invalid argument
---Stop volumes
  Volume group "md0_vg" not found
---Stop raid
md: md0 stopped.
mdadm: stopped /dev/md0
---destroy raid
mdadm: Couldn't open /dev/sda1 for write - not zeroing
---Prepping drive: sda
Error: Can't have the end before the start!
Error: Can't have the end before the start!
10000+0 records in
10000+0 records out
---Creating partition on /dev/sda
                                                                          Information: You may need to update /etc/fstab.

                                                                          Information: You may need to update /etc/fstab.

---Starting raid
mdadm: /dev/sda1 appears to be part of a raid array:
    level=raid1 devices=1 ctime=Sun Mar  8 21:02:10 2015
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
mdadm: Defaulting to version 1.2 metadata
md: bind<sda1>
raid1: raid set md0 active with 1 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
mdadm: array /dev/md0 started.
---Creating volumes
 md0: unknown partition table
  WARNING: Forcing physical volume creation on /dev/md0 of volume group "md0_vg"
  Physical volume "/dev/md0" successfully created
  Volume group "md0_vg" successfully created
  Logical volume "BFDlv" created
---Formatting partitions
mke2fs 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/md0_vg/BFDlv is mounted.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
262144 inodes, 1048576 blocks
52428 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables:  0/32����� 1/32����� 2/32����� 3/32����� 4/32����� 5/32����� 6/32����� 7/32����� 8/32����� 9/32�����10/32�����11/32�����12/32�����13/32�����14/32�����15/32�����16/32�����17/32�����18/32�����19/32�����20/32�����21/32�����22/32�����23/32�����24/32�����25/32�����26/32�����27/32�����28/32�����29/32�����30/32�����31/32�����     �����done                            
Writing inode tables:  0/32����� 1/32����� 2/32����� 3/32����� 4/32����� 5/32����� 6/32����� 7/32����� 8/32����� 9/32�����10/32�����11/32�����12/32�����13/32�����14/32�����15/32�����16/32�����17/32�����18/32�����19/32�����20/32�����21/32�����22/32�����23/32�����24/32�����25/32�����26/32�����27/32�����28/32�����29/32�����30/32�����31/32�����     �����done                            
Writing superblocks and filesystem accounting information:  0/32����� 1/32����� 2/32����� 3/32����� 4/32����� 5/32����� 6/32����� 7/32����� 8/32����� 9/32�����10/32�����11/32�����12/32�����13/32�����14/32�����15/32�����16/32�����17/32�����18/32�����19/32�����20/32�����21/32�����22/32�����23/32�����24/32�����25/32�����26/32�����27/32�����28/32�����29/32�����30/32�����31/32�����     �����done

---Mounting volume
  1 logical volume(s) in volume group "md0_vg" now active
---Copying system image files
Copied apps config and oem image
BusyBox v1.9.2 (2013-04-08 13:28:37 EDT) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY

Options:
	-a	Same as -dpR
	-d,-P	Preserve links
	-H,-L	Dereference all symlinks (default)
	-p	Preserve file attributes if possible
	-f	Force overwrite
	-i	Prompt before overwrite
	-R,-r	Recurse directories
	-l,-s	Create (sym)links

BusyBox v1.9.2 (2013-04-08 13:28:37 EDT) multi-call binary

Usage: cp [OPTION]... SOURCE DEST

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY

Options:
	-a	Same as -dpR
	-d,-P	Preserve links
	-H,-L	Dereference all symlinks (default)
	-p	Preserve file attributes if possible
	-f	Force overwrite
	-i	Prompt before overwrite
	-R,-r	Recurse directories
	-l,-s	Create (sym)links

---Stop volumes
---Stop raid
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md0: detected capacity change from 21457928192 to 0
mdadm: stopped /dev/md0
---Writing hidden sectors
5749+1 records in
5749+1 records out
5536+1 records in
5536+1 records out
Remove the temp folder.
DONE copying images
Imaging Successful. Please remove the USB drive before the next power on
USB/DOM device is sdb
cat: can't open '/sys/block/sdc/removable': No such file or directory
Drives are sd[a]

/dev/sda:

/dev/sda:
 setting drive write-caching to 0 (off)
 write-caching =  0 (off)

/dev/sda:
 issuing standby command
md: stopping all md devices.
sd 1:0:0:0: [sda] Synchronizing SCSI cache
Power down.