查看: 3798|回复: 5

将编译好的内核安装到 u 盘或者 SD卡上。

[复制链接]
发表于 2010-4-29 08:07:35 | 显示全部楼层 |阅读模式
关键词: existing , file , Installing , kernel , System
Installing a new kernel into an existing file system
1. Install a file system on SD or USB media as described in the section Making a
    Bootable SD or USB drive
2. Mount your SD or USB media on your development system (not the CDK or
    Lanford) – the media should automount to /media/disk
3. Type ‘su’ to gain root privileges
4. Create a ‘kernel’ folder on the mounted media
       a. Type ‘mkdir /media/disk/kernel’
5. Change folders with the ‘cd’ command to the location of the kernel built on
    your development system
6. Mount this working kernel directory to the kernel folder on the mounted
    media
       a. Type ‘mount –-bind `pwd` /media/disk/kernel’
7. Use the ‘cd’ command to change the current folder to the mounted media
       a. Type ‘cd /media/disk’
8. Bind mount the ‘dev’ folder.
       a. Type ‘ mount –-bind /dev dev’
9. Mount the proc folder using the mount command
       a. Type ‘mount –t proc proc proc’
10. Bind mount the sys folder
       a. Type ‘mount –-bind /sys sys’
11. Setup a chroot to the base folder on the mounted media
       a. Type ‘/usr/sbin/chroot .’
12. Change to the ‘kernel’ folder
       a. Type ‘cd kernel’
13. Run a make passing ‘modules_install’ to the makefile
       a. Type ‘make modules_install’
14. Run a ‘make install’ to finish the kernel installation
15. Type ‘sync’ to write the cache to the removable media
16. Change back to the base folder on the media
       a. Type ‘cd ..’
17. Un mount all created mount points
       a. Type ‘umount sys dev kernel proc’
18. Type ‘exit’ to exit the chroot environment.
发表于 2010-4-29 09:09:10 | 显示全部楼层
live usb?
发表于 2010-4-29 09:18:09 | 显示全部楼层
老郭的拆迁队呢?
发表于 2010-4-29 10:00:20 | 显示全部楼层
拆迁成功
 楼主| 发表于 2010-4-29 10:43:17 | 显示全部楼层
让板子从u盘或sd卡启动时用得到。
 楼主| 发表于 2010-5-1 12:34:23 | 显示全部楼层
ps: 这个实际上是chroot安装一个刚刚编译过的新内核的方法,
sd卡上本来就应经做好一个系统了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于我们  -  服务条款  -  使用指南  -  站点地图  -  友情链接  -  联系我们
电子工程网 © 版权所有   京ICP备16069177号 | 京公网安备11010502021702
快速回复 返回顶部 返回列表