Hello everybody!
In my previous post i mentioned that we need LINUX platform or Linux in Vmware to compile and build uClinux kernel and i suggested u to use Vmware coz sometime we need flashmagic software to flash u-boot...(which runs on windows)
So, its ur choice....
I'm following some instructions from Embedded Artists to build my own toolchain, compile and upgrade board's u-boot. I'm working with Ubuntu 12.04(as i told its ur choice..).
Today I'll show you what I did to compile the kernel.. First of all I'm assuming that you have already read Getting started with uClinux.
Now let's begin the hard work! =D
Steps:Follow these steps on linux platform, I m doing these on Ubuntu 12.04
1) Download all these packages:
- uClinux-dist-20070130.tar.gz
- ea-uClinux-081020.diff.gz
- ea-v3_1_incr1.diff.gz
- linux-2.6.21.tar.gz
- arm-linux-tools-20061213.tar.gz
- arm-elf-tools-20040427.sh
- mkimage (used to generate uLinux.bin)
or
You can download all above packages in one shot..
click -EADevEnv_v3_1
after downloading unzip this package....
2) untar toolchain 1. (It will untar in the same directory where you download it. I add this path to the $PATH)
Note: You can either move this directory to a directory in the PATH or add the path into the $PATH in your /home/user/.bashrc. In this way you don't have to export everytime you open a new console.
install toolchain 2.
I had a problem when installing this toolchain. If you get an error too, edit this file and try changing:
by
Copy mkimage to /usr/local/bin and set it as executable
3) untar uClinux and then remove old kernel
In my previous post i mentioned that we need LINUX platform or Linux in Vmware to compile and build uClinux kernel and i suggested u to use Vmware coz sometime we need flashmagic software to flash u-boot...(which runs on windows)
So, its ur choice....
I'm following some instructions from Embedded Artists to build my own toolchain, compile and upgrade board's u-boot. I'm working with Ubuntu 12.04(as i told its ur choice..).
Today I'll show you what I did to compile the kernel.. First of all I'm assuming that you have already read Getting started with uClinux.
Now let's begin the hard work! =D
Steps:Follow these steps on linux platform, I m doing these on Ubuntu 12.04
1) Download all these packages:
- uClinux-dist-20070130.tar.gz
- ea-uClinux-081020.diff.gz
- ea-v3_1_incr1.diff.gz
- linux-2.6.21.tar.gz
- arm-linux-tools-20061213.tar.gz
- arm-elf-tools-20040427.sh
- mkimage (used to generate uLinux.bin)
or
You can download all above packages in one shot..
click -EADevEnv_v3_1
after downloading unzip this package....
2) untar toolchain 1. (It will untar in the same directory where you download it. I add this path to the $PATH)
1. tar -zxvf arm-linux-tools-20061213. tar .gz
2. export PATH=$PATH:path-to-the-download-directory /usr/local/bin |
Note: You can either move this directory to a directory in the PATH or add the path into the $PATH in your /home/user/.bashrc. In this way you don't have to export everytime you open a new console.
install toolchain 2.
. /arm-elf-tools-20040427 .sh
|
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf - |
by
tail -n +43 ${SCRIPT} | gunzip | tar xvf -
|
Copy mkimage to /usr/local/bin and set it as executable
sudo chmod +x /usr/local/bin/mkimage |
3) untar uClinux and then remove old kernel
1. tar -zxvf uClinux-dist-20070130. tar .gz
2. rm -r . /uClinux-dist/linux-2 .*
4) untar linux-2.6.21 and move it to uClinux-dist
|
hi Abhishesk ,
ReplyDeleteAm struck in executing the shell script ,
./arm-elf-tools-20040427.sh
initially i got error as you have mentioned.
But as per your steps i changed line 40 of script to the
tail -n +43 ${SCRIPT} | gunzip | tar xvf -
but i see below errors now .
./usr/local/arm-elf/
> ./usr/local/arm-elf/bin/
> ./usr/local/arm-elf/bin/nm
> ./usr/local/arm-elf/bin/strip
> tar: Skipping to next header
> gunzip: stdin: invalid compressed data--format violated
> tar: Error exit delayed from previous errors
let me know if you have any workarounds for the situation.
Thanks in advance
Sachin
Hello Sachin,
DeleteSorry for replying late :| I was on vacation.
I think your download arm-toolchain tar file is corrupted.
Try to download again.
Let me know if u r finding any difficulties.
Regards,
Abhishek Mourya