我们从2011年坚守至今,只想做存粹的技术论坛。  由于网站在外面,点击附件后要很长世间才弹出下载,请耐心等待,勿重复点击不要用Edge和IE浏览器下载,否则提示不安全下载不了

 找回密码
 立即注册
搜索
查看: 802|回复: 0

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

[复制链接]

该用户从未签到

1万

主题

1292

回帖

2万

积分

管理员

积分
29577

社区居民最爱沙发原创达人社区明星终身成就奖优秀斑竹奖宣传大使奖特殊贡献奖

QQ
发表于 2013-3-30 00:50:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区

您需要 登录 才可以下载或查看,没有账号?立即注册

×
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

公告:服务器刚移机,
大家请不要下载东西。
会下载失败


Copyright ©2011-2024 NTpcb.com All Right Reserved.  Powered by Discuz! (NTpcb)

本站信息均由会员发表,不代表NTpcb立场,如侵犯了您的权利请发帖投诉

( 闽ICP备2024076463号-1 ) 论坛技术支持QQ群171867948 ,论坛问题,充值问题请联系QQ1308068381

平平安安
TOP
快速回复 返回顶部 返回列表