+ -
当前位置:首页 → 问答吧 → insmod doc的问题,求助!

insmod doc的问题,求助!

时间:2005-06-05

来源:互联网

我想把pc104上的linux系统换为我裁减的系统,我按照readme_install首先在pc机上裁减了一个内核,安装了doc驱动,并且也打了补丁,但当我从新启动新内核,要insmod doc的时候,却出现了一下提示:
warning : loading doc.o will taint the kernel :no license
see [url="http://www.tux.org/lkml/#export-tainted"]http://www.tux.org/lkml/#export-tainted[/url] for information about
warning :loading doc.o will tainted the kernel :forced load
doc.o : init_modules :device or resource busy
Hint:insmod errors can be caused by incorrect modules paramenters,include IO or IRQ parameters
you may find more information in syslog or the output from dmesg

有没有和我遇到一样的呀,我该怎么办?高手指导一下呀!      

作者: peter_zu   发布时间: 2005-06-05

警告是说用的模块的没有许可协议。
问题是,你的PC机上有DOC码?      

作者: 风雪狂客   发布时间: 2005-06-06

有呀,啊?不会是坏的吧!      

作者: peter_zu   发布时间: 2005-06-06

风大狭,真的如你所说,我的那片doc现在可能是坏了,从新换了一块,就加载上了;谢谢你呀!
  不过现在又有新问题了,当我把linux写到doc时,重新启动后,出现了下面的信息:
....
request_modules [block-major-100]: root fs not mounted
VFS : cannot open root device "6401" or 64:01
please append a correct "root =" boot option
kernel panic : VFS :unable to mount root fs on 64:01
...
启动不起来了,您能看看是什么问题吗?

并且把我的写步骤贴上去,你看正确不正确:


1. format the DiskOnChip
     dformat /win:d000 /s:doc42.exb /y
      use dfromat under dos.
2. download linux-2.4.18.tar.gz (干净的内核)
       #cp linux-2.4.18.tar.gz /usr/src
       #tar zxvf linux-2.4.18.tar.gz
       #mv linux linux-2.4.18
       #ln -s linux-2.4.18 linux
3. install driver source
       #cd _doc_linux_dir_/driver
       #patch -p1 -d /usr/src/linux < linux-2_4_7-patch (打补丁)
       #cp doc/* /usr/src/linux/driver/block/doc/
4. create nodes
      #cd _doc_linux_dir_/driver
      #./mknod_fl
5. change kernel configuration
      #make mrproper
      #make menuconfig
  5.1、Enter "Loadable modules support" menu.
            make sure all the options on that menu are turned ON.

   5.2、Enter "rocessor type and features" menu
            select 386
   5.3、Enter "Memory Technology Devics(MTD)" menu
             turn on M-system DOC supprot

   5.4、Enter "Block devices" menu
             select the "M-Systems driver" as module.
             select the "Loopback device support" and "RAM disk support" as built-in.

  5.5、Save the configuration,then compile the kernel
            #make clean
            #make modules
            #make modules_install
            #make bzlilo
6. modify /etc/lilo.conf
            #lilo
##########################
reboot the machine.

#############################

7.   # insmod doc
8. install the correct boot loader
         #cp /sbin/lilo /sbin/lilo.bak (backup lilo)
        #cp _doc_linux_dir/lilo/lilo /sbin/lilo
        #cp /boot/boot.b /boot/boot.b.bak (backup boot.b)
        #cp _doc_linux_dir_/lilo/boot.b /boot/boot.b
9. create appropriate nodes in /dev/msys by
        #./mknod_fl  62
and always load the driver with parameter fl_major=62
10. modify /etc/lilo.conf
       #cp /etc/lilo.conf /etc/lilo.conf.bak (backup lilo.conf)
11. create initrd file
       #cd _doc_linux_dir_/driver
       #./mkinitrd_doc (作到这还好)
12. copy linux system files to DOC
      #cd _doc_linux_dir_/build
      #./mkdocimg   my_files
13. #lilo -v -C /etc/lilo.conf -r /mnt/fla1 (但到这一步却告诉我找不到lilo.conf,所以我就直接执行#lilo)
14. restore lilo
15. update DOC firmware
      #dformat /win:d000 /s:doc42.exb /y /noformat /first (这一步仍然有问题,说找不到boot image )
16. boot into linux

你看有什么不对的吗?恳切能得到你的指导,谢谢!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o:p></o:p>      

作者: peter_zu   发布时间: 2005-06-06

1、我知道doc新版的主设备号好像是100吧?不是64!你到你的/dev/目录下看看有没有这个设备节点?
2、你的lilo.conf的配置是不是正确的?
3、在执行13步时,你修改的lilo.conf是在/mnt/fla1/etc/下吗?
4、为什么最后来更新firmware?应该是先换firmware,再在上面建立文件系统的!      

作者: 风雪狂客   发布时间: 2005-06-07

风大狭,你好!我是按照readme_install上一步一步来做的,但无论怎样,还是出现上面的问题。 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o:p></o:p>
我的lilo.conf是这样的
boot=/dev/msys/fla
compact
install=/boot/boot.b
map=/boot/System.map
disk=/dev/msys/fla
bios=0x80

prompt
delay=50
timeout=50

image=/boot/vmlinuz
label=linux
root=/dev/msys/fla1
initrd=/boot/initrd.img
read-only

上面的引导文件在boot目录里都有。我在执行第13步时是在/mnt/fla1下面,我不知道你上面的怎么是/mnt/fla1/etc,我的fla1下面没有etc,并且打不开呀。
我最后没有执行dformat,他还是到那就停了,不知道为什么,风大狭,你看还有什么方法没有呀,我都写了将近一个月了,到现在还没搞好,自尊心狂受打击。谢谢你了!      

作者: peter_zu   发布时间: 2005-06-11

关键是第13步,你不能跳过去,只要没通过,你就不要继续了

很难看出你到底在13步哪里出错了

找不到lilo.conf真是很奇妙      

作者: AIKO_sex   发布时间: 2005-06-15

楼上大狭:
request_modules [block-major-100]: root fs not mounted
VFS : cannot open root device "6401" or 64:01
please append a correct "root =" boot option
kernel panic : VFS :unable to mount root fs on 64:01
是不是DOC的设备号问题啊?我觉得问题就应该出在这里!现在上面的操作都能正确执行,但还是出现上面的问题,能不能给个指导呀或者把你的方法指导我一下吧!我的信箱是  [email="[email protected]"][email protected][/email]      

作者: peter_zu   发布时间: 2005-06-15

还有个问题请教:
[QUOTE]
create appropriate nodes in /dev/msys by
#./mknod_fl 62
and always load the driver with parameter fl_major=62

这个步骤根据现在doc默认主设备号为100 的情况下,是不是有问题呀?恳请指导!      

作者: peter_zu   发布时间: 2005-06-15