Tiny Core Base > Corepure64
Corepure64 Released
Juanito:
my mac mini (2011, I guess) has this:
--- Code: ---02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57765 Gigabit Ethernet PCIe (rev 10)
--- End code ---
..and works with the base core64
coreplayer2:
Apple changed the Ethernet adapter in all new Mac mini's6,x (at least 6,1 & 6,2) to BCM57766, the tg3 drive in base will no longer work with these new devices :|
Broadcom has an updated Tigon tg3.ko driver v 3.124c with many enhancements over the older version which is in the latest Linux kernel, but not 3.0.21.
I have compiled a driver using corepure in text mode and made an extension, works great once the old tg3 is removed and the new tg3 modprobe'd
Assuming this is the right way to accomplish the task, Just need to write a start-up script to run
sudo modprobe -r tg3
sudo modprobe tg3
sudo /opt/eth0.sh
Unless there is a better way
Juanito:
You could remaster corepure64 and replace tg3.ko.gz with your driver
coreplayer2:
Meanwhile this script work out to install the tg3 driver on boot
--- Code: ---#!/bin/sh
## function DHCP reset
f_dhcp() {
sudo pkill udhcpc
sleep 0.5
sudo udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0.pid
}
## function driver install
f_tg3_install() {
KMOD=/tmp/tcloop/eth-tg3-3.0.21-tinycore64/lib/modules/3.0.21-tinycore64/kernel/drivers/net
KDIR=/lib/modules/3.0.21-tinycore64/kernel/drivers/net
## if tigon3 driver loaded, unload driver
[ -n 'lsmod | grep "tg3"' ] && sudo modprobe -r tg3.ko
## remove old tg3 driver & replace with updated tg3-3.124c driver
find ${KDIR} -name tg3.ko.gz | xargs rm -f
cp ${KMOD}/tg3.ko.gz /${KDIR}/tg3.ko.gz
## load driver, bring up & start DHCP
sudo modprobe tg3.ko && sudo ifconfig eth0 up && f_dhcp >/dev/null 2>&1
}
## Detect Broadcom Ethernet & install updated if true
ETHX=`lspci | grep "Ethernet controller" | grep "Broadcom"`
[ -n "$ETHX" ] && f_tg3_install
--- End code ---
coreplayer2:
--- Quote from: Juanito on November 24, 2012, 12:38:14 AM ---You could remaster corepure64 and replace tg3.ko.gz with your driver
--- End quote ---
Actually I didn't realize how easy this might be, if the drivers test out good with the above script I think I'll do exactly as you've suggested above.
Thanks
lol easy, right..
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version