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

2010年04月29日 08:07    发布者:linux_Ultra
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年04月29日
live usb?
f.luo 2010年04月29日
老郭的拆迁队呢?
admin 2010年04月29日
拆迁成功 :victory:
linux_Ultra 2010年04月29日
让板子从u盘或sd卡启动时用得到。
linux_Ultra 2010年05月01日
ps: 这个实际上是chroot安装一个刚刚编译过的新内核的方法,
sd卡上本来就应经做好一个系统了。