* [Buildroot] ARCH=mips and linux-2.6.30.2
@ 2009-09-24 16:27 Dominic Mason
2009-09-25 7:57 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Dominic Mason @ 2009-09-24 16:27 UTC (permalink / raw)
To: buildroot
Hi
Whilst building mips (mipsel) for an Alchemy AU1100 based system, I got
the following error whilst building the kernel:
CC arch/mips/lib/delay.o
arch/mips/lib/delay.c: In function '__udelay':
arch/mips/lib/delay.c:46: warning: right shift count >= width of type
arch/mips/lib/delay.c: In function '__ndelay':
arch/mips/lib/delay.c:54: error: 'us' undeclared (first use in this
function)
arch/mips/lib/delay.c:54: error: (Each undeclared identifier is reported
only once
arch/mips/lib/delay.c:54: error: for each function it appears in.)
make[1]: *** [arch/mips/lib/delay.o] Error 1
make: *** [arch/mips/lib] Error 2
This is using buildroot-2009-08 with kernel 2.6.30.2
For what it's worth, if you copy arch/mips/lib/delay.c
from a vanilla 2.6.30.4 kernel, then the error disappears.
However, the patch appears to have been missed from the 2.6.30.5 kernel,
where it re-appears.
The relevant lines in arch/mips/lib/delay.c should be:
__delay((us * 0x000010c7ull * HZ * lpj) >> 32);
and
__delay((ns * 0x00000005ull * HZ * lpj) >> 32);
which should replace
__delay((us * 0x000010c7 * HZ * lpj) >> 32);
and
__delay((us * 0x00000005 * HZ * lpj) >> 32);
Apologies for not being proficient enough to supply this as a patch.
It would appear that the above change exists in the vanilla linux-2.6.31
kernel from www.kernel.org
So this is really for information only, for anyone who gets this error
trying to compile a mips system using the 2.6.30.2 and 2.6.30.5 kernel.
--
Dominic Mason <dominic@opusvl.com>
Opus VL
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] ARCH=mips and linux-2.6.30.2
2009-09-24 16:27 [Buildroot] ARCH=mips and linux-2.6.30.2 Dominic Mason
@ 2009-09-25 7:57 ` Peter Korsgaard
2009-09-25 16:41 ` Dominic Mason
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-09-25 7:57 UTC (permalink / raw)
To: buildroot
>>>>> "Dominic" == Dominic Mason <dominic@opusvl.com> writes:
Hi,
Dominic> This is using buildroot-2009-08 with kernel 2.6.30.2
Dominic> For what it's worth, if you copy arch/mips/lib/delay.c
Dominic> from a vanilla 2.6.30.4 kernel, then the error disappears.
Really?
diff -u linux-2.6.30.{2,4}/arch/mips/lib/delay.c
(nothing)
It seems like this fix hasn't made it to any 2.6.30.x stable releases
yet, but is in mainline since 2.6.31-rc1.
I'll add the patch to kernel-headers, so it should get included if you
use git and select the simple Linux kernel option.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] ARCH=mips and linux-2.6.30.2
2009-09-25 7:57 ` Peter Korsgaard
@ 2009-09-25 16:41 ` Dominic Mason
0 siblings, 0 replies; 3+ messages in thread
From: Dominic Mason @ 2009-09-25 16:41 UTC (permalink / raw)
To: buildroot
On Fri, 2009-09-25 at 09:57 +0200, Peter Korsgaard wrote:
> Dominic> For what it's worth, if you copy arch/mips/lib/delay.c
> Dominic> from a vanilla 2.6.30.4 kernel, then the error disappears.
>
> Really?
>
> diff -u linux-2.6.30.{2,4}/arch/mips/lib/delay.c
> (nothing)
Oops, it's possible I'd downloaded a patched linux-2.6.30.4 archive from
somewhere, after doing some searching for that error. I've got a bz2 on
my system that I've just extracted again and that one was patched. Sorry
about that, 'twas a couple of weeks ago I did this, and have only just
got round to subscribing to the buildroot mailing list.
> I'll add the patch to kernel-headers, so it should get included if you
> use git and select the simple Linux kernel option.
Thanks for that.
Regards
--
Dominic Mason <dominic@opusvl.com>
Opus VL
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-25 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 16:27 [Buildroot] ARCH=mips and linux-2.6.30.2 Dominic Mason
2009-09-25 7:57 ` Peter Korsgaard
2009-09-25 16:41 ` Dominic Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox