Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] MAC Mini G4 Eth0 failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Fri Mar 16, 2007 1:30 pm    Post subject: [SOLVED] MAC Mini G4 Eth0 failure Reply with quote

Hello there!

I am trying to include Ethernet support in my own customized kernmel; What's the driver for the phisical Ethernet controller on a MAC MINI that I must biuld into the kernel? Lspci doesn't report anything about the ethernet controller on the MAC MINI...
I have already tried all the drivers for 10/100 eth controllers, but gentoo keeps telling me that eth0 can't be initialized and I must check the kernel driver or modules.

Thanks!


Last edited by VanFanel on Wed Mar 21, 2007 1:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Mar 16, 2007 1:50 pm    Post subject: Reply with quote

The Mac Mini uses the SunGEM controller.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Fri Mar 16, 2007 3:38 pm    Post subject: Reply with quote

Yes; I have come to understand that I must enable just ONE ethernet controller in the Kernel config: Choosing the SunGEM one has solved part of the problem.
At boot time, it gives me:

ERROR: problem starting needed service net.eth0
netmount was not started

I cdon't see any errors in the boot proccess, checked by running dmesg...Almost there!
I don't know what would I do without people like you, Jose!

Thanks again!
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Mar 16, 2007 4:11 pm    Post subject: Reply with quote

Can you please paste the whole dmesg in? Did you configure the network device in /etc/conf.d/net? Did you remember to emerge a dhcp client (like dhcpcd)?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Fri Mar 16, 2007 5:06 pm    Post subject: Reply with quote

Yes: I have the DHCPCD daemon installed, and my /etc/conf.d/net file goes like

iface_eth0="dhcp"
dhcp_eth0="-HDN"

So let's go for the Dmesg part: since I built with onmly Sungem Support some errors have arisen, but I can't quite get the poin to it: init scripts seems to be loaded, and drivers are ok...something with the protocol seems to be the problem: maybe IPv6 protocol is not supported?

