Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 793086

Summary: sys-kernel/genkernel support for mipsel cross-compile
Product: Gentoo Hosted Projects Reporter: Aaron D Borden <adborden>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
mipsel-unknown-linux-gnu-emerge --info
Detect mipsel as ARCH=mips

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/config.sh'!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. 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