Wednesday, June 20, 2012

2. After the installation of the OS

After the installation is done, you need to modify your grub.conf file so that the kernel will be able to allocate memory space for the NetFPGA. This is done as follows :

1. Log into the computer as root
2. Type : gedit /boot/grub/grub.conf
3. Add the line : uppermem 524288 before the kernel line
4. Add the following text at the end the kernel line : vmalloc=256M




5. Save the file and exit
6. Reboot the computer
7. Log in as root and type : lspci
8. You could get an output like this : ##:##.# Ethernet controller: Unknown device feed:0001



9. This string identifies that there's a NetFPGA device on the PCI slot.

7 comments:

  1. Hi, I working with VM VirtualBox, when I run the ” lspci ” command , don’t identifies a NetFPGA device on the PCI slot. The PCI slot either.

    What do I have to do?

    ReplyDelete
    Replies
    1. hey.. from what i know, it is possible that you didn’t allocate memory for the pci slot (step 3 and 4 of this article). After this, restart the computer and try again. I think this should work..

      Delete
    2. Hi pharic,

      This is my code, after of do the step 3 and 4

      #boot=/dev/hda
      default=0
      timeout=5
      splashimage=(hd0,0)/grub/splash.xpm.gz
      hiddenmenu
      title CentOS (2.6.18-308.24.1.el5) NetFPGA
      root (hd0,0)
      uppermem 524288
      kernel /vmlinuz-2.6.18-308.24.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet vmalloc=256M
      initrd /initrd-2.6.18-308.24.1.el5.img
      title CentOS (2.6.18-308.24.1.el5)
      root (hd0,0)
      uppermem 524288
      kernel /vmlinuz-2.6.18-308.24.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet vmalloc=256M
      initrd /initrd-2.6.18-308.24.1.el5.img
      title CentOS (2.6.18-128.el5)
      root (hd0,0)
      uppermem 524288
      kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet vmalloc=256M
      initrd /initrd-2.6.18-128.el5.img

      Delete
    3. yeah that seems alright.. now restart and try ifconfig.. i believe that shud work.. it did for me..

      Delete
    4. I restart but nothing, It doesn’t show the interfaces. I connected the Rj-45 cable …but nothing.

      Delete
    5. sry man.. thats all that i know.. u cud try re-installing but its a tedious process as u wud know..

      Delete
  2. Pharic,

    Can you explain me does choise of values in uppermem and vmalloc commands depend on something? Why exactly 524288 and 256M?

    ReplyDelete