RPX Lite kernel
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Scott Wood
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:
Makefile +3 -2
@@ -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
Signature · 9 lines
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [email protected]
[[ 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. ]]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?
Quoted 41 lines · Marcus Sundberg
Quoted 2 lines · Scott Wood
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
Makefile Tue Jul 6 18:32:40 1999 renamed from Makefile Sat May 29 03:10:19 1999 +3
-2@@ -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: [email protected]
Signature · 10 lines
+---------------------+----------------------+ | 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. ]]
Quoted 2 lines · Scott Wood
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
[email protected]
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. ]]
Quoted 10 lines · Matt Porter
Quoted 2 lines · Scott Wood
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 | | [email protected] | | [email protected] | \--------------------------------/ \--------------------------------/
[[ 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. ]]
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!!
Quoted 15 lines · Matt Porter
Quoted 2 lines · Scott Wood
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
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.
Signature · 10 lines
+---------------------+----------------------+ | 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. ]]
Quoted 2 lines
[...] 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
[email protected]
[[ 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. ]]