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
  Is the A64’s true hardware random generator activated in Mobian’s 5.10 kernel build? LibrePhoneUser 3 876 01-17-2021, 12:44 PM
Last Post: LibrePhoneUser
  Phone doesn't boot after latest kernel update Boern 12 4,538 08-06-2020, 11:34 AM
Last Post: Boern
  Mainline kernel not working (no screen) jrobin28260 4 1,872 07-19-2020, 12:30 PM
Last Post: a-wai

Forum Jump:


Users browsing this thread: 1 Guest(s)