赞助连接

赞助连接

阅 读 文 章

FreeBSD基础点滴

[来源:网上转载 () | 作者:网友() | 时间:2007-07-07 | 浏览:人次 ]


config> di zp0
config> di ze0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di ex0
config> di ep0
config> di cs0
config> di wt0
config> di wdc1
config> di scd0
config> di mcd0
config> di matcdc0
config> di bt0
config> di aha0
config> di adv0
config> en ed0
config> po ed0 0x300
config> ir ed0 5
config> iom ed0 0xd8000
config> f ed0 0
config> q
avail memory = 5476352 (5348K bytes)
Preloaded elf kernel "kernel" at 0xf0340000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xf034009c.
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags="0x0">
ed0 at 0x300-0x31f irq 5 on isa
ed0: address 00:80:29:b1:f2:61, type NE2000 (16 bit)
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1 not found at 0x2f8
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0):
wd0: 407MB (833664 sectors), 1002 cyls, 16 heads, 52 S/T, 512 B/S
ppc0 at 0x3bc irq 7 on isa
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
nlpt0: on ppbus 0
nlpt0: Interrupt-driven port
ppi0: on ppbus 0
plip0: on ppbus 0
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
changing root device to wd0s1a 
--------------------------------------------------------------------------------
在FreeBSD 4.0下安装USB鼠标支持

Benn Bollay
www.freebsddiary.org 
要想让你的USB鼠标在FreeBSD 4.0 Release下工作,请按以下这些简单的步骤操作:
先在内核配置文件中加入下列适当的接口设备选项: 

device uhci
device ohci
device usb
device ums 

再在/etc/rc.conf中加入以下这些行: 

moused_enable="NO"
moused_flags="/dev/ums0"
usbd_enable="YES"
usbd_flags="" 

最后确保你的/etc/usbd.conf有以下这些行: 

device "Mouse"
devname "ums[0-9]+"
attach "/usr/sbin/moused -p /dev/${DEVNAME} -l /var/run/moused.${DEVNAME}.pid" 

然后制出设备接口: 

cd /dev
./MAKEDEV ums0 

重新编译内核后重启系统。在此我还是推荐你在尝试新内核前把原有内核/kernel复制一份到/kernel.stable,这样就算有什么问题还可以用手边的原内核启动。 

参考文档和手册页
推荐你多看看下面这些手册页:
usb(4)
usbd(8)
usbd.conf(5)
usbdevs(8)
ums(4)
如果你在X11下也用鼠标的话,这种即用式设备真的工作得非常好,它支持热插拔,而且无需手工发送HUP信号。 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 基础 config di on 引导 at 可以 这些 文件 isa FreeBSD

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.