Skip to contentSkip to conversation

Toolchain select

DISCUSSION Li Weichen 5 participants 11 messages Jan 5, 2006 – Jan 9, 2006

lore
Share & tools
lore

Li Weichen

author
#0 lore raw

Hi all,

I encountered several toolchain problems while cross-compiling such as u-boot, kernel. I find it mostly problem about the version. I don't know which one is proper and stable for embedded system developing. Could you please help me?

I have already used the crosstool to make my own toolchain, and chose the gcc-4.0.1, binutils-2.16.1, glibc-2.3.5. But it seems that it has some problem. When I build u-boot it shows that the examples cannot be compiled.

Regards,

Li Weichen
2006-1-5

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I encountered several toolchain problems while cross-compiling such as

Try our ELDK.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"When people are least sure, they are often most dogmatic."
- John Kenneth Galbraith
#2 lore raw

Hi Wolfgang,

I have tried the ELDK 3.1.1, and when I build u-boot-1.1.3 or u-boot-1.1.4 I get following error:

iaadoa at omap1:~/work/tmp/u-boot-1.1.3$ make omap5912osk_config Configuring for omap5912osk board...
iaadoa at omap1:~/work/tmp/u-boot-1.1.3$ make all
make[1]: Entering directory `/home/iaadoa/work/tmp/u-boot-1.1.3/tools'
[.]
make[1]: *** No rule to make target hello_world.srec', needed by all'. Stop.
make[1]: Leaving directory `/home/iaadoa/work/tmp/u-boot-1.1.3/examples'
make: *** [examples] Error 2

I have met this error for quite a time, and I have tried different versions of toolchain, but it seems to be the same. Can you help me with it?

Thanks and best regards!

Li Weichen

Quoted 3 lines

