linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 21:02 brian.auld
  2003-01-30 21:16 ` Matt Porter
  0 siblings, 1 reply; 11+ messages in thread
From: brian.auld @ 2003-01-30 21:02 UTC (permalink / raw)
  To: porter, linuxppc-embedded


Matt,

Thanks for the response. I was pretty surprised myself and to say the least
am not having a very good day.

Regarding the linuxppc_2_4_devel build attempt, these were the steps I took:

In fact, I'm going to run it again on my linux box as I regurgitate the
steps I previuosly took:

Prerequisites:
==============
- running RH8.0
- ELDK 2.0.2 installed with ppc_4xx tool chain (check)
- linuxppc_2_4_devel obtained from monte vista mirror (check)
(1) top-level Makefile hacked to read:
    - ARCH := ppc
    - CROSS_COMPILE = ppc_4xx-
(1) make mrproper
(2) make ebony_config
(3) make oldconfig
    - I accept default(s) for about 10 options I'm prompted for.
(4) make dep
(5) make zImage

When I run make zImage, I get the following error message:



===== Start of Clip =====

make[2]: Entering directory `/opt/eldk/usr/src/linuxppc_2_4_devel/kernel'
ppc_4xx-gcc -D__KERNEL__ (bla bla bla bla) sched.c
In file included from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/wait.h:13,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/fs.h:12,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/capability.h:17,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/binfmts.h:5,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/sched.h:9,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/mm.h:4,
                 from sched.c:23:
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h: No
such file or directory
In file included from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/wait.h:13,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/fs.h:12,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/capability.h:17,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/binfmts.h:5,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/sched.h:9,
                 from
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/mm.h:4,
                 from sched.c:23:
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:74: parse error
before `va_list'
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:74: warning:
function declaration isn't a prototype
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:77: parse error
before `va_list'
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:77: warning:
function declaration isn't a prototype
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:81: parse error
before `va_list'
/opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:81: warning:
function declaration isn't a prototype
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/opt/eldk/usr/src/linuxppc_2_4_devel/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/opt/eldk/usr/src/linuxppc_2_4_devel/kernel'
make: *** [_dir_kernel] Error 2
[bauld@ppc-dev linuxppc_2_4_devel]$

===== End of Clip =====

-- Brian

-----Original Message-----
From: Matt Porter [mailto:porter@cox.net]
Sent: Thursday, January 30, 2003 3:38 PM
To: brian.auld@adic.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Trying to use ELDK to build Ebony/440GP

On Thu, Jan 30, 2003 at 11:06:12AM -0800, brian.auld@adic.com wrote:
> (2) What's the best method to successfully build a kernel for the ebony
> board using the ELDK tools:
>      - Port ebony support into e-new?
>      - Try and work out build issues with 2_4_d configured for 'ebony'.
>
> Wanted to solicit some feedback before I go into tangent land.

I can't imagine why any ppc4xx toolchain couldn't build a properly
configured linuxppc_2_4_devel ebony kernel.  It's working right now
for my toolchain (mvista)...I haven't used ELDK for a little while now.

I take you have done the following?:

	make ebony_config
	make oldconfig
	make dep zImage

Where you have hacked ARCH and CROSS_COMPILE in the top-level Makefile
or have a script which passes in the appropriate prefix for your
toolchain.  i.e. "make ARCH=ppc CROSS_COMPILE=ppc_405- <rule>"

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 22:34 brian.auld
  2003-01-31  0:12 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: brian.auld @ 2003-01-30 22:34 UTC (permalink / raw)
  To: linuxppc-embedded


Woohoo!!! it works. Thanks to all.

Regarding development trees, penguinppc.org, in its 'kernel sources' link,
refers people to bitmover servers @ either:
  - ppc.bkbits.net or
  - source.mvista.com

What is the "denx ppc development server"? Other than what's available at
ftp.denx.de/pub/LinuxPPC/usr/src, is there an ELDK/denx specific development
tree that I am not yet aware of?

Thanks

-- Brian

-----Original Message-----
From: Wolfgang Denk [mailto:wd@denx.de]
Sent: Thursday, January 30, 2003 4:59 PM
To: Matt Porter
Cc: brian.auld@adic.com; linuxppc-embedded@lists.linuxppc.org
Subject: Re: Trying to use ELDK to build Ebony/440GP

In message <20030130141657.B25221@home.com> you wrote:
>
> > When I run make zImage, I get the following error message:
>
> > /opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:10:
stdarg.h: No
> > such file or directory
>
> Interesting, it's not picking up stdarg.h from down in the gcc-lib/
> hierarchy.  Probably an ELDK install problem...hopefully Wolfgang
> is reading this thread since he should have a suggestion on what have
> might gone wrong with your installation.

The problem is caused by the modification of kbuild_2_4_nostdinc; see
http://lists.linuxppc.org/linuxppc-embedded/200209/msg00155.html

We reverted this modification in our version of the kernem Makefile.

I don't know if there is a better approach to fix this problem.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
...though his invention worked superbly -- his theory was a crock  of
sewage from beginning to end.         - Vernor Vinge, "The Peace War"

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 21:56 brian.auld
  0 siblings, 0 replies; 11+ messages in thread
From: brian.auld @ 2003-01-30 21:56 UTC (permalink / raw)
  To: linuxppc-embedded


Thanks Wolfgang. I'll look into it and if I don't report back, everything is
resolved. I had previously search the mailing list on "ELDK and 440GP" but
didn't come up with anything. I should have changed my search variables.

-- Brian

-----Original Message-----
From: Wolfgang Grandegger [mailto:wolfgang.grandegger@bluewin.ch]
Sent: Thursday, January 30, 2003 4:48 PM
To: brian.auld@adic.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Trying to use ELDK to build Ebony/440GP

Hello

this problem has already been reported some time ago. Search the
linuxppc-embedded mailing list for kbuild_2_4_nostdinc. It's fixed in
the DENX linuxppc_2_4_devel tree.

Hope it helps.

Wolfgang.


On 01/30/2003 10:27 PM brian.auld@adic.com wrote:
> I ran a checksum on the ELDK ISO image with the following result:
>
> [root@ppc-dev bauld]# mount -o loop eldk-ppc-linux-x86.ISO /mnt/eldk
> [root@ppc-dev bauld]# cd /mnt/eldk/
> [root@ppc-dev eldk]# cd 2.0.2/
> [root@ppc-dev 2.0.2]# ls
> ELDK_FIXOWNER  ELDK_MAKEDEV  etc  install  MD5SUM  ppc_4xx  ppc_4xxFP
> ppc_74xx  ppc_7xx  ppc_82xx  ppc_8xx  README.html  RPMS  tools
> [root@ppc-dev 2.0.2]# md5sum -c MD5SUM | grep -v OK
> [root@ppc-dev 2.0.2]#
>
> -- Brian
>
>
> -----Original Message-----
> From: Matt Porter [mailto:porter@cox.net]
> Sent: Thursday, January 30, 2003 4:17 PM
> To: brian.auld@adic.com
> Cc: porter@cox.net; linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Trying to use ELDK to build Ebony/440GP
>
> On Thu, Jan 30, 2003 at 01:02:59PM -0800, brian.auld@adic.com wrote:
>> Matt,
>>
>> Thanks for the response. I was pretty surprised myself and to say the
> least
>> am not having a very good day.
>>
>> Regarding the linuxppc_2_4_devel build attempt, these were the steps I
> took:
>>
>> In fact, I'm going to run it again on my linux box as I regurgitate the
>> steps I previuosly took:
>>
>> Prerequisites:
>> ==============
>> - running RH8.0
>> - ELDK 2.0.2 installed with ppc_4xx tool chain (check)
>> - linuxppc_2_4_devel obtained from monte vista mirror (check)
>> (1) top-level Makefile hacked to read:
>>     - ARCH := ppc
>>     - CROSS_COMPILE = ppc_4xx-
>> (1) make mrproper
>> (2) make ebony_config
>> (3) make oldconfig
>>     - I accept default(s) for about 10 options I'm prompted for.
>> (4) make dep
>> (5) make zImage
>>
>> When I run make zImage, I get the following error message:
>
>> /opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h:
> No
>> such file or directory
>
> Interesting, it's not picking up stdarg.h from down in the gcc-lib/
> hierarchy.  Probably an ELDK install problem...hopefully Wolfgang
> is reading this thread since he should have a suggestion on what have
> might gone wrong with your installation.
>
> Regards,
> --
> Matt Porter
> porter@cox.net
> This is Linux Country. On a quiet night, you can hear Windows reboot.
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 21:53 xiaogeng_jin
  0 siblings, 0 replies; 11+ messages in thread
From: xiaogeng_jin @ 2003-01-30 21:53 UTC (permalink / raw)
  To: porter, brian.auld; +Cc: linuxppc-embedded


> /opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:10
> : stdarg.h: No
> > such file or directory
Change the following macro in root Makefile. This will get correct include directory. I'm not sure if this is a bug for new Makefile since 2.4.20. I believe that 2.4.19 uses the second definition. But I don't know why it is changed.

#kbuild_2_4_nostdinc	:= -nostdinc -iwithprefix include
kbuild_2_4_nostdinc	:= -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

>
> Interesting, it's not picking up stdarg.h from down in the gcc-lib/
> hierarchy.  Probably an ELDK install problem...hopefully Wolfgang
> is reading this thread since he should have a suggestion on what have
> might gone wrong with your installation.

Also I'm not sure if it's related to ELDK's cross compiler. Hopefully Wolfgang will clarify this.

Regards,

Shawn.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 21:27 brian.auld
  2003-01-30 21:47 ` Wolfgang Grandegger
  0 siblings, 1 reply; 11+ messages in thread
