Hi Joachim,
On Thu, 10 May 2007 at 11:52 +0200, [EMAIL PROTECTED] wrote:
>    Dear FreeWRT users,
>    i have an ASUS wl500 Premium router and have connected a 120GB USB
>    disk. I would like to run a http server for my private photos and some
>    services, like email server /openvpn/privoxy. I know the packages are
>    available, but i would like to ask if someone has already made some
>    experience with installing all the packages on the USB disk instead of
>    the flash image.
>    I'm wondering if it would be possible to build a kernel image that then
>    boots the root fs instead of the flash from the usb disk?
>    Or would it be better to have a initial rootfs in flash and then
>    overlay the root with the fs on the usb disk? Having no real experience
>    in that area i would be glad if anyone could give me some advice or
>    point me to some documents ;-)

I have no experience in this area. You can find some information
about this in the OpenWrt Wiki. 

One possible solution might be to edit /etc/preinit before you
create the firmware image. You could add commands to load USB
drivers and to mount the disk as root filesystem.

Another solutions might be to just install addon packages onto the
disk. This is documented in the OpenWrt Wiki IIRC.

Directly booting a system from USB disk, without a good initrd or
initramfs, is even unsupported in the Linus kernel tree. 
There are some addon patches for 2.6 available, which can be used to
directly boot a Linux system from USB disk. I use these patches on
my notebook to boot from my backup disk, just in case my internal
disk will die again. (kernel-blkdev_wakeup-2.6.20.6.patch)

I am not really sure if there exist a similar patch for kernel 2.4.

In my point of view, a modified preinit would be the cleanest and
best solution for your task. IIRC there was somebody in the past who
tried this already with FreeWRT, but we never got usable and clean
patches for the implementation and documentation of this feature.

Looking forward to get a nice patch from you ;)

bye
        Waldemar

-- 
don't open your wrt, free it
http://www.freewrt.org
_______________________________________________
freewrt-users mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-users

Reply via email to