OpenWrt Forum Archive

Topic: [HELP] Porting to a new target (StorLink based NASes)

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there! I am an OpenWRT newbie. I started working on it about 1 week ago because i'd like to port OpenWRT to my NAS (DUAL HDD NAS and a GIGANAS, two StorLink ARM based products).
My NAS producer (MRT Communications) - and others using the same NAS platform (the complete list is here: http://mrt.nas-central.org/index.php/St … _products) - released the kernel sources of their firmware. They're based on the same 2.6.15 kernel patches with very little differences (like GPIO mappings). What i did is creating a new target for OpenWRT, a new directory for generic 2.6.15 kernel with its patches (i only added squashfs support), a new configuration file and then i built all (after some day of happy hacking). I used the little endian standard (no EABI).

Now i finally got OpenWRT compiling and working but i still have little issues that i dont understand:

a) is there a way to have a single target (StorLink SL2312 cpu) with different subtargets (products names...) and common patches + separate patches for each of these, including kernel configuration inside the same target?
b) is there any issue using that kernel version instead of 2.6.22? are all the generic 2.6.22 patches needed to previous kernels like mine (some packages dont compile like tc, genl and ip)?
c) is there a default kernel configuration should i use for starting point of my config to let everything compile fine?
d) what does "rootfstype=squashfs, jffs2" mean? i really dont find its use. i only thing about rootfs overlapping using two MTD partitions but i dont find any documentation about that.
e) when booting (no matter if root is on NFS or JFFS2) i always have the boot stopped on the first call to hotplug2, and i dont know why. only removing its calls or its binary, the system will startup fine. Is a known strange behaviour or problem?
f) what about devfs or udev? i dont see any device on /dev but these i create !!
g) how to build a single package or rootfs or kernel from main Makefile (what special target should i use)?

Thank you all for your precious help. I hope my target - and my packages i am already using (like mtd-utils) could be soon included into the project.

Bye,
Lord Scaffard

(Last edited by lordscaffard on 19 Feb 2008, 21:48)

lordscaffard wrote:

Thank you all for your precious help. I hope my target - and my packages i am already using (like mtd-utils) could be soon included into the project.

Not much help directly, but I suspect you'll get more useful responses on the openwrt-devel mailing-list.  See http://lists.openwrt.org/

Hi!
I bought the same NAS. Did you achieve anything?

I had not help from this forum. I had my NAS working with OpenWRT but i still have "some" little issue:
- i got a "division by zero in kernel" when mounting my root jffs2 image (dont matter if using a real or fake MTD device). but that seems not to stop the mounting process.
- JFFS2 seems to become corrupted easily when you hard-shutdown the NAS (this is a strange behaviour because of the nature of the JFFS2)
- power button is not supported (i have not tried to catch the button to shutdown the host)

If you can contribute to this project i can extract my patches to OpenWRT and publish somewhere. We have a specific StorLink devices forum here: http://storlinkdevices.memoriedigitali.com We could start talking there, if you want. We also have a wiki here: http://mrt.nas-central.org/index.php/Main_Page.

Let me know!

The discussion might have continued from here.