ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Ltib] MPC8548/8536 targeting Linux 2.6.28 + MPC8536DS (HELP PLEASE)


From: Reer, Carolyn (SA-1)
Subject: RE: [Ltib] MPC8548/8536 targeting Linux 2.6.28 + MPC8536DS (HELP PLEASE)
Date: Wed, 28 Jul 2010 12:49:54 -0400

Stuart:
Are you the same Stuart Hughes of Freescale @ 2005?
Just saw that in the LTIB installation that came with MPC8536DS.

I am targeting MPC8536DS. 
My LTIB configuration is:
Toolchain (gcc-4.3.2 eglibc-2.8 single library e55v2 toolchain)
CFLAGS for gcc/g++:
(-mcpu=8548 -mspe=yes -mabi=spe -mhard-float -mfloat-gprs=double)
When I changed to -mcpu=8536 I received error message from LTIB that
8536 is a "Bad value"
Changed back to 8548, kernel built OK.
The kernel is selected as (Linux 2.6.28 + MPC8536DS patch)
Q1) Why can't I select -mcpu=8436?

At this time, I am just TFTP'ing my kernel image & dtb to RAM and
booting from there.
Ultimately we will boot from SD.
Using NFS my host (Fedora 12) ltib/rootfs directory is mounted as the
MPC8536 root file system.
I am trying to build a simple "Hello world" application.

I was having problems with the include files. The directories under
/opt/freescale/usr/local/gcc-4.3.74 . . . were mess.
Had to split and hard code ./gcc and ./as and library and include paths.

Default wanted to go back to f12 fedora paths.
Also had to move .h files around to satisfy the compiler. Stdio.h
couldn't find all its components.
Q2) I was wondering if I have to split out the linker command also so
that the gcc-4.3.74 path is used?

The gcc.log file shows
--with-gmp=/usr/src/redhat/BUILD/csl-tc-4.3.74/host-libs/usr 
--with-mpfr=/usr/src/redhat/BUILD/csl-tc-4.3.74/host-libs/usr 
--with-cpu=8548 

Q3) I see the gmp & mpfr rpm files are in ltib subdirectories. F12 won't
let me install them on the host.
Do they have to be included in the ltib build? Will this install them on
my host system?

Q4) I think I have resolved my 'service' question. Once I can build the
daemon, I edit the inetd.conf file and restart inetd via kill HUP.

Thanks for all your help.

Carolyn Reer

201-405-2992


-----Original Message-----
From: Stuart Hughes [mailto:address@hidden 
Sent: Tuesday, July 27, 2010 2:11 PM
To: Reer, Carolyn (SA-1)
Cc: address@hidden
Subject: Re: [Ltib] MPC8548 targeting Linux 2.6.28 + MPC8536DS (HELP
PLEASE)

Hi Carolyn,

What problem are you having? is it with the 8548 or 8536? is it the
kernel or another package? could you post some output.  Am I right in
thinking you got the 8536 LTIB and did a -m distclean and are now
targeting the 8548? If so you're better pulling the latest from LTIB
CVS, that way at least it's possible this list may be able to help you,
otherwise you'll need to ask Freescale.

So far as the autobuilder goes, the output sent to the list is the same
as that at zee2.com, except there's an expanded full list available
there, as well as a by-date selection.

You should never need to run --continue unless developing.

To start/stop services you configure these with ./ltib --configure and
use the "Target System Configuration".  Options present depending on the
packages/options you have selected elsewhere.

So far as IP tables goes, there's no specific start-up in LTIB for that
AFAIK.  So you need to add the appropriate iptables config file and run
iptables restore pointing to it from rc.local.

Regards, Stuart

Reer, Carolyn (SA-1) wrote:
> I am STILL having problems with LTIB and the resultant Linux kernel.
> 
> My LTIB is dated 13-MAR-09. Came with the Freescale MPC8536DS
> development system. I am building for the MPC8548 targeting Linux
2.6.28
> + MPC8536DS patch. Should I download a newer LTIB? I see the
autobuilder
> says the MPC8548 builds fail.
> 
> The autobuilder emails link me to zee2.com which links me back to
> ltib.org.
> 
> I always get some king of build error.
> I run ./ltib -continue to circumvent as many errors as possible
although
> it still aborts prematurely.
> 
> I have been unsuccessful getting any applications to run on the
target.
> 
> Right now I am trying to add a daemon to the system services but don't
> have a "service" command. I can't use the "iptables" command because I
> don't have "ip_tables" file. The kernel is able to start inetd,
syslogd,
> etc when it boots.
> 
> What command should I be using to start, stop, restart services ?
> 
> Carolyn Reer
> 
> 201-405-2992
> 
> 
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
> 

Attachment: gccHelloWorld
Description: gccHelloWorld

Attachment: gcc.log
Description: gcc.log


reply via email to

[Prev in Thread] Current Thread [Next in Thread]