Skip to content

Commit

Permalink
Downgrade kernel to 6.6.43, fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
KyonLi committed Jul 31, 2024
1 parent 807265d commit 863b638
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build
run: |
cd rootfs
sudo bash build.sh
sudo ./build.sh
sudo xz rootfs.img
- name: Generate release tag
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

## 本地构建
1. 克隆本仓库
2. 安装软件包 `debootstrap rsync qemu-user-static binfmt-support android-sdk-libsparse-utils mkbootimg`
2. 安装软件包 `debootstrap rsync qemu-user-static binfmt-support android-sdk-libsparse-utils`
3. 进入rootfs目录,以root权限运行`build.sh`
4. 构建完成后会在rootfs目录得到rootfs.img,kernel目录得到boot.img
14 changes: 7 additions & 7 deletions rootfs/build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#/bin/bash

DIST=bookworm
BOOT_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.10.2-1/boot.img"
BOOT_NO_MODEM_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.10.2-1/boot-no-modem.img"
BOOT_NO_MODEM_OC_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.10.2-1/boot-no-modem-oc.img"
K_IMAGE_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.10.2-1/linux-image-6.10.2-g8ffeadb57e59_6.10.2-g8ffeadb57e59-1_arm64.deb"
K_DEV_URL="https://github.com/KyonLi/ufi003-kernel/releases/tag/6.10.2-1"
BOOT_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.43-1/boot.img"
BOOT_NO_MODEM_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.43-1/boot-no-modem.img"
BOOT_NO_MODEM_OC_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.43-1/boot-no-modem-oc.img"
K_IMAGE_DEB_URL="https://github.com/KyonLi/ufi003-kernel/releases/download/6.6.43-1/linux-image-6.6.43-msm8916-g1bb4207ba356_6.6.43-g1bb4207ba356-1_arm64.deb"
K_DEV_URL="https://github.com/KyonLi/ufi003-kernel/releases/tag/6.6.43-1"
UUID=62ae670d-01b7-4c7d-8e72-60bcd00410b7

if [ `id -u` -ne 0 ]
Expand Down Expand Up @@ -38,8 +38,8 @@ mv debian/tmp/info.md ./
echo -e "\n🔗 [linux-headers & linux-libc-dev]($K_DEV_URL)" >> info.md
rm -rf debian/tmp/* debian/root/.bash_history > /dev/null 2>&1

echo -e "\n\nNow you can make additional modifications to rootfs.\nPress ENTER to continue"
head -n 1 >/dev/null
#echo -e "\n\nNow you can make additional modifications to rootfs.\nPress ENTER to continue"
#head -n 1 >/dev/null

#dd if=/dev/zero of=debian-ufi003.img bs=1M count=$(( $(df -m --output=used debian | tail -1 | awk '{print $1}') + 100 ))
dd if=/dev/zero of=debian-ufi003.img bs=1M count=$(( $(du -ms debian | cut -f1) + 100 ))
Expand Down

0 comments on commit 863b638

Please sign in to comment.