Embedded Linux >> Cross tools for SH processors and Slackware

by drwho8 » Tue, 14 Sep 2004 06:30:53 GMT

Hello from Gregg C Levine
It seems I am colliding with the illogic of how people constantly build their
development tools on a RPM based system.

Consider this, I downloaded from a site that's Japanese, and English, (Obviously I
went to the English side), the RPM files that closely matched the versions of GCC,
and the binary utilities that were supplied with Slack10. I converted them to Slack
packages using the rpm2tgz tool, and then installed them. My first task was to build
a kernel for my project, it's on the Sega Dreamcast, which is SH based. It ran okay
once I figured out the command strings, however it seems that the way the tools
were built caused the problems, (I think.), basically the kernel (version 2.4.26)
refused to completely compile. Now if anyone is interested in the error messages,
before I go down the next route, I can recreate my steps, and then make the output
available for perusal.

While I think I can use the supplied source code for building my own tools, and
even a library, either Glibc, or uClibc, for the processor, has anyone done so, and
created packages?
Gregg C Levine drwho8 atsign att dot net
(Company website at www.gregg.levine.name )




Embedded Linux >> Cross tools for SH processors and Slackware

by Alexander Popov » Tue, 14 Sep 2004 19:25:33 GMT





check out crosstool ( http://kegel.com/crosstool )
I used it to build arm and ppc toolchains and it worked great. Definitely saves time and solves all problems with pre-made toolchains...

Regards,
Sasho




Embedded Linux >> Cross tools for SH processors and Slackware

by Dan Kegel » Thu, 16 Sep 2004 00:05:16 GMT


Cross tools for SH processors and Slackware

by drwho8 » Thu, 16 Sep 2004 12:36:07 GMT

ello from Gregg C Levine
I did that. I used the default browser for KDE to download that one. Tar
complained so I grabbed it via wget. Extracted it into the /usr/local/src directory.

I then ran the script for setting things for the SH4. I should have mentioned, that my
target isn't one of the developer boards from the company, its a Dreamcast that's
my target.

I then ran the next script, it complained about not having a couple of variables set.
Same with the crosstool.sh script. I also created a script file to explain this:
Script started on Thu 16 Sep 2004 12:21:11 AM EDT
root@who4:/usr/local/src/crosstool-0.28-rc35# sh all.sh
Please set TARGET to the Gnu target identifier (e.g. pentium-linux)
root@who4:/usr/local/src/crosstool-0.28-rc35# sh crosstool.sh
Please set PREFIX to where you want the toolchain installed.
root@who4:/usr/local/src/crosstool-0.28-rc35# exit
Script done on Thu 16 Sep 2004 12:23:17 AM EDT

I am some what confused. I did read the documentation pointed to inside the doc
directory that the README file points to. Also I'd like to have the crosstool
scripts build Slackware packages. I'm also going to post the output from the
demo-sh4.sh script:
#!/bin/sh
set -ex
TARBALLS_DIR=/usr/local/src/sh4
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES

# Really, you should do the mkdir before running this,
# and chown /opt/crosstool to yourself so you don't need to run as root.
mkdir -p $RESULT_TOP

# Build the toolchain. Takes a couple hours and a couple gigabytes.
# note: binutils < 2.13 doesn't know about sh4, so don't try building gcc-2.95
# note: gcc-3.2.3 has ICE compiling glibc for sh4 (http://gcc.gnu.org/PR6954), so
don't try building gcc-3.2.3

#eval `cat sh4.dat gcc-3.3-glibc-2.2.5.dat` sh all.sh --notest
#eval `cat sh4.dat gcc-3.3-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat sh4.dat gcc-3.3.2-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat sh4.dat gcc-3.3.3-glibc-2.3.2.dat` sh all.sh --notest
#eval `cat sh4.dat gcc-3.4.0-glibc-2.3.2.dat` sh all.sh --notest
eval `cat sh4.dat gcc-3.4.1-glibc-2.3.3.dat` sh all.sh --notest
#eval `cat sh4.dat gcc-3.4.1-glibc-20040827.dat` sh all.sh --notest

echo Done.
I examined the configuration files for the SH4, and I noticed that its set for the
generic processor. Would that make a difference?
---
Gregg C Levine drwho8 atsign att dot net
In article < XXXX@XXXXX.COM >, XXXX@XXXXX.COM says...
I
GCC,
Slack
build
okay
messages,
output
and



Similar Threads

1. arm + sh cross compile suite for amd64 (i386)? - Linux

2. SH-3 (SH-linux) target board (Problem with sh-ipl+g)

Hi, 

Anyone who had used a SH-3 target board? Please email me.

I have problem with the IPL (Initial Program Loader) with my target board
and my linux OS PC. I cant see the sh-ipl+g load up. Why is it so?
Could someone please share something with me? 

Thank you very much!!

3. how to use ./example.sh instead of sh ./example.sh - Linux

4. rpm tool use in slackware.

On Thu, 14 Aug 2003 16:51:16 -0400, G. Georgiev wrote:

>         Hi,
> 
>         I know that rpm is not a good idea for slackware, but I want to insta
> ll IBM WebSphere, and it definetly wants rpm dabase to be in order.

rpm works OK in Slackware, but since there is no database you need to use
the --nodeps option.  Just be sure that your depends are in place.
 
>         Given that rpm was never used on this computer, is there a way to c
> onvert the slackware instalation tool - pkgtool to rpm database? or by some 
> way to build this database in order rpm to work?

You can convert the rpm package to a tarball using alien.

5. [JOB] Tools maintenance /development in Aliso Viejo, CA (UNIX, Ruby, sh)

6. problem running m68k-uclinux-tools-20060615.sh

Hi

 When i run this script --  m68k-uclinux-tools-20060615.sh  downloaded
either from the Snapgear site or the uClinux site, I end up with the
following error :

   Tail: cannot open `+47' for reading: no such file or directory
   Bunzip2: (stdin) is not a bzip2 file.

 am trying to run this Script on my Fedora Core 5 system.  Is a stable
form of this script available on any other mirrors for download  ????

Kindly let me know if there is any workaaround for the same ???    Any
pointer / help in this regard will be highly appreciated.
 
  regards
   Krish.