Welcome! Log In Create A New Profile

Advanced

Iomega ix4-200d U-boot needed

Posted by Reto 
Re: Who can compile an u-boot bin for me?
January 29, 2016 09:18AM
Reto Wrote:
-------------------------------------------------------
> So should I first modify the fw_env.config to
> reflect the above values?

Yes.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 02, 2016 02:07AM
I am having no luck :-(

root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x4000

root@debian:/tools# ./flash_erase /dev/mtd0 0 32
Erase Total 32 Units
Performing Flash Erase of length 16384 at offset 0x7c000 done
root@debian:/tools# ./nandwrite /dev/mtd0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb 
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x4000
Writing data to block 2 at offset 0x8000
Writing data to block 3 at offset 0xc000
Writing data to block 4 at offset 0x10000
Writing data to block 5 at offset 0x14000
Writing data to block 6 at offset 0x18000
Writing data to block 7 at offset 0x1c000
Writing data to block 8 at offset 0x20000
Writing data to block 9 at offset 0x24000
Writing data to block 10 at offset 0x28000
Writing data to block 11 at offset 0x2c000
Writing data to block 12 at offset 0x30000
Writing data to block 13 at offset 0x34000
Writing data to block 14 at offset 0x38000
Writing data to block 15 at offset 0x3c000
Writing data to block 16 at offset 0x40000
Writing data to block 17 at offset 0x44000
Writing data to block 18 at offset 0x48000
Writing data to block 19 at offset 0x4c000
Writing data to block 20 at offset 0x50000
Writing data to block 21 at offset 0x54000
Writing data to block 22 at offset 0x58000
Writing data to block 23 at offset 0x5c000
Writing data to block 24 at offset 0x60000
Writing data to block 25 at offset 0x64000
Writing data to block 26 at offset 0x68000
Writing data to block 27 at offset 0x6c000
Writing data to block 28 at offset 0x70000
Writing data to block 29 at offset 0x74000
Writing data to block 30 at offset 0x78000
Writing data to block 31 at offset 0x7c000

root@debian:/tools# ./flash_erase /dev/mtd0 0xc0000 8Erase Total 8 Units
Performing Flash Erase of length 16384 at offset 0xdc000 done
root@debian:/tools# ./nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-3.environment.img 
Writing data to block 48 at offset 0xc0000
Writing data to block 49 at offset 0xc4000
Writing data to block 50 at offset 0xc8000
Writing data to block 51 at offset 0xcc000
Writing data to block 52 at offset 0xd0000
Writing data to block 53 at offset 0xd4000
Writing data to block 54 at offset 0xd8000
Writing data to block 55 at offset 0xdc000

root@debian:/tools# fw_printenv
Too few good blocks within range
Re: Iomega ix4-200d U-boot needed
February 02, 2016 03:02AM
Try rebooting. Power cycle. Don't boot with kwboot. Only serial console and see if the new u-boot is loaded and executed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 02, 2016 06:58AM
Absolutely no output...
Re: Iomega ix4-200d U-boot needed
February 02, 2016 12:44PM
Reto Wrote:
-------------------------------------------------------
> Absolutely no output...

I guess it's time to look for stock mtd0 dump. Let's see if DaMacc can provide us with this.

In the mean time, you can boot with this method and make sure that the kernel is running OK, all peripherals are working (I expect everything is working, as DaMacc reported).

One last item, I'm wondering if there is SPI interface in this box?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Who can compile an u-boot bin for me?
February 03, 2016 11:42PM
bodhi,

gedurin at the NAS forum sent me a mtd0.bin http://forum.nas-central.org/viewtopic.php?f=251&t=18299&p=101383#p101383
Is this what we are looking for?

Reto
Re: Who can compile an u-boot bin for me?
February 03, 2016 11:54PM
Reto Wrote:
-------------------------------------------------------
> bodhi,
>
> gedurin at the NAS forum sent me a mtd0.bin
> http://forum.nas-central.org/viewtopic.php?f=251&t
> =18299&p=101383#p101383
> Is this what we are looking for?
>
> Reto

If you download this and attach the mtd0 here. I'll take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 03, 2016 11:58PM
Sorry...
Attachments:
open | download - mtd0.bin (640 KB)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 12:22AM
Reto,

Try kwboot with it

./kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.bin -p

If it load and runs. Interrupt serial console and printenv
printenv

You won't be able to boot right away, but we should be be able to change env to boot USB rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 01:17AM
Looks promising! Although it says IX4-110 LE so I am not sure if this is the correct u-boot. But most of it seems to work, disk recognized, LCD screen on the box is back to life...

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v1.1.1 **

 ** MARVELL BOARD: IX4-110 LE 

U-Boot 1.1.4 (Mar 10 2011 - 15:01:57) Marvell version: 3.4.18

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

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Found 0x20 i2c device
Toggle power status
Set Power State as Always On
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB
Found ADT7473, program LED ...(led_volt=90)  OK
Found ADT7473, program thermal/Fan ...(pwm_min=0) (pwm_max=130) (therm=67) (temp_min=60)  OK

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)
Could not found correct initrd

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
SCSI:  AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x7 impl IDE mode
flags: 64bit ncq stag led pmp slum part 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: WDC WD20EFRX-68A Rev: 80.0
            Type: Hard Disk
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 

Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x228000
initrd_start=0x2d8000
initrd_size=0x300000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash);
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000;
bootcmd=run flash_load;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethaddr=00:50:43:f6:15:30
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.1
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
disaMvPnp=no
eth1addr=00:50:43:f6:15:31
enaAutoRecovery=yes
pcieTune=no
ethact=egiga0

Environment size: 1627/16380 bytes
Re: Iomega ix4-200d U-boot needed
February 04, 2016 02:39AM
Reto,

Also get the list of available u-boot commands:

help

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 02:44AM
It does look like the correct u-boot. You can compare with damacc's serial log here:
http://forum.doozan.com/read.php?2,22623,22627#msg-22627

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 02:48AM
somehow flinfo does not return anything, no error, nothing...

Marvell>> help
?       - alias for 'help'
SatR - sample at reset sub-system, relevent for DB only
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name 
bootm   - boot application image from memory
bootp	- boot image via network using BootP/TFTP protocol
bubt	- Burn an image on the Boot Nand Flash.
chpart	- change active partition
cmp     - memory compare
cmpm	- Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk	- Display the MV device CLKs.
dhcp	- invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fi	- Find value in the memory.
flinfo  - print FLASH memory information
fsinfo	- print information about filesystems
fsload	- load binary file from a filesystem image
g	- start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir	- reading and changing MV internal register values.
loop    - infinite loop on address range
ls	- list files in a directory (default /)
map	- Diasplay address decode windows
md      - memory display
me	- PCI master enable
mm      - memory modify (auto-incrementing)
mp	- map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nand                   - NAND sub-system
nboot   - boot from NAND device
nbubt	- Burn a boot loader image on the Boot Nand Flash.
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead	- Read PCI-E Phy register
pciePhyWrite	- Write PCI-E Phy register
phyRead	- Read Phy register
phyWrite	- Write Phy register
ping	- send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
rcvr	- Satrt recovery process (Distress Beacon with TFTP server)
reset   - Perform RESET of the CPU
resetenv	- Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
scsi    - SCSI sub-system
scsiboot- boot from SCSI device
se	- PCI Slave enable
setenv  - set environment variables
sflash	- read, write or erase the external SPI Flash.
sg	- scanning the PHYs status
sp	- Scan PCI bus.
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version



Edited 1 time(s). Last edit at 02/04/2016 02:49AM by Reto.
Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:05AM
Ok. Let's try booting USB.

kwboot again, interrupt serial console and:
setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10'
setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000'
setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset'
printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:13AM
So far so good...

Marvell>> setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000'
Marvell>> setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset'
Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) 
uboot_start=0x0
uboot_size=0xa0000
env_start=0xa0000
env_size=0x10000
kernel_start=0xb0000
kernel_size=0x228000
initrd_start=0x2d8000
initrd_size=0x300000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash);
flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethaddr=00:50:43:f6:15:30
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v1.1.1
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
disaMvPnp=no
eth1addr=00:50:43:f6:15:31
enaAutoRecovery=yes
pcieTune=no
ethact=egiga0
usb_make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10
load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
usb_boot=usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000
bootcmd=run usb_make_boot_args ; run usb_boot; reset

Environment size: 2105/16380 bytes
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
...............................................................................................................................................................................................................................................................................................................

3156720 bytes read
....
............................
.............................................................................................................................................................................................................................................................................................................................................................................................
...........................................................................................................................................................................................................

6325849 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1
   Created:      2016-01-29  13:58:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3156656 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-22  14:30:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6325785 Bytes =  6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Iomega ix4-200d
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0xa0000@0x0(uboot),0x10000@0xa0000(env),0x228000@0xb0000(zImage),0x300000@0x2d8000(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 504304K/524288K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 19984K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000406] Console: colour dummy device 80x30
[    0.000436] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090098] pid_max: default: 32768 minimum: 301
[    0.090225] Security Framework initialized
[    0.090307] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091055] Initializing cgroup subsys blkio
[    0.091083] Initializing cgroup subsys devices
[    0.091106] Initializing cgroup subsys freezer
[    0.091137] Initializing cgroup subsys net_cls
[    0.091221] CPU: Testing write buffer coherency: ok
[    0.091605] Setting up static identity map for 0x8200 - 0x8258
[    0.091870] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095318] devtmpfs: initialized
[    0.099591] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100029] prandom: seed boundary self test passed
[    0.103827] prandom: 100 self tests passed
[    0.103852] pinctrl core: initialized pinctrl subsystem
[    0.105181] NET: Registered protocol family 16
[    0.105598] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130092] cpuidle: using governor ladder
[    0.160091] cpuidle: using governor menu
[    0.160487] Feroceon L2: Enabling L2
[    0.160531] Feroceon L2: Cache support initialised.
[    0.160899] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161002] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.165946] No ATAGs?
[    0.201543] vgaarb: loaded
[    0.201919] usbcore: registered new interface driver usbfs
[    0.202001] usbcore: registered new interface driver hub
[    0.202067] usbcore: registered new device driver usb
[    0.203152] clocksource: Switched to clocksource orion_clocksource
[    0.259497] NET: Registered protocol family 2
[    0.260133] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260194] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260246] TCP: Hash tables configured (established 4096 bind 4096)
[    0.260309] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260334] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260539] NET: Registered protocol family 1
[    0.260928] RPC: Registered named UNIX socket transport module.
[    0.260940] RPC: Registered udp transport module.
[    0.260947] RPC: Registered tcp transport module.
[    0.260955] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261221] Unpacking initramfs...
[    0.810400] Freeing initrd memory: 6180K (c1100000 - c1709000)
[    0.810528] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.811590] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.811621] Initialise system trusted keyring
[    0.811742] audit: initializing netlink subsys (disabled)
[    0.811789] audit: type=2000 audit(0.800:1): initialized
[    0.812420] zpool: loaded
[    0.812437] zbud: loaded
[    0.812751] VFS: Disk quotas dquot_6.6.0
[    0.812812] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.813451] NFS: Registering the id_resolver key type
[    0.813496] Key type id_resolver registered
[    0.813505] Key type id_legacy registered
[    0.813533] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.813549] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.813777] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.814303] Key type big_key registered
[    0.836729] Key type asymmetric registered
[    0.836753] Asymmetric key parser 'x509' registered
[    0.836845] bounce: pool size: 64 pages
[    0.836916] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.836934] io scheduler noop registered
[    0.836947] io scheduler deadline registered
[    0.837003] io scheduler cfq registered (default)
[    0.838311] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.838968] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.839386] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.840217] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.840237] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.840251] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.840265] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.840623] PCI: bus0: Fast back to back transfers disabled
[    0.840650] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.841426] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.841473] PCI: bus1: Fast back to back transfers disabled
[    0.841640] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.841657] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    0.841676] pci 0000:01:00.0: BAR 5: assigned [mem 0xe0000000-0xe00003ff]
[    0.841696] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    0.841714] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    0.841731] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    0.841750] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    0.841767] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    0.841784] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.841797] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    0.841812] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.842118] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.883845] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.923825] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.924038] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.963826] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.003832] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.004300] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.005734] console [ttyS0] disabled
[    1.005793] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.766092] console [ttyS0] enabled
[    1.770831] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[    1.777248] nand: Samsung NAND 32MiB 3,3V 8-bit
[    1.781803] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    1.789173] Scanning device for bad blocks
[    2.134603] 5 cmdlinepart partitions found on MTD device orion_nand
[    2.140900] Creating 5 MTD partitions on "orion_nand":
[    2.146091] 0x000000000000-0x0000000a0000 : "uboot"
[    2.152033] 0x0000000a0000-0x0000000b0000 : "env"
[    2.157793] 0x0000000b0000-0x0000002d8000 : "zImage"
[    2.163853] 0x0000002d8000-0x0000005d8000 : "initrd"
[    2.169910] 0x000000000000-0x000002000000 : "flash"
[    2.177335] libphy: Fixed MDIO Bus: probed
[    2.181785] libphy: orion_mdio_bus: probed
[    2.197477] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.283745] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:f6:15:30
[    4.363905] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:f6:15:31
[    4.372968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.379596] ehci-pci: EHCI PCI platform driver
[    4.384155] ehci-orion: EHCI orion driver
[    4.388356] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.393922] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.401788] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    4.423187] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.429437] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.436287] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.443560] usb usb1: Product: EHCI Host Controller
[    4.448459] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    4.455122] usb usb1: SerialNumber: f1050000.ehci
[    4.460533] hub 1-0:1.0: USB hub found
[    4.464384] hub 1-0:1.0: 1 port detected
[    4.469180] mousedev: PS/2 mouse device common for all mice
[    4.475470] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    4.482538] i2c /dev entries driver
[    4.487565] hidraw: raw HID events driver (C) Jiri Kosina
[    4.493396] drop_monitor: Initializing network drop monitor service
[    4.499932] NET: Registered protocol family 17
[    4.504537] Key type dns_resolver registered
[    4.509658] Loading compiled-in X.509 certificates
[    4.514539] registered taskstats version 1
[    4.518711] zswap: loading zswap
[    4.521961] zswap: using zbud pool
[    4.525405] zswap: using lzo compressor
[    4.540236] Key type encrypted registered
[    4.544996] rtc-mv f1010300.rtc: setting system clock to 2016-02-04 09:12:09 UTC (1454577129)
[    4.555885] Freeing unused kernel memory: 284K (c07db000 - c0822000)
Loading, please wait...
[    4.634060] udevd[85]: starting version 175
[    4.783255] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.901651] SCSI subsystem initialized
[    4.945186] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.951946] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.971254] usb 1-1: Product: USB2.0 Hub
[    4.984316] hub 1-1:1.0: USB hub found
[    4.991466] hub 1-1:1.0: 4 ports detected
[    5.056840] pci 0000:00:01.0: enabling device (0140 -> 0143)
[    5.062612] ahci 0000:01:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
[    5.101610] sata_mv f1080000.sata: slots 32 ports 2
[    5.153288] scsi host0: sata_mv
[    5.162458] ahci 0000:01:00.0: controller can't do NCQ, turning off CAP_NCQ
[    5.176830] scsi host1: sata_mv
[    5.180335] ata1: SATA max UDMA/133 irq 33
[    5.200521] ahci 0000:01:00.0: controller can't do PMP, turning off CAP_PMP
[    5.217140] ata2: SATA max UDMA/133 irq 33
[    5.235753] ahci 0000:01:00.0: masking port_map 0x7 -> 0x3
[    5.241365] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[    5.273265] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    5.293806] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
[    5.301888] ahci 0000:01:00.0: flags: 64bit stag led slum part 
[    5.313321] scsi host2: ahci
[    5.317157] scsi host3: ahci
[    5.320946] scsi host4: ahci
[    5.324653] ata3: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000100 irq 84
[    5.332084] ata4: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000180 irq 84
[    5.339581] ata5: DUMMY
[    5.394427] usb 1-1.2: New USB device found, idVendor=125f, idProduct=de7a
[    5.401352] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.408733] usb 1-1.2: Product: ADATA USB Flash Drive
[    5.413823] usb 1-1.2: Manufacturer: ADATA
[    5.417939] usb 1-1.2: SerialNumber: 14B1311102300064
[    5.450345] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    5.457088] scsi host5: usb-storage 1-1.2:1.0
[    5.463385] usbcore: registered new interface driver usb-storage
[    5.472556] usbcore: registered new interface driver uas
[    5.563210] ata1: SATA link down (SStatus 0 SControl F300)
[    5.683200] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.689955] ata3.00: ATA-9: WDC WD20EFRX-68AX9N0, 80.00A80, max UDMA/133
[    5.696718] ata3.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.704059] ata3.00: configured for UDMA/133
[    5.933187] ata2: SATA link down (SStatus 0 SControl F300)
[    5.953577] scsi 2:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0A80 PQ: 0 ANSI: 5
[    6.313199] ata4: SATA link down (SStatus 0 SControl 300)
[    6.372204] sd 2:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    6.381114] sd 2:0:0:0: [sda] 4096-byte physical blocks
[    6.386754] sd 2:0:0:0: [sda] Write Protect is off
[    6.391701] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.454015] scsi 5:0:0:0: Direct-Access     ADATA    USB Flash Drive  1.00 PQ: 0 ANSI: 6
[    6.462926]  sda: sda1
[    6.474340] sd 5:0:0:0: [sdb] 123480064 512-byte logical blocks: (63.2 GB/58.8 GiB)
[    6.482506] sd 2:0:0:0: [sda] Attached SCSI disk
[    6.491908] sd 5:0:0:0: [sdb] Write Protect is off
[    6.503849] sd 5:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[    6.518008] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    6.526599] sd 5:0:0:0: Attached scsi generic sg1 type 0
[    6.533463]  sdb: sdb1
[    6.538719] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   16.853669] EXT3-fs (sdb1): mounted filesystem with ordered data mode
Begin: Running /scripts/local-bo[   16.862132] kjournald starting.  Commit interval 5 seconds
ttom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.004481] udevd[317]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   18.790683] random: nonblocking pool is initialized
[   18.826524] orion_wdt: Initial timeout 21 sec
[   18.962670] adt7475 0-002e: ADT7473 device, revision 0
[   19.002150] adt7475 0-002e: Optional features: fan4 pwm2
done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 15997/3859072 files, 462346/15435004 blocks
done.
[   20.739254] EXT3-fs (sdb1): using internal journal
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /lib/init/rw.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...[   25.280287] NET: Registered protocol family 10
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   26.537586] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Listening on LPF/eth0/00:50:43:f6:15:30
Sending on   LPF/eth0/00:50:43:f6:15:30
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1810 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
1811 (klogd)
. ok 
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonTimeout reached while wating for return value
Could not receive return value from daemon process.
 (warning).

Debian GNU/Linux 7 debian ttyS0

debian login: root
Password: 
Last login: Mon Feb  1 23:36:18 PST 2016 on ttyS0
Linux debian 4.2.0-kirkwood-tld-1 #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# 

Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:32AM
Excellent :)

The stock mtdparts are not what we had assumed:

[    2.134603] 5 cmdlinepart partitions found on MTD device orion_nand
[    2.140900] Creating 5 MTD partitions on "orion_nand":
[    2.146091] 0x000000000000-0x0000000a0000 : "uboot"
[    2.152033] 0x0000000a0000-0x0000000b0000 : "env"
[    2.157793] 0x0000000b0000-0x0000002d8000 : "zImage"
[    2.163853] 0x0000002d8000-0x0000005d8000 : "initrd"
[    2.169910] 0x000000000000-0x000002000000 : "flash"

Ok. Let's get more info and I'll come back tomorrow to continue.

In Debian, reverify the mtds:

cat /proc/mtd
mtdinfo

I think it is all good for you to revive your mtd0 with stock u-boot and use it for booting new kernel. But we'll need to work out the new flash commands.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:37AM
And to get network connection you also need to set MAC addr like before:
setenv ethaddr  xxxxx

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:52AM
The network connection does not work although I have set the MAC address... Is it normal that u-boot is saying egiga0 and Debian eth0

root@debian:/tools# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00004000 "uboot"
mtd1: 00010000 00004000 "env"
mtd2: 00228000 00004000 "zImage"
mtd3: 00300000 00004000 "initrd"
mtd4: 02000000 00004000 "flash"

root@debian:/tools# ./mtdinfo
Count of MTD devices:           5
Present MTD devices:            mtd0, mtd1, mtd2, mtd3, mtd4
Sysfs interface supported:      yes
Re: Iomega ix4-200d U-boot needed
February 04, 2016 03:54AM
Ah, I meant:

mtdinfo -a

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 04, 2016 04:00AM
root@debian:/tools# ./mtdinfo -a
Count of MTD devices:           5
Present MTD devices:            mtd0, mtd1, mtd2, mtd3, mtd4
Sysfs interface supported:      yes

mtd0
Name:                           uboot
Type:                           nand
Eraseblock size:                16384 bytes, 16.0 KiB
Amount of eraseblocks:          40 (655360 bytes, 640.0 KiB)
Minimum input/output unit size: 512 bytes
Sub-page size:                  256 bytes
OOB size:                       16 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtd1
Name:                           env
Type:                           nand
Eraseblock size:                16384 bytes, 16.0 KiB
Amount of eraseblocks:          4 (65536 bytes, 64.0 KiB)
Minimum input/output unit size: 512 bytes
Sub-page size:                  256 bytes
OOB size:                       16 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

