荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: zzt (破网,烂网), 信区: Linux
标  题: ◇ FreeBSD PnP card solutions calvin
发信站: BBS 荔园晨风站 (Thu Nov 12 22:41:27 1998), 站内信件 (WWW POST)

发信人: calvin (冷眼人生~淡出江湖), 信区: FreeBSD
标  题: ◇ FreeBSD PnP card solutions
发信站: 华南网木棉站 (Mon Jun 15 16:55:00 1998), 转信

◇ FreeBSD PnP card solutions
-------------------------------------------------------------------------------
-作者: AirL (Air!!) 看板: JdliBook
标题: FreeBSD PnP card solutions
时间: Wed Jan 22 01:42:33 1997

可能很多人都找到解决PnP的方法了....
但是在一般的精华区中好像还找不到...
我野人献曝一下好了:-)

取得档案:2.1.5-RELEASE, xperiment/ISA_PnP中的FreeBSD-ISA_PnP_June8.tar.gz
(或许有更新的版本)....可在ftp.tku找到2.1.5-RELEASE

1.tar zvxf FreeBSD-ISA_PnP_June8.tar.gz
2.执行pnpinfo, 记下serial number, irq, ports 及dma.
2.5
  for 2.1.X:  cd /usr/src;patch -p0 < kernel_patch
  for 2.2current: cd /usr/src/sys;patch -p0 < kernel_patch

3.修改/usr/src/sys/i386/isa/pnp.c
(以SB16 PnP为例)
....
/*
 * Hard coded for now -- Will need to use resource information from
 * ISA, PCI, and EISA drivers to auto-configure the PnP-devices
 */
static struct cinfo cinfo[] =
{
        /* Configuration for the SB16 PnP */
        {
               0x000fb757,             /* 执行pnpinfo所示Serial Number */
                        -1,             /* Logical Device Number */
                {
                        {  5, -1 },     /* Primary IRQ Number, Type */
                        { -1, -1 }      /* Second  IRQ Number, Type */
                },
                { 1, 5 },               /* DRQ(DMA) Number */
                {
                        0x220,          /* Ports 1 不管那个port是干嘛*/
                        0x330,          /* Ports 2 反正pnpinfo列出的都*/
                        0x388,          /* Ports 3 加上去:P*/
                           -1,          /* Ports 4 */
                           -1,          /* Ports 5 */
                           -1,          /* Ports 6 */
                           -1,          /* Ports 7 */
                           -1,          /* Ports 8 */
                },
                {
                        { -1, -1, -1 }, /* Memory desc0 - base, ctrl, range */
                        { -1, -1, -1 }, /* Memory desc1 - base, ctrl, range */
                        { -1, -1, -1 }, /* Memory desc2 - base, ctrl, range */
                        { -1, -1, -1 }  /* Memory desc3 - base, ctrl, range */
                }
        }
};

各项的详细说明见README....反正不知道那是干嘛的就填-1, (有附sample可参考)


4.在kernel的config file中加入:
  controller pnp0
  (README中有说不要去动跟pnp card有关的device entries....
   我自己是有把一般SB16的设定加上去)

5.make kernel, reboot (reboot可能不够, 最好冷开机或Power off再开)

       若有错误还请指教...:)



--
           @@@@@@       @@@  @@@     @@@  @@@ 信言不美,美言不信。善者不辩,辩
  @@@@@@@ @@!  @@@ @@@  @@!  @@@ @@@ @@!@!@@@ 者不善。知者不博,博者不知。圣人
 !@@      @!@!@!@! @@!  @!@  !@! @@! @!@@!!@! 不积,既以为人己愈有,既以与人己
 !@!      !!:  !!! @!!   !: .:!  !!@ !!:  !!! 愈多。天之道,利而不害;圣人之
 :!!       :   : : !!:     ::    !!: ::    :  道,为而不争。
  :: :: :           : ::.::       :                              ICQ : 5704502

※ 来源:.华南网木棉站 bbs.gznet.edu.cn.[FROM: 202.38.212.86]
--
※ 转寄:.华南网木棉站 bbs.gznet.edu.cn.[FROM: linux.szu.edu.cn]

--
☆ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: 192.168.0.101]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店