OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Trouble compiling Gemini Linux kernel
post Oct 2 2019, 12:50 AM
Post #1

Group: Members
Posts: 4
Joined: 26-September 19
Member No.: 856,256

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!
Go to the top of the page
+Quote Post
Adam Boardman
post Oct 2 2019, 04:14 AM
Post #2

Group: Members
Posts: 179
Joined: 29-December 17
Member No.: 815,489

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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 11th July 2020 - 08:12 PM