MENU

Mainline Linux for OpenStick UFI003

January 26, 2024 • Debian,Linux

Mainline Linux for Openstick UFI 003

cover1.png

Github: https://github.com/Evsio0n/linux-msm8916

Basic build instructions

sudo apt-get install build-essential linux-source bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison fakeroot debhelper git 


# Clone the repo
git clone https://github.com/evsio0n/linux-msm8916.git -b evsio0n-openstick --depth=1 

cd linux-msm8916

export CROSS_COMPILE=aarch64-linux-gnu-
export ARCH=arm64
make ufi003_defconfig -j$(nproc --all)

# Make debian package
fakeroot nice make -j`nproc` bindeb-pkg

# Append DTB
cat arch/arm64/boot/dts/qcom/msm8916-openstick-ufi003.dtb out/arch/arm64/boot/Image.gz > out/arch/arm64/boot/Image.gz-dtb

Make boot.img

After install new kernel deb package, you can make boot.img with mkbootimg.

mkbootimg \   
        --base 0x80000000 \
        --kernel_offset 0x00080000 \
        --ramdisk_offset 0x02000000 \
        --tags_offset 0x01e00000 \
        --pagesize 2048 \
        --second_offset 0x00f00000 \
        --ramdisk initrd.img \
        --cmdline "earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw"\
        --kernel out/arch/arm64/boot/Image.gz-dtb -o boot.img

Flash boot.img

fastboot flash boot boot.img
Last Modified: October 31, 2024
Leave a Comment

2 Comments
  1. 你的文章内容非常精彩,让人回味无穷。http://www.huameigangcai.com

  2. 你的文章内容非常用心,让人感动。http://www.chinazj315.com