Build scripts for making a pppwn alpine linux install using luckfox's sdk
This repo is based off of 0x1iii1ii's early luckfox work and walker2048's alpine linux guide for the luckfox pico line of computers. Also thanks to thefl0w's work on the pppwn exploit and lastly xfangfang for their c++ port of pppwn.
Required:
clone this repo to your home folder
git clone https://github.com/leo82309/pppwn-luckfox-alpine-linux.git
Using docker, allow qemu to emulate arm7.
docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes
Create a new rootfs folder in the pppwn-luckfox-alpine-linux folder.
mkdir ~/pppwn-luckfox-alpine-linux/rootfs
Setup an alpine linux arm7 docker using the following command.
docker run -it --name armv7alpine --platform linux/arm/v7 --net=host -v ~/pppwn-luckfox-alpine-linux/rootfs:/rootfs -v ~/pppwn-luckfox-alpine-linux/pppwn:/pppwn arm32v7/alpine
Using the docker shell input.
chmod +x /pppwn/alpine_install_system.sh
./pppwn/alpine_install_system.sh
Type in the desired ps4 firmware and confirm then run
./pppwn/alpine_package_system.sh
exit
Copy the alpine linux custom rootfs to the luckfox-pico sdk
mkdir ~/luckfox-pico/sysdrv/custom_rootfs
cp ~/pppwn-luckfox-alpine-linux/rootfs/alpine.tar.gz ~/luckfox-pico/sysdrv/custom_rootfs
Copy over my modified files for the sdk
cp -r ~/pppwn-luckfox-alpine-linux/luckfox-pico/* ~/luckfox-pico
Build the image for your luckfox pico device (Only setup for device [3]RV1103_Luckfox_Pico_Plus
& [4]RV1106_Luckfox_Pro_Max
).
cd ~/luckfox-pico/
./build.sh all
Your compiled firmware will be in ~/luckfox-pico/output/image