Add new make target for raspi5
This commit is contained in:
parent
9f169530f9
commit
5dd355c364
5
Makefile
5
Makefile
|
@ -72,6 +72,11 @@ setup_new_raspi4: start_file_server out/base_images/raspi4_base.img.gz rootfs
|
|||
@cp -f setup/setup_device.sh out/setup_device.sh
|
||||
@/bin/bash scripts/setup_new_raspi4.sh
|
||||
|
||||
.PHONY: setup_new_raspi5
|
||||
setup_new_raspi5: start_file_server rootfs
|
||||
@cp -f setup/setup_device.sh out/setup_device.sh
|
||||
@/bin/bash scripts/setup_new_raspi5.sh
|
||||
|
||||
.PHONY: setup_new_debian
|
||||
setup_new_debian: start_file_server out/base_images/debian_base.ova rootfs
|
||||
@cp -f setup/setup_device.sh out/setup_device.sh
|
||||
|
|
|
@ -32,6 +32,7 @@ This steps will setup a new device and can be used for making images. These step
|
|||
* `make setup_new_rockpro64`
|
||||
* `make setup_new_raspi3`
|
||||
* `make setup_new_raspi4`
|
||||
* `make setup_new_raspi5`
|
||||
* `make setup_new_debian`
|
||||
* `make setup_new_other`
|
||||
3. Follow Instructions
|
||||
|
|
|
@ -3,16 +3,22 @@
|
|||
# DEPRECATED DEVICES: raspi3
|
||||
|
||||
# Make each device
|
||||
for i in 'raspi4' 'debian' 'rockpro64' 'rock64' 'rockpi4' ; do
|
||||
for i in 'raspi4' 'raspi5' 'debian' 'rockpro64' 'rock64' 'rockpi4' ; do
|
||||
echo "Creating root file system for $i"
|
||||
mkdir -p out/rootfs_$i/
|
||||
|
||||
# Raspi4 and Raspi5 share a rootfs
|
||||
src_rootfs=$i
|
||||
if [ "$i" = "raspi5" ]; then
|
||||
src_rootfs="raspi4"
|
||||
fi
|
||||
|
||||
# Clear out data for old apps
|
||||
rm -rf out/rootfs_$i/usr/share/mynode_apps
|
||||
|
||||
# Make rootfs
|
||||
rsync -r -u rootfs/standard/* out/rootfs_$i/
|
||||
rsync -r -u rootfs/$i/* out/rootfs_$i/
|
||||
rsync -r -u rootfs/$src_rootfs/* out/rootfs_$i/
|
||||
rsync -r -u CHANGELOG out/rootfs_$i/usr/share/mynode/changelog
|
||||
cp -f setup/setup_device.sh out/setup_device.sh
|
||||
#cp -f rootfs/standard/usr/share/mynode/mynode_app_versions.sh out/mynode_app_versions.sh
|
||||
|
|
49
scripts/setup_new_raspi5.sh
Executable file
49
scripts/setup_new_raspi5.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/bash
|
||||
|
||||
LOCAL_IP=$(python3 ./scripts/get_local_ip.py)
|
||||
|
||||
echo ""
|
||||
echo "Finished updating rootfs and other files!"
|
||||
echo ""
|
||||
|
||||
clear
|
||||
echo "Step 1: "
|
||||
echo " Flash SD Card with Raspberry Pi Image: out/base_images/raspi5_base.img.gz"
|
||||
echo " OR"
|
||||
echo " If you would rather create your own base image, follow the"
|
||||
echo " manual instructions in doc/setup_base_image_raspi5.md"
|
||||
echo ""
|
||||
echo "Press a key when complete..."
|
||||
read -n 1
|
||||
|
||||
clear
|
||||
echo "Step 2: "
|
||||
echo " Insert SD Card into your Raspberry Pi and boot the device"
|
||||
echo ""
|
||||
echo "Press a key when complete..."
|
||||
read -n 1
|
||||
|
||||
clear
|
||||
echo "Step 3: "
|
||||
echo " Login to device with username 'admin' and password 'bolt'"
|
||||
echo " Run the following commands. Use bolt at password prompts."
|
||||
echo " wget http://${LOCAL_IP}:8000/setup_device.sh -O setup_device.sh"
|
||||
echo " chmod +x setup_device.sh"
|
||||
echo " sudo ./setup_device.sh ${LOCAL_IP}"
|
||||
echo ""
|
||||
echo "Press a key when complete..."
|
||||
read -n 1
|
||||
|
||||
clear
|
||||
echo "Step 4:"
|
||||
echo " Reboot your device."
|
||||
echo ""
|
||||
echo "Press a key when complete..."
|
||||
read -n 1
|
||||
|
||||
clear
|
||||
echo "Congratulations! Your device is now ready!"
|
||||
echo " Access it via a web browser at http://mynode.local/ or http://<device ip>/"
|
||||
echo " Access it via SSH using the default credentials: admin / bolt"
|
||||
echo " You should change your password on the settings page in the web GUI"
|
||||
echo ""
|
Loading…
Reference in New Issue
Block a user