Running hal on arm architecture

Rob Taylor rob.taylor at codethink.co.uk
Fri Dec 7 02:41:10 PST 2007


shankar grep wrote:
> Hi,
> 
> I am trying to run hal on arm architecture with kernel 2.6.20.
> I cross compiled hal-0.5.10 for arm. I have also cross compiled dbus,
> udev, hal-info and policy kit.
> When i run  "hald  --daemon=no --verbose=yes"  it succesfully discovers
> all the devices and quits....
> 
> Here is the last few lines printed by hald....
> 
> 
> 00:04:43.990 [I] ../../../hald/linux/blockdev.c:944: Done looking in
> /sys/block/ram6/slaves
> 00:04:43.990 [I] ../../../hald/linux/blockdev.c:950: Ignoring hotplug
> event - no parent
> 00:04:43.990 [W] ../../../hald/linux/blockdev.c:1434: Not adding device
> object
> 00:04:43.990 [I] ../../../hald/linux/coldplug.c:214: pool_num_freed =
> 166 (of 170)
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:856: block_add:
> sysfs_path=/sys/block/ram7 dev=/dev/ram7 is_part=0, parent=0x00000000
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:897: Looking in
> /sys/block/ram7/slaves for Device Mapper
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram7/slaves/. -> /sys/block/ram7/slaves
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram7/slaves/.. -> /sys/block/ram7
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:944: Done looking in
> /sys/block/ram7/slaves
> 00:04:44.000 [I] ../../../hald/linux/blockdev.c:950: Ignoring hotplug
> event - no parent
> 00:04:44.000 [W] ../../../hald/linux/blockdev.c:1434: Not adding device
> object
> 00:04:44.000 [I] ../../../hald/linux/coldplug.c:214: pool_num_freed =
> 167 (of 170)
> 00:04:44.330 [I] ../../../hald/linux/blockdev.c:856: block_add:
> sysfs_path=/sys/block/ram8 dev=/dev/ram8 is_part=0, parent=0x00000000
> 00:04:44.330 [I] ../../../hald/linux/blockdev.c:897: Looking in
> /sys/block/ram8/slaves for Device Mapper
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram8/slaves/. -> /sys/block/ram8/slaves
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram8/slaves/.. -> /sys/block/ram8
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:944: Done looking in
> /sys/block/ram8/slaves
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:950: Ignoring hotplug
> event - no parent
> 00:04:44.340 [W] ../../../hald/linux/blockdev.c:1434: Not adding device
> object
> 00:04:44.340 [I] ../../../hald/linux/coldplug.c:214: pool_num_freed =
> 168 (of 170)
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:856: block_add:
> sysfs_path=/sys/block/ram9 dev=/dev/ram9 is_part=0, parent=0x00000000
> 00:04:44.340 [I] ../../../hald/linux/blockdev.c:897: Looking in
> /sys/block/ram9/slaves for Device Mapper
> 00:04:44.350 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram9/slaves/. -> /sys/block/ram9/slaves
> 00:04:44.350 [I] ../../../hald/linux/blockdev.c:908: 
> /sys/block/ram9/slaves/.. -> /sys/block/ram9
> 00:04:44.350 [I] ../../../hald/linux/blockdev.c:944: Done looking in
> /sys/block/ram9/slaves
> 00:04:44.350 [I] ../../../hald/linux/blockdev.c:950: Ignoring hotplug
> event - no parent
> 00:04:44.350 [W] ../../../hald/linux/blockdev.c:1434: Not adding device
> object
> 00:04:44.350 [I] ../../../hald/linux/coldplug.c:214: pool_num_freed =
> 169 (of 170)
> 00:04:44.350 [I] ../../../hald/linux/coldplug.c:217: Freeing whole pool
> 00:04:44.350 [I] ../../../hald/linux/apm.c:398: apm_add:
> apm_path=/proc/apm apm_type=0, parent=0x00000000
> 00:04:44.370 [I] ../../hald/hald.c:108: Added device to GDL;
> udi=/org/freedesktop/Hal/devices/apm_battery
> 00:04:44.370 [I] ../../../hald/linux/apm.c:398: apm_add:
> apm_path=/proc/apm apm_type=1, parent=0x00000000
> 00:04:44.380 [I] ../../hald/hald.c:108: Added device to GDL;
> udi=/org/freedesktop/Hal/devices/apm_ac_adapter
> 00:04:44.380 [I] ../../hald/hald.c:829: Device probing completed
> 00:04:44.380 [I] ../../hald/hald_dbus.c:5665: entering
> 00:04:44.390 [E] ../../hald/hald_dbus.c:5676: dbus_bus_request_name():
> Connection ":1.0" is not allowed to own the service "
> org.freedesktop.Hal" due to security policies in the configuration file
> 
> 
> 
> I am suspecting i have wrong entries in my policy file. Any help or
> pointers  as how to change the policy file so as to get the hald running
> will be very helpful.
>  
> Thanks in advance for replying..

You probably failed to install hal.conf in /etc/dbus-1/system.d/ -
basically the system dbus-daemon has not seen the policy rules that
allow hal to connect to system bus.

BTW, I recommend using OpenEmbedded [1] or scratchbox (and a known
distribution) [2] rather than hand cross compiling, it should save you
lots of pain like this.

Thanks,
Rob

[1] http://openembedded.org
[2] http://www.scratchbox.org

> Shankar
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal


-- 
Rob Taylor, Codethink Ltd. -  http://codethink.co.uk


More information about the hal mailing list