Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel image bigger than KERNEL_IMAGE_SIZE");
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
R4ynS3yr
n00b
n00b


Joined: 28 Apr 2018
Posts: 2

PostPosted: Sat Apr 28, 2018 2:36 am    Post subject: kernel image bigger than KERNEL_IMAGE_SIZE"); Reply with quote

if posted in wrong container: please redirec as needed.

Hello.. Atempting build of kernel under sane environment same as has been succesful 4 times hence. running sabayon 4.14 opensuse 4.15 and arch 4.14 all personally rebuilt kernels - except this generic *safe* 4.9 old old old gentoo kernel just ***** hard and so had to try another avenue:
4.9 NEVER sees my hardrives.

Profile is 17.0 amd64 Gnome systemd multilib

double bootstrap ( i know it is uneeeded )and the rebuild of @world and then again for my insanity: so tired of it right now :)

Previously used the awesome old old old old 4.9.x kernel on gentoo install discs: to setup the system and build all - until the failures already mentioned:

all worked well until reboot : it (old 4.9 kernel) never saw the internal hardrives and only the usb as sda .... blah..blah ..

so .. made no sense. alwasy same config - minus or plus what ever versioning of kernel demanded changes.. basically alwasy use same config for base and then modify as needed. later after sucessful boot.

So installed linux-4.15.14-aufs kernel & headers/source and so on (aufs turned off)

on kernel build using same base .config as running 4.14.0 gentoo kernel that i am up and running on now.

I get this error: why??? please assist as to where to begin everthing looks fine.. I am stumped..

gotta be a ";" i am not seeing somewhere....simple but am at a loss. COuld it be the in-kernel firmware mentioned in first couple of lines???

********************* clip from end of build
INSTALL virt/lib/irqbypass.ko
DEPMOD 4.15.14-aufs-r4yn
* Installing firmware...
* (where supported; in-kernel firmware was dropped in 4.14)
make: *** No rule to make target 'firmware_install'. Stop.
* Creating initramfs (uncompressed)...
* Gentoo Linux Genkernel; Version 68
* Running with options: --install --no-mountboot --luks --lvm --no-gpg --udev --kernel-config=/usr/src/linux/.config --busybox --no-compress-initramfs --all-ramdisk-modules --firmware initramfs

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 4.15.14-aufs-r4yn for x86_64...
* .. with config file /usr/src/linux-4.15.14-aufs/.config
* busybox: >> Applying patches...
* - 1.18.1-openvt.diff
* - busybox-1.20.1-strict-atime.patch
* - busybox-1.20.2-glibc-sys-resource.patch
* - busybox-1.7.4-signal-hack.patch
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
* >> Appending base_layout cpio data...
* >> Appending udev cpio data...
cp: cannot stat '/etc/modprobe.d/blacklist.conf': No such file or directory
* cannot copy /etc/modprobe.d/blacklist.conf from udev
* >> Appending auxilary cpio data...
* >> Copying keymaps
* >> Appending busybox cpio data...
* >> Appending lvm cpio data...
* LVM: Adding support (copying binaries from system)...
* >> Appending luks cpio data...
* Including LUKS support
* >> Appending modules cpio data...
* >> Appending blkid cpio data...
* >> Skipping modprobed copy
* >> Appending firmware cpio data...
* >> Appending ld_so_conf cpio data...
* ldconfig: adding /sbin/ldconfig...
* ld.so.conf: adding /etc/ld.so.conf{.d/*,}...
cpio: usr/lib64 not created: newer or same age version exists
cpio: lib64 not created: newer or same age version exists
cpio: usr/lib64 not created: newer or same age version exists
cpio: lib64 not created: newer or same age version exists
cpio: lib64/libuuid.so.1 not created: newer or same age version exists
cpio: lib64/ld-linux-x86-64.so.2 not created: newer or same age version exists
cpio: lib64/libm.so.6 not created: newer or same age version exists
cpio: lib64/libdevmapper.so.1.02 not created: newer or same age version exists
cpio: lib64/libblkid.so.1 not created: newer or same age version exists
cpio: lib64/libpthread.so.0 not created: newer or same age version exists
cpio: lib64/librt.so.1 not created: newer or same age version exists
cpio: lib64/libc.so.6 not created: newer or same age version exists
cpio: lib64/libudev.so.1 not created: newer or same age version exists
cpio: usr/lib64 not created: newer or same age version exists
cpio: usr/lib64/libgcrypt.so.20 not created: newer or same age version exists
cpio: usr/lib64/libcryptsetup.so.4 not created: newer or same age version exists
cpio: usr/lib64/libgpg-error.so.0 not created: newer or same age version exists
cpio: lib64 not created: newer or same age version exists
cpio: lib64/libuuid.so.1 not created: newer or same age version exists
cpio: lib64/ld-linux-x86-64.so.2 not created: newer or same age version exists
cpio: lib64/libm.so.6 not created: newer or same age version exists
cpio: lib64/libdevmapper.so.1.02 not created: newer or same age version exists
cpio: lib64/libpthread.so.0 not created: newer or same age version exists
cpio: lib64/librt.so.1 not created: newer or same age version exists
cpio: lib64/libc.so.6 not created: newer or same age version exists
cpio: lib64/libudev.so.1 not created: newer or same age version exists
cpio: lib64 not created: newer or same age version exists
cpio: lib64/libuuid.so.1 not created: newer or same age version exists
cpio: lib64/ld-linux-x86-64.so.2 not created: newer or same age version exists
cpio: lib64/libblkid.so.1 not created: newer or same age version exists
cpio: lib64/libc.so.6 not created: newer or same age version exists
* >> Finalizing cpio...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* add "dolvm" for lvm support
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
'/boot/initramfs-genkernel-x86_64-4.15.14-aufs-r4yn' -> '/boot/initramfs.cpio'
* Unpacking initramfs cpio archive to /boot/initramfs...
1049780 blocks
* Copying static gpg program into initramfs...
'/usr/bin/staticgpg' -> '/boot/initramfs/usr/bin/gpg'
* Copying contents of /etc/modprobe.d directory into initramfs...
'/etc/modprobe.d/aliases.conf' -> '/boot/initramfs/etc/modprobe.d/aliases.conf'
'/etc/modprobe.d/i386.conf' -> '/boot/initramfs/etc/modprobe.d/i386.conf'
* Deleting old initramfs cpio archive, and repacking...
removed '/boot/initramfs.cpio'
removed '/boot/initramfs-genkernel-x86_64-4.15.14-aufs-r4yn'
1053653 blocks
'/boot/initramfs.cpio' -> '/boot/initramfs-genkernel-x86_64-4.15.14-aufs-r4yn'
* Building linux-4.15.14-aufs-r4yn (pass 2, to include real initramfs)...
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
DESCEND objtool
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
CHK include/generated/compile.h
CHK kernel/config_data.h
AR usr/built-in.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
AR init/built-in.o
AR built-in.o
LD vmlinux.o
MODPOST vmlinux.o
ld: kernel image bigger than KERNEL_IMAGE_SIZE
make: *** [Makefile:1014: vmlinux] Error 1

* buildkernel: Error: Caught signal - exiting
* buildkernel: Warning: Unmounting '/boot/efi'

(chroot) k053kr4yn / #
****************************

Or am i just missing it somewhere?

Thanks: for time and help.

The section in .../usr/src/linux/arch/x86/kernel #vmlinux.lds.S that of course renders the error - but what to do?

.......


#ifdef CONFIG_X86_32
/*
* The ASSERT() sink to . is intentional, for binutils 2.14 compatibility:
*/
. = ASSERT((_end - LOAD_OFFSET <= KERNEL_IMAGE_SIZE),
"kernel image bigger than KERNEL_IMAGE_SIZE");
#else
/*
* Per-cpu symbols which need to be offset from __per_cpu_load
* for the boot processor.
*/
#define INIT_PER_CPU(x) init_per_cpu__##x = x + __per_cpu_load
INIT_PER_CPU(gdt_page);
INIT_PER_CPU(irq_stack_union);

/*
* Build-time check on the image size:
*/
. = ASSERT((_end - _text <= KERNEL_IMAGE_SIZE),
"kernel image bigger than KERNEL_IMAGE_SIZE");
****
_________________
*The Invitation -by Oriah Mountain Dreamer -
...Can you?
Back to top
View user's profile Send private message
R4ynS3yr
n00b
n00b


Joined: 28 Apr 2018
Posts: 2

PostPosted: Sat Apr 28, 2018 4:20 am    Post subject: Reply with quote

ANSWERED:
removed loading (--firmware)
* Gentoo Linux Genkernel; Version 68
* Running with options: --install --no-mountboot --luks --lvm --no-gpg --udev --kernel-config=/usr/src/linux/.config --busybox --no-compress-initramfs --all-ramdisk-modules initramfs

Kernel boots UEFI flawlessly :) now to finish configuring rest of system and try to fix lack of firmware stupidity later : since no access until 'mount' time.

Anyone have ideas on how to include firmware:? question 8000 unanswered ...lol
_________________
*The Invitation -by Oriah Mountain Dreamer -
...Can you?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41404
Location: 56N 3W

PostPosted: Sat Apr 28, 2018 9:41 am    Post subject: Reply with quote

R4ynS3yr,

You are using an old version of genkernel.
Code:
make: *** No rule to make target 'firmware_install'. Stop.
is caused by a change to the kernel build system.
genkernel is trying to run a step that is no longer required.

Use the testing genkernel or genkernel-next. Both are testing.

The process for adding external firmware to the kernel binary has not changed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum