os: use arm64 image
This commit is contained in:
parent
f74c801a64
commit
7dd4c118c8
1
ansible/group_vars/all/ansible.yml
Normal file
1
ansible/group_vars/all/ansible.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
ansible_python_interpreter: auto
|
1
ansible/host_vars/diabolo.local/main.yml
Normal file
1
ansible/host_vars/diabolo.local/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
arch: arm64
|
@ -33,7 +33,7 @@
|
|||||||
- git
|
- git
|
||||||
- python3
|
- python3
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python-apt
|
- python3-apt
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
@ -61,12 +61,13 @@ dtparam=audio=on
|
|||||||
|
|
||||||
[pi4]
|
[pi4]
|
||||||
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
|
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
|
||||||
dtoverlay=vc4-fkms-v3d
|
dtoverlay=vc4-kms-v3d
|
||||||
|
arm_64bit=1
|
||||||
max_framebuffers=2
|
max_framebuffers=2
|
||||||
dtoverlay=uart2
|
dtoverlay=uart3
|
||||||
|
|
||||||
[all]
|
[all]
|
||||||
#dtoverlay=vc4-fkms-v3d
|
#dtoverlay=vc4-kms-v3d
|
||||||
# Disable bluetooth in order to enable serial TTL
|
# Disable bluetooth in order to enable serial TTL
|
||||||
dtoverlay=pi3-disable-bt
|
dtoverlay=pi3-disable-bt
|
||||||
|
|
||||||
@ -74,3 +75,5 @@ dtoverlay=pi3-disable-bt
|
|||||||
# Enable camera
|
# Enable camera
|
||||||
start_x=1
|
start_x=1
|
||||||
gpu_mem=256
|
gpu_mem=256
|
||||||
|
|
||||||
|
dtoverlay=w1-gpio
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
- name: Install docker-ce
|
- name: Install docker-ce
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- python-pip
|
- python3-pip
|
||||||
- docker-ce
|
- docker-ce
|
||||||
- xfsprogs
|
- xfsprogs
|
||||||
state: present
|
state: present
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
---
|
---
|
||||||
- name: Install ansible dependencies
|
- name: Install ansible dependencies
|
||||||
apt:
|
apt:
|
||||||
name: "python-requests"
|
name: "python3-requests"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install rabbitmq package
|
- name: Install rabbitmq package
|
||||||
apt:
|
apt:
|
||||||
name: rabbitmq-server
|
name: rabbitmq-server
|
||||||
state: present
|
state: present
|
||||||
|
with_items:
|
||||||
|
- rabbitmq-server
|
||||||
|
- python3-requests
|
||||||
|
|
||||||
- name: Enables rabbitmq plugins
|
- name: Enables rabbitmq plugins
|
||||||
rabbitmq_plugin:
|
rabbitmq_plugin:
|
||||||
|
@ -13,12 +13,14 @@ WIFI_SECRET_FILE=".secret"
|
|||||||
# For debug
|
# For debug
|
||||||
ADD_TTL_SUPPORT_FOR_DEBUG=1
|
ADD_TTL_SUPPORT_FOR_DEBUG=1
|
||||||
|
|
||||||
|
IMAGE_BASE=https://downloads.raspberrypi.org/raspios_lite_arm64_latest
|
||||||
|
|
||||||
########### End Configuration ############
|
########### End Configuration ############
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
if [ ! -f build/raspbian.zip ]
|
if [ ! -f build/raspbian.zip ]
|
||||||
then
|
then
|
||||||
wget -O build/raspbian.zip https://downloads.raspberrypi.org/raspbian_lite_latest
|
wget -O build/raspbian.zip ${IMAGE_BASE}
|
||||||
cd build
|
cd build
|
||||||
unzip raspbian.zip
|
unzip raspbian.zip
|
||||||
cd ..
|
cd ..
|
||||||
@ -46,6 +48,11 @@ then
|
|||||||
echo "dtoverlay=pi3-disable-bt" | sudo tee -a build/mnt/config.txt > /dev/null
|
echo "dtoverlay=pi3-disable-bt" | sudo tee -a build/mnt/config.txt > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Copy wifi configuration"
|
||||||
|
source ${WIFI_SECRET_FILE}
|
||||||
|
eval "echo \"$(cat wpa_supplicant.conf)\"" | sudo tee build/mnt/wpa_supplicant.conf > /dev/null
|
||||||
|
sudo chmod 600 build/mnt/wpa_supplicant.conf
|
||||||
|
|
||||||
echo "Umount boot partition"
|
echo "Umount boot partition"
|
||||||
sudo umount build/mnt
|
sudo umount build/mnt
|
||||||
|
|
||||||
@ -66,10 +73,6 @@ sudo cp ../ansible/roles/base/files/authorized_keys build/mnt/home/pi/.ssh/
|
|||||||
sudo chmod 600 build/mnt/home/pi/.ssh/authorized_keys
|
sudo chmod 600 build/mnt/home/pi/.ssh/authorized_keys
|
||||||
sudo chown -R 1000:1000 build/mnt/home/pi
|
sudo chown -R 1000:1000 build/mnt/home/pi
|
||||||
|
|
||||||
echo "Copy wifi configuration"
|
|
||||||
source ${WIFI_SECRET_FILE}
|
|
||||||
eval "echo \"$(cat wpa_supplicant.conf)\"" | sudo tee build/mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null
|
|
||||||
sudo chmod 600 build/mnt/etc/wpa_supplicant/wpa_supplicant.conf
|
|
||||||
|
|
||||||
|
|
||||||
echo "Umount sdcard"
|
echo "Umount sdcard"
|
||||||
|
Loading…
Reference in New Issue
Block a user