Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193514 - [patch] add support for v86d in genkernel
Summary: [patch] add support for v86d in genkernel
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: Inclusion
: 195377 398473 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-23 12:51 UTC by Michal Januszewski (RETIRED)
Modified: 2017-08-14 17:26 UTC (History)
18 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add support for v86d in genkernel (genkernel-v86d.patch,3.33 KB, patch)
2007-09-23 12:52 UTC, Michal Januszewski (RETIRED)
Details | Diff
genkernel v86d patch (genkernel-v86d.patch,13.50 KB, patch)
2008-07-02 09:46 UTC, Ambroz Bizjak
Details | Diff
ebuild v86d patch (genkernel-ebuild-v86d.patch,1.56 KB, patch)
2008-07-02 09:47 UTC, Ambroz Bizjak
Details | Diff
genkernel v86d patch (genkernel-v86d.patch,13.49 KB, patch)
2008-07-02 10:11 UTC, Ambroz Bizjak
Details | Diff
genkernel v86d patch (genkernel-v86d.patch,13.50 KB, patch)
2008-07-11 20:32 UTC, Ambroz Bizjak
Details | Diff
genkernel v86d patch (genkernel-v86d.patch,14.44 KB, patch)
2008-07-11 22:31 UTC, Ambroz Bizjak
Details | Diff
genkernel-v86d-3.4.10.902.patch (genkernel-v86d-3.4.10.902.patch,7.68 KB, patch)
2008-12-14 19:12 UTC, Oleg German
Details | Diff
genkernel-3.4.10.902-r1.ebuild (genkernel-3.4.10.902-r1.ebuild,4.93 KB, text/plain)
2008-12-14 19:13 UTC, Oleg German
Details
Version bump (genkernel-v86d-3.4.10.903.patch,7.59 KB, patch)
2009-02-03 18:31 UTC, Oleg German
Details | Diff
With fixed klibc string (genkernel-3.4.10.903-r1.ebuild,4.92 KB, text/plain)
2009-02-03 18:32 UTC, Oleg German
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2007-09-23 12:51:39 UTC
In gentoo-sources-2.6.23, vesafb-tng will be replaced by uvesafb, which requires a userspace helper v86d (provided by sys-apps/v86d) to be present in the initramfs. The following patch adds v86d support for genkernel.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2007-09-23 12:52:48 UTC
Created attachment 131688 [details, diff]
add support for v86d in genkernel
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2007-09-23 16:48:22 UTC
We cannot accept this patch. If there is anything that needs to be included in the initramfs, it must be built/provided by genkernel itself instead of being pulled from the live system.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-09-23 16:48:59 UTC
Also, will the old tried 'n true vesafb still be hanging around?
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2007-09-23 17:17:54 UTC
It will.

If you cannot accept this patch, why does genkernel have built-in support for fbsplash? It uses splash_geninitramfs (from the live system), which in turn uses fbsplash themes (also from the live system).
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-09-23 19:58:33 UTC
The current support in genkernel doesn't have any bearing here, since we want to change it.  The reason we will not accept any patches which rely on the host file system is that we do not want to add more problems to be fixed later.  We are planning on changing *every* current option to being self-contained within genkernel and taking nothing *binary* from the running system.  Files/themes/etc are alright, so long as they're not arch-specific.

You'll also want to do the CMD_VD86 -> VD86 stuff in gen_determineargs.sh since we are also moving towards allowing all options to be set in the config file, and the CMD_* variables will be reserved for options specified on the command line.

I definitely want to get this support into genkernel ASAP, so if you need any help with this, let me know.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2007-10-10 16:14:32 UTC
*** Bug 195377 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-10-20 11:44:05 UTC
Comment on attachment 131688 [details, diff]
add support for v86d in genkernel

Well, this patch didn't quite work for me anyway -  thanks to spock for debugging help ;)

So, a working way to get 
uvesafb working with current genkernel, without any patching:

genkernel initrd --install --initramfs-overlay=/usr/share/v86d --splash=<theme> --splash-res=<resolution>
Comment 8 Michal Januszewski (RETIRED) gentoo-dev 2007-11-07 21:06:16 UTC
I suggest we close this bug as WONTFIX, if that's OK with everyone.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-07 21:57:40 UTC
Well, I do plan on adding proper support (without the use of an overlay) into genkernel.
Comment 10 Ambroz Bizjak 2008-07-02 09:46:07 UTC
I have created patches to genkernel-3.4.10 to properly support v86d. It compiles klibc, than compiles v86d against it. The compilation process and klibc patches are based on the ebuilds in portage. Unlike the klibc in portage, it is not compiled againt a bundled kernel patched with uvesafb, but agains the current kernel (which must be uvesafb patched anyway to make use of v86d) to reduce download size. I'm attaching the patches.
Comment 11 Ambroz Bizjak 2008-07-02 09:46:54 UTC
Created attachment 159251 [details, diff]
genkernel v86d patch
Comment 12 Ambroz Bizjak 2008-07-02 09:47:20 UTC
Created attachment 159253 [details, diff]
ebuild v86d patch
Comment 13 Ambroz Bizjak 2008-07-02 10:11:09 UTC
Created attachment 159255 [details, diff]
genkernel v86d patch

