Cool Solutions

Helping the ZENworks Boot CD Recognize a new NIC



By:

November 14, 2006 12:00 am

Reads:5,774

Comments:0

Score:Unrated

Editor’s Note: Rich’s original article caught the interest of our technical reviewer, Shaun Pond. He thought parts of it could be streamlined, and he sought the advice of Kurt Finlayson, a regular contributor to the Imaging forums. Kurt suggested some important changes to steps 1 and 8, which Rich pronounced “GENIUS!” Here’s the improved version.

Environment

Items needed to complete this:

  • A Linux PC for compiling the driver. Must be non-hyper-threading with at least 256 mb ram and a USB port
  • Thumb drive to transfer files back and forth between Linux and Windows PC
  • Windows PC with CD burning software and ISO editing software
  • SLES 9 rc 5
  • SLES 9 SP2
  • SLES 9 SP3 – only if you are using the Zen7 SP1 bootcd as it uses the 7.6.5-7.244 kernel
  • Current NIC driver. For this, I will use the Intel e1000 7.2.9 driver (e1000-7.2.9.tar.gz)
  • ZENworks 7 boocd.iso
  • 1 blank CD-R, or get a CD-RW, I have saved myself literally hundreds of CDs by using a CD-RW that I can re-use over and over again.

Problem

ZENworks Boot CD not recognizing new NIC

Solution

NOTE: copying and moving and renaming files will be done graphically. If you want to move or rename a file from the prompt, knock yourself out.

Step 1 – Get the IDs of the NIC that is not being loaded

  1. Get to a bash prompt.
  2. Get the Vendor ID and the Device ID of the network card that is not being loaded.
    1. This is done by typing “hwinfo –netcard
    2. This will display a list of information for the network card.
    3. Look for the “Vendor:” and “Device:” information.
      Example: Vendor: pci 0×8086 “Intel Corporation”, Device: pci 0x109a
      Another Example: Vendor: pci 0×1002 “AMD”, Device: pci 0×2000 “PCnet – Fast 79C971″
    4. Write down the hex values for Vendor and Device. 0×8086 and 0x109a

Step 2 – Extracting the INITRD to edit

On a Windows PC open up the Zen7 bootcd.iso using ISO editing software and copy the initrd file from the /boot/loader directory to your thumb drive.

NOTE: Steps 3-6 expects that you know what the NIC is in your computer, and that you know what the driver name is for it. This process expects that you will need to compile a NIC driver. If you do not need to compile a NIC driver, skip directly to Step 6. You will, however need a PC with Linux loaded on it in order to complete this process, regardless of if you need to compile a new NIC driver.

Step 3 – Get the latest NIC driver from the vendor

Download the latest driver for the NIC (e1000-7.2.9.tar.gz) from the vendor’s web site and copy it to your thumb drive.

Step 4 – Install SLES 9 and patch it to build the driver and edit files

NOTE: This PC should be a spare PC that you can wipe clean.

NOTE: For ZEN7sp1, replace the steps concerning SP2 with SP3.

WARNING: YOU CAN LOSE ALL THE DATA ON THIS PC’S HARD DRIVE. PROCEED AT YOUR OWN RISK.

  1. Boot your PC with disk 1 in it, and select INSTALLATION and hit Enter.
  2. Click I Agree.
  3. Select language and click Accept.
  4. Select New Installation if it prompts you and click OK.
  5. Click on CHANGE and select SOFTWARE.
  6. Click Detailed Selection.
  7. Filter should be set at SELECTIONS.
  8. Deselect Print Server and Authentication Server.
  9. Click on the group C/C++ Compiler and Tools, in the left group, select GCC, GLIBC-DEVEL, NCURSES-DEVEL
  10. Click on the group Various Linux Tools, in the left group, select KERNEL SOURCE
  11. Change the Filter to SEARCH
  12. Search for QT3, and select QT3-DEVEL
  13. Click on ACCEPT.
  14. On the AUTOMATIC CHANGES pop up, accept the defaults and click on CONTINUE.
  15. Leave the rest as default and click on ACCEPT.
  16. If prompted, click on YES, INSTALL to start the installation.
  17. Follow the prompts for changing CDs.
  18. Put in a password for the Root user and click Next.
  19. Accept defaults for network config and click Next.
  20. Click NO to skip testing the connection to the internet, and click Next.
  21. Click Skip Configuration for the CA Management setup and click Next.
  22. Leave Authentication Method at default (local) and click Next.
  23. Leave user info empty and click Next. Click Yes at the prompt to continue.
  24. On Release Notes, click Next.
  25. Leave defaults for Hardware configuration and click Next.
  26. Click Finish.
  27. Login as Root.
  1. Put in CD 1 of SLES 9 SP2
  2. Start YAST.
  3. Click on Patch CD Update.
  4. Leave defaults and click on Next.
  5. Accept default selection of patches and click Accept.
  6. Click Install Patch.
  7. Switch CDs as needed and click OK to continue the patch.
  8. Click OK for fetchmail update or any other updates that pop up.
  9. Click Finish.
  10. Close YAST.
  11. Logout and restart the computer.
  12. Login as Root.
  13. Open up a shell and make sure you are at the correct kernel level.
  14. Confirm the kernel version is 7.6.5-7.191-default by typing in:
    # uname -r

Step 5 – Compile the NIC driver

  1. Plug in your thumb drive with the NIC driver and INITRD on it, into the SLES 9 computer.
  2. Copy the NIC driver to the /root directory (e1000-7.2.9.tar.gz).
  3. Compile the NIC driver as per the instructions given with the NIC driver.

Step 6 – Mount the INITRD

  1. Copy the Initrd from the thumb drive to the /root directory.
  2. Create a folder in /root called work.
  3. Rename the initrd file to initrd.gz
  4. Unzip the file from the shell:
    # gunzip initrd.gz
  5. Mount the file:
    # mount -o loop initrd work

NOTE: if you are not adding any drivers, skip Step 7.

Step 7 – Copy the NIC drivers to INITRD

Copy the compiled e1000.ko driver from /lib/modules/2.6.5-7.191-default/kernel/drivers/net/e1000 into /root/work/lib/modules/2.6.5-override-default/initrd

Step 8 – Add parameter newid to linuxrc.config file

Add the parameter newid=”” to the linuxrc.config file found at the root of the initrd.

  1. Change directories to where you mounted the initrd file.
  2. Open linuxrc.config with a text editor, example ‘vi linuxrc.config’
  3. Add the following line to the end of the file.
    newid=”<vendorid> <deviceid>,<drivername>”
    Example:
    newid=”0×8086 0x109a,e1000″

Step 9 – Get INITRD ready to go back into the bootcd.iso

  1. In the terminal session, unmount the work folder:
    # umount work
  2. Zip the initrd file:
    # gzip -v9c initrd > initrd.gz
  3. Rename the file from initrd.gz to initrd
  4. Copy the new initrd back to the thumb drive. You may want to create a new folder on the thumb drive to keep the old and new ones separate.

Step 10 – Make the new bootcd.iso

  1. Take the thumb drive with the new INITRD over to the Windows PC.
  2. On the windows PC open up the Zen7 bootcd.iso with your ISO editing software and replace the initrd in the \boot\loader with the new initrd
  3. You may want to edit the SETTINGS.TXT file at this time if needed for your new CD.
  4. Burn the new bootcd.iso.

Step 11 – boot the laptop/PC with the new bootcd

  1. Boot up the problem computer and confirm that the network card is recognized and loads properly and you can image from the network.
  2. Quickest way is to select MANUAL from the boot menu, and when at the #, ping the imaging server:
    #ping 192.168.99.99
  3. You should get a response and be able to start imaging.
0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...

Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS