当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 有没有人对HP nx6325的无线网卡配置成功?
帖子发表于 : 2007-03-02 19:02 

注册: 2007-03-02 18:40
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
有没有人对HP nx6325的无线网卡配置成功?


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-03-15 13:14 

注册: 2005-06-12 14:47
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
Ubuntu Linux 6.10 (Edgy Eft) on the HP Compaq NX6325
http://vale.homelinux.net/wordpress/?p=106

Here comes my my installation walkthrough for the installation of Ubuntu Linux 6.10 / Edgy Eft (i386) on the HP Compaq NX6325 notebook (AMD Sempron 3500+, 579 EUR, no Windows pre-installed, BIOS version as of 6th of July 2006 ):

Short version, if you do not need WLAN, bluetooth, the card reader and the microphone:

Make sure you have the latest BIOS version for your NX6325 (currently F.04 as of 6 Nov 06). Boot the Edgy LiveCD, install Edgy, enjoy.

Hint for the BIOS update: The BIOS comes wrapped in a .EXE file. However, you do not need Windows in order to update your NX6325. Go and download the FreeDos installer version from HP. Now just use cabextract in a terminal window (exact usage below in the ndiswrapper section) to get the .ISO file which is actually a bootable CD image (in my case its exact name is ROM.ISO). On Ubuntu, right-click it and burn the file ROM.ISO to CD. Then boot it and follow the instructions, very simple.

If you want all the multimedia goodies, also install BUMPS ( a little script that adds some repositories and installs all the useful stuff that is not included on the Ubuntu installation CD, such as Acrobat Reader, Sun Java, DVD video support, all of the most needed audio and video codecs etc.). You can download BUMPS here. (it is in the box at the end of the first message).

The long version, for those of you who also want to use the buildt-in Broadcom WLAN interface, the multimedia card reader, full Bluetooth and the microphone:

1. Harddisk preparation
I prepared the harddisk for installation. My NX6325 comes with 60 GB harddisk so I created 4 partitions: 1 primary partition with 20 GB size, and 2 logical partitions with another 20 GB and 16 GB. All those 3 partitions use ext3 as their filesystem. The 4th partition is the swap partition, another primary partition, with 1 GB.

I used GParted for partitioning, as described here. You can download this LiveCD here. However, you can also just use GParted from the Ubuntu installation routine, actually no need to use this separate GParted LiveCD. However, the CD might come handy for future partioning activities and the menu is less confusing than the menu during the Ubuntu installation, IMHO.

Reminder: No matter how you are setting up your partitions, do NOT forget to create a swap partition with a size of about 1 GB !!!!!! You need it, no matter how much memory you have!!! Otherwise, your system might be extremely slow or crash randomly!

2. Booting Ubuntu from the LiveCD
I booted the Ubuntu 6.10 (Edgy Eft) LiveCD. I was greeted by the new Gnome welcome jingle and knew in the same moment: wow, sound is working out of the box. Same with the display - the 1024×768 XGA display was correctly recognized, and it just looks GREAT. Also the mouse pad was recognized. So far, a real no-brainer. Even CPU speed throttling was installed automatically - my NX6325 is now currently running at 800 Mhz while being idle, according to the CPU speed gadget for the Gnome tool bar.

Network was configured automatically via DHCP from my router, I could instantly go online using the buildt-in LAN interface.

I did see however a kernel message during boot-up saying that no micro-code for the buildt-in Broadcom WLAN device was found, the firmware loading attempt failed. This is a known issue of the NX6325; one needs to use the NDiswrapper solution until the kernel correctly can configure this beast. I think that the next Ubuntu version, Feisty Fawn, with the new 2.6.19 kernel will do this also, without Ndiswrapper. However, it is easy to get the WLAN up and running anyway, see below.

3. Installing Ubuntu from the LiveCD
After I the LiveCD finished booting, I was thrown on the Gnome desktop. I started the Installer from the respective desktop icon. I selected the root partition (”/”), in my case the primary partition, sda1, for installation. The installer wanted to use sda5 as root partition, obviously because there is typically a Windows installation on the primary partition (sda1). Not in my case ;-)

A warning here for all experienced Linux users: The installer told me he wanted grub to install itself on the device “(hda0)”. Since the buildt-in drive is a SATA hard disk, this message confused me and I decided to correct it with “(sda0)”. That was a wrong decision :-) Do not change the Grub parameters suggested by the installer. I had to install a second time, this time I did not touch the Grub setting and everything went fine, even with Grub saying that it was going to install the boot sector on the non-existing hda1.

