Jump to content
Sign in to follow this  
wahaha

how to compile custom kernel

Recommended Posts

Hi,

i am referring to the instructions here: https://gist.github.com/TinkerTeam/6286550ce70d34f6b3d483cd803da786#gistcomment-3563189 on how to compile my own kernel for tinker board 2s. 

However, in the guide above, it listed that that it is targeting: 

# Fetch Tinkerboard kernel config
curl -L https://raw.githubusercontent.com/TinkerBoard/debian_kernel/develop/arch/arm/configs/miniarm-rk3288_defconfig -o arch/arm/configs/miniarm-rk3288_defconfig

  But with tinker board 2s, it is a RK3399 64 bit chip. Where should I be looking at to obtain the correct defconfig?

Thanks,

Jake

Edited by wahaha

Share this post


Link to post
Share on other sites

hello @wahaha

you can use the following to build kernel:

make clean && make distclean && make mrproper
make ARCH=arm64 tinker2_defconfig
make ARCH=arm64 rk3399-tinker_board_2.img -j24

Share this post


Link to post
Share on other sites

Hi @tooz,

can i please clarify with you. I am trying to rebuild the stable kernel release from https://www.kernel.org/ which is currently (5.15.5).

The steps that I take are as follows:

1. download linux-5.15.5.tar
2. untar (1)
3. cd linux-5.15.5
4. cp arch/arm64/configs/config .config
5. make menuconfig (optional if there are stuffs in .config that you want to amend) -> save it in .config file
6. make -j24 bindeb-pkg
----- currently it is still going through no6 -----

but after that is done, i should have an iso file that i can then do a sudo dpkg -i linux-image.deb followed by a reboot.

Is this correct?

I tried the 3 steps you listed, but i'm not sure at which stage should that be done instead?

Edited by wahaha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...