Am Montag, 9. April 2007 14:50:00 schrieb Andrew Nagy: > KP Kirchdoerfer-2 wrote: > > Hi Andrew; > > > > looks like you missed a step between 11) and 12) see below. > > > > Am Sonntag, 8. April 2007 19:50:17 schrieb Andrew Nagy: > >> KP Kirchdoerfer-2 wrote: > >> > Am Freitag, 6. April 2007 14:19:52 schrieb Andrew Nagy: > >> >> Eric Spakman wrote: > >> >> > Andrew, > >> >> > > >> >> >> I have my /etc/modules configured to load those same modules, but > >> >> > >> >> everytime I boot > >> >> > >> >> >> the VM the driver does not load. Something about missing > >> >> >> parameters > >> >> > >> >> for > >> >> > >> >> >> updown. I am not near my server to give you an exact error > >> >> >> message. > >> >> > >> >> Iknow > >> >> > >> >> >> lsmod shows mii and crc32 being loaded, but I don't remember > >> >> >> seeing pcnet32. Any ideas or hints? > >> >> >> > >> >> >> Thanks. > >> >> > > >> >> > Make sure all three modules are available in the /lib/modules/ > >> >> > >> >> directory > >> >> > >> >> > and list them in /etc/modules in the following order: > >> >> > > >> >> > crc32 > >> >> > mii > >> >> > pcnet32 > >> >> > > >> >> > Also make sure the modules fit the kernel version (uname -r to > >> >> > >> >> determine > >> >> > >> >> > the running kernel version). The right modules tarball can be > >> >> > >> >> downloaded > >> >> > >> >> > from: > >> >> > http://sourceforge.net/project/showfiles.php?group_id=13751 > >> >> > or directly from: > >> >> > http://leaf.cvs.sourceforge.net/leaf/bin/bering-uclibc/packages/ > >> >> > > >> >> > Eric > >> >> > > >> >> > > >> >> ><snip> > >> >> > >> >> Eric: > >> >> > >> >> I have checked and I am using the correct version of the modules. My > >> >> problem remains > >> >> as I stated in another thread > >> > >> (http://www.nabble.com/Re%3A-How-to-add-NIC-driver-to-floppy-image-for-B > >> > >> >>eri ng-uClibC-3.0.2-p9801965.html) that the whenever I try to either > >> > >> edit > >> > >> >> /etc/modules or copy pcnet32.o to /lib/modules > >> >> the changes do not persist to the next reboot. Even if I do a save > >> > >> from > >> > >> >> lrcfg the changes > >> >> do not persist. I know I am missing something fundamental or really > >> >> simple. > >> >> How do I > >> >> make the changes to the floppy image persist to the next reboot? > >> >> > >> >> Thanks. > >> > > >> > Andrew; > >> > > >> > I'm guessing you are using a self-build boot-image for VMware. > >> > > >> > Depending on the base you started you're self-build image the pkgpath > >> > >> to > >> > >> > save > >> > the packages may be wrong. Make shure in leaf.cfg the the first entry > >> > >> for > >> > >> > pkgpath is your (virtual) floppy. > >> > > >> > As I said, I'm guessing - if that doesn't help, we need more > >> > >> information > >> > >> > about > >> > your setup and the messages/error messages you get while saving or > >> > >> trying > >> > >> > to > >> > save changes. > >> > > >> > kp > >> > > >> > <snip> > >> > >> Just to keep things straight in my head I decided to start from scratch. > >> Keeping > >> in mind that I need a bootable 1.44 MB floppy image, I: > >> > >> 1) Extracted the 'bootdisk.ima' file from the 3.0.2 bin/ISO file. This > >> is now the > >> start of my new floppy image. > >> > >> 2) Added the modules 'configure.lrp', 'etc.lrp', 'initrd.lrp', > >> 'libm.lrp', > >> 'local.lrp', > >> 'moddb.lrp', 'modules.lrp' and 'root.lrp' from the same bin/ISO file to > >> this new floppy image. > >> > >> 3) Modified 'syslinux.cfg' in floppy image to look like this: > >> > >> display syslinux.dpy > >> timeout 0 > >> append reboot=bios > >> default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 > >> LEAFCFG=/dev/fd0:msdos boot=/dev/fd0:msdos > >> > >> 4) Modified 'leaf.cfg' in floppy image to look like this: > >> > >> LRP="root config etc local modules libm" > >> PKGPATH=/dev/fd0:msdos > >> syst_size=16M > >> log_size=4M > >> > >> 5) The virtual machine I created is configured for 256 MB of RAM, 2 > >> NICs, no HDD, one CPU and boot from my new floppy image. > >> > >> 6) I boot the virtual machine, log in as root, in lrcfg I enter '3' for > >> 'Packages configuration', '3' for 'modules', '1' for 'kernel modules to > >> load at boot' which brings up '/etc/modules/'. > >> > >> 7) I remove comments for 'crc32', 'mii' and 'pcnet32'. Save and exit > >> editor. Quit > >> back to main screen and enter 's' to 'Save configuration', I have 187 KB > >> free. There > >> is the following message in the save output: > >> > >> Creating configdb.lrp Please wait: \ > >> New Package: > >> -rw-r--r-- 1 root root 2694 Apr 8 13:22 /tmp/config.lrp > >> Old Package: > >> ls: /var/lib/lrpkg/mnt0/configdb.lrp: No such file or directory > >> Filesystem 1k-blocks Used Available Use % Mounted on > >> /dev/fd0 1024 1237 187 87% > >> /var/lib/lrpkg/mnt0 > >> > >> Enough freespace? (y/N) > >> > >> To which I reply 'y'. There are no errors while it saves. > >> > >> 8) Exit to command prompt. > >> > >> 9) Mount second floppy disk which contains a copy of pcnet32.o extracted > >> from > >> Bering-uClibc_modules_2.4.33.tar.gz. Output from 'uname -r' confirms > >> that I > >> am > >> working from kernel version '2.4.33'. > >> > >> 10) Copy 'pcnet32.o' from second floppy to '/lib/moduels'. > >> > >> 11) ls of '/lib/modules' to confirm presence of 'crc32.o', 'mii.o' and > >> 'pcnet32.o'. > > > > lrcfg - > m) Backup modules > > > >> 12) Init 6 > >> > >> 13) During the reboot there are no error messages other than this (the > >> modules load fine): > >> > >> Configuring network interfaces: ifup: Don't seem to have all the > >> variables > >> for e > >> th0/inet > >> Cannot find device "eth1". > >> SIOCGIFFLAGS: No such device > >> done. > >> > >> > >> ls of '/lib/modues' shows that 'pcnet32.o' is not there. How do I fix > >> this. > >> > >> Sorry for the long windedness, but I thought it best to be complete. > > > > True; without the complete description we won't have found the (possible) > > error. > > > > kp > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------------------------------------------------ > > leaf-user mailing list: leaf-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/leaf-user > > Support Request -- http://leaf-project.org/ > > Any ideas why pcnet32.o does not stay in /lib/modules or how to properly > save new > files to my floppy image?
Did you follow my advice and backup modules from lrcfg main menu? kp ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/