4. Tuning Ubuntu with BUMPS
After the installation finished, I rebooted. I immediately had a perfect Internet connection via LAN. I then started to tune my new Ubuntu system with BUMPS, a little script that adds all the useful sources for multimedia Packages, Java, Acrobat Reader, Flash 9.0 etc. I also modified /etc/fstab in order to speed up hard disk access: I added the noatime and nodiratime parameter to every entry of my drives. Without those paramters, the system will record the time of every access (even read access) on every file. That can be useful for server systems but is not needed for laptop systems, especially since not only slows down the hard disk access but also wastes precious energy when running on batteries.

Instead of BUMPS, you can also try Automatix.

5. WLAN
The buildt-in WLAN interface is a BCM4310. It can not be used out of the box at the moment, as the firmware for the Broadcom WLan chip currently can not be included into the Linux kernel (for legal reasons?). There is, however a driver included in all kernels from 2.6.17 on - just the firmware is missing! Read more about this issue in the Ubuntu Wiki here.

So there are basically 2 ways to get your WLan up and running:

Either you make the kernel load the missing firmware or you install the Windows driver via Ndiswrapper. The Ndiswrapper way however needs a 64 bit Windows driver if you are running the 64 Bit edition of Ubuntu Edgy. It is also the more convenient way for every day use since all the features of the BCM4310 including WPA2 etc. are supported, and it can easily used together with Network-Manager. Also, the Ndiswrapper solution will not break after a kernel upgrade.

However, it took me about 35 minutes only in order to get the buildt-in Broadcom WLAN interface up and running (including compiling an up-to-date NDdiswrapper) using this HowTo here (German language only). For you non-German speakers, here is a step-by-step explanation in English of what to do:

a) download the latest Broadcom WLAN driver for Windows from the HP website here (scroll down to the “Driver - Network” section)

Notice: If you are using the 64 Bit version of Edgy, make sure that you get the respective 64 bit Broadcom driver - should be in the same packages, but better double check. The following steps however are the same, NDiswrapper automatically uses the 64 bit driver if present.

In my case, it is version 6.00 A of 24 May 06, the filename is sp33008.exe, 64 bit driver was included.

b) Extract the driver itself from the sp33008.exe archive you downloaded:
Create a new folder on your Desktop, copy the downloaded file (sp33008.exe) into the new folder, open a terminal window, change to the new directory in which you copied the sp33008.exe file and use cabextract to extract all files from this archive:

cabextract sp33008.exe

c) Install ndiswrapper

Download the latest packages ndiswrapper-common and ndiswrapper-utils here from the Feisty repositories. You need the binary packages, of course! Then install them with GDebi (right click on the file, “Open with GDebi”).

d) Install the Windows driver with ndiswrapper:
Open a terminal, change to the folder to which you cab-extracted the Windows driver (the spxxxxx.exe file) and enter


sudo ndiswrapper -i bcmwl5.inf
sudo ndiswrapper -m

e) Blacklist the bcm43xx driver of the linux kernel
As root, add the following line to the file /etc/modprobe.d/blacklist

# exclude the kernel Broadcom driver
blacklist bcm43xx

f) de-activate and activate the wireless network in the “System-Administration-Network” menu
And keep it de-activated there if you use Network-Manager (which I recommend) - Network-Manager is activating the network devices independently from the Gnome settings. (Thank you Anders for the hint, I forgot to mention that)

g) Install Network Manager
Network Manager is a essential tool for painless WLAN networking (WPA encryption and all this stuff). While it is not really related to the NX6325, I strongly recommend that you install it. Just install the package network-manager-gnome from the Ubuntu repositories. More about network-manager here.

h) If Network Manager does not see your WLAN card, or the blue WLAN indicator does not work, you may try the following:

- in order to load ndiswrapper as a module automatically at start-up, add to /etc/modules the following line:

ndiswrapper

- press the WLAN key and wait 30-60 seconds

- turn your system off, remove the batteries, wait a few seconds and reboot (sometimes, the driver will not load after a cable network connection)

6. Hibernating / Sleeping mode
Both hibernating and sleeping mode worked out of the box with Ubuntu Edgy - until you reboot or after a wake up from hibernation. Make sure that you have the latest BIOS installed on your NX6325, see above. The WLAN did not immediately come back after wake up after hibernating. However, network manager re-connected successfully to my acces point after about 90 sec.

In order to work around a problem with the latest BIOS of the HP NX6325 (the well-known bad state issue for which HP notebooks seem to be “famous”), you need, for some reason, to unload the psmouse kernel module (also see the comment section below). Add modprobe -r psmouse to the halt and reboot scripts:

In /etc/init.d/halt, look for the function do_stop () and this passage and add the line modprobe -r psmouse :


...
log_action_msg "Will now halt"
# unload psmouse to work around the bad state bug
modprobe -r psmouse
sleep 1
halt -d -f -i $poweroff $hddown
...

Same in the do_stop () function in /etc/init.d/reboot :


...
do_stop () {
# Message should end with a newline since kFreeBSD may
# print more stuff (see #323749)
# unload psmouse to work around the bad state bug
modprobe -r psmouse
log_action_msg "Will now restart"
reboot -d -f -i
}
...


7. ACPI / temperature control
No problems here either (until reboot, see the bad state problem in Nr. 6). Although there are some reports that the CPU fan is being activated very late and there is a risk of overheating the CPU (especially with the Turion version of the NX 6325), I can only say that in my case, everything worked perfectly. To make sure that you are also on the safe side, open a terminal window and enter the following:

watch cat /proc/acpi/thermal_zone/TZ*/*

You can now see the current CPU temperature, video chip temperature and the temperature inside the laptop. You also see something like active[3]: and active[2]: etc. The numbers following this active[x]: entries are the temperature limits for the fan to step up the cooling.

Now open another terminal window and enter

openssl speed

That gives the CPU a high workload and will increase temperature. The fan should get louder as soon as the CPU temperature has reached the first active[3]: level.

You may add the bad state workaround, though - see Nr. 6.

8. Special keys:
All three sound control keys are working. The WLAN key does turn off the WLAN connection, and is turning it on again - together with network-manager, you will also get re-connected after a few seconds after turning on WLAN again. The information button next to the power button is bringing up the Ubuntu Help Centre.

The display brightness keys, F9/F10 work without any problem, as does, you won’t believe it, the hibernation key, F3.

All special keys seem to work very well - the Ubuntu guys did an outstanding job here, especially when it comes to hibernating - it really works, even WLAN does come back up again. You might need however to reconnect manually to your access point, but that is not an issue, IMHO.

9. Media Card Reader
The Media Card reader is currently not being recognized by Ubuntu. However, no big deal to get it up and running. Open a terminal and enter

lspci

in order to get a listing of the available PCI devices.

Now look for the following entry of a Texas Instrument mass storage device (at the end of the listing):

02:04.2 Mass storage controller: Texas Instruments Unknown device 803b

Write down or copy the leading number, in my example the “02:04.2″ - might be slightly different on your machine.

Now type in your terminal

sudo setpci -s 02:04.2 4c=0x22

–> of course, replace 02:04.2 with YOUR number - it is the address on the PCI bus for the multimedia cardreader

Now enter a memory card and, surprise, Ubuntu will inform you that at a camera was detected. You can now download the pics and files on the memory card and you have a new icon for the repsective memory card on your desktop.

In order to execute this command automatically on boot-up, just enter the following in the terminal:

sudo gedit /etc/rc.local

in order to start the editor “gedit” in superuser mode and insert a line before the “exit 0″ command containing

setpci -s 02:04.2 4c=0×22

(of course, with YOUR respective number for the PCI address)


10. Microphone
Headphones can be used to listen audio - the speakers get automatically muted when one plugs in the headphones. Listening to the Skype testing call voice therefore not an issue. However, recording via the microphone again needs some (minor) manual interaction:

Open a terminal and enter

sudo gedit /etc/modprobe.d/alsa-base

In the editor, scroll down to the last line (should look like

options snd-usb-audio index=-2
options snd-usb-usx2y index=-2

and add the following line:

options snd-hda-intel model=hp position_fix=1 enable=yes

This should do the trick. Since the sound mixer settings can also be very confusing, I recommend to install the package gnome-alsamixer. In gnome-alsamixer, make sure that your mixer settings look like this:

gnome-alsamixer settings for Skype

11. 3D-Desktop (AIXGL/XGL, Bery/compiz)

Some good and some not so good news here: First of all, you can get a working 3D desktop on your HP NX6325.

But: It comes at a price - you need to use XGL and the binary/proprietary ATI driver.

The 3D desktop is *currently* not working (at least *I* did not get it up and running) with AIXGL, neither with the latest binary ATI drivers (ATI 8.31.5) nor with the open source ati/radeon drivers that come with X.org. The xorg ati/radeon driver does obviously not support the ATI 200M GPU that comes with the ATI 1150 chipset in your NX6325, and the binary ATI driver currently does not support AIXGL.

So, at the moment, you are stuck with XGL and the binary ATI driver.

Since XGL is basically an additional layer on top of your xserver, it is eating ressources (CPU, GPU, power, memory). AIGLX is a build-in OpenGL 3D-instruction set in the xserver, not another layer on top of your xserver. That makes the AIGLX solution somewhat more elegant and less power hungry. Unfortunately, the binary ATI driver does not yet support AIXGLX ( as of version ATI 8.31.5). But not only is XGL not as slick as AIXGLX, there are also some issues at least with the binary ATI driver in the Ubuntu repos (ATI 8.28.0). The driver itself works, but I had some bad experiences (system freezes) when I used the the binary ATI driver 8.28.0.

In addition, the 3D effekts are, even when using the rendering power of the GPU, very CPU intensive. Also, there was always a little delay between command and execution - turning the desktop cube for example felt a little bit sluggish.

So yes, you can use the 3D effects, but in my humble opinon, they need to much ressources at this point and the whole thing is currently too unstable - at least for my taste.

If you want to check that out on your own, try this link for the AIXGL solution and this link here for XGL with the binary ATI drivers.

UPDATE:
Another Ubuntu user got AIXGLX up and running by changing /etc/xorg.conf, where he added:

Section “Extensions”
Option “Composite” “false”
EndSection


12. Bluetooth
There are 2 different types of the NX6325 - one comes with, the other one comes without buildt-in Bluetooth device. My version, the very cheap Sempron 3500 based model, does not have Bluetooth, so I can not check whether it works or not.

However, according to here and a reader (see comment below), Bluetooth is said to work out of the box with Ubuntu Edgy Eft. Just make sure you install the necessary packages for file transfer via Bluetooth (the whole Obex stuff) and everything that looks like “bluez” or “bluetooth” in the repositories :-)

In order to work around the nasty Bluetooth bug in Edgy (devices such as mobile phones not seen during search for devices by Gnome/KDE Bluetooth applications), add this to /etc/rc.local:

# to work around the nasty bluetooth bug in Edgy
hciconfig hci0 inqmode 0


13. TV-Out
TV-Out works without problems when you use the proprietary ATI drivers (8.28.0 or higher); the driver package is available directly from the repositories when you have enhanced them with BUMPS or Automatix (In Synaptic, search for xorg-driver-fglrx, also install the fglrx-control package, and make sure that “fglrx” is your driver in /etc/X11/xorg.conf). Use fireglcontrol to select wether you want your TV as a clone of the laptop screen etc. In a terminal, type

sudo fireglcontrol

in order to select your settings.

There is also a package in the repos called “atitvout” - I guess it will do the same for the buildt-in Ati driver that comes with Xorg, but I have not tested it.

More about installing the proprietary ATI drivers here in the Ubuntu Wiki.


14. Useful Links

Installation reports for the HP Compaq NX6325 on tuxmobil.org - THE leading source for help for Linux on a laptop or notebook

The HP Compaq NX6325 on the Ubuntu Wiki - another source for all your information needs regarding Ubuntu and hardware


HP NX6325 thread in the German Ubuntu forum - many hints that are not covered here


15. Sample /etc/rc.local
Here is my /etc/rc.local file as a sample (you need to change the pci address after the setpci command according to your system, see above!!!!):

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0″ on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# to detect the card reader on the HP NX6325
setpci -s 02:04.2 4c=0×22

# to work around the nasty bluetooth bug in Edgy
hciconfig hci0 inqmode 0

exit 0

To do:

- Fingerprint sensor (that will be a hard one…)[url][/url][url][/url]


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-03-16 11:06 

注册: 2007-03-05 16:57
帖子: 62
送出感谢: 0 次
接收感谢: 0 次
如果是 BCM4310 的话,现在可以有正式的内核驱动而不需要 NDISWrapper 了。参考:

https://help.ubuntu.com/community/WifiD ... m43xx/Edgy

http://www.hpl.hp.com/personal/Jean_Tou ... eless.html


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-04-29 19:38 

注册: 2007-04-19 20:07
帖子: 60
送出感谢: 0 次
接收感谢: 0 次
不用这么复杂
直接两条命令
sudo apt-get install bcm43xx-fwcutter

sudo /usr/share/bcm43xx-fwcutter/install_bcm43xx_firmware.sh


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译