* [Buildroot] How to change kernel version
@ 2007-08-19 13:08 Thiago A. Corrêa
2007-08-19 13:28 ` Philippe Ney
0 siblings, 1 reply; 12+ messages in thread
From: Thiago A. Corrêa @ 2007-08-19 13:08 UTC (permalink / raw)
To: buildroot
Hi,
I searched over the archives but I couldn't find anything about how
one could change the kernel version. The only available option for
AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
drivers, so I would like to change it to 2.6.18 which actually works.
Kind Regards,
Thiago A. Correa
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-19 13:08 [Buildroot] How to change kernel version Thiago A. Corrêa
@ 2007-08-19 13:28 ` Philippe Ney
2007-08-19 14:51 ` Ulf Samuelsson
0 siblings, 1 reply; 12+ messages in thread
From: Philippe Ney @ 2007-08-19 13:28 UTC (permalink / raw)
To: buildroot
> Hi,
>
> I searched over the archives but I couldn't find anything about how
> one could change the kernel version. The only available option for
> AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> drivers, so I would like to change it to 2.6.18 which actually works.
>
> Kind Regards,
> Thiago A. Correa
Hi,
Check the makefiles (Makefile.in, *.mk) to find which one define the linux
kernel you build. Its name should be linux.mk. And you can change the
kernel version directly in this file.
Or if you want configuration options, modify the Config.in file related to
kernel choice for your platforme.
Philippe
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-19 13:28 ` Philippe Ney
@ 2007-08-19 14:51 ` Ulf Samuelsson
2007-08-19 14:56 ` Thiago A. Corrêa
0 siblings, 1 reply; 12+ messages in thread
From: Ulf Samuelsson @ 2007-08-19 14:51 UTC (permalink / raw)
To: buildroot
s?n 2007-08-19 klockan 15:28 +0200 skrev Philippe Ney:
> > Hi,
> >
> > I searched over the archives but I couldn't find anything about how
> > one could change the kernel version. The only available option for
> > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > drivers, so I would like to change it to 2.6.18 which actually works.
> >
> > Kind Regards,
> > Thiago A. Correa
>
> Hi,
>
> Check the makefiles (Makefile.in, *.mk) to find which one define the linux
> kernel you build. Its name should be linux.mk. And you can change the
> kernel version directly in this file.
>
Did you try this?
AFAIK, this will cause the build to fail.
The kernel headers and the kernel have to be the same.
The vanilla 2.6.18 does not have any support for AVR32.
There are no AVR32 patches for 2.6.18 in buildroot.
Will be much simpler to not set the linux option
and build it outside.
> Or if you want configuration options, modify the Config.in file related to
> kernel choice for your platforme.
>
> Philippe
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-19 14:51 ` Ulf Samuelsson
@ 2007-08-19 14:56 ` Thiago A. Corrêa
2007-08-19 18:56 ` Ulf Samuelsson
0 siblings, 1 reply; 12+ messages in thread
From: Thiago A. Corrêa @ 2007-08-19 14:56 UTC (permalink / raw)
To: buildroot
Hi Ulf,
Not yet, I'm still unable to find the right place.
In target/device/Atmel/Makefile.in there is a
LINUX26_VERSION=$(LINUX_HEADERS_VERSION) but my grep for that
variable doesn't seam to reveal anything usable *g*.
I was planning on adding the patches from avr32linux.org into the
buildroot patches folder.
There is also another problem with the vanilla buildroot, it tries
to download a version of uClibc from atmel ftp that doesn't exist
according to wget error, so I was about to try this on the atmel
snapshot of buildroot.
On 8/19/07, Ulf Samuelsson <ulf@atmel.com> wrote:
> s?n 2007-08-19 klockan 15:28 +0200 skrev Philippe Ney:
> > > Hi,
> > >
> > > I searched over the archives but I couldn't find anything about how
> > > one could change the kernel version. The only available option for
> > > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > > drivers, so I would like to change it to 2.6.18 which actually works.
> > >
> > > Kind Regards,
> > > Thiago A. Correa
> >
> > Hi,
> >
> > Check the makefiles (Makefile.in, *.mk) to find which one define the linux
> > kernel you build. Its name should be linux.mk. And you can change the
> > kernel version directly in this file.
> >
>
> Did you try this?
> AFAIK, this will cause the build to fail.
> The kernel headers and the kernel have to be the same.
>
> The vanilla 2.6.18 does not have any support for AVR32.
> There are no AVR32 patches for 2.6.18 in buildroot.
>
> Will be much simpler to not set the linux option
> and build it outside.
>
>
> > Or if you want configuration options, modify the Config.in file related to
> > kernel choice for your platforme.
> >
> > Philippe
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 12+ messages in thread* [Buildroot] How to change kernel version
2007-08-19 14:56 ` Thiago A. Corrêa
@ 2007-08-19 18:56 ` Ulf Samuelsson
0 siblings, 0 replies; 12+ messages in thread
From: Ulf Samuelsson @ 2007-08-19 18:56 UTC (permalink / raw)
To: buildroot
s?n 2007-08-19 klockan 15:56 +0100 skrev Thiago A. Corr?a:
> Hi Ulf,
>
> Not yet, I'm still unable to find the right place.
> In target/device/Atmel/Makefile.in there is a
> LINUX26_VERSION=$(LINUX_HEADERS_VERSION) but my grep for that
> variable doesn't seam to reveal anything usable *g*.
>
> I was planning on adding the patches from avr32linux.org into the
> buildroot patches folder.
>
Don't bother, they are old...
The predefined toolchain in the buildroot trunk contains newer stuff.
> There is also another problem with the vanilla buildroot, it tries
> to download a version of uClibc from atmel ftp that doesn't exist
> according to wget error, so I was about to try this on the atmel
> snapshot of buildroot.
>
Checked, and I now know the problem.
It is in the "target/device/Toolchain.in" file.
BR2_VENDOR_SITE is wrong...
replace
$(BR2_ATMEL_MIRROR)
with
"$(BR2_ATMEL_MIRROR)/Source"
so it reads:
config BR2_VENDOR_SITE
string
default "$(BR2_ATMEL_MIRROR)/Source" if
Will fix this ASAP.
BR
Ulf Samuelsson
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
@ 2007-08-19 2:40 Thiago A. Corrêa
2007-08-19 12:47 ` Ulf Samuelsson
2007-08-27 10:53 ` Hans-Christian Egtvedt
0 siblings, 2 replies; 12+ messages in thread
From: Thiago A. Corrêa @ 2007-08-19 2:40 UTC (permalink / raw)
To: buildroot
Hi,
I searched over the archives but I couldn't find anything about how
one could change the kernel version. The only available option for
AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
drivers, so I would like to change it to 2.6.18 which actually works.
Kind Regards,
Thiago A. Correa
^ permalink raw reply [flat|nested] 12+ messages in thread* [Buildroot] How to change kernel version
2007-08-19 2:40 Thiago A. Corrêa
@ 2007-08-19 12:47 ` Ulf Samuelsson
2007-08-20 17:26 ` Benjamin Tietz
2007-08-27 10:53 ` Hans-Christian Egtvedt
1 sibling, 1 reply; 12+ messages in thread
From: Ulf Samuelsson @ 2007-08-19 12:47 UTC (permalink / raw)
To: buildroot
----- Original Message -----
From: "Thiago A. Corr?a" <thiago.correa@gmail.com>
To: <buildroot@uclibc.org>
Sent: Sunday, August 19, 2007 4:40 AM
Subject: [Buildroot] How to change kernel version
> Hi,
>
> I searched over the archives but I couldn't find anything about how
> one could change the kernel version. The only available option for
> AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> drivers, so I would like to change it to 2.6.18 which actually works.
>
> Kind Regards,
> Thiago A. Correa
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
That is simple, you can't do it within buildroot!!!
I am working on a patch to allow users to use any kernel version
But that will require the kernel to be 2.6.19 minimum.
The best option is to build it outside buildroot and just
create a path to the tools in $(STAGING_DIR)
Best Regards
Ulf Samuelsson
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-19 12:47 ` Ulf Samuelsson
@ 2007-08-20 17:26 ` Benjamin Tietz
2007-08-20 18:13 ` Thiago A. Corrêa
0 siblings, 1 reply; 12+ messages in thread
From: Benjamin Tietz @ 2007-08-20 17:26 UTC (permalink / raw)
To: buildroot
On Sun, Aug 19, 2007 at 02:47:35PM +0200, Ulf Samuelsson wrote:
> ----- Original Message -----
> From: "Thiago A. Corr?a" <thiago.correa@gmail.com>
> To: <buildroot@uclibc.org>
> Sent: Sunday, August 19, 2007 4:40 AM
> Subject: [Buildroot] How to change kernel version
>
>
> > Hi,
> >
> > I searched over the archives but I couldn't find anything about how
> > one could change the kernel version. The only available option for
> > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > drivers, so I would like to change it to 2.6.18 which actually works.
> >
> > Kind Regards,
> > Thiago A. Correa
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
>
> That is simple, you can't do it within buildroot!!!
Nope, it is possible, but thanks to ulf more difficult than necessary.
First you should edit buildroot/toolchain/kernel-headers/Config.in and
remove that "!BR2_avr32 &&" on the kernelversion you want to build.
Afterwards fetch the correct patchfile from www.avr32linux.org and save
it in the same dir buildroot/toolchain/kernel-headers under a name
like linux-2.6.18-avr32.patch
afterwards it should do, what you expect. I hope I didn't forget
anything.
best regards
Benjamin
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-20 17:26 ` Benjamin Tietz
@ 2007-08-20 18:13 ` Thiago A. Corrêa
2007-08-21 17:18 ` Benjamin Tietz
0 siblings, 1 reply; 12+ messages in thread
From: Thiago A. Corrêa @ 2007-08-20 18:13 UTC (permalink / raw)
To: buildroot
Thanks Benjamin. I tried with .20 but had build errors for some weird
reason. Didn't try .18 that I know is working since I was told the
minimum would be .19, but will give this a shot.
Right now I am trying to build the whole thing with .22, so I would
only have to find a way to fix the kernel.
On 8/20/07, Benjamin Tietz <benjamin@micronet24.de> wrote:
> On Sun, Aug 19, 2007 at 02:47:35PM +0200, Ulf Samuelsson wrote:
> > ----- Original Message -----
> > From: "Thiago A. Corr?a" <thiago.correa@gmail.com>
> > To: <buildroot@uclibc.org>
> > Sent: Sunday, August 19, 2007 4:40 AM
> > Subject: [Buildroot] How to change kernel version
> >
> >
> > > Hi,
> > >
> > > I searched over the archives but I couldn't find anything about how
> > > one could change the kernel version. The only available option for
> > > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > > drivers, so I would like to change it to 2.6.18 which actually works.
> > >
> > > Kind Regards,
> > > Thiago A. Correa
> > > _______________________________________________
> > > buildroot mailing list
> > > buildroot at uclibc.org
> > > http://busybox.net/mailman/listinfo/buildroot
> >
> > That is simple, you can't do it within buildroot!!!
> Nope, it is possible, but thanks to ulf more difficult than necessary.
>
> First you should edit buildroot/toolchain/kernel-headers/Config.in and
> remove that "!BR2_avr32 &&" on the kernelversion you want to build.
>
> Afterwards fetch the correct patchfile from www.avr32linux.org and save
> it in the same dir buildroot/toolchain/kernel-headers under a name
> like linux-2.6.18-avr32.patch
>
> afterwards it should do, what you expect. I hope I didn't forget
> anything.
>
> best regards
> Benjamin
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-20 18:13 ` Thiago A. Corrêa
@ 2007-08-21 17:18 ` Benjamin Tietz
0 siblings, 0 replies; 12+ messages in thread
From: Benjamin Tietz @ 2007-08-21 17:18 UTC (permalink / raw)
To: buildroot
On Mon, Aug 20, 2007 at 07:13:11PM +0100, Thiago A. Corr?a wrote:
> Thanks Benjamin. I tried with .20 but had build errors for some weird
> reason. Didn't try .18 that I know is working since I was told the
> minimum would be .19, but will give this a shot.
>
> Right now I am trying to build the whole thing with .22, so I would
> only have to find a way to fix the kernel.
Another thing would be to use the git-repository of H. Skinnemoen
git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6.git
making a (soft-)link from your build_avr32/linux-2.6.22 to the directory
you fetched this in, you only have to "touch .unpacked; touch .patched"
int that dir and you can use it via the buildroot-environment.
>
> On 8/20/07, Benjamin Tietz <benjamin@micronet24.de> wrote:
> > On Sun, Aug 19, 2007 at 02:47:35PM +0200, Ulf Samuelsson wrote:
> > > ----- Original Message -----
> > > From: "Thiago A. Corr?a" <thiago.correa@gmail.com>
> > > To: <buildroot@uclibc.org>
> > > Sent: Sunday, August 19, 2007 4:40 AM
> > > Subject: [Buildroot] How to change kernel version
> > >
> > >
> > > > Hi,
> > > >
> > > > I searched over the archives but I couldn't find anything about how
> > > > one could change the kernel version. The only available option for
> > > > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > > > drivers, so I would like to change it to 2.6.18 which actually works.
> > > >
> > > > Kind Regards,
> > > > Thiago A. Correa
> > > > _______________________________________________
> > > > buildroot mailing list
> > > > buildroot at uclibc.org
> > > > http://busybox.net/mailman/listinfo/buildroot
> > >
> > > That is simple, you can't do it within buildroot!!!
> > Nope, it is possible, but thanks to ulf more difficult than necessary.
> >
> > First you should edit buildroot/toolchain/kernel-headers/Config.in and
> > remove that "!BR2_avr32 &&" on the kernelversion you want to build.
> >
> > Afterwards fetch the correct patchfile from www.avr32linux.org and save
> > it in the same dir buildroot/toolchain/kernel-headers under a name
> > like linux-2.6.18-avr32.patch
> >
> > afterwards it should do, what you expect. I hope I didn't forget
> > anything.
> >
> > best regards
> > Benjamin
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at uclibc.org
> > http://busybox.net/mailman/listinfo/buildroot
> >
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-19 2:40 Thiago A. Corrêa
2007-08-19 12:47 ` Ulf Samuelsson
@ 2007-08-27 10:53 ` Hans-Christian Egtvedt
2007-08-28 1:29 ` Thiago A. Corrêa
1 sibling, 1 reply; 12+ messages in thread
From: Hans-Christian Egtvedt @ 2007-08-27 10:53 UTC (permalink / raw)
To: buildroot
On Sun, 2007-08-19 at 03:40 +0100, Thiago A. Corr?a wrote:
> Hi,
>
> I searched over the archives but I couldn't find anything about how
> one could change the kernel version. The only available option for
> AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> drivers, so I would like to change it to 2.6.18 which actually works.
You could also attack the problem with the 2.6.22 kernel. AFAIK the bug
is not in the MMC driver, but the MMC core. A small change seems to
correct the problem for AVR32.
See this thread for patch and information:
http://avr32linux.org/archives/kernel/2007-August/000240.html
Also, if your kernel is just booting too fast for the MMC layer to
detect the partitions, adding "rootwait=1" to the bootargs in u-boot
will let the kernel wait for the root partition to pop up.
--
With kind regards,
Hans-Christian Egtvedt, Applications Engineer
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] How to change kernel version
2007-08-27 10:53 ` Hans-Christian Egtvedt
@ 2007-08-28 1:29 ` Thiago A. Corrêa
0 siblings, 0 replies; 12+ messages in thread
From: Thiago A. Corrêa @ 2007-08-28 1:29 UTC (permalink / raw)
To: buildroot
Hi,
> > I searched over the archives but I couldn't find anything about how
> > one could change the kernel version. The only available option for
> > AVR32, 2.6.22, is unable to boot on an STK1000 due to a bug in the MMC
> > drivers, so I would like to change it to 2.6.18 which actually works.
>
> You could also attack the problem with the 2.6.22 kernel. AFAIK the bug
> is not in the MMC driver, but the MMC core. A small change seems to
> correct the problem for AVR32.
>
> See this thread for patch and information:
>
> http://avr32linux.org/archives/kernel/2007-August/000240.html
Nope, this patch doesn't work on either of my sdcards, and have been
reported on avrfreaks as working just sometimes. One of them being the
one that came with the STK1000.
>
> Also, if your kernel is just booting too fast for the MMC layer to
> detect the partitions, adding "rootwait=1" to the bootargs in u-boot
> will let the kernel wait for the root partition to pop up.
>
There already :(
I'm hoping that 2.6.23-rc3 changes to MMC has fixed it. But
unfortunally using make menuconfig in buildroot and changing options
at the "Linux Experimental" does nothing at all (at least in AVR32)
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2007-08-28 1:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 13:08 [Buildroot] How to change kernel version Thiago A. Corrêa
2007-08-19 13:28 ` Philippe Ney
2007-08-19 14:51 ` Ulf Samuelsson
2007-08-19 14:56 ` Thiago A. Corrêa
2007-08-19 18:56 ` Ulf Samuelsson
-- strict thread matches above, loose matches on Subject: below --
2007-08-19 2:40 Thiago A. Corrêa
2007-08-19 12:47 ` Ulf Samuelsson
2007-08-20 17:26 ` Benjamin Tietz
2007-08-20 18:13 ` Thiago A. Corrêa
2007-08-21 17:18 ` Benjamin Tietz
2007-08-27 10:53 ` Hans-Christian Egtvedt
2007-08-28 1:29 ` Thiago A. Corrêa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox