Zimage

Nandprakash Dusane
how to make zimage for mini2410?

aris setyawan
This is the tutorial about compiling mini's kernel to create a zImage.
http://code.google.com/p/friendlyarm/wiki/Linux_Tutorial

-aris

sunny
Hello,
I make zImage in Ubuntu(mini2440),but it appear error
make: arm-linux-gcc: Command not found
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Would you help me? Thanks.

halabut
You don't have a toolchain, or at least the toolchain that you've told
linux you have. If you don't have one, google "arm toolchain ubuntu", if
you do have one make sure your make config matches the one you have. It
might not be arm-linux-gcc but may be arm-none-gnu-, arm-linux-gnu- or
arm-linux-gnueabi- or similar.

Luong Van Diep
Compiler Kernel Linux:
Step1:Download kernel linux for mini2440 (Maybe find it in DVD).Extract it
and find config_mini2440_xxx file and rename it .config
Step2:Download Toolchain for ARM 4.4.3
Step3:Install   Ncurses to use menuconfig GUI

==========================
$cd /PATH/Extract/Linux/Kernel/For/Mini2400
$export PATH=/yourdir/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH
$make menuconfig
<Select Alternate to Load .config file.Then you can add any module>
$make
<A few minute.Build successful.You can find zImage at
Linux-x.x.x/arch/arm/boot >

Donatello
In reply to Sunny:

You have to compile the kernel using the Arm GCC compiler. Your system is
not able to find this compiler so you either do not have it installed, or
your system does not know where to look for it.

If you have downloaded the compiler, extract it to your /opt folder. The
compiler is then on your system. After that you have to tell your system
where to look for it which you can do by saying $export
PATH=/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH. You should then be able
to compile the kernel.

Alexander
I'm having problems with this for mini6410. I'm running on a dual boot of
Ubuntu 12.10 quantal. I have installed the toolchain and changed .bahsrc so
that the PATH is correct. If I type arm-linux-gcc in terminal, I get all
the information, so I don't understand why it won't make a zImage. 

#sudo make zImage
make: arm-linux-gcc: Command not found
 CHK       include/linux/version.h
 CHK       include/generated/utsrelease.h
make[1]:  `include/generated/mach-types.h' is up to date.
 CC        kernel/bounds.s
/bin/sh:  1: arm-linux-gcc: not found
make[1]: *** [kernel]/bounds.s] Error 127
make: *** [prepare0] Error 2

Have in mind that I'm very new to Ubuntu, but think I have done all I can.
Does it matter where you untar linux-2.6.38?

Hope you can help, desperate...

oztr
Hi Alexander,
Follow steps at http://www.youtube.com/watch?v=OzrxEIAHdxo
It's extremely helpful.

Alexander
I watched the video and everything is similar to what I did, however, I
can't make a zImage. When I type in make zImage, it just tells me
arm-linux-gcc: command not found. But as I said, if I type in arm-linux-gcc
-v in the same folder, I get information about the compiler, what version
and so forth. Can it be because I have a 64-bit system? I had some problems
getting gcc installed first, but after installing a pack to help 32-bit
programs work, it got installed

Titus Breidung
> /bin/sh:  1: arm-linux-gcc: not found

You edited the PATH for /bin/bash

It is only an idea, but i think the $PATH is not available for /bin/sh

It is a dirty hack, but try to change #!/bin/sh to #!/bin/bash at the top
of the zImage script ;-)

Alexander
I changed all the files I could find in /scripts/ but still have the same
problem. Which exact file is the script for making the zImage? And where
can I find it?

Alexander
And make menuconfig works btw, if that helps...

Alexander
It was solved by logging in as root

vinay
root@rd6:~/Documents/linux-2.6.32.2# make
make: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gccgcc: Command not
found
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
make: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gccgcc: Command not
found
  CHK     include/linux/version.h
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
ERROR: include/asm is a directory but a symlink was expected
make: *** [include/asm] Error 1

Sunny Leone
Vinay,

"export $PATH=/opt/FriendlyARM/toolschain/4.4.3/bin"