openwrt-ib42x0 icon indicating copy to clipboard operation
openwrt-ib42x0 copied to clipboard

Use this firmware on I-STOR IS02GL

Open Andryn opened this issue 11 years ago • 4 comments

Hi Tobias! I have NAS I-STOR IS02GL, based on SL3516. https://www.google.ru/search?q=SL3620-2S-LB2&tbm=isch I'm trying to use firmware from http://www.trustanywhere.com/download/openwrt/IB4220-B/, but it does not work. It hangs at the function call platform_register_pwc () in function ib4220b_init(void). I comment the line with platform_register_pwc() and rebuilt the firmware. Then the boot is successful, but there are some problems. At boot time errors in ata1: [10.581963] ata1.00: qc timeout (cmd 0x27) [10.606558] ata1.00: failed to read native max address (err_mask = 0x4) [10.645165] ata1.00: HPA support seems broken, skipping HPA handling [10.862302] ata1.00: ATA-7: ST380811AS, 3.AAE, max UDMA/133 [10.895748] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 0/32) [10.972201] ata1.00: configured for UDMA/133 Also, when I try format a disk / dev/sda1, occur errors: [101.099024] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen [101.141383] ata1.00: cmd ec/00: 01:00:00:00 / 00:00:00:00:00 / 00 tag 0 pio 512 in [101.141383] res 40/00: 00:00:00:00 / 00:00:00:00:00 / 00 Emask 0x4 (timeout) [101.228424] ata1: soft resetting link [101.442210] ata1.00: configured for UDMA/133 [101.468004] ata1: EH complete

At this time ata2 works well and disk /dev/sdb1 is formatted correctly.

Yet there is an error while loading: [5.920478] drivers / rtc / hctosys.c: unable to open rtc device (rtc0) Maybe ata1 errors associated with this?

Still there are problems with the LED, but it's stuff.

Can you help me to get to work ata1?

Andryn avatar Apr 24 '13 09:04 Andryn

Hi,

it seems that your NAS uses different GPIO pins, this is the reason why the LEDs and the power device don't work. As you already figured out removing the platform_register_pwc() call fixes this problem.

Regarding the discs it looks as if the timing registeres and/or interrupts are different. Probably the best approach is asking the vendor for the source code in order to analyze it. As it is GPL he is legally obligated to publish it. I'm afraid that without this it might be challenging to identify. If you can get hold of the source code I'm happy to help you to make it work.

Best regards, Tobias

tobiaswaldvogel avatar Apr 24 '13 18:04 tobiaswaldvogel

I tried the firmware IB-NAS4220B from here: http://opengemini.free.fr/wiki/doku.php?id=openwrt. My NAS is loaded without error. I can well format both drives. When booting there are no errors. But the led's still not working. The manufacturer my device does not provide the source code. I will send to him e-mail. Can I see from inside system values the required registers and interrupt? Maybe in /sys or in /proc there is this information.

Andryn avatar Apr 24 '13 18:04 Andryn

Any updates on using a custom firmware on this NAS?

AXP avatar Mar 02 '15 10:03 AXP

From the last comments my understanding was, that it started to work when removing the pwc module. I could create an image without pwc and build it as module. Regarding the LEDs and buttons probably I would need you help to figure out the right GPIOs. Once my firmware is installed we could figure that out.

How experienced are you with linux and do you have a console cable? I'm asking because if something goes wrong it could be that it doesn't come up properly and you can only recover it with the console cable

tobiaswaldvogel avatar Mar 02 '15 13:03 tobiaswaldvogel