PINE64
How to compile the kernel? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: How to compile the kernel? (/showthread.php?tid=10944)



How to compile the kernel? - Boern - 08-04-2020

Hi all!

To debug [url=https://forum.pine64.org/showthread.php?tid=10791]my problems[/url] I wanted to compile my own kernel to see if I can find out what triggers it. But my kernel doesn't boot at all. When I turn on the phone with my custom kernel installed the green LED is just permanently on and nothing else happens. Here's how I compiled the kernel (tried cross compiling, but also compiled it on the phone itself):

Code:
git clone https://gitlab.com/mobian1/devices/pinephone-linux.git
cd pinephone-linux
cp /proc/config.gz .
gunzip config.gz
mv config .config
make oldconfig
make menuconfig # Set it to append -pinephone to the version string
make -j `nproc` bindeb-pkg
sudo dpkg -i ../linux-image-5.7.0-pinephone-g9853915bff28_5.7.0-pinephone-g9853915bff28-1_arm64.deb



RE: How to compile the kernel? - devrtz - 08-04-2020

Seems to me, that you're doing it right. When installed the .deb pinephone-u-boot-install should be run (a script under /usr/sbin I believe).

What got me started was this.
I have used a slightly different make command (setting env vars), maybe that's the difference?

Good luck!


RE: How to compile the kernel? - nas - 08-04-2020

Here's a related post with some useful advice: https://forum.pine64.org/showthread.php?tid=10383


RE: How to compile the kernel? - Boern - 08-04-2020

(08-04-2020, 06:00 AM)devrtz Wrote: Seems to me, that you're doing it right. When installed the .deb pinephone-u-boot-install should be run (a script under /usr/sbin I believe).

What got me started was this.
I have used a slightly different make command (setting env vars), maybe that's the difference?

Good luck!

That worked, thanks!