OpenStick / OpenStick

reverse engineering on msm8916 based 4G modem.
910 stars 91 forks source link

build rootfs on CI for popular OpenStick variants #57

Open ttimasdf opened 1 year ago

ttimasdf commented 1 year ago

Building kernel and rootfs from scratch is a pain for average users. A build system on CI, or at least an fully automated build script could make life easier and also gives reproducible results and accurate version numbers for diagnosis.

After some research, to build a flashable firmware for OpenStick requires the following steps

  1. build the kernel from https://github.com/OpenStick/linux.
  2. create a debian rootfs following tutorial in 编译内核(debian) · OpenStick项目 · 看云
  3. pack the prebuilt binaries extracted from user dongle or downloaded from https://github.com/OpenStick/stick-blobs
  4. push the packed zip to release with a version number. I'd recommend a calver like 23.10.28.0

I'll be working on a build system this weekend and open a PR when ready. Additional thoughts and ideas are greatly appreciated 😉

ttimasdf commented 1 year ago

an lk2nd bootloader is included in base.zip, but the partition is wiped on later stage, I think it's not used in this project?

Tirpitz93 commented 8 months ago

did you ever make any progress on this?

aiemassfiria commented 3 months ago

do u have full tutorial?

gi1mic commented 3 months ago

Have not tried it, but this might help: https://github.com/redwoz/msm8916-openstick-build

gi1mic commented 3 months ago

I tried the https://github.com/redwoz/msm8916-openstick-build and it seems to work fine but I had to update the 2_rootfs.sh script to use "export DEBIAN_VERSION=bookworm" to get the build to complete.