From: brian.auld @ 2003-01-30 21:27 UTC (permalink / raw)
  To: linuxppc-embedded


I ran a checksum on the ELDK ISO image with the following result:

[root@ppc-dev bauld]# mount -o loop eldk-ppc-linux-x86.ISO /mnt/eldk
[root@ppc-dev bauld]# cd /mnt/eldk/
[root@ppc-dev eldk]# cd 2.0.2/
[root@ppc-dev 2.0.2]# ls
ELDK_FIXOWNER  ELDK_MAKEDEV  etc  install  MD5SUM  ppc_4xx  ppc_4xxFP
ppc_74xx  ppc_7xx  ppc_82xx  ppc_8xx  README.html  RPMS  tools
[root@ppc-dev 2.0.2]# md5sum -c MD5SUM | grep -v OK
[root@ppc-dev 2.0.2]#

-- Brian


-----Original Message-----
From: Matt Porter [mailto:porter@cox.net]
Sent: Thursday, January 30, 2003 4:17 PM
To: brian.auld@adic.com
Cc: porter@cox.net; linuxppc-embedded@lists.linuxppc.org
Subject: Re: Trying to use ELDK to build Ebony/440GP

On Thu, Jan 30, 2003 at 01:02:59PM -0800, brian.auld@adic.com wrote:
> Matt,
>
> Thanks for the response. I was pretty surprised myself and to say the
least
> am not having a very good day.
>
> Regarding the linuxppc_2_4_devel build attempt, these were the steps I
took:
>
> In fact, I'm going to run it again on my linux box as I regurgitate the
> steps I previuosly took:
>
> Prerequisites:
> ==============
> - running RH8.0
> - ELDK 2.0.2 installed with ppc_4xx tool chain (check)
> - linuxppc_2_4_devel obtained from monte vista mirror (check)
> (1) top-level Makefile hacked to read:
>     - ARCH := ppc
>     - CROSS_COMPILE = ppc_4xx-
> (1) make mrproper
> (2) make ebony_config
> (3) make oldconfig
>     - I accept default(s) for about 10 options I'm prompted for.
> (4) make dep
> (5) make zImage
>
> When I run make zImage, I get the following error message:

> /opt/eldk/usr/src/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h:
No
> such file or directory

Interesting, it's not picking up stdarg.h from down in the gcc-lib/
hierarchy.  Probably an ELDK install problem...hopefully Wolfgang
is reading this thread since he should have a suggestion on what have
might gone wrong with your installation.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Trying to use ELDK to build Ebony/440GP
@ 2003-01-30 19:06 brian.auld
  2003-01-30 20:37 ` Matt Porter
  0 siblings, 1 reply; 11+ messages in thread
From: brian.auld @ 2003-01-30 19:06 UTC (permalink / raw)
  To: linuxppc-embedded


In reference to a recently kicked off project using 440GP and embedded linux
...

After investigations and suggestions, I've decided to move forward with ELDK
(2.0.2). My short-term goal in life is to get embedded linux running on the
EBONY platform to kick-start our 440GP based project.

In my early investigations of tool-chains I soon found out that 440GP
support is currently provided in linuxppc_2_4_devel and not linux_2_4, so I
need this kernel for ebony support. Furthermore, as I've decided to use
ELDK, I've downloaded and installed the ppc_4xx and ppc_8xx parts of the
ELDK package. I also installed ppc_8xx since it's the version used in the
ELDK manual and I figured it would be good to have as a cross-reference.

I have tried the following permutations and combinations of kernel build
efforts (using the ELDK package, of course) with the following results:

(cfg/kern) || e-old | e-new | 2_4   | 2_4_d |
============================================|
 (TQM823L) ||   Y  |  Y     |   N   |   N   |
 ppc_8xx-  ||      |        |       |       |
-----------||------|--------|-------|-------|
 (EBONY)   ||   N  |  N     |   N   |   N   |
 ppc_4xx-  ||      |        |       |       |
--------------------------------------------

Legend:
=======
cfg/kern -->Rows are make xxx_config options and columns are kernels
e-old --> linux-2.4.4-2002-03-31.tar.bz2 (as per ELDK Doc Guide)
e-new --> linux-2.4.4-2002-10-06.tar.bz2 (latest vers @ ftp.denx.de)
2_4   --> linuxppc_2_4 bk'ed from monte vista mirror.
2_4_d --> linuxppc_2_4_devel bk'ed from monte vista mirror.



(1) Using ELDK, should a linuxppc_2_4(devel) kernel build out of the box for
the TQM823L configuration.

(2) What's the best method to successfully build a kernel for the ebony
board using the ELDK tools:
     - Port ebony support into e-new?
     - Try and work out build issues with 2_4_d configured for 'ebony'.

Wanted to solicit some feedback before I go into tangent land.


Thanks

-- Brian


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-01-31  0:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 21:02 Trying to use ELDK to build Ebony/440GP brian.auld
2003-01-30 21:16 ` Matt Porter
2003-01-30 21:59   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-01-30 22:34 brian.auld
2003-01-31  0:12 ` Wolfgang Denk
2003-01-30 21:56 brian.auld
2003-01-30 21:53 xiaogeng_jin
2003-01-30 21:27 brian.auld
2003-01-30 21:47 ` Wolfgang Grandegger
2003-01-30 19:06 brian.auld
2003-01-30 20:37 ` Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).