Add support for Iomega Storcenter ix4-200d

I'm hitting another wall in preparing the patch. Changes I make to target/linux/kirkwood/base-files/etc/board.d are not picked up by the imagebuilder.

In 01_leds I've added the following:

iom,ix4-200d)
	ucidef_set_led_netdev "lan" "LAN" "status:white" "eth0"
	ucidef_set_led_netdev "wan" "WAN" "status:red" "eth1"
	;;

And in 02_network the following:

iom,ix4-200d)
	ucidef_set_interfaces_lan_wan "eth0" "eth1"
	;;

For reference, the entry in the makefile:

define Device/iom_ix4-200d
  DEVICE_VENDOR := Iomega
  DEVICE_MODEL := StorCenter ix4-200d
  DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
	kmod-gpio-button-hotplug kmod-mvsdio kmod-hwmon-adt7475 \
	kmod-spi-gpio kmod-gpio-nxp-74hc164
  SUPPORTED_DEVICES += marvell,rd88f6281-a
  PAGESIZE := 512
  SUBPAGESIZE := 256
  BLOCKSIZE := 16k
  KERNEL_SIZE := 3072k
  KERNEL_IN_UBI :=
  UBINIZE_OPTS := -E 5
  IMAGE_SIZE := 31744k
  IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
	check-size
endef
TARGET_DEVICES += iom_ix4-200d

However, when I flash the compiled image, the LED and network settings are not present on the device. I'm probably overlooking some very simple, but this being my first time adding a device I'm not seeing it... :sweat_smile:

Hi,

Many thanks for your IX4-200 Openwrt guide. I was able to boot Openwrt and with some difficulties managed to get sysupgrade.bin flashed, but at the boot it complains that the crc of the ram not ok, so it does not boot from RAM. Do I need to do an extra step like erasing the flash or so??

Please advise and thanks for your post

Peter

Not sure I'm following you... If you've managed perform the sysupgrade, you have flashed the image into the device. No need to boot from RAM after sysupgrade...

In order to successfully flash the sysupgrade image, you indeed need to repartition the flash drive. That's the setenv mtdparts... step in the guide.

It was indeed a simple mistake: the DTS needs to include the iom,ix4-200d reference. I wrongfully assumed this would be inferred from the makefile.

The final image I have created can be downloaded here. WAN/LAN, LEDs and buttons are all functioning properly. The only caveat is the unavailability of HDD trays 1 and 2 as mentioned in this post, which needs to be fixed upstream.

The image includes some additional packages (luci-ssl, lm-sensors, htop, hdparm, block-mount, fdisk, lsblk, mdadm and e2fsprogs). Installation instructions remain the same from this post.

Great, many thanks you are the best!

Before you sent this firmware, I was able to get it working.
The instructions do not take into consideration that a part of the nand (above the firmware) maybe containing data. When I cleared the whole part of the NAND that can be used for the flash, it worked, so I have it running now. But ofcourse I need the other bells and wistles you have here!

Thanks once again,

Peter

Can you share some more details about your flash layout and the commands you used? I was under the assumption that repartitioning would destroy other partitions because the entirety of the flash is used, but apparently not in all cases?

Perhaps @braian87b and @navigos can share their experiences flashing the image?

Hi,

I followed your instruction 100%, but apparently earlier experiments left some rubbish just above the location of uImage

Clearing that area fixed the problem. Did a lot of experiments and accidently hold the buttom too long and started from zero again :frowning: need to backup!!!!

Peter

Oh, I forgot some hints to remember:

to update opkg disable ipv6 first to prevent errors and add -no-check-certificate until you fixed the cerificates

A friendly user has been kind enough to help me by submitting the patch, and I can confirm that RC2 works as expected.

Hi @Goossens,

I have just managed to install OpenWRT on my (ex Iomega) ix4-200d NAS. Process went OK, NAS is up and running... However, I am worried about my drives. I have four 2TB HDD's, but just two of them are being detected. I have read an old post saying it was something related to the kernel... has there been any news about that? Should I still have faith?
My other concerns (not so important as the drive detection, of course) are:

  1. Concerning RAID management, is there a proper Luci -graphical- module to create RAID's, format drives, etc.?
  2. Is it possible to give a proper shutdown function to the Power button in front of the NAS? And is it possible to deactivate the auto powering on when plugging the power cord?
  3. (and last one!) Is it possible to add some functionality to the LCD screen of this NAS?

Thank you all in advance!
Regards,
Gabriel (from Buenos Aires, Argentina)

In answer to item 3 please see ix4-200d-research which has some useful information on driving the LCD.

Only two disks being detected is a known limitation at the moment. The commit and this thread contain links to some ongoing discussions, but with Kirkwood being a very old target, I'm not holding much hope.

Regarding your other points:

  1. Not that I'm aware. There's luci-app-samba4 for some of the management, but the initial setup needs to be done via the command line.
  2. You need to investigate the GPIO. It should be possible, but I couldn't find the correct address.
  3. This likely takes a lot of effort to get going on OpenWrt.

For anyone still using this device, it seems that all disk trays now work with kernel 6.10 onwards.

Once the next LTS kernel (6.12?) is merged in OpenWrt after the 24.xx release, we should be able to confirm this.

1 Like

@Goossens

As I show in the picture, I have my ix4-200d with OpenWRT v23.05.2 ready to be updated! Hope it works, as I don't like the idea of having 2 2TB disks in trays 1 & 2 just "sleeping" without doing anything :wink:

Did You try to build istoreos? This is quite nice.

We just tested the kerrnel 6.6.51 Snapshot compile from today and still have the issue that does just show two of the 4 disks.

If someone with access can help to bring the patches/repos get backport/merged to upstream to include the fixes would be amazing...! Thanks.

Image Name:   ARM OpenWrt Linux-6.6.51
Created:      2024-09-19  13:37:56 UTC

files:

iom_ix4-200d-squashfs-factory.bin	89381957b2f7597c0e642ab87d9af5f5f547183a05f24d1b85012f16eecfe141	6768.0 KB	Thu Sep 19 20:34:49 2024
iom_ix4-200d-squashfs-sysupgrade.bin	d4c4acd488d7362ed874fb0e7ec28f2997b587c46c15cf4fb3382034b0bc9788	5701.8 KB	Thu Sep 19 20:34:49 2024

https://downloads.openwrt.org/snapshots/targets/kirkwood/generic/