Other Help Topics :: linuxrc



Code Sample
case "$CMDLINE" in *fromhd=/dev/*) DEVICES="$fromhd";;; esac
Did you try using NFS_SERVER="$nfs" ?

ash terminal, as in starting ash instead of bash i.e. in DSL. (you can just execute ash in any terminal if you'd like).  Those substitutions are probably not supported by the included binary.

Ok, guys, I think I have foubnd my first problem, which is adding NFS support to the boot process:

 1) I need to run ifconfig for my eth0. Ash will not let me do this.
 2) Add module support nfs, sunrpc, lockd,3c59x, etc.  This is easy.
 3) mount -t nfs server:/path /locat_dir.  The NFS mount command in DSL is
    broken, You must add the -f flag to get it to work, otherwise the mount
    command hangs.

What I want to try next is using a non-DSL kernel.  Where can I get a kernel binary at the same level ( 2.4.17, I think )?  I can find the source but I don't want to recompile, just more work for a test.  I think the problem is the DSL kernel is calling 'linuxrc' directly using ash and can not be over ridden.

Quote (MrUmunhum @ Nov. 21 2006,16:28)
Quote (^thehatsrule^ @ Nov. 21 2006,16:21)
Another thing, can you log the boot processes?  Anyways, did you try running a dummy script inside an ash terminal?

What do you mean by an 'ash terminal'?

Ash will not let me run anything other that build in command!  That is the problem.

I think I have found my first problem, which is adding NFS support to the boot process:

1) I need to run ifconfig for my eth0. Ash will not let me do this.
2) Add module support nfs, sunrpc, lockd,3c59x, etc.  This is easy.
3) mount -t nfs server:/path /locat_dir.  The NFS mount command in DSL is
   broken, You must add the -f flag to get it to work, otherwise the mount
   command hangs.

What I want to try next is using a non-DSL kernel.  Where can I get a kernel binary at the same level ( 2.4.17, I think )?  I can find the source but I don't want to recompile, just more work for a test.  I think the problem is the DSL kernel is calling 'linuxrc' directly using ash and can not be over ridden.

That's because ifconfig is a separate program, and you'd have to add that too (no idea how to get networking support then either - probably have to create the device first anyways)

It may be easier to use a premade toolset.. (like that pxe stuff)

And as I pointed out earlier, you could try to just replace ash directly.

Quote (^thehatsrule^ @ Nov. 24 2006,01:10)
That's because ifconfig is a separate program, and you'd have to add that too (no idea how to get networking support then either - probably have to create the device first anyways)

It may be easier to use a premade toolset.. (like that pxe stuff)

And as I pointed out earlier, you could try to just replace ash directly.

I have added ifconfig, it is in busybox.  Ash just will not execute it or anything else that is not in it's limited command set.

I have tried to replace ash with bash and that fails as well.

At this point, PXE is gone.  It loaded the kernel and the minirt file system and transfer control over to the kernel.

Next Page...
original here.