• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Help loading compiled driver

Scheduled Pinned Locked Moved Hardware
5 Posts 3 Posters 5.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    IggyB
    last edited by Jan 5, 2017, 3:56 AM

    hi,

    can anyone help me with this?

    what is the proper way to load a freebsd realtek nic driver compiled for pfsense? if_re.ko

    i compiled the driver i obtained from realtek website using freebsd 10.3 in virtualbox on linux host

    thank you

    1 Reply Last reply Reply Quote 0
    • I
      IggyB
      last edited by Jan 5, 2017, 5:44 AM Jan 5, 2017, 5:09 AM

      so far

      i fetched if_re.ko to /boot/kernel
      chmod 0555 if_re.ko && chown root:wheel if_re.ko

      added if_re_load="YES" to /boot/loader.conf

      is this the right way? can anyone help. thanks

      kldload says.

      kldload if_re kldload: can't load if_re: module already loaded or in kernel

      : kldstat
      Id Refs Address            Size    Name
      1    8 0xffffffff80200000 225edc0  kernel
      2    1 0xffffffff8245f000 64c68    if_re.ko
      3    1 0xffffffff82611000 7577    aesni.ko
      4    1 0xffffffff82619000 29eb    coretemp.ko

      is there a way to check what driver version is loaded.

      EDIT! i checked boot log by doing more /var/run/dmesg.boot

      and i found

      re0: <realtek pcie="" gbe="" family="" controller="">port 0xe000-0xe0ff mem 0x81300000-0x81300fff,0xa0100000-0xa0103fff irq 17 at device 0.0 on pci2
      re0: Using Memory Mapping!
      re0: Using 1 MSI-X message
      re0: version:1.92

      re1: <realtek pcie="" gbe="" family="" controller="">port 0xd000-0xd0ff mem 0x81200000-0x81200fff,0xa0000000-0xa0003fff irq 18 at device 0.0 on pci3
      re1: Using Memory Mapping!
      re1: Using 1 MSI-X message
      re1: version:1.92

      This product is covered by one or more of the following patents:
      US6,570,884, US6,115,776, and US6,327,625.

      Does this confirm that driver 1.92 i compiled from realtek website is in use?</realtek></realtek>

      1 Reply Last reply Reply Quote 0
      • V
        VAMike
        last edited by Jan 5, 2017, 2:01 PM

        @IggyB:

        Does this confirm that driver 1.92 i compiled from realtek website is in use?

        What did the dmesg say before you tried to switch drivers? Was it the same version?

        1 Reply Last reply Reply Quote 0
        • I
          IggyB
          last edited by Jan 6, 2017, 6:03 AM Jan 6, 2017, 5:41 AM

          @VAMike:

          @IggyB:

          Does this confirm that driver 1.92 i compiled from realtek website is in use?

          What did the dmesg say before you tried to switch drivers? Was it the same version?

          Not sure, i will unload the realtek driver and have a look now. Will let you know

          EDIT!
          Default built in drivers.

          re0: <realtek 8111="" 8168="" b="" c="" cp="" d="" dp="" e="" f="" g="" pcie="" gigabit="" ethernet="">port 0xe000-0xe0ff mem 0x81300000-0x81300fff,0xa0100000-0xa0103fff irq 17 at device 0.0 on pci2
          re0: Using 1 MSI-X message
          re0: turning off MSI enable bit.
          re0: Chip rev. 0x4c000000
          re0: MAC rev. 0x00000000
          miibus0: <mii bus="">on re0
          rgephy0: <rtl8251 1000base-t="" media="" interface="">PHY 1 on miibus0
          rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow

          re1: <realtek 8111="" 8168="" b="" c="" cp="" d="" dp="" e="" f="" g="" pcie="" gigabit="" ethernet="">port 0xd000-0xd0ff mem 0x81200000-0x81200fff,0xa0000000-0xa0003fff irq 18 at device 0.0 on pci3
          re1: Using 1 MSI-X message
          re1: turning off MSI enable bit.
          re1: Chip rev. 0x4c000000
          re1: MAC rev. 0x00000000
          miibus1: <mii bus="">on re1
          rgephy1: <rtl8251 1000base-t="" media="" interface="">PHY 1 on miibus1
          rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow</rtl8251></mii></realtek></rtl8251></mii></realtek>

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jan 10, 2017, 6:30 PM

            That's exactly how I've done it previously, though not with the re driver.

            Looks to be loading correctly to me. What was the reason for doing that?

            Steve

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received