Unrecognized NIC

From LinuxMCE
Revision as of 08:51, 21 March 2008 by Totallymaxed (Talk | contribs) (Modify modules on core)

Jump to: navigation, search

Every now and then, people come along with NICs that are not directly supported by LinuxMCE. The following information should help to get even those NICs to work. As an example, the ASUS P5K is used, which is using the Attansic L1 NIC.

Modify modules on core

To get a NIC to work, you have to modify a file. For 0704 edit;

sudo <editor-of-choice> /etc/initramfs-tools-interactor/modules

For 0710 edit;

sudo <editor-of-choice> /etc/initramfs-tools/modules

and add a single line for your NICs kernel module. In the above case the name of the module is

atl1

After adding the above line, you have to recreate the initial ramdisk. For 0704 do;

mkinitramfs -d /etc/initramfs-tools-interactor/ -o /tftpboot/default/initrd

For 0710 do;

mkinitramfs -d /etc/initramfs-tools/ -o /tftpboot/default/initrd

This will create a new initial ramdisk for the first boot of new MDs containing the atl1 module. Now, the first boot of the diskless MD will succeed and a new diskless media director will be created.

Modify the media director initial ramdisk

To boot this diskless MD later on, the configuration for this new device has to be modified to include the above line as well. Look in the directory structure under /usr/pluto/diskless. Each media director has a directory named with the ID of the director in here. Go into the /usr/pluto/diskless/<mediadirector-id>/etc and edit the file modules to also contain

atl1

Also, go into /usr/pluto/diskless/<mediadirector-id>/etc/initramfs-tools-interactor and put the line into a file called modules. After this, chroot into the directory of the media directory, and re-create the initial ramdisk.

To create a new initial ram disk the command is

cd /usr/pluto/diskless/
chroot <mediadirector-id>
cd /boot
mkinitramfs -o initrd.img-`uname -r` `uname -r`
exit

Now reboot your media director. Everything should come up, the way it is meant to.

Caveat

Whenever you click Regenerate this media director, you have to redo the step for the initial ramdisk of the media director. The above steps do not work, if the media director and the core utilize two different CPU architectures,ie. one is using AMD64 the other i386 (chroot won't work).