mtd2
Name:                           zImage
Type:                           nand
Eraseblock size:                16384 bytes, 16.0 KiB
Amount of eraseblocks:          138 (2260992 bytes, 2.2 MiB)
Minimum input/output unit size: 512 bytes
Sub-page size:                  256 bytes
OOB size:                       16 bytes
Character device major/minor:   90:4
Bad blocks are allowed:         true
Device is writable:             true

mtd3
Name:                           initrd
Type:                           nand
Eraseblock size:                16384 bytes, 16.0 KiB
Amount of eraseblocks:          192 (3145728 bytes, 3.0 MiB)
Minimum input/output unit size: 512 bytes
Sub-page size:                  256 bytes
OOB size:                       16 bytes
Character device major/minor:   90:6
Bad blocks are allowed:         true
Device is writable:             true

mtd4
Name:                           flash
Type:                           nand
Eraseblock size:                16384 bytes, 16.0 KiB
Amount of eraseblocks:          2048 (33554432 bytes, 32.0 MiB)
Minimum input/output unit size: 512 bytes
Sub-page size:                  256 bytes
OOB size:                       16 bytes
Character device major/minor:   90:8
Bad blocks are allowed:         true
Device is writable:             true
Re: Iomega ix4-200d U-boot needed
February 04, 2016 04:27AM
By the way, I now have a recovery with the following files in it, if this can help us...

Unfortunately the recovery seems not to work wihtout an u-boot... and perhaps even more than that... I tried holding the reset button and then booting via kwboot but it did not work...

apps		620'602'368
apps.md5	33
config		8'388'608
config.md5	33
content.txt	0
copyjobs.lua	3'127
cpinit		54
enableatmosupgrade.py	1'198
handler.lua	9'766
homeinfo	957
httpd.xml	3'355
initrd		3'031'111
initrd.md5	33
inittab		1'838
iscsicheck	131
iscsicheck.lua	1'281
logrotate.conf	3'025
lvmsetarchive	178
menu.lst	863
networks.lua	10'522
oem		200'704
oem.md5		33
pcre.txt	972
pretty.lua	3'531
quota.lua	1'128
sshdupd.py	736
tz_convert	11'634
uboot_update	378
updateacl	11'446
updateconfig.lua	25'285
upgrade.xml	3'809
upgrade_ix12	2'017
upgrade_ix12_afterboot	3'772
Upgrade_USBShares.py	1'834
Upgrade_USBShares_Mirage.py	852
xml.lua		17'674
zeroconf	672
zImage		2'077'144
zImage.md5	33
Re: Iomega ix4-200d U-boot needed
February 04, 2016 01:50PM
Reto,

OK. So we've confirmed the flash erase size, let's flash stock mtd0.

Boot kwboot with mtd0.bin, into the USB rootfs, and at Debian command line,
flash_erase /dev/mtd0 0 0
nandwrite /dev/mtd0 mtd0.bin

If there was no error from either 2 commands above, reboot (kwboot is till running, but it is now only a serial console):
sync
shutdown -r now

Interrupt serial console, and enter the envs like previously for booting USB rootf from stock. And then boot.

setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10'
setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000'
setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset'
printenv
boot



Please post the the entire serial log (from the flash commands) here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 02/04/2016 03:11PM by bodhi.
Re: Iomega ix4-200d U-boot needed
February 05, 2016 02:13AM
It is working!!! u-boot is back to life!!! :-)

However I had to change the flash_erase command, it was not working with 0 0...

Also I now figured out that the second LAN port is working. But my MAC address setenv commands seem not to have any effect...

root@debian:/tools# ./flash_erase /dev/mtd0 0 40
Erase Total 40 Units
Performing Flash Erase of length 16384 at offset 0x9c000 done

root@debian:/tools# ./nandwrite /dev/mtd0 mtd0.bin
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x4000
Writing data to block 2 at offset 0x8000
Writing data to block 3 at offset 0xc000
Writing data to block 4 at offset 0x10000
Writing data to block 5 at offset 0x14000
Writing data to block 6 at offset 0x18000
Writing data to block 7 at offset 0x1c000
Writing data to block 8 at offset 0x20000
Writing data to block 9 at offset 0x24000
Writing data to block 10 at offset 0x28000
Writing data to block 11 at offset 0x2c000
Writing data to block 12 at offset 0x30000
Writing data to block 13 at offset 0x34000
Writing data to block 14 at offset 0x38000
Writing data to block 15 at offset 0x3c000
Writing data to block 16 at offset 0x40000
Writing data to block 17 at offset 0x44000
Writing data to block 18 at offset 0x48000
Writing data to block 19 at offset 0x4c000
Writing data to block 20 at offset 0x50000
Writing data to block 21 at offset 0x54000
Writing data to block 22 at offset 0x58000
Writing data to block 23 at offset 0x5c000
Writing data to block 24 at offset 0x60000
Writing data to block 25 at offset 0x64000
Writing data to block 26 at offset 0x68000
Writing data to block 27 at offset 0x6c000
Writing data to block 28 at offset 0x70000
Writing data to block 29 at offset 0x74000
Writing data to block 30 at offset 0x78000
Writing data to block 31 at offset 0x7c000
Writing data to block 32 at offset 0x80000
Writing data to block 33 at offset 0x84000
Writing data to block 34 at offset 0x88000
Writing data to block 35 at offset 0x8c000
Writing data to block 36 at offset 0x90000
Writing data to block 37 at offset 0x94000
Writing data to block 38 at offset 0x98000
Writing data to block 39 at offset 0x9c000
root@debian:/tools# sync
root@debian:/tools# shutdown -r now

