Compiling the mini2440 kernel

Thanks to BusError there is a mini2440 kernel available here:

http://code.google.com/p/mini2440/

It took me a little while to get it to compile and i thought i’d post a guide to help anyone else having trouble. Compilation was done using Fedora 11. I used the livecd to install and added some packages afterwards. The main ones are those recommended for openembedded. The page to look at is here:

http://wiki.openembedded.net/index.php/OEandYourDistro

I used:

su -c "yum install python m4 make wget curl ftp cvs subversion tar bzip2 gzip unzip
python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl
docbook-style-xsl docbook-dtds docbook-utils sed bison bc glibc-devel glibc-static
gcc binutils pcre pcre-devel git quilt groff linuxdoc-tools patch linuxdoc-tools
gcc gcc-c++ help2man perl-ExtUtils-MakeMaker"

At first the build generated various errors which were resolved by installing more packages. Unfortunately I do not remember which ones but i’ve attached a list of all packages i currently have installed in case you get stuck. In each case simply googling the error resulted in a post advising to install a particular package. After that everything worked!

The script i used to build the kernel was based very closely on the one modified by BusError. If i remember correctly I had to change a path near the end of the script. I’ve attached a copy of the exact same script which worked for reference.

You run the script by simply typing:

sudo sh mini2440-bootstrap-v2.sh

On my laptop using an Intel T7400 CPU this takes about 30-45 minutes depending on the download speeds.

If you use the default install path you should have u-boot.bin and uImage along with some other files in the directory:

/usr/src/mini2440/output

If you don’t then something has gone wrong so go back and check the various error messages in the terminal and fix them!

You can then flash these files as per normal.

Downloads:

Fedora 11 Installed packages

Mini2440 build script

4 Replies to “Compiling the mini2440 kernel”

  1. hey.. glad to see other people involved around this nasty board 🙂
    i have a trouble.. when trying to compile kernel, i get message that cc1 cannot be find.. quite a problem
    How did you resolved?
    CHeers 🙂

  2. gcc: error trying to exec ‘cc1’: execvp: No such file or directory
    i’m gonna get mad about that message!

    please help our souls

  3. Done! 😀
    Somehow Debian stalls the process while trying to detect CrossCompiler.. resolved including absolute path in CC=blah
    Keep on devel
    kind regards

Leave a Reply

Your email address will not be published. Required fields are marked *