Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: linuxrc, How to use bash in linuxrc not ash?< Next Oldest | Next Newest >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 21 2006,21:52 QUOTE

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.
Back to top
Profile PM 
MrUmunhum Offline





Group: Members
Posts: 23
Joined: Feb. 2006
Posted: Nov. 23 2006,22:41 QUOTE

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.
Back to top
Profile PM 
MrUmunhum Offline





Group: Members
Posts: 23
Joined: Feb. 2006
Posted: Nov. 23 2006,22:45 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 24 2006,06:10 QUOTE

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.
Back to top
Profile PM 
MrUmunhum Offline





Group: Members
Posts: 23
Joined: Feb. 2006
Posted: Nov. 24 2006,18:35 QUOTE

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.
Back to top
Profile PM 
18 replies since Nov. 21 2006,12:47 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: linuxrc

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code