Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 07:08:24 PM
News: Glomation introduced new wireless ready low cost GESBC-9260S
Pages: [1]
Topic Tools  
Read March 18, 2009, 12:07:37 AM #0
aaronpaulhughes

Problem compiling the kernel - make: arm-unknown-linux-gnu-gcc: Command not foun

I was moving along relatively pain free when I got stuck at
sudo make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- UImage

Here is
ahughes@ahughes-laptop:~/arm9/linux-2.6.25$ echo $PATH
/usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Below is the terminal output from sudo make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- at91sam9260ek_defconfig which seemed to work fine, followed by sudo make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- UImage

Enable access key retention support (KEYS) [N/y/?] n
Enable different security models (SECURITY) [N/y/?] n
File POSIX Capabilities (EXPERIMENTAL) (SECURITY_FILE_CAPABILITIES) [N/y/?] n
*
* Cryptographic API
*
Cryptographic API (CRYPTO) [N/y/?] n
*
* Library routines
*
CRC-CCITT functions (CRC_CCITT) [N/m/y/?] n
CRC16 functions (CRC16) [N/m/y/?] n
CRC ITU-T V.41 functions (CRC_ITU_T) [N/m/y/?] n
CRC32 functions (CRC32) [Y/n/m/?] y
CRC7 functions (CRC7) [N/m/y/?] n
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] n
#
# configuration written to .config
#


ahughes@ahughes-laptop:~/arm9/linux-2.6.25$ sudo make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- UImage
make: arm-unknown-linux-gnu-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: arm-unknown-linux-gnu-gcc: Command not found
make: *** No rule to make target `UImage'.  Stop.
ahughes@ahughes-laptop:~/arm9/linux-2.6.25$

Not sure what to do next.
Thanks.

 
Read March 18, 2009, 06:34:06 AM #1
admin

Re: Problem compiling the kernel - make: arm-unknown-linux-gnu-gcc: Command not foun

Please try without sudo.  The u in uImage should be small letter not capital.

 
Read March 18, 2009, 11:25:34 AM #2
aaronpaulhughes

"mkimage" command not found - U-Boot images will not be built

Ok that helped. I'm using ubuntu and there is no "root" really, and the "linux-2.6.25" directory was owned by root, so I assumed I had to sudo the make command. So I "sudo chown ahughes * -R" the whole directory and the make with uImage worked... almost. It seems I am missing a mkimage command?

 GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
  Image arch/arm/boot/uImage is ready
ahughes@ahughes-laptop:~/arm9/linux-2.6.25$

 
Read March 18, 2009, 11:34:37 AM #3
admin

Re: Problem compiling the kernel - make: arm-unknown-linux-gnu-gcc: Command not foun

The mkimage is part of U-boot utility/tools.  You can download the U-boot source and compile the utility/tools and install it to your desktop machine.
 
Read January 15, 2011, 08:58:43 AM #4
aright

Re: Problem compiling the kernel - make: arm-unknown-linux-gnu-gcc: Command not foun

I had this problem as well in the preface to updating the kernel of a GESBC-9260S board, compiling the kernel version 2.6.33 (the latest kernel that has an ARM patch as of this moment).

Since I'm running Ubuntu I tried "apt-cache search uboot" to see if there existed a toolkit that included the "mkImage" utility. It did (called uboot-mkImage) and I installed it (with "sudo apt-get install uboot-mkImage") and compiled again according to the instructions in the GESBC-9260S manual and it worked, now I had a uImage in the arch/arm/boot folder as well as Image and zImage =)
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re