WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Old kernel on new Core  (Read 8487 times)

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Old kernel on new Core
« on: May 09, 2013, 08:52:14 AM »
Are there any counterindications, recommendations (or just plain "doesn't work") towards running an older (2.6.3x) kernel on a newer (4.x) version of MicroCore? I'm trying to install it on older hardware (ISA-only AMD 5x86 (486dx5) single board computer) and I've tried about a dozen different 3.x kernel configurations but none of them give any sign of life or even debugging messages past "Decompressing linux... ok. Loading kernel."

All debug and verbose flags maxed out, tried output both on VGA and TTYS0, got zlich. Haven't seen that happen before. The 2.6.x kernels boot without any issue though. Admittedly I haven't tried the very latest 2.6.x ones, sticking to 2.6.27-2.6.32.

It's really a case of trying to have the benefits of the much larger app library of microcore 4.x as the apps I want to use on that system are absent from the 3.x archives. (end goal: headless gps-backed ntp server with character lcd interface)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Old kernel on new Core
« Reply #1 on: May 09, 2013, 09:04:41 AM »
If you add the modules related to your kernel to initrd it must work.
Béla
Ham Radio callsign: HA5DI

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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Old kernel on new Core
« Reply #2 on: May 09, 2013, 09:24:59 AM »
How much RAM does this board have?

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Re: Old kernel on new Core
« Reply #3 on: May 13, 2013, 08:44:19 AM »
64MB. Admittedly it's slow EDO DRAM but it's more than sufficient for my needs. 'Real' UARTs and a PC-104 bus are also pretty convenient.

I know, I could go with a RasPi, but what's the challenge in that? ;)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Old kernel on new Core
« Reply #4 on: May 13, 2013, 10:12:23 AM »
If you add the modules related to your kernel to initrd it must work.


With 64MB RAM only, replacing rather than adding modules may be preferable then.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11628
Re: Old kernel on new Core
« Reply #5 on: May 13, 2013, 10:25:52 AM »
Hi pmeslin
While adding/replacing the kernel related modules to the initrd should allow you to boot, there is still the matter of
applications/dependencies that are kernel version dependent to deal with. You would need to recompile those
against your kernel version, assuming they don't actually require a 3.x kernel.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Re: Old kernel on new Core
« Reply #6 on: May 13, 2013, 10:46:17 AM »
, there is still the matter of
applications/dependencies that are kernel version dependent to deal with. You would need to recompile those
against your kernel version, assuming they don't actually require a 3.x kernel.
Tell us which kernel version dependent applications you mean.
« Last Edit: May 13, 2013, 10:48:01 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Re: Old kernel on new Core
« Reply #7 on: May 13, 2013, 11:03:08 AM »
I'd be using a custom kernel either way due to the need for PPS support and other various tweaks (to support 10 serial ports), so initrd would be pretty much built from scratch.

I'll give it a try over the next few weeks due to shipping delays.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11628
Re: Old kernel on new Core
« Reply #8 on: May 13, 2013, 12:25:20 PM »
Hi bmarkus
Quote
Tell us which kernel version dependent applications you mean.
http://forum.tinycorelinux.net/index.php/topic,14792.msg84061.html#msg84061
I don't know if there are any apps that may be kernel sensitive.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Old kernel on new Core
« Reply #9 on: May 13, 2013, 12:35:54 PM »
Many apps have deps of kernel modules.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Old kernel on new Core
« Reply #10 on: May 13, 2013, 02:43:29 PM »
There are limits on how old a kernel you can use, by core components such as glibc and udev. You may want to double-check these, otherwise the boot will fail after the kernel.

BTW, if the very latest 3.9 kernel still fails on your hw, I'm sure the kernel folks would appreciate if you could bisect which change broke it.
« Last Edit: May 13, 2013, 02:46:52 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline pmeslin

  • Newbie
  • *
  • Posts: 19
Re: Old kernel on new Core
« Reply #11 on: May 19, 2013, 07:54:15 AM »
There are limits on how old a kernel you can use, by core components such as glibc and udev. You may want to double-check these, otherwise the boot will fail after the kernel.

BTW, if the very latest 3.9 kernel still fails on your hw, I'm sure the kernel folks would appreciate if you could bisect which change broke it.

With the removal of i386 support in the 3.7x / 3.8x? kernel series, I'm not sure how well an ISA-based i486 will be supported in the 3.9x. I'll have to give it a try but that kernel might be pretty bloated for such ancient hardware anyway­, even with a custom built "removed almost everything" kernel.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Old kernel on new Core
« Reply #12 on: May 19, 2013, 08:59:53 AM »
486 can't be removed in a while, due to the many embedded boards; ISA can't be removed as it still lives in current motherboards (superIO, various internal buses are really ISA). So they should work for some time.
The only barriers that can stop you are the ones you create yourself.