Skip to content

Commit

Permalink
Update kernel to 6.6.38
Browse files Browse the repository at this point in the history
Add overclock to 1.4GHz boot.img
  • Loading branch information
KyonLi committed Jul 12, 2024
1 parent a444d4d commit e4937e7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
TAG_NAME=$(cat rootfs/debian_version)-${{ github.run_number }}
git tag $TAG_NAME
git push origin $TAG_NAME
echo -e "$(cat rootfs/info.md)\n\n$(git log -1 --format=%s)" > release_notes.md
echo -e "- Bootloader: $(cat aboot/ver.txt)\n$(cat rootfs/info.md)\n\n$(git log -1 --format=%B)" > release_notes.md
echo "NAME=$NAME" >> $GITHUB_OUTPUT
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
Expand All @@ -41,5 +41,6 @@ jobs:
body_path: release_notes.md
tag_name: ${{ steps.version.outputs.TAG_NAME }}
files: |
rootfs/rootfs.img.xz
aboot/emmc_appsboot-test-signed.mbn
kernel/*.img
rootfs/rootfs.img.xz
1 change: 1 addition & 0 deletions aboot/ver.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lk1st-msm8916-17.0-next-80a7c67f-20240705
14 changes: 14 additions & 0 deletions kernel/build-boot-img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

DTB_FILE=msm8916-thwc-ufi003.dtb
DTB_FILE_NO_MODEM=msm8916-thwc-ufi003-no-modem.dtb
DTB_FILE_NO_MODEM_OC=msm8916-thwc-ufi003-no-modem-oc.dtb
RAMDISK_FILE=initrd.img

cat Image.gz $DTB_FILE > kernel-dtb
Expand Down Expand Up @@ -30,5 +31,18 @@ mkbootimg \
--cmdline "earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw"\
--kernel kernel-dtb -o boot-no-modem.img

cat Image.gz $DTB_FILE_NO_MODEM_OC > kernel-dtb

mkbootimg \
--base 0x80000000 \
--kernel_offset 0x00080000 \
--ramdisk_offset 0x02000000 \
--tags_offset 0x01e00000 \
--pagesize 2048 \
--second_offset 0x00f00000 \
--ramdisk "$RAMDISK_FILE" \
--cmdline "earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw"\
--kernel kernel-dtb -o boot-no-modem-oc.img

# clean up
rm kernel-dtb
6 changes: 3 additions & 3 deletions rootfs/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#/bin/bash

DIST=bookworm
K_IMAGE_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.0-6/Image.gz"
K_IMAGE_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.0-6/linux-image-6.6.0-msm8916-g262af7ff27e2_6.6.0-g262af7ff27e2-1_arm64.deb"
K_HEADERS_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.0-6/linux-headers-6.6.0-msm8916-g262af7ff27e2_6.6.0-g262af7ff27e2-1_arm64.deb"
K_IMAGE_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.38-1/Image.gz"
K_IMAGE_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.38-1/linux-image-6.6.38-msm8916-g7575c9d9bd67_6.6.38-g7575c9d9bd67-1_arm64.deb"
K_HEADERS_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.38-1/linux-headers-6.6.38-msm8916-g7575c9d9bd67_6.6.38-g7575c9d9bd67-1_arm64.deb"

if [ `id -u` -ne 0 ]
then echo "Please run as root"
Expand Down

0 comments on commit e4937e7

Please sign in to comment.