How to compile the kernel?
#1
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
#2
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!
#3
Here's a related post with some useful advice: https://forum.pine64.org/showthread.php?tid=10383
#4
(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!


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to disable ipv6 at kernel level with towboot? vusra 3 1,666 10-04-2024, 04:23 AM
Last Post: vusra
Big Grin An early xmas present: 6.1 kernel treebeard 28 14,344 07-18-2023, 03:14 AM
Last Post: gischpelino
  Stability problems with 6.1 kernel Zebulon Walton 9 4,032 05-12-2023, 08:09 AM
Last Post: zetabeta
  Kernel 5.15 Zebulon Walton 10 8,061 11-27-2021, 01:10 PM
Last Post: LibrePhoneUser
  Mobian kernel upgrade user641 4 4,712 11-10-2021, 01:22 PM
Last Post: user641
  kernel upgrade user641 2 3,095 09-13-2021, 08:26 AM
Last Post: user641
  [Solved] How to get a kernel newer than 5.10 on Mobian ? gab 0 1,665 08-26-2021, 04:08 PM
Last Post: gab
  Kernel fault on adapter connect pinephone.damiano 0 1,308 08-15-2021, 04:25 AM
Last Post: pinephone.damiano
  Is the A64’s true hardware random generator activated in Mobian’s 5.10 kernel build? LibrePhoneUser 3 4,717 01-17-2021, 12:44 PM
Last Post: LibrePhoneUser
  Phone doesn't boot after latest kernel update Boern 12 15,687 08-06-2020, 11:34 AM
Last Post: Boern

Forum Jump:


Users browsing this thread: 1 Guest(s)