OESF Portables Forum

Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: oesf@kenny.cat on October 02, 2019, 04:50:43 am

Title: Trouble compiling Gemini Linux kernel
Post by: oesf@kenny.cat 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 (https://github.com/gemian/gemini-keyboard-apps/wiki/KernelCompilation)
with the Kernel configuration from here: https://www.mygnu.de/2019/03/modular-linux-...h-cutpaste-fix/ (https://www.mygnu.de/2019/03/modular-linux-kernel-for-the-gemini-pda-with-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 (https://pastebin.com/dyKbRmQe)
and using the Google GCC: https://pastebin.com/xrpWjDWt (https://pastebin.com/xrpWjDWt)

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

Thanks a lot!
Title: Trouble compiling Gemini Linux kernel
Post by: Adam Boardman on October 02, 2019, 08:14:13 am
The gemian kernels are built from the 'native (https://github.com/gemian/gemini-linux-kernel-3.18/tree/native)' branch this would work if you were to build on device, and my test builds are built from the 'packaging7 (https://github.com/gemian/gemini-linux-kernel-3.18/tree/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 (https://github.com/gemian/linux) 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.
Title: Re: Trouble compiling Gemini Linux kernel
Post by: Jess R 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)