查看: 4254|回復: 5
打印 上一主題 下一主題

將編譯好的內核安裝到 u 盤(pán)或者 SD卡上。

[復制鏈接]
跳轉到指定樓層
樓主
發(fā)表于 2010-4-29 08:07:35 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
關(guān)鍵詞: 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.
沙發(fā)
發(fā)表于 2010-4-29 09:09:10 | 只看該作者
live usb?
板凳
發(fā)表于 2010-4-29 09:18:09 | 只看該作者
老郭的拆遷隊呢?
地板
發(fā)表于 2010-4-29 10:00:20 | 只看該作者
拆遷成功
地下室
 樓主| 發(fā)表于 2010-4-29 10:43:17 | 只看該作者
讓板子從u盤(pán)或sd卡啟動(dòng)時(shí)用得到。
6
 樓主| 發(fā)表于 2010-5-1 12:34:23 | 只看該作者
ps: 這個(gè)實(shí)際上是chroot安裝一個(gè)剛剛編譯過(guò)的新內核的方法,
sd卡上本來(lái)就應經(jīng)做好一個(gè)系統了。
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權所有   京ICP備16069177號 | 京公網(wǎng)安備11010502021702
快速回復 返回頂部 返回列表
午夜高清国产拍精品福利|亚洲色精品88色婷婷七月丁香|91久久精品无码一区|99久久国语露脸精品|动漫卡通亚洲综合专区48页