Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Macmini6,2 network driver not working

  1. #11
    Join Date
    Jun 2009
    Beans
    9

    Talking Re: Macmini6,2 network driver not working

    Quote Originally Posted by superyounan1 View Post
    I tried compiling the module again with rcsheet's advice (post #6) to simply comment out the include of asm/system.h and the the other changes, this worked. I moved the binary tg3.ko to /lib/modules/`uname -r`/kernel/drivers/net/ethernet/broadcom/, ran
    Code:
    sudo modprobe tg3
    and viola, a "wired connection established" notification popped up.
    I'm glad to know this has now worked for more than just me. One minor difference though is that (though I didn't mention this in my earlier post) I installed the module with 'sudo make install'.

    I'll try this more often... missing header file? Missing library? Fine, just erase or comment that part of the code calling it.
    Somehow I doubt that approach works very often.

  2. #12
    Join Date
    May 2008
    Beans
    41

    Re: Macmini6,2 network driver not working

    iam working on a mac mini 6.1 ? (its with a ivy bridge proc so i assume its the same)

    it got it to work on the 3.5 kernel from this tread with the drivers from broadcom by editing the files described

    this is the fixed source : DOWNLOAD

    i take no responsibility i only did what was mentioned in this tread earlier

  3. #13
    Join Date
    Jun 2009
    Beans
    9

    Re: Macmini6,2 network driver not working

    Quote Originally Posted by Gompa View Post
    iam working on a mac mini 6.1 ? (its with a ivy bridge proc so i assume its the same)
    The macmini6 models are all the models released last month. macmini6,1 is the Core i5 model, macmini6,2 is the Core i7 model, and macmini6,3 is the Mac mini Server (which also has a Core i7).

    I believe all of them have the same network hardware.

  4. #14
    Join Date
    Nov 2004
    Beans
    11
    Distro
    Dapper Drake Testing/

    Re: Macmini6,2 network driver not working

    Here's some DKMS instructions to auto-build and install the tg3 module automatically on later kernel updates. They work for me, but I'm not a DKMS expert.

    • Install dkms, build-essential, linux-headers, linux-source, etc
    • Download the Linux tg3 module from http://www.broadcom.com/support/ethe...me_desktop.php
    • Extract it
    • Navigate to Server/Linux/Driver/tg3-3.124c.tar.gz
    • Extract that file to /usr/src/tg3-3.124c/src/
    • Create a file called /usr/src/tg3-3.124c/dkms.conf with the following contents:


    Code:
    PACKAGE_NAME=tg3
    PACKAGE_VERSION=3.124c
    CLEAN="make -C src/ clean"
    MAKE="cd src/ && make BUILD_KERNEL=${kernelver} KVER=${kernelver}"
    BUILT_MODULE_NAME[0]="tg3"
    BUILT_MODULE_LOCATION[0]="src/"
    DEST_MODULE_LOCATION[0]=/updates
    AUTOINSTALL=yes
    After that run the DKMS commands to install it:
    Code:
    sudo dkms add -m tg3 -v 3.124c
    sudo dkms build -m tg3 -v 3.124c
    sudo dkms install -m tg3 -v 3.124c
    Then reboot or:
    Code:
    sudo modprobe tg3
    You should now have a working tg3 network module that survives kernel updates.

  5. #15
    Join Date
    Jul 2009
    Beans
    9

    Re: Macmini6,2 network driver not working

    I have tried this promising solution but I am having difficulties (probably due to my being new to Ubuntu no doubt).

    The first problem I encountered was that it wasn't obvious that DKMS needs to be installed first from here:

    http://linux.dell.com/dkms/

    After that DKMS would work but I got the following error after trying to use sudo dkms. I have no idea what this means or what to do next before trying install. Any ideas, please advise:

    DKMS make.log for tg3-3.124c for kernel 3.8.2-030802-generic (x86_64)
    Wed Mar 13 20:17:56 WST 2013
    sh makeflags.sh /lib/modules/3.8.2-030802-generic/build > tg3_flags.h
    make -C /lib/modules/3.8.2-030802-generic/build SUBDIRS=/var/lib/dkms/tg3/3.124c/build/src modules
    make[1]: Entering directory `/usr/src/linux-headers-3.8.2-030802-generic'
    CC [M] /var/lib/dkms/tg3/3.124c/build/src/tg3.o
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:96:24: fatal error: asm/system.h: No such file or directory
    compilation terminated.
    make[2]: *** [/var/lib/dkms/tg3/3.124c/build/src/tg3.o] Error 1
    make[1]: *** [_module_/var/lib/dkms/tg3/3.124c/build/src] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.8.2-030802-generic'
    make: *** [default] Error 2

  6. #16
    Join Date
    Jul 2009
    Beans
    9

    Re: Macmini6,2 network driver not working

    I have since tried rcheets changes to driver files in post 6 with Ubuntu updated to kernel 3.7.10.
    Unfortunately I still have no ethernet and now get the following errors.

    Would appreciate suggestions on how to fix this:

    DKMS make.log for tg3-3.124c for kernel 3.7.10-030710-generic (x86_64)
    Thu Mar 14 10:11:24 WST 2013
    sh makeflags.sh /lib/modules/3.7.10-030710-generic/build > tg3_flags.h
    make -C /lib/modules/3.7.10-030710-generic/build SUBDIRS=/var/lib/dkms/tg3/3.124c/build/src modules
    make[1]: Entering directory `/usr/src/linux-headers-3.7.10-030710-generic'
    CC [M] /var/lib/dkms/tg3/3.124c/build/src/tg3.o
    In file included from /var/lib/dkms/tg3/3.124c/build/src/tg3.h:13:0,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:119:
    /var/lib/dkms/tg3/3.124c/build/src/tg3_compat.h:1953:21: error: conflicting types for ‘ethtool_cmd_speed’
    In file included from include/linux/ethtool.h:16:0,
    from include/linux/netdevice.h:42,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:48:
    include/uapi/linux/ethtool.h:61:21: note: previous definition of ‘ethtool_cmd_speed’ was here
    In file included from /var/lib/dkms/tg3/3.124c/build/src/tg3.h:13:0,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:119:
    /var/lib/dkms/tg3/3.124c/build/src/tg3_compat.h:1960:21: error: conflicting types for ‘ethtool_cmd_speed_set’
    In file included from include/linux/ethtool.h:16:0,
    from include/linux/netdevice.h:42,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:48:
    include/uapi/linux/ethtool.h:53:20: note: previous definition of ‘ethtool_cmd_speed_set’ was here
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: In function ‘tg3_get_invariants’:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:16502:28: error: ‘struct pci_bus’ has no member named ‘subordinate’
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:16530:28: error: ‘struct pci_bus’ has no member named ‘subordinate’
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: In function ‘tg3_init_one’:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:47: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:2: error: ‘INIT_WORK’ undeclared (first use in this function)
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:2: note: each undeclared identifier is reported only once for each function it appears in
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: At top level:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:11300:13: warning: ‘tg3_reset_task’ defined but not used [-Wunused-function]
    make[2]: *** [/var/lib/dkms/tg3/3.124c/build/src/tg3.o] Error 1
    make[1]: *** [_module_/var/lib/dkms/tg3/3.124c/build/src] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.7.10-030710-generic'
    make: *** [default] Error 2
    Last edited by tonyoz; March 14th, 2013 at 03:45 AM.

  7. #17
    Join Date
    Mar 2013
    Beans
    12

    Re: Macmini6,2 network driver not working

    Quote Originally Posted by tonyoz View Post
    I have since tried rcheets changes to driver files in post 6 with Ubuntu updated to kernel 3.7.10.
    Unfortunately I still have no ethernet and now get the following errors.

    Would appreciate suggestions on how to fix this:

    DKMS make.log for tg3-3.124c for kernel 3.7.10-030710-generic (x86_64)
    Thu Mar 14 10:11:24 WST 2013
    sh makeflags.sh /lib/modules/3.7.10-030710-generic/build > tg3_flags.h
    make -C /lib/modules/3.7.10-030710-generic/build SUBDIRS=/var/lib/dkms/tg3/3.124c/build/src modules
    make[1]: Entering directory `/usr/src/linux-headers-3.7.10-030710-generic'
    CC [M] /var/lib/dkms/tg3/3.124c/build/src/tg3.o
    In file included from /var/lib/dkms/tg3/3.124c/build/src/tg3.h:13:0,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:119:
    /var/lib/dkms/tg3/3.124c/build/src/tg3_compat.h:1953:21: error: conflicting types for ‘ethtool_cmd_speed’
    In file included from include/linux/ethtool.h:16:0,
    from include/linux/netdevice.h:42,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:48:
    include/uapi/linux/ethtool.h:61:21: note: previous definition of ‘ethtool_cmd_speed’ was here
    In file included from /var/lib/dkms/tg3/3.124c/build/src/tg3.h:13:0,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:119:
    /var/lib/dkms/tg3/3.124c/build/src/tg3_compat.h:1960:21: error: conflicting types for ‘ethtool_cmd_speed_set’
    In file included from include/linux/ethtool.h:16:0,
    from include/linux/netdevice.h:42,
    from /var/lib/dkms/tg3/3.124c/build/src/tg3.c:48:
    include/uapi/linux/ethtool.h:53:20: note: previous definition of ‘ethtool_cmd_speed_set’ was here
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: In function ‘tg3_get_invariants’:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:16502:28: error: ‘struct pci_bus’ has no member named ‘subordinate’
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:16530:28: error: ‘struct pci_bus’ has no member named ‘subordinate’
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: In function ‘tg3_init_one’:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:47: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:2: error: ‘INIT_WORK’ undeclared (first use in this function)
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:18013:2: note: each undeclared identifier is reported only once for each function it appears in
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c: At top level:
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:11300:13: warning: ‘tg3_reset_task’ defined but not used [-Wunused-function]
    make[2]: *** [/var/lib/dkms/tg3/3.124c/build/src/tg3.o] Error 1
    make[1]: *** [_module_/var/lib/dkms/tg3/3.124c/build/src] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.7.10-030710-generic'
    make: *** [default] Error 2



    i have a patch file that works for kernel 3.7.x for the tg3 driver.

    i'm not sure how to post links to files on here though.

    i'm looking for a similar patch for kernel 3.8.x for this driver.

  8. #18
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: Macmini6,2 network driver not working

    Thank you so much for the info. Now I have a mac mini with ubuntu 12.04.2 up an running.

  9. #19
    Join Date
    Mar 2013
    Beans
    1

    Re: Macmini6,2 network driver not working

    Quote Originally Posted by cricketnut View Post
    Thank you so much for the info. Now I have a mac mini with ubuntu 12.04.2 up an running.
    Hi --

    You'll forgive me if I'm confused how you got from the stack trace to the above quote. Did you apply a patch? If so, would you provide a link or any further information?

    I'm running on a Mac Mini 6,1 / Ubuntu 12.10 / 3.5.x kernel, getting the following errors upon `sudo dkms build -m tg3 -v 3.124c`. (All packages installed, `dkms add` ran perfectly.)

    Terminal
    ----------
    cd src/ && make BUILD_KERNEL=3.5.0-17-generic KVER=3.5.0-17-generic....(bad exit status: 2)
    ERROR (dkms apport): binary package for tg3: 3.124c not found
    Error! Bad return status for module build on kernel: 3.5.0-17-generic (i686)
    Consult /var/lib/dkms/tg3/3.124c/build/make.log for more information.

    make.log
    ----------
    DKMS make.log for tg3-3.124c for kernel 3.5.0-17-generic (i686)
    Sat Mar 23 16:29:08 EDT 2013
    sh makeflags.sh /lib/modules/3.5.0-17-generic/build > tg3_flags.h
    make -C /lib/modules/3.5.0-17-generic/build SUBDIRS=/var/lib/dkms/tg3/3.124c/build/src modules
    make[1]: Entering directory `/usr/src/linux-headers-3.5.0-17-generic'
    CC [M] /var/lib/dkms/tg3/3.124c/build/src/tg3.o
    /var/lib/dkms/tg3/3.124c/build/src/tg3.c:96:24: fatal error: asm/system.h: No such file or directory
    compilation terminated.
    make[2]: *** [/var/lib/dkms/tg3/3.124c/build/src/tg3.o] Error 1
    make[1]: *** [_module_/var/lib/dkms/tg3/3.124c/build/src] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-17-generic'
    make: *** [default] Error 2
    Last edited by TheBeechnut; March 23rd, 2013 at 05:41 PM. Reason: included errors

  10. #20
    Join Date
    Apr 2007
    Beans
    5

    Re: Macmini6,2 network driver not working

    First of all you want to be at 3.8.5 because of the sound support and lots of usb3 fixes!


    cd /tmp
    wget http://dl.dropbox.com/u/47950494/upu...m/kernel-3.8.5 -O kernel-3.8.5
    chmod +x kernel-3.8.5
    sudo sh kernel-3.8.5
    sudo reboot




    1. Download your kernel source

    https://www.kernel.org/pub/linux/ker...x-3.8.5.tar.xz

    2. Put the kernel source on a usb stick (cause you don't have internet on the mac mini..)

    3. mount the usb stick:

    sudo mkdir /media/USB
    sudo mount /dev/sdb /media/USB (sda is your internal drive so sdb would be your first usb disk)

    4. untar the file:

    tar xz linux-3.8.5.tar.xz

    5. edit the broadcom file:

    cd /media/USB/linux-3.8.5/Drivers/net/ethernet/broadcom/
    sudo nano tg3.c

    6. add the macmini pci info:

    look for: {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57762)}, and underneath cp this:

    {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57766)},
    {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57782)},
    {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57786)},

    7. save the file (ctrl+x YES)

    8. copy your current Module.symvers

    sudo cp /usr/src/linux-headers-3.8.5-030805-generic/Module.symvers /media/USB/linux-3.8.5/

    9. make stuff:
    cd /media/USB/linux-3.8.5/
    make clean
    make oldconfig
    make scripts
    make prepare
    cd drivers/net/ethernet/broadcom/
    make -C /media/USB/linux-3.8.5 SUBDIRS=$PWD modules

    10. install new driver and activate:

    sudo cp /media/USB/drivers/net/ethernet/broadcom/tg3.ko /lib/modules/${kernelversion}/kernel/drivers/net/ethernet/broadcom/
    sudo modprobe tg3


    NICE INTERNET!

    [21321.011542] tg3.c:v3.128 (December 03, 2012)
    [21321.121927] tg3 0000:01:00.0 eth0: Tigon3 [partno(BCM957766a) rev 57766001] (PCI Express) MAC address a8:20:66:50:dd:a2
    Last edited by JoeBlack2k; April 1st, 2013 at 06:31 PM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •