现在的位置: 首页 > 综合 > 正文

Debian 安装之 CPU频率和无线网卡

2019年01月12日 ⁄ 综合 ⁄ 共 5664字 ⁄ 字号 评论关闭

OS: Debian 5.05

Notebook : 东芝 M333 T6600 / Intel Wireless WiFi Link 5100

 

1. 查看内核版本号的方法是:
打印一个终端,输入命令uname -r
2.6.26-2-686

=================================================================================================
2. CPU 降频   [OK]

http://www.linux-wiki.cn/index.php/CPU%E9%A2%91%E7%8E%87%E8%B0%83%E8%8A%82(SpeedStep%2C_PowerNow)

acpi-cpufreq.ko      如果所有的都不行,试试这个,(但2.6.20或以上的内核推荐优先使用该项)

#modprobe acpi-cpufreq

# cd /sys/devices/system/cpu/cpu0
# ls -l

$ cat /proc/cpuinfo | grep MHz

 选择适当的调节器

调节器即Governor,用它来控制CPU频率。可选的有
内核模块     调节器名称     功能
cpufreq_ondemand     ondemand     按需调节,内核提供的功能,不是很强大,但有效实现了动态频率调节
cpufreq_powersave     powersave     省电模式,通常以最低频率运行,
cpufreq_userspace     userspace     用户模式,一些调频工具软件需要在此模式下才能运行
cpufreq_conservative     conservative     “保守”模式,类似于ondemand,但调整相对较缓
N/A     performance     不降频

查看当前的调节器:

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

更改使用的调节器,需要加载相应的内核模块,再更改scaling_governor文件,例如:

# modprobe cpufreq_conservative
# echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

编辑 /etc/modules ,加入刚才modprobe挂载的内核模块

cpufreq_userspace
cpufreq_ondemand
cpufreq_powersave
cpufreq_conservative
acpi-cpufreq  #请修改为相应的频率调节模块

=================================================================================================

3. Intel Wireless WiFi Link 4965, 5100, 5300, 5350, 5150, 1000, 6000 devices (iwlagn)

[Pending]

http://wiki.debian.org/iwlagn

http://wiki.debian.org/WiFi/HowToUse

Installation

Lenny

   1.

      Add the Debian Backports repository to /etc/apt/sources.list, also including the "non-free" component. For example:

      # Backported packages for Debian Lenny
      deb http://www.backports.org/debian lenny-backports main contrib non-free

   2.

      Update the list of available packages and install the lenny-backports/debian-backports-keyring package:

      # aptitude update
      # aptitude -t lenny-backports install debian-backports-keyring

      As your system does not yet have the GnuPG archive key of the backports.org repository installed, you will be asked to confirm installation of a package from an untrusted repository. Enter Yes when prompted.
   3.

      Install a 2.6.32 kernel image appropriate for your system, along with the lenny-backports/firmware-iwlwifi and wireless-tools packages. For example:

      # aptitude update
      # aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,,') firmware-iwlwifi wireless-tools

   4. Restart your system and boot with the newly installed kernel.
   5.

      The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:

      $ su
      # modprobe iwlagn

   6.

      Verify your device has an available interface:

      # iwconfig

   7.

      Raise the interface to activate the radio, for example:

      # ifconfig wlan0 up

   8.

      Configure your wireless interface as appropriate.

Squeeze

   1.

      Add a "non-free" component to /etc/apt/sources.list, for example:

      # Debian Squeeze
      deb http://ftp.us.debian.org/debian squeeze main contrib non-free

   2.

      Update the list of available packages and install the firmware-iwlwifi and wireless-tools packages:

      # aptitude update
      # aptitude install firmware-iwlwifi wireless-tools

   3.

      The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:

      # modprobe iwlagn

   4.

      Verify your device has an available interface:

      # iwconfig

   5.

      Raise the interface to activate the radio, for example:

      # ifconfig wlan0 up

   6.

      Configure your wireless interface as appropriate.
=====================================================================================

http://wireless.kernel.org/en/users/Download

http://www.linuxidc.com/Linux/2008-10/16308.htm

Requirements for bleeding edge

You need two things:

    *

      A Kernel >= 2.6.25
    * Your kernel headers installed

Please be very sure you have your kernel headers installed before reporting any sort of build issues with this package. This usually will mean having this symlink point to a valid directory with kernel headers in it:

/lib/modules/`uname -r`/build

The exception to this is if you are building the package targeting a kernel you are not running. Users doing this should read the Building for external kernels section.

Additionally, the kernel you're building for needs a valid ".config" file, if it isn't present compat will assume you have PCI, USB and PCMCIA built into your kernel and if not, fail building.

// error

http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

//error

http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.30/compat-wireless-2.6.30-rc1.tar.bz2

http://www.orbit-lab.org/kernel/compat-wireless-2.6/2009/12/compat-wireless-old-2009-12-11.tar.bz2

修改config.mk文件,打开5100无线wifi的支持
CONFIG_IWL5000=y
CONFIG_IWLWIFI_RFKILL=y
编译compat-wireless,并安装和使用make load加载.
make
make install
make load

debian-anne:~# modprobe iwlagn
WARNING: Error inserting iwl4965 (/lib/modules/2.6.26-2-686/kernel/drivers/net/wireless/iwlwifi/iwl4965.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting iwlagn (/lib/modules/2.6.26-2-686/updates/drivers/net/wireless/iwlwifi/iwlagn.ko): Unknown symbol in module, or unknown parameter (see dmesg)

 

dmesg

[  452.369490] iwl4965: disagrees about version of symbol iwl_send_cmd_pdu_async
[  452.369490] iwl4965: Unknown symbol iwl_send_cmd_pdu_async
[  452.369490] iwl4965: disagrees about version of symbol iwl_leds_unregister
[  452.369490] iwl4965: Unknown symbol iwl_leds_unregister
[  452.369490] iwl4965: disagrees about version of symbol ieee80211_beacon_get
[  452.369490] iwl4965: Unknown symbol ieee80211_beacon_get
[  452.369490] iwl4965: Unknown symbol iwl_setup
[  452.369490] iwl4965: disagrees about version of symbol iwl_leds_background
[  452.369490] iwl4965: Unknown symbol iwl_leds_background
[  452.369490] iwl4965: disagrees about version of symbol iwlcore_eeprom_verify_signature
[  452.369490] iwl4965: Unknown symbol iwlcore_eeprom_verify_signature
[  452.369490] iwl4965: disagrees about version of symbol ieee80211_rx_irqsafe
[  452.369490] iwl4965: Unknown symbol ieee80211_rx_irqsafe
[  452.377488] iwlagn: Unknown symbol iwl4965_agn_cfg

======================

 

唉,暂时告一段落,弄根长一点的网线算了。

 

抱歉!评论已关闭.