Andy Green 提到:
Somebody in the thread at some point said:
| Hi List,
| Is anyone has any idea about why the HAL cannot get eth0 on gta02
| with current kernel and rootfs.
| In gta02 HAL detect usb0 well, but not the eth0.
| Is something has to be added on HAL fdi or there something missed
| with the wifi driver?
Hi Tick -
I don't know hal well, but grepping my Fedora fdi for eth, net, wlan
does not give relevant hits so I don't think it makes the problem.
But I wonder if the issue is we do not use a normal 80211 stack like
mac80211 which takes care about announcing the network interface somehow
so that hal understands a new interface has come o can enumerate it
somehow by IOCTL (WLAN does love IOCTLs). Does it maybe change the
situation if you restart hal after the WLAN network interface is up?
I guess you need to go look at hal sources to get the definitive clue.
-Andy
Hi Andy,
After trace the log of HAL we found
nt_dev=0x00000000
04:19:14.933 [I] hotplug.c:138: /sys/devices/virtual/misc/apm_bios is a
device (subsystem)
04:19:14.933 [I] device.c:4306: add_dev: subsys=misc
sysfs_path=/sys/devices/virtual/misc/apm_bios dev=/dev/apm_bios
parent_dev=0x00000000
04:19:14.934 [I] hotplug.c:138: /sys/devices/virtual/net/eth0 is a
device (subsystem)
04:19:14.935 [I] device.c:4306: add_dev: subsys=net
sysfs_path=/sys/devices/virtual/net/eth0 dev= parent_dev=0x00000000
the parent_dev is NULL and so that HAL will not detect it.
compares to usb0
04:19:14.575 [I] hotplug.c:138:
/sys/devices/platform/s3c2440-usbgadget/gadget/net/usb0 is a device
(subsystem)
04:19:14.576 [I] osspec.c:966: hal_util_find_known_parent:
'/sys/devices/platform/s3c2440-usbgadget/gadget/net/usb0'->'/sys/devices/platform/s3c2440-usbgadget'
04:19:14.577 [I] device.c:4306: add_dev: subsys=net
sysfs_path=/sys/devices/platform/s3c2440-usbgadget/gadget/net/usb0 dev=
parent_dev=0x00081bb0
Thanks OLV's support :)
I don't know who is taking care of this part, Andy would you help?
Thanks,
Tick