WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Environment for tc kernel build  (Read 6860 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Environment for tc kernel build
« Reply #15 on: October 13, 2011, 11:25:50 AM »
I agree it would be better to have matching sets, but it's so far happened that the kernel's been one of the first items in a new release - it's one of the most important components in the core.

I should mention that the 64-bit toolchain in 4.x has not changed from 3.x, it can be used to build the 64-bit modules.
The only barriers that can stop you are the ones you create yourself.

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: Environment for tc kernel build
« Reply #16 on: October 14, 2011, 06:55:52 AM »
Building the whole thing with toolchains made available in the current repo is probably what is expected.

If I want to build a matching (32-bit) kernel to that in TC4.x, I'll need to do it booted from TC3.x with its tools installed. Ok now I know, thanks.
« Last Edit: October 14, 2011, 07:03:37 AM by wdef »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Environment for tc kernel build
« Reply #17 on: October 14, 2011, 07:03:07 AM »
If I want to build a matching (32-bit) kernel to that in TC4.x, I'll need to do it booted from TC3.x with its tools installed. Ok now I know, thanks.

You can build Kernel practically on any other 2.6.x/3.0 LINUX system of course within certain limits, like CentOS, OpenSuSe, Fedora, ...
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: Environment for tc kernel build
« Reply #18 on: October 14, 2011, 07:14:50 AM »
Yes but the goal is to get a matching kernel and prepared source tree, not just the same kernel version. For that I'll need to use the same gcc and tools as was used to build TC4.x's if I want to insert modules built for TC4.x (which should have all been built with the TC3.x toolchain) without issues.  Of course I could get those on another system.

If built otherwise (with a different toolchain), modules will still insert and will most of the time still work without issues - but a gremlin may appear one day unexpectedly.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Environment for tc kernel build
« Reply #19 on: October 14, 2011, 07:30:30 AM »
What is matching kernel?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ke4nt

  • Retired Admins
  • Jr. Member
  • *****
  • Posts: 79
Re: Environment for tc kernel build
« Reply #20 on: January 25, 2012, 05:44:14 PM »
For example, if I compile a kernel module using the compiletc.tcz tools found in the 4.2.1 repository
( which has gcc ver. 4.6.1 , etc. )  and the kernel source available for linux-3.0.3-tinycore,
I cannot load the module, because it does not match the kernel.

So, while the module compiled successfully, when attempting to " insmod somedriver.ko "
it results in  "invalid module format"  and does not load. 

I will try using a TC. 3.6 installation, which has GCC 4.4.3,
but will the remainder of the tools in the compiletc.tcz extension, found in the TC 3.6 repository
work with the 3.0.3 kernel source?

....The CORE Lives....

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Environment for tc kernel build
« Reply #21 on: January 26, 2012, 06:22:24 AM »
This will be fixed in the coming 4.4. Yes, current 4.x kernel was built in 3.x.
The only barriers that can stop you are the ones you create yourself.