Page MenuHomeFreeBSD

Bump version of emulated Linux kernel to 2.6.18 in FreeBSD 9
ClosedPublic

Authored by rene on Feb 24 2016, 8:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 8, 10:08 PM
Unknown Object (File)
Thu, Dec 26, 9:15 PM
Unknown Object (File)
Nov 1 2024, 2:05 AM
Unknown Object (File)
Oct 2 2024, 1:09 PM
Unknown Object (File)
Oct 2 2024, 10:50 AM
Unknown Object (File)
Oct 2 2024, 12:55 AM
Unknown Object (File)
Sep 30 2024, 3:59 PM
Unknown Object (File)
Sep 30 2024, 1:37 PM
Subscribers

Details

Summary

The Linux emulation in FreeBSD 9 (9.3, 9-STABLE) currently reports kernel version 2.6.16, which is too low for the emulators/linux-c6* ports. These ports require kernel version 2.6.18 or later. Change the Linux emulator to report kernel version 2.6.18 instead (sysctl compat.linux.osrelease). This in turn allows us to run the linux-c6-* ports by default on FreeBSD 9 and to remove the Linux Fedora 10 ports which are long past their EOL.

This is a direct patch to stable/9 , as FreeBSD 10 and HEAD emulate Linux kernel 2.6.32 by default.

Test Plan
  1. Build modified Linux emulator for amd64 and i386 (done)
  2. Load modified linux.ko into a VM running FreeBSD 9.3-i386 and run some Linux programs with the linux-c6-* ports (todo, but already tested OK with manually bumping compat.linux.osrelease)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rene retitled this revision from to Bump version of emulated Linux kernel to 2.6.18 in FreeBSD 9.
rene updated this object.
rene edited the test plan for this revision. (Show Details)
rene added a reviewer: des.
rene set the repository for this revision to rS FreeBSD src repository - subversion.

I tested the patch in a 9.3-i386 VM, the screenshot is available at https://rene-ladan.nl/linux-c6-opera-on-freebsd93.png

This is a direct patch to stable/9 , as FreeBSD 10 and HEAD emulate Linux kernel 2.6.32 by default.

Before 2.6.32 there was 2.6.18 bump: rS271982 + rS271990 = rS275807 in /stable/10.

This is a direct patch to stable/9 , as FreeBSD 10 and HEAD emulate Linux kernel 2.6.32 by default.

Before 2.6.32 there was 2.6.18 bump: rS271982 + rS271990 = rS275807 in /stable/10.

I didn't notice this before, I will MFC the two commits to stable/9

Properly MFC earlier commits as suggested by jbeich.

The revision number/date in UPDATING needs to be updated once this is committed? As the idea is to remove the -f10 ports, a message about this should be added to UPDATING in a follow-up commit.

Mergeinfo added but this does not show up in Phabricator?

As suggested by des, bump __FreeBSD_version in sys/sys/param.h

dchagin edited edge metadata.
This revision is now accepted and ready to land.Feb 29 2016, 5:06 PM
This revision was automatically updated to reflect the committed changes.