Broadcom BCM4318 PCI id 14E4:4318 Wireless Adapter

In my previous post I mentioned that I got the wireless adapter in my Compaq R4100 series laptop working with ndiswrapper. It appears this was a total fluke, others have had to add “noapic” kernel parameters to get it working correctly. I found if I set this kernel parameter the wireless adapter wouldn’t work at all; without it everything works normally.

Tested on Fedora Core 4 x86_64 (2.6.11-1.1369, 2.6.14-1.1656, 2.6.15-1.1830 & 2.6.15-1.1831)

lspci output:
03:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
Subsystem: Hewlett-Packard Company: Unknown device 1356
Flags: bus master, fast devsel, latency 64, IRQ 177
Memory at b0204000 (32-bit, non-prefetchable) [size=8K]

grub.conf:
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.1831_FC4)
root (hd0,1)
kernel /boot/vmlinuz-2.6.15-1.1831_FC4 ro root=LABEL=/ rhgb no_timer_check quiet ignore_ff_buttons=PWRF
initrd /boot/initrd-2.6.15-1.1831_FC4.img

Fedora Core 4 x86_64 Linux on Compaq R4000 Laptop

The majority of the hardware worked out of the box, the WXGA (1280 x 800) screen needs to be manually frigged into the X configuration. Only the wireless adapter and the memory-card reader are unsupported by the base install.

I got the wireless adapter (Broadcom BCM4318 PCI id 14E4:4318) working using ndiswrapper 1.8 from ndiswrapper.sourceforge.net, it built & installed cleanly into my 64-bit kernel. However, this means you must use 64-bit Windows Device Drivers. Thankfully the List mentions a similar attempt on a HP (HP/Compaq same thing) AMD64 laptop – it works!!

The memory-card reader seems to be harder to get working with mixed reports of success / failure. It appears to be a Texas Instruments PCIxx21, PCI device id 104C:8033 & 104C:8034.

And for my next trick…

Linux Bluetooth “Device is not available: Success”

Symptom

Trying to use hcitool returns the ambiguous error message "Device is not available: Success"

CODE:
  1. [root@localhost ~]# hcitool scan
  2. Device is not available: Success
  3. [root@localhost ~]#

Solution

Start 'Bluetooth services' you monkey :'( .... I fell for this one and it took maybe half an hour of fiddling before I realised there was a /etc/init.d/bluetooth and that it wasn't running.

CODE:
  1. [root@localhost ~]# /etc/init.d/bluetooth start
  2. Starting Bluetooth services:                               [  OK  ]
  3. [root@localhost ~]# hcitool scan
  4. Scanning ...

Fedora Core 4 and SELinux paranoia

The default configuration of Fedora Core 4 with SELinux enabled causes problems when you want to use the UserDir feature in Apache Httpd.

Problem:

SELinux is stopping the httpd processes from accessing your home directory.

CODE:
  1. Forbidden
  2.  
  3. You don't have permission to access /~foo/ on this server.
  4. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
  5. Apache/2.0.54 (Fedora) Server at localhost Port 80

Solution:

From your shell ...

CODE:
  1. [foo@localhost ~]$ chcon -R -t httpd_user_content_t public_html/

If you get the following...

CODE:
  1. [foo@localhost ~]$ chcon -R -t httpd_user_content_t public_html/
  2. chcon: failed to change context of public_html/index.html to root:object_r:httpd_user_content_t: Operation not permitted

It's probably because "index.html" is zero-length, I just placed an empty file in public_html and it failed first time, I removed the file and it went through the rest of it just fine.

Related Links:
http://the.taoofmac.com/space/Fedora
http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#id2825658