* Re: RPX Lite kernel
[not found] ` <3782515B.471DCEBE@broadlink.com>
@ 1999-07-07 11:59 ` Marcus Sundberg
1999-07-07 19:10 ` Scott Wood
0 siblings, 1 reply; 7+ messages in thread
From: Marcus Sundberg @ 1999-07-07 11:59 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev
Scott Wood wrote:
> I'd still like to know if anyone has a working 2.2 kernel on the RPX Lite... I'd compile one myself, but my B&W G3 LinuxPPC box
> is getting its guts replaced and I've heard horror stories about cross-compling the kernel...
Well, I've heard horror stories about compiling "hello world" too,
but that doesn't mean it's particularly complicated. ;)
If "cross-compiling" from PPC I can't see why you should need to do
anything else than configure the kernel properly.
And this diff is all that is needed to cross-compile from ix86 Linux:
diff -urN linux-2.2.10.orig/Makefile embedded-2.2.10/Makefile
--- linux-2.2.10.orig/Makefile Sat May 29 03:10:19 1999
+++ embedded-2.2.10/Makefile Tue Jul 6 18:32:40 1999
@@ -3,7 +3,8 @@
SUBLEVEL = 10
EXTRAVERSION =
-ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
+ARCH := ppc
+#ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
.EXPORT_ALL_VARIABLES:
@@ -18,7 +19,7 @@
HOSTCC =gcc
HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-CROSS_COMPILE =
+CROSS_COMPILE = ppc-linux-
AS =$(CROSS_COMPILE)as
LD =$(CROSS_COMPILE)ld
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
[not found] <37823F71.2BD5AF5F@broadlink.com>
[not found] ` <3782515B.471DCEBE@broadlink.com>
@ 1999-07-07 12:33 ` Charles Lepple
1 sibling, 0 replies; 7+ messages in thread
From: Charles Lepple @ 1999-07-07 12:33 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev@lists.linuxppc.org
>[...] or written a utility to convert an ELF kernel into SREC format?
Have you looked at objcopy? Unless I'm mistaken, you should be able to do a
'objcopy -O srec vmlinux vmlinux.s19'
One issue that may crop up is the load address. objdump will let you look at
the ELF headers to make sure that you aren't trying to load the kernel at
at an address which does not map to RAM.
--Charles Lepple
clepple@mitre.org
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
1999-07-07 11:59 ` Marcus Sundberg
@ 1999-07-07 19:10 ` Scott Wood
1999-07-07 21:35 ` Matt Porter
0 siblings, 1 reply; 7+ messages in thread
From: Scott Wood @ 1999-07-07 19:10 UTC (permalink / raw)
To: Marcus Sundberg; +Cc: linuxppc-dev@lists.linuxppc.org
Thanks... mkdep was taking over all my CPU/RAM on my machine, but it worked fine on another RedHat-5.2 box. Now all I need is a
cross-compiler... any idea where I can get ppc-linux-gcc?
Marcus Sundberg wrote:
>
> Scott Wood wrote:
> > I'd still like to know if anyone has a working 2.2 kernel on the RPX Lite... I'd compile one myself, but my B&W G3 LinuxPPC box
> > is getting its guts replaced and I've heard horror stories about cross-compling the kernel...
>
> Well, I've heard horror stories about compiling "hello world" too,
> but that doesn't mean it's particularly complicated. ;)
>
> If "cross-compiling" from PPC I can't see why you should need to do
> anything else than configure the kernel properly.
> And this diff is all that is needed to cross-compile from ix86 Linux:
>
> diff -urN linux-2.2.10.orig/Makefile embedded-2.2.10/Makefile
> --- linux-2.2.10.orig/Makefile Sat May 29 03:10:19 1999
> +++ embedded-2.2.10/Makefile Tue Jul 6 18:32:40 1999
> @@ -3,7 +3,8 @@
> SUBLEVEL = 10
> EXTRAVERSION =
>
> -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
> +ARCH := ppc
> +#ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
>
> .EXPORT_ALL_VARIABLES:
>
> @@ -18,7 +19,7 @@
> HOSTCC =gcc
> HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
>
> -CROSS_COMPILE =
> +CROSS_COMPILE = ppc-linux-
>
> AS =$(CROSS_COMPILE)as
> LD =$(CROSS_COMPILE)ld
>
> //Marcus
> --
> -------------------------------+------------------------------------
> Marcus Sundberg | http://www.stacken.kth.se/~mackan/
> Royal Institute of Technology | Phone: +46 707 295404
> Stockholm, Sweden | E-Mail: mackan@stacken.kth.se
--
+---------------------+----------------------+
| Scott Wood | Systems Engineer |
|=====================+======================|
| BroadLink Communications |
+--------------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
1999-07-07 19:10 ` Scott Wood
@ 1999-07-07 21:35 ` Matt Porter
1999-07-07 22:03 ` Daniel Jacobowitz
1999-07-08 20:34 ` Scott Wood
0 siblings, 2 replies; 7+ messages in thread
From: Matt Porter @ 1999-07-07 21:35 UTC (permalink / raw)
To: Scott Wood; +Cc: Marcus Sundberg, linuxppc-dev@lists.linuxppc.org
On Wed, 7 Jul 1999, Scott Wood wrote:
> Thanks... mkdep was taking over all my CPU/RAM on my machine, but it worked fine on another RedHat-5.2 box. Now all I need is a
> cross-compiler... any idea where I can get ppc-linux-gcc?
http://members.home.net/mmporter/cross.html
Binaries are out of date since I'm developing natively these days, but the
build process is documented there as well.
--
Matt Porter
mmporter@home.com
This is Linux Country. On a quiet night, you can hear Windows reboot.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
1999-07-07 21:35 ` Matt Porter
@ 1999-07-07 22:03 ` Daniel Jacobowitz
1999-07-08 20:34 ` Scott Wood
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 1999-07-07 22:03 UTC (permalink / raw)
To: linuxppc-dev@lists.linuxppc.org
On Wed, Jul 07, 1999 at 02:35:15PM -0700, Matt Porter wrote:
>
> On Wed, 7 Jul 1999, Scott Wood wrote:
>
> > Thanks... mkdep was taking over all my CPU/RAM on my machine, but it worked fine on another RedHat-5.2 box. Now all I need is a
> > cross-compiler... any idea where I can get ppc-linux-gcc?
>
> http://members.home.net/mmporter/cross.html
>
> Binaries are out of date since I'm developing natively these days, but the
> build process is documented there as well.
And mine's at
<http://www.them.org/~drow/usr.local.powerpc-linux.tar.gz>. No
documentation, alas, but it's a pretty recent build, binutils and all.
Just extract in / (all of the files will go in
usr/local/powerpc-linux), and add /usr/local/powerpc-linux/bin to your
path.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| SCS Class of 2002 |
| Debian GNU/Linux Developer __ Carnegie Mellon University |
| dan@debian.org | | dmj+@andrew.cmu.edu |
\--------------------------------/ \--------------------------------/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
1999-07-07 21:35 ` Matt Porter
1999-07-07 22:03 ` Daniel Jacobowitz
@ 1999-07-08 20:34 ` Scott Wood
1 sibling, 0 replies; 7+ messages in thread
From: Scott Wood @ 1999-07-08 20:34 UTC (permalink / raw)
To: Matt Porter; +Cc: linuxppc-dev@lists.linuxppc.org
I tried recompiling gcc and binutils from RedHat's SRPMS, but encountered a plethora of errors. The versions on your page worked
flawlessly. Thanks a bunch, that saved me a lot of time and energy!!
Matt Porter wrote:
>
> On Wed, 7 Jul 1999, Scott Wood wrote:
>
> > Thanks... mkdep was taking over all my CPU/RAM on my machine, but it worked fine on another RedHat-5.2 box. Now all I need is a
> > cross-compiler... any idea where I can get ppc-linux-gcc?
>
> http://members.home.net/mmporter/cross.html
>
> Binaries are out of date since I'm developing natively these days, but the
> build process is documented there as well.
>
> --
> Matt Porter
> mmporter@home.com
> This is Linux Country. On a quiet night, you can hear Windows reboot.
--
+---------------------+----------------------+
| Scott Wood | Systems Engineer |
|=====================+======================|
| BroadLink Communications |
+--------------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: RPX Lite kernel
[not found] ` <3784C7D7.2EC6C451@jlc.net>
@ 1999-07-08 20:40 ` Scott Wood
0 siblings, 0 replies; 7+ messages in thread
From: Scott Wood @ 1999-07-08 20:40 UTC (permalink / raw)
To: Dan Malek; +Cc: linuxppc-dev@lists.linuxppc.org
Dan Malek wrote:
>
> Hi Scott.
>
> What type of board and processor do you have? What is the version
> of the RPX utility program?
The CPU model is MPC850SRZT50. Version: RPX-Lite BW 850SR 50Mhz/8Mhz Ic ~Dc RPXU v1.39
I finally got the cross-compiler stuff setup (x86->ppc), but in the final linking stage of compiling the kernel, I get a whole
bunch of 'undefined reference to...' errors (whether or not I have 'Set version information on all symbols for modules' defined).
I found that commenting out the offending symbol EXPORT lines in arch/ppc/kernel/ppc_ksyms.c got rid of most of the errors (mostly
isa/pci stuff and a few other things that it seems the RPX board doesn't support, and I also tweaked a Makefile to exclude ADB
support). The only error left is:
arch/ppc/kernel/kernel.o(__ksymtab+0x0): undefined reference to `request_irq'
I also get:
uart.c: In function `serial_console_setup':
uart.c:2705: warning: zero-length format string
which doesn't seem critical, but makes me wonder whether console on serial port will work correctly.
I am using the embedded-2.2.5 sources I got from the linuxppc.org ftp site. I guess they're not completely setup to compile
cleanly for the RPX-Lite (on my x86 RH5.2 system anyway). I'll try booting your kernel, but in the end I've got to be able to
compile my own. If all else fails, if I gave you my .config could you build a kernel for me?
>
> Scott Wood wrote:
>
> > I'm trying to load the zImage.rpcg.srec-2.1.127 kernel...
>
> That's a pretty old kernel too. Download the 2.2.5 sources and
> build a newer one.
>
> > Is it possible for you to post a v2.2 kernel in SREC format,
>
> I have a 2.2.5 kernel for the RPX-Lite 823 board that I will
> upload to the linuxppc.cs.nmt.edu server. If that matches your
> board, give it a try. I am just on a slow telephone line right now,
> so it may be a while before it is up there :-).
>
> > ... and/or the program you used to convert the binary kernel to SREC
> > format so I can compile a custom kernel?
>
> I attached the program "zsrec.c", which is a simple S-record
> generator I use for the kernel. To run it is pretty simple,
> "zsrec zImage > /tftpboot/zi.rpx". It creates the S-records
> to load at 0x200000, which works nicely on the RPX. You can
> also get objcopy to do the same thing, but it took less time for
> me to write this program than to figure out what command line
> parameters I needed :-).
>
> Good Luck. Have fun.
>
> -- Dan
>
>
--
+---------------------+----------------------+
| Scott Wood | Systems Engineer |
|=====================+======================|
| BroadLink Communications |
+--------------------------------------------+
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-07-08 20:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <378248CD.E3174193@broadlink.com>
[not found] ` <3784C7D7.2EC6C451@jlc.net>
1999-07-08 20:40 ` RPX Lite kernel Scott Wood
[not found] <37823F71.2BD5AF5F@broadlink.com>
[not found] ` <3782515B.471DCEBE@broadlink.com>
1999-07-07 11:59 ` Marcus Sundberg
1999-07-07 19:10 ` Scott Wood
1999-07-07 21:35 ` Matt Porter
1999-07-07 22:03 ` Daniel Jacobowitz
1999-07-08 20:34 ` Scott Wood
1999-07-07 12:33 ` Charles Lepple
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).