Replace the kernel to the custom compiled kernel


 Share

1 1

Recommended Posts

First of all sorry for the newbie's question.

I compiled a kernel with custom configuration to use this instruction: https://docs.armbian.com/Developer-Guide_Build-Preparation/

OS: Ubuntu Bionic 18.04 x64

apt -y install git
git clone https://github.com/armbian/build
cd build
./compile.sh \
BOARD=orangepizero \
BRANCH=default \
BUILD_DESKTOP=no \
KERNEL_ONLY=yes \
KERNEL_CONFIGURE=yes

After the kernel build is complete, the output directory contains

output/config
linux-sun8i-default.config
output/debs
/extra
armbian-config_5.99_all.deb
armbian-firmware-full_5.99_all.deb
armbian-firmware_5.99_all.deb
linux-headers-sun8i_5.99_armhf.deb
linux-image-sun8i_5.99_armhf.deb
linux-source-default-sun8i_5.99_all.deb
linux-u-boot-orangepizero_5.99_armhf.deb

Copied to the device this files

linux-headers-sun8i_5.99_armhf.deb
linux-image-sun8i_5.99_armhf.deb

Executed

sudo dpkg -i linux-headers-sun8i_5.99_armhf.deb
sudo dpkg -i linux-image-sun8i_5.99_armhf.deb

The kernel hasn't changed.

Could you explain how to replace the kernel on the device, please?
Thank you very much for your reply.

Link to post
Share on other sites

Donate and support the project!

4 hours ago, Igor said:

what have you changed?

I tried to compile kernel with following configuration: https://criu.org/Linux_kernel

General setup options
CONFIG_CHECKPOINT_RESTORE=y (Checkpoint/restore support)

Networking support -> Networking options options for sock-diag subsystem

 

CONFIG_UNIX_DIAG=y (Unix domain sockets -> UNIX: socket monitoring interface)
CONFIG_INET_DIAG=y (TCP/IP networking -> INET: socket monitoring interface)
CONFIG_INET_UDP_DIAG=y (TCP/IP networking -> INET: socket monitoring interface -> UDP: socket monitoring interface)

CONFIG_NETFILTER_XT_MARK=y (Networking support -> Networking options -> Network packet filtering framework (Netfilter)   -> Core Netfilter Configuration -> Netfilter Xtables support (required for ip_tables)
  -> nfmark target and match support)
CONFIG_TUN=y (Device Driver -> Network device support -> Universal TUN/TAP device driver support)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

1 1