標題: 將編譯好的內核安裝到 u 盤或者 SD卡上。 [打印本頁] 作者: linux_Ultra 時間: 2010-4-29 08:07 標題: 將編譯好的內核安裝到 u 盤或者 SD卡上。 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.作者: xyj 時間: 2010-4-29 09:09
live usb?作者: f.luo 時間: 2010-4-29 09:18
老郭的拆遷隊呢?作者: admin 時間: 2010-4-29 10:00
拆遷成功 作者: linux_Ultra 時間: 2010-4-29 10:43
讓板子從u盤或sd卡啟動時用得到。作者: linux_Ultra 時間: 2010-5-1 12:34
ps: 這個實際上是chroot安裝一個剛剛編譯過的新內核的方法,
sd卡上本來就應經做好一個系統了。