INIT: Switching to r
Broadcast message from root@debian (ttyS0) (Fri Feb  5 00:03:42 2016):

The system is going down for reboot NOW!
[info] Using makefile-style concurrent boot in runlevel 6.
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' klogd implementation: klogd1862 (klogd)
Stopped klogd (pid 1862).
. ok 
[....] Stopping busybox' syslogd implementation: syslogd1859 (syslogd)
. ok 
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
[ ok ] Stopping rpcbind daemon....
[ ok ] Stopping NFS common utilities: idmapd statd.
[....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:50:43:f6:15:30
Sending on   LPF/eth0/00:50:43:f6:15:30
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.28 port 67
invoke-rc.d: -----------------------------------------------------
invoke-rc.d: WARNING: 'invoke-rc.d ntp try-restart' called
invoke-rc.d: during shutdown sequence.
invoke-rc.d: enabling safe mode: initscript policy layer disabled
invoke-rc.d: -----------------------------------------------------
done.
[ ok ] Unmounting temporary filesystems...done.
[ ok ] Deactivating swap...done.
[info] Will now restart.
[  266.500317] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[  266.506229] reboot: Restarting system

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v1.1.1 **

 ** MARVELL BOARD: IX4-110 LE 

U-Boot 1.1.4 (Mar 10 2011 - 15:01:57) Marvell version: 3.4.18

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

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Found 0x20 i2c device
Set Power State as Always On
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB
Found ADT7473, program LED ...(led_volt=90)  OK
Found ADT7473, program thermal/Fan ...(pwm_min=0) (pwm_max=130) (therm=67) (temp_min=60)  OK

Marvell Serial ATA Adapter
Integrated Sata device found


CPU : Marvell Feroceon (Rev 1)
Could not found correct initrd

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
SCSI:  AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x7 impl IDE mode
flags: 64bit ncq stag led pmp slum part 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: WDC WD20EFRX-68A Rev: 80.0
            Type: Hard Disk
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
Marvell>> setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000'
Marvell>> setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset'
Marvell>> setenv ethaddr '00:D0:B8:13:AC:24'
Marvell>> setenv eth1addr '00:D0:B8:13:AC:23'
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
...............................................................................................................................................................................................................................................................................................................

3156720 bytes read
....
............................
.............................................................................................................................................................................................................................................................................................................................................................................................
...........................................................................................................................................................................................................

6325849 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1
   Created:      2016-01-29  13:58:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3156656 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-22  14:30:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6325785 Bytes =  6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Iomega ix4-200d
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0xa0000@0x0(uboot),0x10000@0xa0000(env),0x228000@0xb0000(zImage),0x300000@0x2d8000(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 504304K/524288K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 19984K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000406] Console: colour dummy device 80x30
[    0.000435] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090098] pid_max: default: 32768 minimum: 301
[    0.090225] Security Framework initialized
[    0.090307] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091055] Initializing cgroup subsys blkio
[    0.091083] Initializing cgroup subsys devices
[    0.091106] Initializing cgroup subsys freezer
[    0.091138] Initializing cgroup subsys net_cls
[    0.091221] CPU: Testing write buffer coherency: ok
[    0.091605] Setting up static identity map for 0x8200 - 0x8258
[    0.091869] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095317] devtmpfs: initialized
[    0.099595] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100031] prandom: seed boundary self test passed
[    0.103829] prandom: 100 self tests passed
[    0.103853] pinctrl core: initialized pinctrl subsystem
[    0.105181] NET: Registered protocol family 16
[    0.105598] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130094] cpuidle: using governor ladder
[    0.160090] cpuidle: using governor menu
[    0.160488] Feroceon L2: Enabling L2
[    0.160532] Feroceon L2: Cache support initialised.
[    0.160901] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161003] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.165949] No ATAGs?
[    0.201540] vgaarb: loaded
[    0.201915] usbcore: registered new interface driver usbfs
[    0.201997] usbcore: registered new interface driver hub
[    0.202064] usbcore: registered new device driver usb
[    0.203150] clocksource: Switched to clocksource orion_clocksource
[    0.259494] NET: Registered protocol family 2
[    0.260133] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260194] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260247] TCP: Hash tables configured (established 4096 bind 4096)
[    0.260309] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260333] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260535] NET: Registered protocol family 1
[    0.260926] RPC: Registered named UNIX socket transport module.
[    0.260939] RPC: Registered udp transport module.
[    0.260947] RPC: Registered tcp transport module.
[    0.260954] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261219] Unpacking initramfs...
[    0.810427] Freeing initrd memory: 6180K (c1100000 - c1709000)
[    0.810553] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.811621] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.811652] Initialise system trusted keyring
[    0.811760] audit: initializing netlink subsys (disabled)
[    0.811810] audit: type=2000 audit(0.800:1): initialized
[    0.812442] zpool: loaded
[    0.812460] zbud: loaded
[    0.812775] VFS: Disk quotas dquot_6.6.0
[    0.812836] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.813479] NFS: Registering the id_resolver key type
[    0.813518] Key type id_resolver registered
[    0.813527] Key type id_legacy registered
[    0.813554] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.813570] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.813796] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.814323] Key type big_key registered
[    0.836756] Key type asymmetric registered
[    0.836780] Asymmetric key parser 'x509' registered
[    0.836872] bounce: pool size: 64 pages
[    0.836942] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.836959] io scheduler noop registered
[    0.836972] io scheduler deadline registered
[    0.837028] io scheduler cfq registered (default)
[    0.838337] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.838998] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.839415] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.840244] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.840264] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.840277] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.840291] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.840649] PCI: bus0: Fast back to back transfers disabled
[    0.840675] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.841453] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.841501] PCI: bus1: Fast back to back transfers disabled
[    0.841669] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.841686] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    0.841705] pci 0000:01:00.0: BAR 5: assigned [mem 0xe0000000-0xe00003ff]
[    0.841724] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    0.841742] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    0.841760] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    0.841778] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    0.841796] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    0.841812] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.841825] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    0.841840] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.842147] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.883841] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.923823] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.924037] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.963827] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.003837] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.004305] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.005740] console [ttyS0] disabled
[    1.005799] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.766094] console [ttyS0] enabled
[    1.770838] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[    1.777257] nand: Samsung NAND 32MiB 3,3V 8-bit
[    1.781813] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    1.789183] Scanning device for bad blocks
[    2.134620] 5 cmdlinepart partitions found on MTD device orion_nand
[    2.140920] Creating 5 MTD partitions on "orion_nand":
[    2.146110] 0x000000000000-0x0000000a0000 : "uboot"
[    2.152052] 0x0000000a0000-0x0000000b0000 : "env"
[    2.157814] 0x0000000b0000-0x0000002d8000 : "zImage"
[    2.163882] 0x0000002d8000-0x0000005d8000 : "initrd"
[    2.169939] 0x000000000000-0x000002000000 : "flash"
[    2.177359] libphy: Fixed MDIO Bus: probed
[    2.181800] libphy: orion_mdio_bus: probed
[    2.197490] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.283803] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:f6:15:30
[    4.363883] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:f6:15:31
[    4.372943] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.379573] ehci-pci: EHCI PCI platform driver
[    4.384130] ehci-orion: EHCI orion driver
[    4.388333] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.393898] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.401815] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    4.423185] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.429440] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.436290] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.443562] usb usb1: Product: EHCI Host Controller
[    4.448460] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    4.455124] usb usb1: SerialNumber: f1050000.ehci
[    4.460533] hub 1-0:1.0: USB hub found
[    4.464386] hub 1-0:1.0: 1 port detected
[    4.469182] mousedev: PS/2 mouse device common for all mice
[    4.475475] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    4.482549] i2c /dev entries driver
[    4.487585] hidraw: raw HID events driver (C) Jiri Kosina
[    4.493412] drop_monitor: Initializing network drop monitor service
[    4.499946] NET: Registered protocol family 17
[    4.504559] Key type dns_resolver registered
[    4.509682] Loading compiled-in X.509 certificates
[    4.514557] registered taskstats version 1
[    4.518731] zswap: loading zswap
[    4.521981] zswap: using zbud pool
[    4.525426] zswap: using lzo compressor
[    4.540220] Key type encrypted registered
[    4.544990] rtc-mv f1010300.rtc: setting system clock to 2016-02-05 08:09:04 UTC (1454659744)
[    4.555876] Freeing unused kernel memory: 284K (c07db000 - c0822000)
Loading, please wait...
[    4.634065] udevd[85]: starting version 175
[    4.783250] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.918197] SCSI subsystem initialized
[    4.945095] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.951853] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.972008] usb 1-1: Product: USB2.0 Hub
[    4.980706] hub 1-1:1.0: USB hub found
[    4.988844] hub 1-1:1.0: 4 ports detected
[    5.014808] pci 0000:00:01.0: enabling device (0140 -> 0143)
[    5.020607] ahci 0000:01:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
[    5.032908] sata_mv f1080000.sata: slots 32 ports 2
[    5.081138] scsi host0: sata_mv
[    5.101675] scsi host1: sata_mv
[    5.108876] ata1: SATA max UDMA/133 irq 33
[    5.112996] ata2: SATA max UDMA/133 irq 33
[    5.120266] ahci 0000:01:00.0: controller can't do NCQ, turning off CAP_NCQ
[    5.152897] ahci 0000:01:00.0: controller can't do PMP, turning off CAP_PMP
[    5.182711] ahci 0000:01:00.0: masking port_map 0x7 -> 0x3
[    5.207542] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[    5.214449] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
[    5.222556] ahci 0000:01:00.0: flags: 64bit stag led slum part 
[    5.232857] scsi host2: ahci
[    5.236770] scsi host3: ahci
[    5.240555] scsi host4: ahci
[    5.244223] ata3: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000100 irq 84
[    5.251678] ata4: SATA max UDMA/133 abar m1024@0xe0000000 port 0xe0000180 irq 84
[    5.259150] ata5: DUMMY
[    5.283195] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    5.394449] usb 1-1.2: New USB device found, idVendor=125f, idProduct=de7a
[    5.401372] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.408770] usb 1-1.2: Product: ADATA USB Flash Drive
[    5.413861] usb 1-1.2: Manufacturer: ADATA
[    5.417977] usb 1-1.2: SerialNumber: 14B1311102300064
[    5.438974] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    5.445699] scsi host5: usb-storage 1-1.2:1.0
[    5.451846] usbcore: registered new interface driver usb-storage
[    5.461108] usbcore: registered new interface driver uas
[    5.503211] ata1: SATA link down (SStatus 0 SControl F300)
[    5.603198] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.609953] ata3.00: ATA-9: WDC WD20EFRX-68AX9N0, 80.00A80, max UDMA/133
[    5.616719] ata3.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.624066] ata3.00: configured for UDMA/133
[    5.873188] ata2: SATA link down (SStatus 0 SControl F300)
[    5.893572] scsi 2:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0A80 PQ: 0 ANSI: 5
[    6.253196] ata4: SATA link down (SStatus 0 SControl 300)
[    6.344231] sd 2:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    6.352022] sd 2:0:0:0: [sda] 4096-byte physical blocks
[    6.358673] sd 2:0:0:0: [sda] Write Protect is off
[    6.363705] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.436898]  sda: sda1
[    6.441082] sd 2:0:0:0: [sda] Attached SCSI disk
[    6.447810] scsi 5:0:0:0: Direct-Access     ADATA    USB Flash Drive  1.00 PQ: 0 ANSI: 6
[    6.465015] sd 5:0:0:0: [sdb] 123480064 512-byte logical blocks: (63.2 GB/58.8 GiB)
[    6.483290] sd 5:0:0:0: [sdb] Write Protect is off
[    6.488659] sd 5:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[    6.498297] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    6.507154] sd 5:0:0:0: Attached scsi generic sg1 type 0
[    6.517873]  sdb: sdb1
[    6.523311] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   16.832336] EXT3-fs (sdb1): mounted filesystem with ordered data mode
[   16.838952] kjournald starting.  Commit interval 5 seconds
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   17.950206] udevd[309]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   18.703210] random: nonblocking pool is initialized
[   18.770246] orion_wdt: Initial timeout 21 sec
[   18.783822] adt7475 0-002e: ADT7473 device, revision 0
[   18.789024] adt7475 0-002e: Optional features: fan4 pwm2
[   49.133227] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[   49.140323] ata3.00: failed command: IDENTIFY DEVICE
[   49.145349] ata3.00: cmd ec/00:01:00:00:00/00:00:00:00:00/00 tag 2 pio 512 in
[   49.145349]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   49.159951] ata3.00: status: { DRDY }
[   49.163652] ata3: hard resetting link
[   49.513204] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   49.520575] ata3.00: configured for UDMA/133
[   49.532750] ata3: EH complete
done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 15999/3859072 files, 462541/15435004 blocks
done.
[   50.645902] EXT3-fs (sdb1): using internal journal
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /lib/init/rw.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...[   55.134566] NET: Registered protocol family 10
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   56.369692] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Listening on LPF/eth0/00:50:43:f6:15:30
Sending on   LPF/eth0/00:50:43:f6:15:30
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
[   63.526764] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   63.536682] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.28
DHCPACK from 192.168.1.28
bound to 192.168.0.15 -- renewal in 293 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2036 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
2035 (klogd)
. ok 
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonTimeout reached while wating for return value
Could not receive return value from daemon process.
 (warning).

