LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1625|回复: 3

benq s41 debian 问题 解决

[复制链接]
发表于 2007-8-13 20:01:58 | 显示全部楼层 |阅读模式
系统lenny安装成功,启动后跳入grub画面进入linux出现如下错误
Begin: Mouting root file system ... ...
Begin Running /scripts/local-top ...
ide0: I/O resource 0x1f0-ox1f7 not free
ide0: ports already in use , skipping prob
ide1 I/O resource 0x170-0x177 not free.
ide1 ports already in use ,skipping probe
Done.
Begin: Waiting for root file system... ...
============================================================
进入grub 启动winxp到是正常的。
bios未发现有sata兼容模式类似的选项。
笔记本型号为benq s41-c20
以前在我的笔记本hp500安装多次,类似方法未出现过该问题.
硬盘型号为
HitachiHTS541612J9SA00
IDE控制器 Intel(R)ICH8M 3 port Serial ATA Storage Controller -2828
为sata 120G
+++++++++++++++++++++++++++++++++++++++++
后来改了grub 的noapic也没有用,
最后下了lenny最新的测试盘,安装就好了,那张测试盘最后modify 时间8.13.
我原来安装的也是lenny的测试版本的,不过内核的版本是18的,最新的内核是21,所以估计
是内核问题。有人说用rescue进去也能弄,但我水平有限,就下了最新的盘刻了张netinstall安装了

Chandle.WEi
 楼主| 发表于 2007-8-14 21:03:48 | 显示全部楼层
benq s41 debian linux 键盘 问题

问题2:我快要哭了,虽然系统弄好了但是由于benq的键盘比较宽,竟然在最下面的一层加了很多不必要的键盘,导致默认安装的键盘映射不支持,现象表现为|\这个打不出来,不过最下面一层有\|可以用,受不了benq 就是宽点不加个硬板子就好了有必要加那么多没有用的键么。么个符合标注的,空格左面竟然有个\|键想的出来的

暂时解决方法 xmodmap -e "keycode 0x5E= backslash bar" 然后加入到启动脚本中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-26 12:17:55 | 显示全部楼层
4965ag无线网卡问题解决
由于现在我用的lenny testing是21的内核,22就支持mac80211.
以前用过sid版本的,但是出过问题,不是很稳定。所以我一直用testing 版本。

简单点就是先改下源,然后装个linux-image-2.6.22  和他的header就好
大部分参考以下
引用 http://forums.debian.net/viewtop ... c6535a0f1f2ad098704
This howto is to try and get Intel 4965 wifi cards, found in the Santa Rosa chipset, working. Since the iwlwifi driver is not yet in the Debian repositories, to get it to work requires you to download that and compile it yourself. There are a couple of deviations from the normal "Make" "Make install" process to get it to work properly, so here they are.

This Howto assumes a 2.6.22 kernel, which has mac80211 already built in. I assume if you compile and load it for 2.6.21, it should work, but I haven't tested that.

1. Make sure you have linux-headers-2.6.22-1 and linux-source-2.6.22 downloaded from the Debian repositories.

2. Unpacked the linux-source-2.6.22 into the /usr/src folder. This is the same folder that the .tar file is downloaded to.

3. Go here and download the newest 4965-ucode package, and the newest iwlwifi package.

4. Then do a "tar xvf" for the ucode package, and then move it into /lib/firmware.

5. Then do a "tar xvf" for the iwlwifi driver. It doesn't matter what directory you do this in, I did it in my /home folder.

6. Then do a "ln -s /lib/modules/2.6.22-1-amd64/build /usr/src/linux-headers-2.6.22-1-amd64" This may already be there.

7. Then you'll need to "ln -s /lib/modules/2.6.22-1-amd64/source /usr/src/linux-source-2.6.22"

8. Then cd to your iwlwifi folder, "make" and "make install". That should be all thats necessary.

Any corrections much appreciated, for content as well as style. I've never written a howto before. Also, there are still errors in this driver; for example, on my T61, it requires network manager to be installed and I have to do an "ifdown wlan0" and "ifup wlan0" after I log in.


In step 2 one must simply go to /usr/src (after installing the linux-source package) and write:
Code:
tar xjf linux-source-2.6.22.tar.bz2


I'd add a "Step 9", because one needs to:
Code:
modprobe iwl4965

before one can actually use the module Smile. I'd also add the module name to the /etc/modules file, just in case.

Now to start your connection (supposing that you're router uses DHCP ip allocation):
Code:
ifconfig wlan0 up
iwconfig wlan0 essid your_essid
dhclient ath0


In order to stop the connection:

Code:
ifconfig wlan0 down


I haven't used network-manager yet and I'm not really into the "network interfaces" files from /etc, so I help myself with scripts which consist of the "start" and "stop" codes above and putting them in /usr/sbin (you'll need to do a "chmod -x" on them prior to execution of couse). I add a line with the name of the starting script to the /etc/rc.local file (prior to the "exit 0" line) and thanks to that I've got access to the net right from the system startup.

Of course this solution is most practical when a laptop is sitting around in the vicinity of the same network. That's why using apps like network-manager is kinda better for the more mobile users Wink.

Oh and one other imporant thing. I used the iwlwifi 1.0.0-1 version and the above steps worked correct, but yesterday I've downloaded the newest iwlwifi version (0.1.11) and I've had problems with bringing the module up. The error said that it couldn't find the firmware file and printed out the filename. The problem here was that the .ucode file from the downloaded archives is named "iwlwifi-4965.ucode" while the newest driver looks for a file named "iwlwifi-4965-1.ucode". A simple file rename fixes the job and I think it's a slight bug or typo on the developer's side. Hopefully this will be fixed in the next driver version or we'll see a new ucode version Very Happy

That's all, cheers!
ps: here -> http://intellinuxwireless.org/?p=iwlwifi&n=Downloads


麻烦点的就在现在原代码上编译。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-27 17:41:19 | 显示全部楼层
#!/bin/sh
case "$1" in
start)
        sudo    ifconfig wlan0 up
        sudo    iwconfig wlan0 essid  XXX
        sudo    iwconfig wlan0 key on
        sudo    iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        sudo    dhclient wlan0
        ;;
stop)
        sudo    ifconfig wlan0 down
        ;;
restart)
        sudo    ifdown wlan0
        sudo    ifconfig wlan0 up
        sudo    iwconfig wlan0 essid XXXX
        sudo    iwconfig wlan0 key on
        sudo    iwconfig wlan0 key restricted XXXXXXXXXXXXXXXX
        sudo    dhclient wlan0
        ;;


*)
        echo "Usage: wireless {start|stop|restart|}"
        exit 1
        ;;
esac
exit 0
适合 开放式 wep加密格式 一般看看windows下的连接状态就知道了,network-manager对 4965好像没有支持所以写了个简单的命令连接脚本
由于无线网卡和普通网卡同时启动,有可能会在某些系统当中出现点问题,比如说华双网关问题,只对比较老的系统有效。建议关掉 ifdown那个有线网卡
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表