fixed two typos
Comment 14 Ambroz Bizjak 2008-07-11 20:32:54 UTC
Created attachment 160140 [details, diff]
genkernel v86d patch

extract klibc into temp, not user's current working directory
Comment 15 Ambroz Bizjak 2008-07-11 22:31:22 UTC
Created attachment 160151 [details, diff]
genkernel v86d patch

add v86d patch to work with 2.6.26 kernels
Comment 16 Oleg German 2008-12-14 19:12:11 UTC
Created attachment 175271 [details, diff]
genkernel-v86d-3.4.10.902.patch

Changes:
Fixed compilation on amd64 arch
Updated to use: klibc-1.5.12 and v86d-0.1.9
Patch cleanup
Added --with-x86emu option for v86d
Adapted to genkernel-3.4.10.902
Comment 17 Oleg German 2008-12-14 19:13:55 UTC
Created attachment 175274 [details]
genkernel-3.4.10.902-r1.ebuild

Ebuld to use with genkernel-v86d-3.4.10.902.patch
Comment 18 Michael Hordijk 2009-01-03 17:23:10 UTC
(In reply to comment #17)
> Ebuld to use with genkernel-v86d-3.4.10.902.patch

I think the ebuild is missing the line to install klibc to /var/cache/genkernel.

Comment 19 Oleg German 2009-02-03 18:31:11 UTC
Created attachment 180833 [details, diff]
Version bump
Comment 20 Oleg German 2009-02-03 18:32:23 UTC
Created attachment 180834 [details]
With fixed klibc string
Comment 21 Torsten Schmits 2009-07-22 15:44:13 UTC
Using the latest ebuild, I'm having trouble with klibc:

* Gentoo Linux Genkernel; Version 3.4.10.903
* Running with options: --mdadm --luks --splash=natural_gentoo --v86d initramfs

* Linux Kernel 2.6.29-gentoo-r4 for x86_64...
* v86d: >> Unpacking klibc...
* v86d: >> Compiling klibc...
  GEN     klcc/klibc.config
  GEN     klcc/klcc
  HOSTCC  scripts/basic/fixdep
  KLIBCCC usr/klibc/__static_init.o
  KLIBCCC usr/klibc/vsnprintf.o
In file included from usr/klibc/../include/sys/types.h:15,
                 from usr/klibc/../include/unistd.h:11,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory
In file included from usr/klibc/../include/unistd.h:11,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/klibc/../include/sys/types.h:16:23: error: asm/types.h: No such file or directory

What am I missing?
Comment 22 Xake 2010-03-12 09:52:52 UTC
I think it is quite ironic that the Official Gentoo Handbook recommends uvesafb, but genkernel (also recommended in the handbook) still has no support for it.
Comment 23 Mike Nerone 2010-12-24 09:55:37 UTC
Oh God, make it stop hurting.
Comment 24 Sebastian Pipping gentoo-dev 2011-01-05 22:40:22 UTC
PS: Adding keyword "Inclusion" and "[patch] " prefix to better show this bugs nature in searches...
Comment 25 Xake 2011-03-15 09:00:42 UTC
(In reply to comment #19)
> Created attachment 180833 [details, diff]
> Version bump

Is there anyone still working on this patch?

I took a look into it, and there are some things that needs to be addressed:

1, klibc: This should have its own compile_klibc, and get its own bincache tarball. v86d should then be built against this tarball. This will make both the patch and functions cleaner (every function should do as little as possible, but do those things very good).

2, v86d: append_v86d should only build v86d if it is not already present a static version of it on the host system, else this relly does not need to be built again.

3, sources: please base patches on upstream git and its experimental branch[1]. Here is where the action happens, that may later be backported into master.

Is there anyone working on this patch and that may address this?


[1] http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git
Comment 26 Pacho Ramos gentoo-dev 2013-08-23 11:00:14 UTC
*** Bug 398473 has been marked as a duplicate of this bug. ***
Comment 27 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-14 08:05:42 UTC
Note that v86d was removed:

commit 30c31bfe86f048a443baa523e9f487c38d950f24
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Mon Aug 14 09:56:21 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Mon Aug 14 10:02:53 2017

    sys-apps/v86d: Remove last-rited pkg, #606154

 profiles/arch/amd64/package.use.force |  4 ---
 profiles/package.mask                 |  5 ----
 sys-apps/v86d/Manifest                |  1 -
 sys-apps/v86d/metadata.xml            |  8 -----
 sys-apps/v86d/v86d-0.1.10.ebuild      | 56 -----------------------------------
 5 files changed, 74 deletions(-)