Author Topic: Trouble compiling Gemini Linux kernel  (Read 4882 times)

oesf@kenny.cat

  • Newbie
  • *
  • Posts: 4
    • View Profile
Trouble compiling Gemini Linux kernel
« on: October 02, 2019, 04:50:43 am »
I'm trying to compile my own kernel (namely, to try and disable CPU hotplugging).
I'm hitting a few roadblocks while compiling it.

I am following the Kernel Compilation guide from here: https://github.com/gemian/gemini-keyboard-a...rnelCompilation
with the Kernel configuration from here: https://www.mygnu.de/2019/03/modular-linux-...h-cutpaste-fix/

I have not yet made any changes to the kernel config, I'm trying to get a bootable kernel first before making modifications.

I tried building using the GCC in the Ubuntu package repositories: https://pastebin.com/dyKbRmQe
and using the Google GCC: https://pastebin.com/xrpWjDWt

Can anyone point out to me what I'm doing wrong to get the kernel built?

Thanks a lot!

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Trouble compiling Gemini Linux kernel
« Reply #1 on: October 02, 2019, 08:14:13 am »
The gemian kernels are built from the 'native' branch this would work if you were to build on device, and my test builds are built from the 'packaging7' branch. The only differences in those branches should be the crossbuilding config in the packaging branch. Please ignore the p8 branch which is a broken shelved WIP trying to update to the android 8 based kernel release.

I do a 'debuild -b -uc -us' within the checked out version of the kernel sources, which gives me a package that I can install on the device, which then does the final parts of the image making there, initramfs etc.

I do the cross building within a debian stretch lxc container as its compiler is known to work with our sources, the buster versions of the compiler sadly fails to give a booting kernel.

I've basically given up with the p8 branch as not enough of an update and so am currently working on a mainline kernel, which at least so far builds and boots when using the latest ubuntu compilers, so no need for old lxc containers. No idea how long it'll take to become useful, quicker with more hands of course. So far its just booting to usb-uart serial console busybox, Jasper got us there. I've so far failed to get i2c or pmic devices to work, but I may have just got it to tell me the CPU core temperature.
« Last Edit: October 02, 2019, 08:15:27 am by Adam Boardman »

Jess R

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Trouble compiling Gemini Linux kernel
« Reply #2 on: February 12, 2022, 06:45:31 am »
How's this going? (Just dug out my Gemini to see what the state of the art was)