Ubuntu 16.04.2 compiler environment arm-linux3.4.5 linux-2.6.22.6
In compiling linux-2.6.22.6 version of the kernel source code, according to their own board need to patch after patch, a default configuration, then the need for
myroot@myroot:~/system/kernel/linux-2.6.22.6$ make uImage
When, before compiling part of the normal, but in the end appeared
"mkimage" command not found - U-Boot images will not be built
mkimage command not found, indicating that we are missing some dependencies, so I try to install the dependencies as follows
sudo apt-get install uboot-mkimage
But it appeared the following error
Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
u-boot-tools:i386 u-boot-tools
E: Package 'uboot-mkimage' has no installation candidate
This error message indicates that we need to install the u-boot-tools dependencies, so it is necessary to do the following
sudo apt-get install u-boot-tools
After installation is complete again
sudo apt-get install uboot-mkimage
Normally installed the dependencies should be, but there is still the same as the above tips and error messages, install the u-boot-tools after dependencies, or
prompt
Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
u-boot-tools:i386 u-boot-tools
E: Package 'uboot-mkimage' has no installation candidate
After a lot of trying to find solutions can not solve, and finally found uboot source compiler, in its
u-boot-1.1.6/tools/
There mkimage executable files in the directory! So we were
sudo cp mkimage /bin/
Then again the main kernel directory where the Makefile again
myroot@myroot:~/system/kernel/linux-2.6.22.6$ make uImage
prompt
Image arch/arm/boot/uImage is ready
Successfully generated uImage file! problem solved!
among them
sudo cp mkimage /bin/
Can also be copied to / usr / bin / or other existing directory path (bin /), files in general / bin / directory for tools and system-related, so it is best placed in the official catalog other as described above, Although trouble spots, but it helps to develop good habits, but now there is no so much a practice session -
The solution to this problem has given me a new way of thinking, in addition to direct download dependencies, you can also use direct copy directly to the tool, which actually did not think the delay in the windows linux here will think of the idea, so the thinking there is still much room for improvement ???
Welcome to exchange, discuss or correct me! Common progress!