Using PowerMac machine description
Total memory = 256MB; using 512kB for hash table (at cff80000)
Linux version 2.6.19-gentoo-r5 (root@localhost) (gcc version 4.1.1 (Gentoo 4.1.1)) #18 Fri Mar 16 15:13:40 Local time zone must be set--see zic man
Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0xd2
Mapped at 0xfdfc0000
Found a Intrepid mac-io controller, rev: 0, mapped at 0xfdf40000
Processor NAP mode on idle enabled.
PowerMac motherboard: Mac mini
Entering add_active_range(0, 0, 65536) 0 entries of 256 used
Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 55
nvram: Checking bank 0...
nvram: gen0=268, gen1=267
nvram: Active bank is: 0
nvram: OF partition at 0x410
nvram: XP partition at 0x1020
nvram: NR partition at 0x1120
Top of RAM: 0x10000000, Total RAM: 0x10000000
Memory hole size: 0MB
Zone PFN ranges:
DMA 0 -> 65536
Normal 65536 -> 65536
early_node_map[1] active PFN ranges
0: 0 -> 65536
On node 0 totalpages: 65536
DMA zone: 512 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 65024 pages, LIFO batch:15
Normal zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 65024
Kernel command line: root=/dev/hda4 ro
mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
PID hash table entries: 1024 (order: 10, 4096 bytes)
GMT Delta read from XPRAM: 0 minutes, DST: off
time_init: decrementer frequency = 41.620907 MHz
time_init: processor frequency = 1416.666661 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254720k/262144k available (3764k kernel code, 7176k reserved, 324k data, 145k bss, 160k init)
Calibrating delay loop... 83.20 BogoMIPS (lpj=166400)
Mount-cache hash table entries: 512
device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1"
PM: Adding info for No Bus:platform
NET: Registered protocol family 16
KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000
channel 0 bus <multibus>
channel 1 bus <multibus>
KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000
channel 0 bus <multibus>
PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000/pmu-i2c
channel 1 bus <multibus>
channel 2 bus <multibus>
PCI: Probing PCI hardware
PM: Adding info for No Bus:pci0000:00
PM: Adding info for pci:0000:00:0b.0
PM: Adding info for pci:0000:00:10.0
PM: Adding info for No Bus:pci0001:10
PM: Adding info for pci:0001:10:0b.0
PM: Adding info for pci:0001:10:17.0
PM: Adding info for pci:0001:10:18.0
PM: Adding info for pci:0001:10:19.0
PM: Adding info for pci:0001:10:1a.0
PM: Adding info for pci:0001:10:1b.0
PM: Adding info for pci:0001:10:1b.1
PM: Adding info for pci:0001:10:1b.2
PM: Adding info for No Bus:pci0002:20
PM: Adding info for pci:0002:20:0b.0
PM: Adding info for pci:0002:20:0d.0
PM: Adding info for pci:0002:20:0e.0
PM: Adding info for pci:0002:20:0f.0
PCI: Cannot allocate resource region 0 of device 0001:10:18.0
PCI: Cannot allocate resource region 0 of device 0001:10:19.0
Apple USB OHCI 0001:10:18.0 disabled by firmware
Apple USB OHCI 0001:10:19.0 disabled by firmware
PM: Adding info for platform:i2c-powermac.0
PM: Adding info for platform:i2c-powermac.1
PM: Adding info for platform:i2c-powermac.2
PM: Adding info for platform:i2c-powermac.3
PM: Adding info for platform:i2c-powermac.4
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
NTFS driver 2.1.27 [Flags: R/W].
fuse init (API version 7.7)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected Apple UniNorth 2 chipset
agpgart: configuring for size idx: 8
agpgart: AGP aperture is 32M @ 0x0
[drm] Initialized drm 1.0.1 20051102
PCI: Enabling device 0000:00:10.0 (0006 -> 0007)
[drm] Initialized radeon 1.25.0 20060524 on minor 0
radeonfb (0000:00:10.0): Invalid ROM signature 0 should be 0xaa55
radeonfb: Retrieved PLL infos from Open Firmware
radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=190.00 Mhz, System=250.00 MHz
radeonfb: PLL min 12000 max 35000
PM: Adding info for No Bus:i2c-0
PM: Adding info for No Bus:i2c-1
PM: Adding info for No Bus:i2c-2
PM: Adding info for No Bus:i2c-3
i2c_adapter i2c-2: unable to read EDID block.
i2c_adapter i2c-2: unable to read EDID block.
i2c_adapter i2c-2: unable to read EDID block.
radeonfb: Monitor 1 type CRT found
radeonfb: EDID probed
radeonfb: Monitor 2 type CRT found
radeonfb: EDID probed
Console: switching to colour frame buffer device 128x48
radeonfb (0000:00:10.0): ATI Radeon Yb
sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
PHY ID: 4061e4, addr: 0
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:0d:93:76:ee:36
eth0: Found BCM5221 PHY
MacIO PCI driver attached to Intrepid chipset
PM: Adding info for macio:0.80000000:mac-io
PM: Adding info for macio:0.00040000:interrup
PM: Adding info for macio:0.00000050:gpio
PM: Adding info for macio:0.00013000:escc
PM: Adding info for macio:0.00010000:i2s
PM: Adding info for macio:0.00015000:timer
PM: Adding info for macio:0.00016000:via-pmu
PM: Adding info for macio:0.00018000:i2c
PM: Adding info for macio:0.00020000:ata-3
PM: Adding info for macio:0.00013020:ch-a
PM: Adding info for macio:0.00013000:ch-b
PM: Adding info for platform:windfarm.0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PCI: Enabling device 0002:20:0d.0 (0000 -> 0002)
ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
Probing IDE interface ide0...
hda: ST9808210A, ATA DISK drive
PM: Adding info for No Bus:ide0
hdb: MATSHITACD-RW CW-8124, ATAPI CD/DVD-ROM drive
hda: Enabling Ultra DMA 5
hdb: Enabling Ultra DMA 2
ide0 at 0xd101a000-0xd101a007,0xd101a160 on irq 39
PM: Adding info for ide:0.0
PM: Adding info for ide:0.1
eth0: Link is up at 100 Mbps, full-duplex.
ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 24
Probing IDE interface ide1...
hda: max request size: 512KiB
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10
hdb: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Apple USB OHCI 0001:10:18.0 disabled by firmware
Apple USB OHCI 0001:10:19.0 disabled by firmware
PCI: Enabling device 0001:10:1a.0 (0000 -> 0002)
ohci_hcd 0001:10:1a.0: OHCI Host Controller
ohci_hcd 0001:10:1a.0: new USB bus registered, assigned bus number 1
ohci_hcd 0001:10:1a.0: irq 29, io mem 0x80083000
PM: Adding info for usb:usb1
PM: Adding info for No Bus:usbdev1.1_ep00
usb usb1: configuration #1 chosen from 1 choice
PM: Adding info for usb:1-0:1.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PM: Adding info for No Bus:usbdev1.1_ep81
PCI: Enabling device 0001:10:1b.0 (0000 -> 0002)
ohci_hcd 0001:10:1b.0: OHCI Host Controller
ohci_hcd 0001:10:1b.0: new USB bus registered, assigned bus number 2
ohci_hcd 0001:10:1b.0: irq 63, io mem 0x80082000
PM: Adding info for usb:usb2
PM: Adding info for No Bus:usbdev2.1_ep00
usb usb2: configuration #1 chosen from 1 choice
PM: Adding info for usb:2-0:1.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
PM: Adding info for No Bus:usbdev2.1_ep81
PCI: Enabling device 0001:10:1b.1 (0000 -> 0002)
ohci_hcd 0001:10:1b.1: OHCI Host Controller
ohci_hcd 0001:10:1b.1: new USB bus registered, assigned bus number 3
ohci_hcd 0001:10:1b.1: irq 63, io mem 0x80081000
PM: Adding info for usb:usb3
PM: Adding info for No Bus:usbdev3.1_ep00
usb usb3: configuration #1 chosen from 1 choice
PM: Adding info for usb:3-0:1.0
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
PM: Adding info for No Bus:usbdev3.1_ep81
Initializing USB Mass Storage driver...
usb 2-1: new full speed USB device using ohci_hcd and address 2
PM: Adding info for usb:2-1
PM: Adding info for No Bus:usbdev2.2_ep00
usb 2-1: configuration #1 chosen from 1 choice
PM: Adding info for usb:2-1:1.0
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
PM: Adding info for No Bus:usbdev2.2_ep81
usb 2-1.1: new full speed USB device using ohci_hcd and address 3
PM: Adding info for usb:2-1.1
PM: Adding info for No Bus:usbdev2.3_ep00
usb 2-1.1: configuration #1 chosen from 1 choice
PM: Adding info for usb:2-1.1:1.0
PM: Adding info for No Bus:usbdev2.3_ep81
PM: Adding info for usb:2-1.1:1.1
PM: Adding info for No Bus:usbdev2.3_ep82
usb 2-1.3: new low speed USB device using ohci_hcd and address 4
PM: Adding info for usb:2-1.3
PM: Adding info for No Bus:usbdev2.4_ep00
usb 2-1.3: configuration #1 chosen from 1 choice
PM: Adding info for usb:2-1.3:1.0
PM: Adding info for No Bus:usbdev2.4_ep81
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
input: Acer Generic USB Hub Keyboard as /class/input/input0
input: USB HID v1.10 Keyboard [Acer Generic USB Hub Keyboard] on usb-0001:10:1b.0-1.1
input: Acer Generic USB Hub Keyboard as /class/input/input1
input: USB HID v1.10 Device [Acer Generic USB Hub Keyboard] on usb-0001:10:1b.0-1.1
input: KYE WebScroll as /class/input/input2
input: USB HID v1.10 Mouse [KYE WebScroll] on usb-0001:10:1b.0-1.3
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
PM: Adding info for No Bus:i2c-4
PowerMac i2c bus pmu 2 registered
PM: Adding info for No Bus:i2c-5
PowerMac i2c bus pmu 1 registered
PM: Adding info for No Bus:i2c-6
PowerMac i2c bus mac-io 0 registered
PM: Adding info for No Bus:i2c-7
PowerMac i2c bus uni-n 1 registered
PM: Adding info for No Bus:i2c-8
PowerMac i2c bus uni-n 0 registered
Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28 14:07:24 2006 UTC).
PM: Adding info for aoa-soundbus:soundbus:1
PM: Adding info for aoa-soundbus:soundbus:2
snd-aoa-fabric-layout: found bus with layout 58
snd-aoa-fabric-layout: Using direct GPIOs
snd-aoa-fabric-layout: can use this codec
ALSA device list:
#0: SoundByLayout
oprofile: using ppc/7450 performance monitoring.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
input: PMU as /class/input/input3
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 160k init
EXT3 FS on hda4, internal journal
hfs: write access to a jounaled filesystem is not supported, use the force option at your own risk, mounting read-only.
hfs: write access to a jounaled filesystem is not supported, use the force option at your own risk, mounting read-only.
Adding 262136k swap on /dev/hda3. Priority:-1 extents:1 across:262136k
eth0: Link is up at 100 Mbps, full-duplex.
eth0: Pause is disabled



Any ideas? I refuse to use genkernel to get over the problem...that goes against my intentions of getting a complete knowledge to build gentoo-based embedded systems.. Thanks!
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Mar 16, 2007 11:20 pm    Post subject: Reply with quote

Well, the card sees the ethernet link just fine. when you bring up the interface, what does it say? What does your setup look like? Are you using IPV6? What does ifconfig -a eth0 show? Can you bring the device up manually?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanFanel
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 161

PostPosted: Wed Mar 21, 2007 1:06 pm    Post subject: Reply with quote

SOLVED! It was indeed a stupid problem: I had enabled IpV6 in the kernel, and the default IPv4 for the address family works just fine.
The interface could be brought up manually without problems, but there were errors solving the localhost...
After disabling IpV6 and enabling DHCP, everything went just dandy.

Thanks as always, Joseph!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum