Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -u sys-kernel/raspberrypi-kernel fails for 5.10.11
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
blubberbaer
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2016
Posts: 81

PostPosted: Sun Aug 22, 2021 10:35 am    Post subject: emerge -u sys-kernel/raspberrypi-kernel fails for 5.10.11 Reply with quote

Hello all .....

emerge -u sys-kernel/raspberrypi-kernel fails with

Code:

 *   /boot/overlays/mz61581.dtbo
 *    /boot/overlays/maxtherm.dtbo
 *    /boot/overlays/adv7282m.dtbo
 *    /boot/overlays/ghost-amp.dtbo
 *    /boot/overlays/rpi-dac.dtbo
 *    /boot/overlays/disable-wifi.dtbo
 *    /boot/overlays/w1-gpio.dtbo
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * None of the installed packages claim the file(s).
 *
 * Package 'sys-kernel/raspberrypi-kernel-5.10.11' merged despite file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
 * ERROR: sys-kernel/raspberrypi-kernel-5.10.11::genpi64 failed (preinst phase):
 *   Release file /var/tmp/portage/sys-kernel/raspberrypi-kernel-5.10.11/image/usr/src/linux-5.10.11/include/config/kernel.release not installed!
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called pkg_preinst
 *   environment, line 2358:  Called kernel-install_pkg_preinst
 *   environment, line 1809:  Called die
 * The specific snippet of code:
 *       [[ ! -f ${relfile} ]] && die "Release file ${relfile} not installed!";



emerge --info '=sys-kernel/raspberrypi-kernel-5.10.11::genpi64

Code:

Portage 3.0.20 (python 3.9.6-final-0, default/linux/arm64/17.0, gcc-10.3.0, glibc-2.33-r1, 5.4.77-v8+ aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.77-v8+-aarch64-with-glibc2.33
KiB Mem:     7950112 total,   1715584 free
KiB Swap:   16382548 total,  16381772 free
Timestamp of repository gentoo: Thu, 19 Aug 2021 16:51:44 +0000
Head commit of repository gentoo: 46572ed469b9295372480d0377499d3030946836

Head commit of repository genpi-tools: 12d0b249851d714f59ee151ec14981e9c95e90be

Head commit of repository genpi64: 658fdc1276bfcd6dae710f4f95e9f7d636ab6245

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
distcc 3.4 aarch64-unknown-linux-gnu [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.8.11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.36.1-r2::gentoo
sys-devel/gcc:            8.4.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    sync-git-verify-commit-signature: true

genpi-tools
    location: /var/db/repos/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/GenPi64/sakaki-tools.git
    masters: gentoo
    priority: 50

genpi64
    location: /var/db/repos/genpi64
    sync-type: git
    sync-uri: https://github.com/GenPi64/genpi64-overlay.git
    masters: gentoo
    priority: 100
    sync-git-clone-extra-opts: --single-branch --branch master

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="  --usepkg-exclude 'sys-libs/binutils-libs'  --usepkg-exclude 'dev-lang/python-exec' --usepkg-exclude 'dev-util/systemtap' --usepkg-exclude 'dev-python/*' "
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="ssh://binpkg@pi4_01:7676/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 acl alsa apache2 arm64 bzip2 cli crypt dri egl elogind ffmpeg fortran gdbm gles1 gles2 gpm http iconv ipv6 jack libass libglvnd libtirpc modplug mp3 mpeg mysql ncurses nls nptl ogg opengl openmp opus oss pam pcre pulseaudio raspberry-pi readline rubberband seccomp speex split-usr ssh ssl tcpd theora twolame unicode v4l vaapi vorbis wavpack webp x264 xattr zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias session" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev vc4 v3d" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Any hints ?

Thanks,

blubberbaer

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3925

PostPosted: Sun Aug 22, 2021 3:03 pm    Post subject: Reply with quote

Do you have the 5.10.11 kernel tree dir in /usr/src?
If yes then go ahead and build it.
I think the conflicting files are a result of a "git clone" of rpi firmware or rpi kernel sources.
See
https://wiki.gentoo.org/wiki/Raspberry_Pi/Kernel_Compilation
_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 22, 2021 3:44 pm    Post subject: Reply with quote

alamahant,

That page says
Code:
Note
The official Raspberry Pi Foundation kernels are built 32-bit, which is appropriate for Raspberry Pi 1, 2, and 3 (running in 32-bit mode; recommended). This guide does not cover building a 64-bit kernel for the Raspberry Pi 3 (issues / unstable / not recommended).


and blubberbaer is using default/linux/arm64/17.0. That's 64 bit.

From
Code:
VIDEO_CARDS="fbdev vc4 v3d"
it looks like this is for a Pi4.
We need to know to advise the correct _defconfig to start with.
_________________
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
blubberbaer
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2016
Posts: 81

PostPosted: Sun Aug 22, 2021 3:53 pm    Post subject: Reply with quote

Dear NeddySeagoon,

Code:
Hardware   : BCM2835
Revision   : d03114
Serial   : 10000000d9acdfa7
Model   : Raspberry Pi 4 Model B Rev 1.4

does this help ?

Have fun and many thanks to you all .....

blubberbaer

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
blubberbaer
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2016
Posts: 81

PostPosted: Sun Aug 22, 2021 4:54 pm    Post subject: _defconfig Reply with quote

Mmmm I guess you are talking about bcm2711_defconfig. Sorry, had to duckduckgo a bit.

I had one useflag for the package raspberrypi-kernel enabled:

Code:

bcm2711
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 22, 2021 7:20 pm    Post subject: Reply with quote

blubberbaer,

That's it. :)

Where do you get sys-kernel/raspberrypi-kernel from, it's not in ::gentoo?
The ::gentoo repo has sys-kernel/raspberrypi-image and sys-kernel/raspberrypi-sources. Neither have a bcm2711 USE flag.

Beginning with the 5.10 kernel, the mainline kernel "mostly works" on the Pi 4 too.
_________________
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
blubberbaer
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2016
Posts: 81

PostPosted: Mon Aug 23, 2021 7:21 am    Post subject: Reply with quote

Dear NeddySeagoon,

Code:


sys-kernel/raspberrypi-kernel-5.10.11,genpi64


from

Code:

genpi64
    location: /var/db/repos/genpi64
    sync-type: git
    sync-uri: https://github.com/GenPi64/genpi64-overlay.git
    masters: gentoo
    priority: 100
    sync-git-clone-extra-opts: --single-branch --branch master


Have fun,

blubberbaer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM 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