Full working uboot+linux

This commit is contained in:
Giulio 2020-09-16 21:54:34 +02:00
parent 233b7f2936
commit f7690e653f
2 changed files with 5201 additions and 5201 deletions

View File

@ -30,6 +30,10 @@ cp -R conf/* target/overlay # copy target system config files
cp -R webpanel/* target/overlay/var/www/html # copy the webpanel cp -R webpanel/* target/overlay/var/www/html # copy the webpanel
cp -R update/update.sh target/overlay #copy the update script and certificate cp -R update/update.sh target/overlay #copy the update script and certificate
echo "[+] Adding firmware"
mkdir -p target/overlay/lib
cp -R firmware target/overlay/lib/ # adding binary firmware for wifi driver
echo "[+] Writing flags" echo "[+] Writing flags"
sed -i "s/##FLAG1##/$flag1/g" target/overlay/var/www/html/includes/config.php sed -i "s/##FLAG1##/$flag1/g" target/overlay/var/www/html/includes/config.php
echo $flag2 > target/overlay/flag echo $flag2 > target/overlay/flag
@ -42,7 +46,7 @@ chmod 400 target/overlay/root/flag
echo "[+] Building the keygen" echo "[+] Building the keygen"
mkdir -p target/overlay/usr/sbin mkdir -p target/overlay/usr/sbin
aarch64-linux-gnu-gcc -o target/overlay/usr/sbin/cfgbin keygen/keygen.c -static -lm aarch64-linux-gnu-gcc -o target/overlay/usr/sbin/cfgbin keygen/keygen.c -static -lm
strip target/overlay/usr/sbin/cfgbin aarch64-linux-gnu-strip target/overlay/usr/sbin/cfgbin
echo "[+] Generating Update Key" echo "[+] Generating Update Key"
mkdir -p target/keys mkdir -p target/keys