Skip to contentSkip to conversation

How to build Kernel 2.6.x

Buildroot woody 5 participants 10 messages Nov 14, 2012

lore
Share & tools
lore

woody

author
#0 lore raw

Hi,

I want to build kernel version 2.6.16 for ARM (s3c2410). The 2.6.16 is not listed in either tool chains kernel headers options list or kernel version options list. What I can do is manual specify the version via the buildroot menus. However, it then failed in a stable of buidling toolchain, it complains that there is no a '.config' found under the kernel source directory and also not found the "headers_install" targets.

I've already manually downloaded the 2.6.16 tarball to the correct location that can be found by buildroot.

So, what should I do? Is may method wrong?

Thanks in advance!

Signature · 2 lines
woody
I can't go back to yesterday - because I was a different person then.
#1 lore raw

Dear woody,

Quoted 1 line · woody

I want to build kernel version 2.6.16 for ARM (s3c2410). The 2.6.16 is

Why 2.6.16 ? This is prehistory.

Quoted 10 lines

not listed in either tool chains kernel headers options list or kernel version options list. What I can do is manual specify the version via the buildroot menus. However, it then failed in a stable of buidling toolchain, it complains that there is no a '.config' found under the kernel source directory and also not found the "headers_install" targets.

I've already manually downloaded the 2.6.16 tarball to the correct location that can be found by buildroot.

So, what should I do? Is may method wrong?

Please post your Buildroot .config file and put your entire build log on some pastebin site (http://pastebin.com for example).

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

Woody, All,

Quoted 5 lines · On Wednesday 14 November 2012 15:31:58 Thomas Petazzoni wrote:
Quoted 1 line · woody

I want to build kernel version 2.6.16 for ARM (s3c2410). The 2.6.16 is

Why 2.6.16 ? This is prehistory.

And 2.6.16 does not know hos to headers_install. That came with 2.6.18, and not even for all archs. IIRC, headers_install for arm was mostly working at 2.6.20-something.

2.6.16 is tool old. Upgrade, and bang on your provider to upgrade.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'
author
#3 lore raw

? 2012-11-14 PM10:50?"Yann E. MORIN" <[email protected]>???

Quoted 7 lines

Woody, All,

Quoted 3 lines · On Wednesday 14 November 2012 15:31:58 Thomas Petazzoni wrote:
Quoted 1 line · woody

I want to build kernel version 2.6.16 for ARM (s3c2410). The 2.6.16

is

Quoted 9 lines
Quoted 2 lines

Why 2.6.16 ? This is prehistory.

And 2.6.16 does not know hos to headers_install. That came with 2.6.18, and not even for all archs. IIRC, headers_install for arm was mostly working at 2.6.20-something.

2.6.16 is tool old. Upgrade, and bang on your provider to upgrade.

Thanks for telling the information. I will try 2.6.20 and see whether the
error disappear.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121114/2f9e7f5b/attachment.html>

#4 lore raw

Dear Woody Wu,

Quoted 2 lines · Woody Wu

Thanks for telling the information. I will try 2.6.20 and see whether the error disappear.

Nooooo. If you're starting a project now, start with a recent kernel. 3.6 is the current one. Of course, check beforehand that there is support for one platform in the mainline Linux kernel.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
author
#5 lore raw

? 2012-11-14 PM11:03?"Thomas Petazzoni" <[email protected]

Quoted 7 lines

???

Dear Woody Wu,

Quoted 1 line · Woody Wu

Thanks for telling the information. I will try 2.6.20 and see whether

the

Quoted 5 lines
Quoted 1 line

error disappear.

Nooooo. If you're starting a project now, start with a recent kernel. 3.6 is the current one. Of course, check beforehand that there is support for one platform in the mainline Linux kernel.

Yes, 3.6 has the ARM support. The one reason I feel hestitate to use 3.6 is that I am not sure 3.6 will results in a zImage too large thant that I could got with 2.6. Do you have an experience in this? Thanks.

Quoted 9 lines

Best regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121114/fa94d6b7/attachment-0001.html>

#6 lore raw

Dear Woody Wu,

Quoted 1 line · Woody Wu

Yes, 3.6 has the ARM support.

The fact that is has ARM support does not mean that it will work on your particular board, using a particular ARM SoC. For sure the S3C2410 is supported. You didn't tell us which board you're using, so there's no way we can tell you.

Quoted 3 lines

The one reason I feel hestitate to use 3.6 is
that I am not sure 3.6 will results in a zImage too large thant that I could got with 2.6. Do you have an experience in this? Thanks.

Depends on what configuration options you enable in the kernel, and how small your zImage needs to be. Most likely on a S3C2410 based platform you have enough flash space to handle a reasonably sized zImage.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#7 lore raw
Quoted 7 lines · Thomas Petazzoni
Quoted 3 lines

The one reason I feel hestitate to use 3.6 is
that I am not sure 3.6 will results in a zImage too large thant that I could got with 2.6. Do you have an experience in this? Thanks.

Depends on what configuration options you enable in the kernel, and how small your zImage needs to be. Most likely on a S3C2410 based platform you have enough flash space to handle a reasonably sized zImage.

Not to mention the improvements regarding kernel compression.

Signature · 1 line
Richard Braun
#8 lore raw
In reply to Woody Wu
Quoted 11 lines
Quoted 5 lines

Nooooo. If you're starting a project now, start with a recent kernel.
3.6 is the current one. Of course, check beforehand that there is support for one platform in the mainline Linux kernel.

Yes, 3.6 has the ARM support. The one reason I feel hestitate to use 3.6 is that I am not sure 3.6 will results in a zImage too large thant that I could got with 2.6. Do you have an experience in this? Thanks.

in that case my advice would be to try 3.6 FIRST,

if it doesn't fit, optimize out what can be

if it still doesn't fit (and only then) should you try downgrading the kernel...

but do it in that order, do not jump to ancient kernel if you can avoid it, maintaining aging kernel is hard and costly, you will be much better if you start your project with the newest kernel

author
#9 lore raw
In reply to Thomas Petazzoni

? 2012-11-14 PM10:32?"Thomas Petazzoni" <[email protected]

Quoted 9 lines

???

Dear woody,

Quoted 1 line · woody

I want to build kernel version 2.6.16 for ARM (s3c2410). The 2.6.16 is

Why 2.6.16 ? This is prehistory.

I tried this is just because I got compiling error with other 2.6 kernel versions listed in buildroot kernel versions selection list. The error with those kernels is from lcd_backlight.c, saying a function reference is not declared.

Quoted 6 lines
Quoted 6 lines

not listed in either tool chains kernel headers options list or kernel version options list. What I can do is manual specify the version via the buildroot menus. However, it then failed in a stable of buidling toolchain, it complains that there is no a '.config' found under the kernel source directory and also not found the "headers_install"

targets.

Quoted 9 lines
Quoted 5 lines

I've already manually downloaded the 2.6.16 tarball to the correct location that can be found by buildroot.

So, what should I do? Is may method wrong?

Please post your Buildroot .config file and put your entire build log on some pastebin site (http://pastebin.com for example).

I will fist try some other pepople's suggestions in the thread to use the
2.6.20 kernel. If things still go bad, I will post detail info as you
suggested. Now I just lost the log. But I thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121114/e4f64d65/attachment.html>