-----Original Message-----
From: u-boot-users-admin at lists.sourceforge.net [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf Of Wolfgang

Denk

Quoted 22 lines

Sent: Thursday, January 05, 2006 10:13 PM
To: Li Weichen
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Toolchain select

Quoted 2 lines · In message <[email protected]> you wrote:

I encountered several toolchain problems while cross-compiling such as

Try our ELDK.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "When people are least sure, they are often most dogmatic."
- John Kenneth Galbraith

Quoted 2 lines

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log

files

Quoted 7 lines

for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#3 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:

I have tried the ELDK 3.1.1, and when I build u-boot-1.1.3 or = u-boot-1.1.4 I
get following error:

iaadoa at omap1:~/work/tmp/u-boot-1.1.3$ make omap5912osk_config Configuring for omap5912osk board...

omap5912osk board support is obviously broken. I wonder that you get as far as the examples directory - I see problems with messing flash functions earlier.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I read part of it all the way through.
#4 lore raw
In reply to Li Weichen

G'Day,

Quoted 3 lines

I have already used the crosstool to make my own toolchain, and chose the gcc-4.0.1, binutils-2.16.1, glibc-2.3.5. But it seems that it has some problem. When I build u-boot it shows that the examples cannot be compiled.

u-boot may not be a good test. Versions of u-boot older than 1.1.4 do
not compile with 4.0 at all; even 1.1.4 seems to have problems, as some users have reported that it does not compile (most seem to be OK, but there are a few who cannot). You said that kernel did not compile either, though, and that should work, so the problem in your case likely lies with the toolchain.

	My toolchain was compile with gcc-4.0.1, binutils-2.15 and glibc 2.3.5:

this combination is known to work. Looking at the crosstool buildlogs, your combination is not listed, so it is somewhat of an unknown quantity, though it sounds like the combination you have picked does not work. I would recommend looking at the crosstool buildlogs yourself, to see what combinations are known to work, and sticking with them, unless you want to experiment with different combinations.

-- Matthew

author
#5 lore raw

Well, if I use the toolchain consists of gcc-4.0.1, binutils-2.15, glibc-2.3.5 to build u-boot and the kernel 2.6.15-omap1, I will still get errors. The error of building u-boot is "No rule to make target hello_world.srec', needed by all'" and the error of building kernel 2.6.15-omap1 is syntax error in touchscreen.

I don't know where is the problem.

Quoted 1 line

u-boot may not be a good test. Versions of u-boot older than 1.1.4

do

Quoted 7 lines

not compile with 4.0 at all; even 1.1.4 seems to have problems, as some users have reported that it does not compile (most seem to be OK, but there are a few who cannot). You said that kernel did not compile either, though, and that should work, so the problem in your case likely lies with the toolchain.

My toolchain was compile with gcc-4.0.1, binutils-2.15 and glibc

2.3.5:

Quoted 13 lines

this combination is known to work. Looking at the crosstool buildlogs, your combination is not listed, so it is somewhat of an unknown quantity, though it sounds like the combination you have picked does not work. I would recommend looking at the crosstool buildlogs yourself, to see what combinations are known to work, and sticking with them, unless you want to experiment with different combinations.

-- Matthew

_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source

#6 lore raw

G'Day,

Quoted 3 lines

The error of building u-boot is "No rule to make target hello_world.srec', needed by all'" and the error of building kernel 2.6.15-omap1 is syntax error in touchscreen.

That is a make error, not a toolchain one: make does not have a rule to
make the said file, and so does not know what to do. That likely indicates that it is a file that either should already be there, or created by an earlier process (eg running 'make something_config' type operations). In this case, I can see the file in my examples/ directory, so likely there is something wrong with your process. Make sure you have followed the steps for compiling u-boot correctly, as you do not compile it the same as with most programs.

-- Matthew

author
#7 lore raw

Hi,

What version of u-boot are you using? I use the u-boot-1.1.4 and u-boot-1.1.3, and my steps is,
$tar xjvf u-boot-1.1.x
$cd u-boot-1.1.x
$make omap5912osk_config
$make

I think there is nothing wrong in my process.

And have you tried building the 2.6.15 kernel?

Regards,

Li Weichen
2006-1-9

Quoted 1 line

That is a make error, not a toolchain one: make does not have a rule

to

Quoted 14 lines

make the said file, and so does not know what to do. That likely indicates that it is a file that either should already be there, or created by an earlier process (eg running 'make something_config' type operations). In this case, I can see the file in my examples/ directory, so likely there is something wrong with your process. Make sure you have followed the steps for compiling u-boot correctly, as you do not compile it the same as with most programs.

-- Matthew

_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source

#8 lore raw

G'Day,

Quoted 6 lines

What version of u-boot are you using? I use the u-boot-1.1.4 and u-boot-1.1.3, and my steps is,
$tar xjvf u-boot-1.1.x
$cd u-boot-1.1.x
$make omap5912osk_config
$make

I am using 1.1.2; I have 1.1.4, but it does not link (I have not
investigated why yet, as it is pretty low priority).

Your process is correct, so it is a little strange that the file does
not exist. The command which creates the file (as called from the Makefile) is:
arm-linux-objcopy -O srec hello_world hello_world.srec 2>/dev/null I would suggest looking for where that command is used when you run it,
for there is likely a minor error being flagged at this point (run make distclean first, then start afresh).

Quoted 1 line

And have you tried building the 2.6.15 kernel?

Not yet: it is not on my current list of priorities. I am running
2.6.14-omap1 at the moment.

-- Matthew

author
#9 lore raw

Thank you for your kind reply I think there is something wrong with the omap5912osk_config file. And the 2.6.14 kernel is no problem, but the 2.6.15 can not work here.

Thanks again and best regards.

Li Weichen
2006-1-9

#10 lore raw
In reply to Li Weichen

Li Weichen said the following on 01/05/2006 05:38 AM:

Quoted 6 lines

Hi all,

I encountered several toolchain problems while cross-compiling such as u-boot, kernel. I find it mostly problem about the version. I don't know which one is proper and stable for embedded system developing.

You may look at http://www.kegel.com/crosstool/crosstool-0.38/buildlogs/ which is a matrix of possible working tool combo's

Quoted 2 lines
Signature · 11 lines
Khem Raj <[email protected]>
MontaVista Software, Inc.
www.mvista.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click