* Newbie : Cross-compiling module for wrt54g
@ 2005-03-03 14:56 Christophe Jelger
2005-03-03 16:29 ` JP
2005-03-03 23:25 ` Waldemar Brodkorb
0 siblings, 2 replies; 5+ messages in thread
From: Christophe Jelger @ 2005-03-03 14:56 UTC (permalink / raw)
To: linux-mips
Hi everybody,
Well I am a complete newbie to using MIPS devices and I would like to
cross-compile an extra linux module for the Linksys wrt54g wireless
router. The module is not a standard linux module, it is an underlay
routing protocol (LUNAR) for wireless ad hoc networks.
I checked on the web, but I'm not sure on how I should proceed as many
information I found seem outdated.
If somebody could help me to get on tracks, I'd of course appreciate.
The issues I have are : tools to use, kernel-header files versions
(wrt54g uses 2.4.20, means do I have to compile on a 2.4.20 machine ?),
debugging on wrt54g (can I use standard log-file ?).
Looking forward to some help.
regards
Christophe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie : Cross-compiling module for wrt54g
2005-03-03 14:56 Newbie : Cross-compiling module for wrt54g Christophe Jelger
@ 2005-03-03 16:29 ` JP
2005-03-04 16:48 ` Christophe Jelger
2005-03-03 23:25 ` Waldemar Brodkorb
1 sibling, 1 reply; 5+ messages in thread
From: JP @ 2005-03-03 16:29 UTC (permalink / raw)
To: Christophe Jelger; +Cc: linux-mips
Christophe
> The issues I have are : tools to use, kernel-header files versions
> (wrt54g uses 2.4.20, means do I have to compile on a 2.4.20 machine ?),
> debugging on wrt54g (can I use standard log-file ?).
You'll need the header files that linksys used which may or may not be
different to the 2.4.10 vanilla kernel headers
for the wrt54g you can get the right code for your FW rev here.
http://www.linksys.com/support/gpl.asp
Here's a page about tools
http://www.linux-mips.org/wiki/index.php/Toolchains
You might need an older toolchain to build 2.4 kernels.
Anyone have any success on build 2.4.x with gcc 3.x?
Don't take my word for it though I've been using a recentish gcc-3.4.1
built using uclibc's buildroot to build
It was pretty easy to get working and install.
For our 2.4 kernels I used a montavista toolchain for the last few
years. mvista.com requires you register.
Happy hacking
--
JP <jaypee@hotpop.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie : Cross-compiling module for wrt54g
2005-03-03 16:29 ` JP
@ 2005-03-04 16:48 ` Christophe Jelger
2005-03-04 17:12 ` Ralf Baechle
0 siblings, 1 reply; 5+ messages in thread
From: Christophe Jelger @ 2005-03-04 16:48 UTC (permalink / raw)
To: linux-mips
Thanks to people who replied ... I will spend some time trying to build
the module and see what happens !
JP, I don't know if you meant compiling a standard (or a mips ?) 2.4
kernel with gcc 3.4.1, but I know it works with gcc 3.3.5 for the
standard kernel.
Regards
Christophe
JP wrote:
> (...)
>
> You might need an older toolchain to build 2.4 kernels.
> Anyone have any success on build 2.4.x with gcc 3.x?
>
> Don't take my word for it though I've been using a recentish gcc-3.4.1
> built using uclibc's buildroot to build
> It was pretty easy to get working and install.
>
> For our 2.4 kernels I used a montavista toolchain for the last few
> years. mvista.com requires you register.
>
> Happy hacking
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie : Cross-compiling module for wrt54g
2005-03-04 16:48 ` Christophe Jelger
@ 2005-03-04 17:12 ` Ralf Baechle
0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2005-03-04 17:12 UTC (permalink / raw)
To: Christophe Jelger; +Cc: linux-mips
On Fri, Mar 04, 2005 at 05:48:47PM +0100, Christophe Jelger wrote:
> Thanks to people who replied ... I will spend some time trying to build
> the module and see what happens !
>
> JP, I don't know if you meant compiling a standard (or a mips ?) 2.4
> kernel with gcc 3.4.1, but I know it works with gcc 3.3.5 for the
> standard kernel.
Compiling 2.4 with gcc 3.4 will fail for certain configurations. Even
where it successfully builds there is always the danger that a more
modern that is aggressive optimizer will do unexpected things to code -
and OS code is very fragile in that aspect. Thus I recommend to use only
2.95.3 ... 3.3 for Linux 2.4.
For 2.6 anything between 2.95.3 ... 4.0 has been tested - but 4.0 is still
a bit on the daring side while 3.4 has been tested well on many platforms.
Of course you may always be lucky - or have too much time on your hands ;-)
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Newbie : Cross-compiling module for wrt54g
2005-03-03 14:56 Newbie : Cross-compiling module for wrt54g Christophe Jelger
2005-03-03 16:29 ` JP
@ 2005-03-03 23:25 ` Waldemar Brodkorb
1 sibling, 0 replies; 5+ messages in thread
From: Waldemar Brodkorb @ 2005-03-03 23:25 UTC (permalink / raw)
To: Christophe Jelger; +Cc: linux-mips
Hi,
Christophe Jelger wrote,
> Hi everybody,
>
> Well I am a complete newbie to using MIPS devices and I would like to
> cross-compile an extra linux module for the Linksys wrt54g wireless
> router. The module is not a standard linux module, it is an underlay
> routing protocol (LUNAR) for wireless ad hoc networks.
>
> I checked on the web, but I'm not sure on how I should proceed as many
> information I found seem outdated.
>
> If somebody could help me to get on tracks, I'd of course appreciate.
> The issues I have are : tools to use, kernel-header files versions
> (wrt54g uses 2.4.20, means do I have to compile on a 2.4.20 machine ?),
> debugging on wrt54g (can I use standard log-file ?).
>
> Looking forward to some help.
You could try www.openwrt.org. There is even an experimental
version, which uses a kernel 2.4.29.
bye
Waldemar
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-04 17:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 14:56 Newbie : Cross-compiling module for wrt54g Christophe Jelger
2005-03-03 16:29 ` JP
2005-03-04 16:48 ` Christophe Jelger
2005-03-04 17:12 ` Ralf Baechle
2005-03-03 23:25 ` Waldemar Brodkorb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox