Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793086 - sys-kernel/genkernel support for mipsel cross-compile
Summary: sys-kernel/genkernel support for mipsel cross-compile
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
Depends on:
Reported: 2021-05-30 18:16 UTC by Aaron D Borden
Modified: 2021-10-15 12:53 UTC (History)
0 users

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

emerge --info (emerge-info.txt,5.26 KB, text/plain)
2021-05-30 18:16 UTC, Aaron D Borden
mipsel-unknown-linux-gnu-emerge --info (mipsel-unknown-linux-gnu-emerge-info.txt,4.81 KB, text/plain)
2021-05-30 18:16 UTC, Aaron D Borden
Detect mipsel as ARCH=mips (0001-Support-cross-compile-mipsel-unknown-linux-gnu.patch,770 bytes, patch)
2021-05-30 18:17 UTC, Aaron D Borden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron D Borden 2021-05-30 18:16:22 UTC
Created attachment 712623 [details]
emerge --info

I'm trying to cross-compile a kernel/initramfs for a mipsel-unknown-linux-gnu system.

I think that mipsel and mips64 are treated the same as mips with respect to the kernel, so I think a simple change to detect mipsel as ARCH=mips is enough. At least I was able to get a bootable kernel+initramfs with only this change.

$ sudo genkernel --integrated-initramfs --kernel-target=uImage.bin --kerneldi
r=/usr/mipsel-unknown-linux-gnu/usr/src/linux --kernel-config=/vagrant/config/kconfig --cross-
compile=mipsel-unknown-linux-gnu all
* Gentoo Linux Genkernel; Version 4.2.1
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --integrated-initramfs --kernel-target=uImage.bin --kerneldir=/usr/mipsel-unknown-linux-gnu/usr/src/linux --kernel-config=/vagrant/config/kconfig --cross-compile=mipsel-unknown-linux-gnu all
* ERROR: mipsel not yet supported by genkernel. Please add the arch-specific config file '/usr/share/genkernel/arch/mipsel/'!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
* Report any genkernel bugs to and
* assign your bug to Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
* Please do *not* report kernel compilation failures as genkernel bugs!
Comment 1 Aaron D Borden 2021-05-30 18:16:51 UTC
Created attachment 712626 [details]
mipsel-unknown-linux-gnu-emerge --info
Comment 2 Aaron D Borden 2021-05-30 18:17:54 UTC
Created attachment 712629 [details, diff]
Detect mipsel as ARCH=mips