標(biāo)題: 將編譯好的內(nèi)核安裝到 u 盤(pán)或者 SD卡上。 [打印本頁(yè)] 作者: linux_Ultra 時(shí)間: 2010-4-29 08:07 標(biāo)題: 將編譯好的內(nèi)核安裝到 u 盤(pán)或者 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 時(shí)間: 2010-4-29 09:09
live usb?作者: f.luo 時(shí)間: 2010-4-29 09:18
老郭的拆遷隊(duì)呢?作者: admin 時(shí)間: 2010-4-29 10:00
拆遷成功 作者: linux_Ultra 時(shí)間: 2010-4-29 10:43
讓板子從u盤(pán)或sd卡啟動(dòng)時(shí)用得到。作者: linux_Ultra 時(shí)間: 2010-5-1 12:34
ps: 這個(gè)實(shí)際上是chroot安裝一個(gè)剛剛編譯過(guò)的新內(nèi)核的方法,
sd卡上本來(lái)就應(yīng)經(jīng)做好一個(gè)系統(tǒng)了。