* [Buildroot] build error for nios2, based on kernel headers selection
@ 2007-10-09 20:38 Robert P. J. Day
2007-10-09 21:34 ` Bernhard Fischer
0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2007-10-09 20:38 UTC (permalink / raw)
To: buildroot
first time taking a crack at buildroot, selected "nios2", at which
point "toolchain/kernel_headers/Config.in" forced me into the only
legal selection of "Linux 2.6 snapshot" as the choice for kernel
headers.
but this caused the build to then break almost immediately with:
echo "uclibc" > /home/rpjday/buildroot/buildroot/project_build_nios2/uclibc/root/etc/hostname
wget --passive-ftp -P /home/rpjday/buildroot/buildroot/dl http://www.kernel.org/pub/linux/kernel/v2.6//linux-2.6..tar.bz2
--16:28:26-- http://www.kernel.org/pub/linux/kernel/v2.6//linux-2.6..tar.bz2
=> `/home/rpjday/buildroot/buildroot/dl/linux-2.6..tar.bz2'
Resolving www.kernel.org... 204.152.191.5, 204.152.191.37
Connecting to www.kernel.org|204.152.191.5|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
16:28:26 ERROR 404: Not Found.
note how the kernel tarball name is generated as
"linux-2.6..tar.bz2" which, not surprisingly, doesn't exist. i
haven't looked more closely but i'm guessing that, somewhere in the
build, it's not acceptable to just have "2.6" as the version of the
kernel headers.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] build error for nios2, based on kernel headers selection
2007-10-09 20:38 [Buildroot] build error for nios2, based on kernel headers selection Robert P. J. Day
@ 2007-10-09 21:34 ` Bernhard Fischer
2007-10-09 23:21 ` Robert P. J. Day
2007-10-10 8:14 ` Robert P. J. Day
0 siblings, 2 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-10-09 21:34 UTC (permalink / raw)
To: buildroot
On Tue, Oct 09, 2007 at 04:38:53PM -0400, Robert P. J. Day wrote:
>
> first time taking a crack at buildroot, selected "nios2", at which
Select BR2_DEPRECATED.
nios2 looks like not too well supported in various upstream packages.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] build error for nios2, based on kernel headers selection
2007-10-09 21:34 ` Bernhard Fischer
@ 2007-10-09 23:21 ` Robert P. J. Day
2007-10-10 20:06 ` Bernhard Fischer
2007-10-10 8:14 ` Robert P. J. Day
1 sibling, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2007-10-09 23:21 UTC (permalink / raw)
To: buildroot
On Tue, 9 Oct 2007, Bernhard Fischer wrote:
> On Tue, Oct 09, 2007 at 04:38:53PM -0400, Robert P. J. Day wrote:
> >
> > first time taking a crack at buildroot, selected "nios2", at which
>
> Select BR2_DEPRECATED.
> nios2 looks like not too well supported in various upstream packages.
that doesn't appear to change anything, and i wouldn't have expected
it to. what was the rationale in doing that?
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] build error for nios2, based on kernel headers selection
2007-10-09 21:34 ` Bernhard Fischer
2007-10-09 23:21 ` Robert P. J. Day
@ 2007-10-10 8:14 ` Robert P. J. Day
1 sibling, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2007-10-10 8:14 UTC (permalink / raw)
To: buildroot
On Tue, 9 Oct 2007, Bernhard Fischer wrote:
> On Tue, Oct 09, 2007 at 04:38:53PM -0400, Robert P. J. Day wrote:
> >
> > first time taking a crack at buildroot, selected "nios2", at which
>
> Select BR2_DEPRECATED.
> nios2 looks like not too well supported in various upstream packages.
i took a closer look at this and this has nothing to do with nios2
support. recall the snippet i posted from
toolchain/kernel-headers/Config.in:
...
config BR2_DEFAULT_KERNEL_HEADERS
string
default "2.4.25" if BR2_KERNEL_HEADERS_2_4_25
default "2.4.27" if BR2_KERNEL_HEADERS_2_4_27
default "2.4.29" if BR2_KERNEL_HEADERS_2_4_29
default "2.4.31" if BR2_KERNEL_HEADERS_2_4_31
default "2.6.9" if BR2_KERNEL_HEADERS_2_6_9
default "2.6.11" if BR2_KERNEL_HEADERS_2_6_11
default "2.6.12" if BR2_KERNEL_HEADERS_2_6_12
default "2.6.20.4" if BR2_KERNEL_HEADERS_2_6_20_4
default "2.6.20.20" if BR2_KERNEL_HEADERS_2_6_20
default "2.6.21.5" if BR2_KERNEL_HEADERS_2_6_21_5
default "2.6.21.7" if BR2_KERNEL_HEADERS_2_6_21
default "2.6.22.1" if BR2_KERNEL_HEADERS_2_6_22_1
default "2.6.22.9" if BR2_KERNEL_HEADERS_2_6_22
default "2.6" if BR2_KERNEL_HEADERS_SNAP
...
note how, if you choose nios2, you're *forced" to take the default
kernel headers version of "2.6", which has no sublevel value. this
causes immediate problems later on in .../kernel-headers-new.makefile,
here:
...
ifeq ($(LINUX_HEADERS_VERSION),)
# parse linux version string
LNXVER:=$(subst ., , $(strip $(DEFAULT_KERNEL_HEADERS)))
VERSION:=$(word 1, $(LNXVER))
PATCHLEVEL:=$(word 2, $(LNXVER))
SUBLEVEL:=$(word 3, $(LNXVER)) <---- whoops
EXTRAVERSION:=$(word 4, $(LNXVER))
LOCALVERSION:=
...
that snippet of makefile *clearly* assumes that there is a SUBLEVEL
value, which in this case isn't true. just as clearly, something has
to be adjusted. i'm surprised no one has stumbled over this before.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] build error for nios2, based on kernel headers selection
2007-10-09 23:21 ` Robert P. J. Day
@ 2007-10-10 20:06 ` Bernhard Fischer
2007-10-10 21:37 ` Robert P. J. Day
0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-10-10 20:06 UTC (permalink / raw)
To: buildroot
On Tue, Oct 09, 2007 at 07:21:23PM -0400, Robert P. J. Day wrote:
>On Tue, 9 Oct 2007, Bernhard Fischer wrote:
>
>> On Tue, Oct 09, 2007 at 04:38:53PM -0400, Robert P. J. Day wrote:
>> >
>> > first time taking a crack at buildroot, selected "nios2", at which
>>
>> Select BR2_DEPRECATED.
>> nios2 looks like not too well supported in various upstream packages.
>
>that doesn't appear to change anything,
Sure it does. Look carefully.
> and i wouldn't have expected
>it to.
I expect it to show you some waaay outdated kernel headers.
> what was the rationale in doing that?
The rational was that you're presented some very outdated kernel-headers
that you can select for nios2.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] build error for nios2, based on kernel headers selection
2007-10-10 20:06 ` Bernhard Fischer
@ 2007-10-10 21:37 ` Robert P. J. Day
0 siblings, 0 replies; 6+ messages in thread
From: Robert P. J. Day @ 2007-10-10 21:37 UTC (permalink / raw)
To: buildroot
On Wed, 10 Oct 2007, Bernhard Fischer wrote:
> On Tue, Oct 09, 2007 at 07:21:23PM -0400, Robert P. J. Day wrote:
> >On Tue, 9 Oct 2007, Bernhard Fischer wrote:
> >
> >> On Tue, Oct 09, 2007 at 04:38:53PM -0400, Robert P. J. Day wrote:
> >> >
> >> > first time taking a crack at buildroot, selected "nios2", at which
> >>
> >> Select BR2_DEPRECATED.
> >> nios2 looks like not too well supported in various upstream packages.
> >
> >that doesn't appear to change anything,
>
> Sure it does. Look carefully.
ok, i'll go back and pay more careful attention. thanks.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-10 21:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09 20:38 [Buildroot] build error for nios2, based on kernel headers selection Robert P. J. Day
2007-10-09 21:34 ` Bernhard Fischer
2007-10-09 23:21 ` Robert P. J. Day
2007-10-10 20:06 ` Bernhard Fischer
2007-10-10 21:37 ` Robert P. J. Day
2007-10-10 8:14 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox