Skip to contentSkip to conversation

hardware detection

Buildroot Stefan Feilmeier 2 participants 4 messages Mar 14, 2007

lore
Share & tools
lore
#0 lore raw

Hello.

First of all buildroot is a really useful tool and we use it to build the initial system for our install cd. The only problem is that I am stuck on hardware detection. I am trying to store my kernel modules on the cd and mount it during boot process to keep my initrd small. Modules for the cdrom drive are compiled into the kernel. This is what I do currently:

1. Boot initrd
2. /etc/init.d/S10udev starts udev and populates /dev
3. Mount cdrom(s) on /mnt/cdrom/
4. Mount --bind /lib/modules

Till here everything works just fine and the modules are accessible in /lib/modules. Now I try to run udevtrigger but it doesn't detect my network card. Loading the module manually with modprobe pcnet32 works fine. I am trying this in a VMware virtual machine.

Does anybody have a hint for me?

Regards,
Stefan
DeepRoot Linux

#1 lore raw
Quoted 14 lines · Stefan Feilmeier

Hello.

First of all buildroot is a really useful tool and we use it to build the initial system for our install cd. The only problem is that I am stuck on hardware detection. I am trying to store my kernel modules on the cd and mount it during boot process to keep my initrd small. Modules for the cdrom drive are compiled into the kernel. This is what I do currently:

1. Boot initrd
2. /etc/init.d/S10udev starts udev and populates /dev
3. Mount cdrom(s) on /mnt/cdrom/
4. Mount --bind /lib/modules

Quoted 6 lines

Till here everything works just fine and the modules are accessible in /lib/modules. Now I try to run udevtrigger but it doesn't detect my network card. Loading the module manually with modprobe pcnet32 works fine. I am trying this in a VMware virtual machine.

Does anybody have a hint for me?

1) delete udev and use busybox's mdev instead
2) echo alias eth0 pcnet32 >> /etc/modprobe.conf; ifup eth0 or something to that effect.
HTH,

#2 lore raw
Quoted 20 lines · Bernhard Fischer
Quoted 19 lines · Stefan Feilmeier

Hello.

First of all buildroot is a really useful tool and we use it to build the initial system for our install cd. The only problem is that I am stuck on hardware detection. I am trying to store my kernel modules on the cd and mount it during boot process to keep my initrd small. Modules for the cdrom drive are compiled into the kernel. This is what I do currently:

1. Boot initrd
2. /etc/init.d/S10udev starts udev and populates /dev
3. Mount cdrom(s) on /mnt/cdrom/
4. Mount --bind /lib/modules

Till here everything works just fine and the modules are accessible in /lib/modules. Now I try to run udevtrigger but it doesn't detect my network card. Loading the module manually with modprobe pcnet32 works fine. I am trying this in a VMware virtual machine.

Quoted 5 lines
Quoted 1 line

Does anybody have a hint for me?

1) delete udev and use busybox's mdev instead
2) echo alias eth0 pcnet32 >> /etc/modprobe.conf; ifup eth0 or something to that effect.

Thanks for your answer. The problem is that I need real hardware detection as the cd will run on many different platforms and not only on VMware virtual machines. Any idea?

#3 lore raw
Quoted 23 lines · Stefan Feilmeier
Quoted 22 lines · Bernhard Fischer
Quoted 20 lines · Stefan Feilmeier

Hello.

First of all buildroot is a really useful tool and we use it to build the initial system for our install cd. The only problem is that I am stuck on hardware detection. I am trying to store my kernel modules on the cd and mount it during boot process to keep my initrd small. Modules for the cdrom drive are compiled into the kernel. This is what I do currently:

1. Boot initrd
2. /etc/init.d/S10udev starts udev and populates /dev
3. Mount cdrom(s) on /mnt/cdrom/
4. Mount --bind /lib/modules

Till here everything works just fine and the modules are accessible in /lib/modules. Now I try to run udevtrigger but it doesn't detect my network card. Loading the module manually with modprobe pcnet32 works fine. I am trying this in a VMware virtual machine.

Does anybody have a hint for me?

Quoted 7 lines
Quoted 3 lines

1) delete udev and use busybox's mdev instead
2) echo alias eth0 pcnet32 >> /etc/modprobe.conf; ifup eth0 or something to that effect.

Thanks for your answer. The problem is that I need real hardware detection as the cd will run on many different platforms and not only on VMware virtual machines. Any idea?

I'm confident that there are numerous tools with varying dependencies to accomplish that task.
discover (i use the one from debian) should do the trick, perhaps?