Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Strange hickups while trying to compile a kernel in a chroot
Date: Sat, 25 Feb 2017 14:16:33
Message-Id: 20170225141544.751bd999@digimed.co.uk
In Reply to: [gentoo-user] Strange hickups while trying to compile a kernel in a chroot by Meino.Cramer@gmx.de
1 On Sat, 25 Feb 2017 13:23:11 +0100, Meino.Cramer@×××.de wrote:
2
3 > make bImage fails with
4 >
5 > (chroot) make bzImage
6 > CHK include/config/kernel.release
7 > CHK include/generated/uapi/linux/version.h
8 > CHK include/generated/utsrelease.h
9 > CHK include/generated/bounds.h
10 > CHK include/generated/timeconst.h
11 > CHK include/generated/asm-offsets.h
12 > CALL scripts/checksyscalls.sh
13 > CHK include/generated/compile.h
14 > ./scripts/gen_initramfs_list.sh: Cannot open
15 > '/usr/share/v86d/initramfs' make[1]: *** [usr/Makefile:73:
16 > usr/initramfs_data.cpio.gz] Error 1 make: *** [Makefile:988: usr] Error
17 > 2
18 >
19 >
20 > I look for the magic v83d and found (being at my old root)
21 >
22 > [I] sys-apps/v86d
23 > Available versions: 0.1.10 {debug x86emu}
24 > Installed versions: 0.1.10(02:34:27 02/28/11)(x86emu -debug)
25 > Homepage:
26 > https://dev.gentoo.org/~spock/projects/uvesafb/ Description: A
27 > daemon to run x86 code in an emulated environment
28 >
29 > Is this "quite normal" or does the make process of the kernel make
30 > false conclusion while being chrooted?
31 >
32 > Do I really need initram? ... For years I though my grub had
33 > booted the kernel which runs my linux directlu...
34
35 Since kernel 2.6 (I think) the kernel has always had an initramfs built
36 in, this is separate from the standalone initramfs files built by the
37 likes of dracut. It is empty by default but it is there, so it is not
38 surprising to see build output relating to the intiramfs even if you do
39 not use one.
40
41 Are you cross-compiling here? That's the obvious reason for requiring
42 v86d. If not, there is no need to chroot to build a kernel, just cd to
43 its directory, although chrooting is needed to run make
44 {,modules_}install.
45
46
47 --
48 Neil Bothwick
49
50 USENET: Uniting Spammers, Erotomaniacs, Newbies, Extroverts and Trolls

Replies