Skip to main content.

2003-Feb-26

Started adding definitions for Linksys EtherFast 10/100 Integrated PC Card (Model No: PCM100)

But updating source first before building new kernel. Took over 137 minutes to checkout new source for netbsd-1-6.

For new pcmcia device:

I added entry to pcmciadevs and if_ne_pcmcia.c and ran "make -f Makefile.pcmciadevs".

Now to just build two boot floppies. I chose to build using INSTALL_LAPTOP kernel (even though the INSTALL does have the pcmcia ne support).

The following was done as a regular user:

  1. cd /usr/src/sys/arch/i386/conf
    time config INSTALL_LAPTOP
    cd ../compile/INSTALL_LAPTOP
    make depend
    make
    
  2. build sysinst and crunched binaries and then create ramdisk filesystem image
    cd /usr/src/distrib/i386/floppies/ramdisk-big
    make USETOOLS=never
    
  3. copy the disk image into the memory disk storage area in kernel.
    First, edited distrib/i386/floppies/kernel-ramdisk/Makefile so it would only
    do INSTALL_LAPTOP.
    
    cd /usr/src/distrib/i386/floppies/kernel-ramdisk
    make USETOOLS=never
    
  4. create the two floppy images
    cd /usr/src/distrib/i386/floppies/bootfloppy-laptop
    make USETOOLS=never
    
Also I wrote to disk as normal user, because I am in operator group and my /dev/rfd0a is writable by that group.
dd if=bootlap1.fs of=/dev/rfd0a
dd if=bootlap2.fs of=/dev/rfd0a
The boot image had a kernel page fault. So I tried the bootlap* from releng.netbsd.org and so did it. Then tried the regular boot[12].fs from releng and they worked fine. (These are 1.6.1_RC2.) So building my own floppies again so I can have my card configured correctly.
cd /usr/src/sys/arch/i386/conf
config INSTALL
cd ../compile/INSTALL
make depend && make
# the following is not needed because already done
#cd /usr/src/distrib/i386/floppies/ramdisk-big
#make USETOOLS=never
cd /usr/src/distrib/i386/floppies/kernel-ramdisk
# edit Makefile for INSTALL only
make USETOOLS=never
cd /usr/src/distrib/i386/floppies/bootfloppy
make USETOOLS=never
dd if=boot1.fs of=/dev/rfd0a
dd if=boot2.fs of=/dev/rfd0a # after putting in new floppy
(This above took about 25 minutes.)

Ouch! I accidently used wrong number in my if_ne_pcmcia.c setup. So now to do again :(

During cvs if you receive messages like:

cvs server: cannot open directory /cvsroot/basesrc: No such file or directory
cvs server: skipping directory
this is because the modules are merged. The "basesrc" is gone (and it is now just "src".) See http://mail-index.netbsd.org/current-users/2002/12/19/0039.html. That included a short script which I used to fix my CVS/Repository files.