Bug 114695

Summary: Apple network card (bmac) is not pci devide
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Patrick Kirsch <pkirsch>
Component: BasesystemAssignee: Patrick Kirsch <pkirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: PowerPC   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo output
getcfg eth0 output
macio boot event log
ppc-module_device_table-of.patch

Description Patrick Kirsch 2005-09-01 13:11:33 UTC
Apple's network card does not load properly, the device is mapped as pci in
/etc/sysconfig/hardware/hwcfg-bus-pci-0000:01:05.0 . IMHO it should be 
/etc/sysconfig/hardware/hwcfg-static-0 

If you need more information, 'apple' currently holds this status.
Comment 1 Patrick Kirsch 2005-09-01 13:12:37 UTC
Created attachment 48455 [details]
hwinfo output
Comment 2 Patrick Kirsch 2005-09-01 13:13:16 UTC
Created attachment 48456 [details]
getcfg eth0 output
Comment 3 Christian Zoz 2005-09-01 14:18:30 UTC
Please describe more detailed. 
Is it a mac-io device? I don't know much about this hardware.

How does the hotplug event for this device look like?

Have a look at /usr/share/doc/packages/udev/README.Logging to watch complete
event processing during boot. Additionally create /events to store all events.
Comment 4 Olaf Hering 2005-09-02 07:50:04 UTC
ls -l /sys/class/net/eth?/device shows it as a macio device.

there is no hotplug event for that, I'm sure getcfg doesnt have to care about them.
Comment 5 Christian Zoz 2005-09-06 15:12:47 UTC
Created attachment 48949 [details]
macio boot event log

There are macio events
Comment 6 Christian Zoz 2005-09-06 15:23:20 UTC
Add a udev rule:
  SUBSYSTEM=="macio", ACTION=="add", RUN+="/sbin/hwup macio-devpath-/sys%p -o
hotplug"
and module should be loaded if modilias is matching.

Patrick, i added this rule. Please reboot and try.

For hwcfg-* configuration support there are two possible solutions:
1) YaST writes hwcfg-bus-macio-..... config files and hwup learns to find them.
No need to patch getcfg, since we try to get rid of it anyway. Have a look at
/etc/sysconfig/hardware/scripts/functions.template. Add the needed functions to
set HWD_BUSNAME and HWD_BUSID and hwup will happily find the file.

2) YaST writes hwcfg-static
Comment 7 Christian Zoz 2005-09-06 15:53:40 UTC
The rule has to be added to /etc/udev/rules.d/50-udev.rules. I fixed this rule
now in udev package. So the modules should be loaded with recent kernels.

Please investigate what YaST does regarding hwcfg file.

The script that creates configuration files for remote installations need to be
fixed. getcfg does not and will not support macio.
Comment 8 Patrick Kirsch 2005-09-07 10:37:06 UTC
ok, the network card loads fine.
Yast now creates one hwcfg-static-0 file and that is for module snd-powermac,
seems quite ok.

Comment 9 Olaf Hering 2005-09-08 10:09:48 UTC
Created attachment 49170 [details]
ppc-module_device_table-of.patch

I have added this patch.
Comment 10 Olaf Hering 2005-09-08 10:10:07 UTC
bmac is now loaded.