networking with busybox
Katharina Haselhorst
brandlk at Mathematik.Uni-Marburg.de
Sat Apr 24 16:37:26 UTC 2010
Hello,
On 04/24/2010 05:32 PM, Gilles Espinasse wrote:
>
> ----- Original Message -----
> From:<brandlk at Mathematik.Uni-Marburg.de>
> To:<busybox at busybox.net>
> Sent: Saturday, April 24, 2010 4:36 PM
> Subject: networking with busybox
>
>
>> Hello,
>>
>> I would like to use busybox in a custom initramfs environment, where some
>> networking tasks need to be done. This includes:
>> - requesting an ip address from a dhcp server
>> - resolving some hostnames (not necessarily through a nameserver - could
>> be statically via a hosts file)
>> - run some services
>> All should run within a xen domU.
>>
>> Can this be achieved with the busybox tools?
> yes
>> As far, I have built a complete busybox binary (statically linked) and got
>> an ash running within the initramfs. I can assign a static address to my
>> eth0 interface, but udhcpc doesn't get any ip address from the dhcp
>> server. Do I have to load some kernel module to get the card working? Atm,
>> there are no additional modules loaded...
>
> you have to deal with udev (external of busybox) or mdev (inside busybox) to
> load the module required by your hardware.
>
I started udevd and issued a udevadm trigger and a udevadm settle. After
that, I get a eth0 device, as expected. But as I mentioned above, I
can't work with that interface. Which kernel module do I need? Atm I
don't have any modules included in the initramfs, but that's easy to change.
K. Haselhorst
More information about the busybox
mailing list