Debian GNU/Linux 7 debian ttyS0

debian login: root
Password: 
Last login: Fri Feb  5 00:01:38 PST 2016 on ttyS0
Linux debian 4.2.0-kirkwood-tld-1 #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# 
Re: Iomega ix4-200d U-boot needed
February 05, 2016 02:53AM
Cool!

It seems your flash_erase version is older. That's why "0 0" did not work. But "0 40" is the same effect. Good job!

Ok now you can save the env before boot. That will make the env working again.
Marvell>> setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000'
Marvell>> setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset'
Marvell>> setenv ethaddr '00:D0:B8:13:AC:24'
Marvell>> setenv eth1addr '00:D0:B8:13:AC:23'

Marvell>> saveenv

Marvell>> boot

But in Debian, the /etc/fw_env.config file needs a correct definition for stock. I'll take a closer look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 02/05/2016 03:01AM by bodhi.
Re: Iomega ix4-200d U-boot needed
February 05, 2016 03:13AM
The commands fw_printnev and fw_setenv might or might not work in this stock u-boot.

However, we can try to set it to the correct location first:

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors

/dev/mtd1 0x00000 0x10000 0x4000

And try
fw_printenv

If this does not work, then we'll need damacc to get the blparam binary from stock.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/05/2016 03:38AM by bodhi.
Re: Iomega ix4-200d U-boot needed
February 05, 2016 03:49AM
saveenv worked, fw_printenv is giving me too few good blocks within range...

root@debian:~# cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 0x00000 0x10000 0x4000
root@debian:~# fw_printenv
Too few good blocks within range
Re: Iomega ix4-200d U-boot needed
February 09, 2016 03:52AM
bodhi,

so what should we do next? Did you already contact damacc or should I do this?


Best Regards,

Reto
Re: Iomega ix4-200d U-boot needed
February 09, 2016 11:34AM
Reto,

I've already PM damacc.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Iomega ix4-200d U-boot needed
February 10, 2016 12:30AM
Reto,

Download the attach file. Extract it and execute:

./blparam

Please post the output here.

Note that this binary can be used to set env too, but the resulting output will be a little bit scary! let's see if works listing the envs first (don't try to test it).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - blparam.tar (20 KB)
Re: Iomega ix4-200d U-boot needed
February 10, 2016 01:19AM
:-(

root@debian:/tools# ./blparam 
MEMGETBADBLOCK: Invalid argument
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: