P5Q3 Deluxe
EDIT: I upgraded to ubuntu jaunty, and with the new kernel it doesn’t boot anymore, I haven’t figured out the solution or workaround yet (except for using the old kernel). For the love of all that is good, don’t buy this motherboard if you want to run Linux.
I bought a new computer. The mainboard (full name: Asus P5Q3 Deluxe WiFi-AP @n) is very neat, but getting it to work with Linux is a bit of a pain. I’ll put the problems and solutions I find in this blog post, so others won’t have to waste as much time as I’m doing now.
List of issues
- doesn’t boot [solved]
- no wireless/WiFi [solved]
List of things that “just work” (with sidux linux)
- ethernet (didn’t try second port yet but it gets listed in menus so…)
- sound
1) Getting the damn thing to boot!
UPDATE! With the current kernel from debian sid (2.6.26-1-686 #1 SMP Sat Oct 18 16:22:25) it can be made to work without special boot options, but with the following BIOS configuration:
Main – storage configuration
- configure SATA as [AHCI]
Advanced – PCIPnP
- plug and play O/S [Yes]
Advanced – CPU configuration
- CPU ratio setting [Auto]
- Max CPUID value limit [Enabled] (Important!!!!!!!!!!!!!!!!!)
- Everything else [Enabled]
Advanced – onboard devices configuration
- Marvell IDE [Disabled] (I don’t need it and save a little boot time this way)
Power
- ACPI 2.0 support [Enabled]
- ACPI Apic support [Enabled] (If you still have problems, try setting this to disabled and booting the kernel with the noapic option, that might work)
Tools
- Express Gate [Disabled] (this caused a “BIOS bug #000somenumber” error, and who needs it anyway once you have a working Linux)
The following instructions shouldn’t be necessary anymore:
Add the following to the kernel command line: acpi=off pnpbios=off
This means you will get no cpu frequency scaling, cannot measure the fan speed and temperature, and need to switch off the computer manually.
2) Wireless!
Asus seems to have taken lots of effort to hide what kind of WiFi chip is in this motherboard
. A bit of a surprise: the thing is connected to USB. If you read this long after I posted this, it’s probably a good idea to check if you get an identical line (everything to the right of ID, the left part may vary) in the output of lsusb (in a terminal):
Bus 004 Device 002: ID 0b05:1742 ASUSTek Computer, Inc. 802.11n Network Adapter
Actually… if you read this sometime far in the future, the driver should come included with the linux kernel, I guess.
UPDATE it seems it is included now (debian sid 2.6.26-1-686 #1 SMP Sat Oct 18) so ignore the parts I striked out if find /lib/modules -name rt2870sta.ko returns a file.
The driver can be found here: http://www.ralinktech.com/ralink/Home/Support/Linux.html , it’s the RT2870USB(RT2870/RT2770). I’m not sure what the RT2870WebUI in the same table cell is, not what you need apparently, so be sure to click the correct link.
Unpack the archive you downloaded (in the terminal: tar xjf thefile.tar.bz2) and enter the newly created directory.
Edit os/linux/config.mk and set both HAS_WPA_SUPPLICANT and HAS_NATIVE_WPA_SUPPLICANT_SUPPORT to y .
Edit Makefile and disable the tftpboot related lines (two sets of five), by inserting #s like this:
#ifeq ($(RT28xx_MODE),AP)
# cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)ap.o /tftpboot
#else
# cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o /tftpboot
#endif
Type make (in the terminal; be sure to be in the directory created while unpacking the archive)
– at this point, make sure you are root –
Copy RT2870STA.dat to /etc/Wireless/RT2870STA/RT2870STA.dat (I think this is probably unnecessary, but whatever)
Copy os/linux/rt2870sta.ko to /lib/modules/currentlinuxkernelversion/kernel/net/wireless .
Edit /etc/modules and add a line containing rt2870sta .
Run depmod (in a terminal).
Restart the computer. You should now be able to use/configure the wireless network in the usual way.

Hi Nat,
Thank’s for the great tutorial. However, I am wondering whether you can set the mode of this chipset (RT2870STA) into AP mode? because I need to set up a wireless access point in my ubuntu box.
Thank’s in advance:)
Kemal
kemal
2008/9/21 at 15:38:08
Hi Kemal,
I *think* that’s not chipset dependent. Either way, I’ve never done anything like that, so try the ubuntu forums…
Nat
EDIT: Actually, depending on what kind of access point you need, I have done something somewhat like it (except provides access to the wireless net through wired ethernet, so be sure to swap interfaces as needed). This might at least give you some idea of what to do…
http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&t=12435
Nat
2008/9/21 at 15:55:13
Thanks for this tutorial… though I’m still having a weird problem even with all your BIOS settings.
I’m trying to run a good old Debian distro and the old 2.6.18 kernel does boot, gets into X, … but anything newer (2.6.26-1, custom newer ones, etc.) stay stuck while showing that it’s waiting for the drives just when it shows all the “drive” slots for a 3.5″ USB card reader. Have you seen anything similar?
I’ll try unplugging it today to see if it boots but using a similar test kernel on an older but similar P5K deluxe it works very well… though it’s not exactly the same USB reader but i would find it weird that it is the reason for the freeze.
Also, in AHCI mode i get an error (F1 to resume) at boot saying that the second device (DVD Drive) isn’t compatible.
If you have any ideas …
cheers and thanks!
Alex
2008/11/26 at 15:30:34
I’m having some trouble at the moment too, ACPI stopped working again, and I don’t want to mess with the system at the moment since I’ve got deadlines and can’t afford to have it stop working completely for a day…
Anyway from what I’ve figured out (I’m not exactly a kernel hacker, I do another kind of software) USB has an optional dependency on AHCI which in turn requires ACPI. If you boot with acpi=off on the kernel command line, everything should work fine, except you won’t have cpu frequency scaling and will need to push the on/off button after shutdown.
Nat
2008/11/26 at 16:23:49
haha forget it, it was just that i forgot the fact that newer kernels use sda1 instead of hda1 for SATA drives, so i just had to change a char in grub
So nothing to do with my USB reader…just a happened around the same lines!
cheers!
P.S. Max CPUID value limit <- i have this disabled without any problems and from what i read it only applies to P4 with HyperThreading.
P.P.S. i went back to IDE/Compatible mode as it complained about the CD not being ATAPI… go figure.
Alex
2008/11/26 at 16:33:33
d’oh!
CPUID value limit – changing that made the big difference for me (core 2 duo)
Nat
2008/11/26 at 16:38:16