리눅스 커널 컴파일 후에 uboot용 이미지를 만들때 mkimage가 필요한데
우분투에서는 컴파일하지 않고 간단한게 설치할 수 있다.
명령은 아래와 같다.
$ sudo apt-get install uboot-mkimage
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 9,876B of archives.
After this operation, 57.3kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
Install these packages without verification [y/N]? y
Get:1 http://old-releases.ubuntu.com/ubuntu/ maverick/main uboot-mkimage i386 0.4build1 [9,876B]
Fetched 9,876B in 1s (7,158B/s)
Selecting previously deselected package uboot-mkimage.
(Reading database ... 175719 files and directories currently installed.)
Unpacking uboot-mkimage (from .../uboot-mkimage_0.4build1_i386.deb) ...
Setting up uboot-mkimage (0.4build1) ...
Usage: mkimage -l image
-l ==> list image header information
mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
-A ==> set architecture to 'arch'
-O ==> set operating system to 'os'
-T ==> set image type to 'type'
-C ==> set compression type 'comp'
-a ==> set load address to 'addr' (hex)
-e ==> set entry point to 'ep' (hex)
-n ==> set image name to 'name'
-d ==> use image data from 'datafile'
-x ==> set XIP (execute in place)