Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-01-2009, 11:50 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
uClinux ARM-ELF Toolchain Building Procedure

Hi Friends,

I am trying to build the latest version (gcc 4.3.2, binutils-2.19, etc..) arm-elf toolchain to build the image for uClinux distribution package "uClinux-dist-20040408.tar.gz". I am not able to get the exact build procedure with appropriate options.

So i started my research in the following way..

In web, i found arm-elf toolchain binaries "". But no where, they talk about the building procedure.

In another link "", they describe the procedure for arm-elf tool chain. Using that, i was able to build that, but while compiling the uClinux-dist package i got assemble error.

Then i noticed that, binutils and linux kernel versions are not same as that in the binary script.

So i downloaded the right packages from the web and followed the building procedure in the earlier link. I faced some header file inclusion error in the uClibc compilation. That has been sorted out by modifying the Makefile appropriately. Finally i got the arm-elf tool chain, that compile uClinux-dist package successfully and i got the linux and romfs images.

While execute the image in ARMulator (gdb5.0) i got the following error.

ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 759 blocks [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
BINFMT_FLAT: reloc outside program 0x9023adc (0 - 0xffed42fc/0x7580), killing init!
BINFMT_FLAT: reloc outside program 0x9023adc (0 - 0xffed42fc/0x7580), killing init!
BINFMT_FLAT: reloc outside program 0x2e312e31 (0 - 0x129788/0x12730), killing sh!
Kernel panic: No init found. Try passing init= option to kernel.


Please suggest me, where i went wrong. The only changes i made in the arm-elf tool chain (instead of using binaries, i built myself), other than that uClinux-dist and ARMulator are not modified. I am following the below link for reference.

Thanks in advance,
Sathya Sankar.D
Old 11-02-2009, 06:28 PM   #2
Registered: Feb 2004
Location: Sydney - Australia
Distribution: Ubuntu, OpenSUSE, Mythbuntu, Embedded Linux
Posts: 46

Rep: Reputation: 18
I suggest you look at the follwoing sites, which clarify your issues.

Hope these help you.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with build and install GCC-toolchain for ARM _oligarch Programming 2 04-26-2009 11:03 PM
arm-uclinux tool chain janu1024 Linux - Embedded & Single-board computer 1 01-31-2009 02:57 PM
ask for uClinux-dist-20040408.tar.gz and blueskyhff Linux - Software 0 03-26-2007 12:44 AM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM
How can i build ppp in a arm board which has uclinux os keer Linux - Networking 0 10-22-2003 08:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration