总结

来源:互联网 发布:sobel算子边缘检测矩阵 编辑:程序博客网 时间:2024/04/29 14:55
Patch:其主要是用于给内核源码打补丁。
内核树和重新编译内核是不同的:
设置共享文件夹
:先要安装vmtools,然后再用vmware设置共享文件夹,然后再在虚拟机里面mount -t vmhgfs 


.host:/vmsharefolder /mnt/hgfs/即可。


编译内核步骤:
注意
在Ubuntu下,安装kernel-package这个包之后,就可以使用make-kpkg了。


sudo apt-get install kernel-package
make-kpkg --initrd kernel_image kernel_headers
使用这种命令生成 两个.deb
cd..
ls
这应该会看到有两个.deb文件,一个是kernel-image,一个是kernel-headers。




编译完成后,安装:
sudo dpkg -i*.deb

安装完会自动更新grub,重开机选择新内核即可。若开机失败,可选择旧内核开机。移除新内核,并重新编译与安装。


还是必须修改/boot/grub里的grub.cfg 使 set default="0",改为一个你需要的内核,要么是个错的系统。之后才可以进入选择系统界面。

之后开机时要狂按esc键,选择adcance 之后进入选择要进入的系统。正常的内核和RTAI的内核版本不一致:正常的内核版本:Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux

打补丁的版本是:Linux Ubuntu 3.4.6 rati 4.0  #1 SMP tue mar   24  07:48:21 PDT 2015 i686 i686 i686 GNU/Linux

是不是保证两个的内核版本一致就可以正常启动了?


没有桌面,我们可以进入tty,通过ctrl+alt+fn进入控制台,就可以操作了。用户名:chenyang密码000000


2.之后编译rtai时,要去掉comedi选项。这样就不要安装comedi组件了。
Comedi  linux control and measurement device interface
Introduction


The Comedi project develops open-source drivers, tools, and libraries for data 


acquisition.
Comedi is a collection of drivers for a variety of common data acquisition plug-in 


boards. The drivers are implemented as a core Linux kernel module providing common 


functionality and individual low-level driver modules.
Comedilib is a user-space library that provides a developer-friendly interface to 


Comedi devices. Included in the Comedilib distribution is documentation, configuration 


and calibration utilities, and demonstration programs.
Kcomedilib is a Linux kernel module (distributed with Comedi) that provides the same 


interface as Comedilib in kernel space, suitable for real-time tasks. It is effectively 


a "kernel library" for using Comedi from real-time tasks.

0 0
原创粉丝点击