Re: [uClinux-dev] setting up the network

2008-04-22 Thread Michael Schnell
Jamie Lokier wrote: I think it's more that, for example, udhcpc, _runs_ scripts in order to bring up/down the network interface. The scripts do things like edit /etc/resolv.conf and call ifconfig/route. With the dhcpcd from Buildroot I found this. If I remove the default.script file dhcp

Re: [uClinux-dev] setting up the network

2008-04-21 Thread Michael Schnell
Getting DHCP working isn't trivial, since most common DHCP clients tend to use scripts, which aren't supported by the default sash shell. But there's probably some available that don't, or you could switch to a different shell. Or just go with a static IP. I just do dhcpcd (in the

Re: [uClinux-dev] setting up the network

2008-04-21 Thread Jamie Lokier
Michael Schnell wrote: Getting DHCP working isn't trivial, since most common DHCP clients tend to use scripts, which aren't supported by the default sash shell. But there's probably some available that don't, or you could switch to a different shell. Or just go with a static IP. I just do

Re: [uClinux-dev] setting up the network

2008-04-21 Thread Michael Schnell
I think it's more that, for example, udhcpc, _runs_ scripts in order to bring up/down the network interface. The scripts do things like edit /etc/resolv.conf and call ifconfig/route. Right you are ! I took a closer look and see that there is a file /usr/share/udhcpc/default.script that

Re: [uClinux-dev] setting up the network

2008-04-09 Thread Michael Schnell
Without an MMU, userland constructs such as fork()s and certain kinds of mmap() won't work. So unless bash has been patched to use alternate constructs in the absence of an MMU, it won't work either. Right you are. But as with uCLinux, the Kernel does not provide fork(), and so a uCLinux

Re: [uClinux-dev] setting up the network

2008-04-09 Thread Jamie Lokier
Michael Schnell wrote: Without an MMU, userland constructs such as fork()s and certain kinds of mmap() won't work. So unless bash has been patched to use alternate constructs in the absence of an MMU, it won't work either. Right you are. But as with uCLinux, the Kernel does not provide

Re: [uClinux-dev] setting up the network

2008-04-09 Thread Michael Schnell
But as with uCLinux, the Kernel does not provide fork(), and so a uCLinux compatible libC will not provide the appropriate header. Thus IMHO a program (like bash, as you seem to assume) that calls that function can't be compiled. Actually, calls to fork() can be compiled, but it is a

Re: [uClinux-dev] setting up the network

2008-04-08 Thread Michael Schnell
Jamie Lokier wrote: I'm pretty sure Bash works with uClibc just fine ... Even with static linking ? Built into busybox or as a dedicated executable ? Do you suggest that I should try to use bash in a project with enough RAM and flash ? -Michael

Re: [uClinux-dev] setting up the network

2008-04-08 Thread David McCullough
Jivin Michael Schnell lays it down ... Jamie Lokier wrote: I'm pretty sure Bash works with uClibc just fine ... Even with static linking ? Bash will work with uClibc, but it needs an MMU. Cheers, Davidm Built into busybox or as a dedicated executable ? Do you suggest that I should

Re: [uClinux-dev] setting up the network

2008-04-08 Thread Michael Schnell
Bash will work with uClibc, but it needs an MMU. I don't have one. OTOH, I don't understand. uCLinux does not handle the MMU and a user land program can't do that on itself. So it should not matter it any MMU hardware is present. -Michael ___

RE: [uClinux-dev] setting up the network

2008-04-08 Thread Gavin Lambert
Quoth Michael Schnell: I don't have one. OTOH, I don't understand. uCLinux does not handle the MMU and a user land program can't do that on itself. So it should not matter it any MMU hardware is present. Without an MMU, userland constructs such as fork()s and certain kinds of mmap() won't

Re: [uClinux-dev] setting up the network

2008-04-07 Thread Michael Schnell
you can write scripts and run them in sash, but it does not support input/output redirection nor parameters, which limits their usefulness significantly. OK I do understand now. I usually use busybox msh, since that does support all of that, but it has less integrated commands so you need

RE: [uClinux-dev] setting up the network

2008-04-06 Thread Gavin Lambert
Quoth Michael Schnell: sash does not support scripts ? That does not seem very useful. Do you know a document that explains what shells provide which capabilities ? Looking at the docs for each shell is how I did it. Note that what I said is slightly misleading -- you can write scripts and

RE: [uClinux-dev] setting up the network

2008-04-04 Thread Gavin Lambert
Quoth kailash toshniwal: Can someone please tell me the general instructions on setting up the network in uClinux for any platform? Much like any other linux system: you run ifconfig and/or a DHCP client. Getting DHCP working isn't trivial, since most common DHCP clients tend to use scripts,

Re: [uClinux-dev] setting up the network

2008-04-04 Thread Michael Schnell
Getting DHCP working isn't trivial, since most common DHCP clients tend to use scripts, which aren't supported by the default sash shell. sash does not support scripts ? That does not seem very useful. Do you know a document that explains what shells provide which capabilities ? Is sash a

[uClinux-dev] setting up the network

2008-04-03 Thread kailash toshniwal
Hello all, Can someone please tell me the general instructions on setting up the network in uClinux for any platform? I am using h8/edosk platform for my application. Thanks and Regards Kailash - You rock. That's why Blockbuster's offering you