|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
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. |
|