Skip to content

Commit

Permalink
Merge pull request #995 from creas002/aarch64-support
Browse files Browse the repository at this point in the history
aarch64 support
  • Loading branch information
MihajloPi authored Jul 4, 2024
2 parents 8f8ebae + 7805199 commit f93c5f4
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ or form to the success of this repository/framework. Below are some direct contr
* **[Gary Day](https://www.facebook.com/profile.php?id=100068381156913&mibextid=ZbWKwL)**: Helped by lending his Raspberry Pis virtually over SSH, VNC and TeamViewer to MihajloPi for testing and creating an image.
* **[Jérôme jp112sdl](https://github.com/jp112sdl)**: Implemented automatic discarding of Meteor M2-3 night passes since they give no visible image when it's in RGB123 mode.
* **[patrice7560](https://meteo-schaltin.duckdns.org)**: Beta tester, helped in detecting and reporting errors ASAP for debugging.
* **[Richard AI4Y](https://www.qrz.com/db/AI4Y)**: Provided Debian 12 (Bookworm) support for Raspberry Pi, discovered the FFMPEG bud when creating spectrograms, solved `atrm` errors on the website, and several NTP and timezone issues in PHP, general alpha and beta testing.
* **[Richard AI4Y](https://www.qrz.com/db/AI4Y)**: Provided Debian 12 (Bookworm) support for Raspberry Pi, discovered the FFMPEG bug when creating spectrograms, solved `atrm` errors on the website, and several NTP and timezone issues in PHP, general alpha and beta testing.
## Contributing

Pull requests are welcome! Simply follow the below pattern:
Expand Down
10 changes: 9 additions & 1 deletion ansible/roles/common/tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,18 @@
update_cache: no
when: system_architecture == 'armhf'

- name: Installing predict on Raspberry Pi
become: yes
apt:
deb: "{{ noaa_home }}/software/predict_2.2.5+dfsg.1-1_arm64.deb"
state: present
update_cache: no
when: system_architecture == 'arm64'

- name: Installing SatDump
become: yes
apt:
deb: "{{ noaa_home }}/software/satdump_1.2.1-1021e84b_{{ raspbian_version.stdout }}_{{ system_architecture }}.deb"
deb: "{{ noaa_home }}/software/satdump_1.2.1-d5fd2f41_{{ raspbian_version.stdout }}_{{ system_architecture }}.deb"
state: present
update_cache: no

Expand Down
9 changes: 9 additions & 0 deletions scripts/tools/scratch_perms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# scratch_perms.sh
#
# Ensure scratch area permissions are correct after reboot

uid=${UID}
sudo chmod 755 /run/user
sudo chmod 700 /run/user/${uid}
27 changes: 27 additions & 0 deletions scripts/tools/set_os_config_kernel8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# set_os_config_kernel8.sh

###############################################################################################################################
# The following line is being added to /boot/firmware/config.txt file so that wxtoimg 32-bit app pages will align on 64-bit OS
#
# Note -
# Add --> kernel=kernel8.img if archeticure is aarch64 and the entry does not already exist
###############################################################################################################################

v_CFG_FILE="/boot/firmware/config.txt"
v_cmd="/tmp/kernel_add.sh"
v_kernel8_set=`cat ${v_CFG_FILE} | grep "kernel=kernel8.img" | wc -l`

if [ ${v_kernel8_set} -eq 0 ]; then
timestamp=$(date '+%Y-%m-%d_%H-%M-%s')
sudo cp -p "${v_CFG_FILE}" "${v_CFG_FILE}.${timestamp}"
echo "echo \"kernel=kernel8.img\" >> ${v_CFG_FILE}" > ${v_cmd}
chmod +x ${v_cmd}
sudo ${v_cmd}
echo "...Boot firmware configured"
rm ${v_cmd}
echo "******* NOTICE ******* A reboot will be required for this change to take effect, so if install_and_upgrade.sh does not reboot server then you will need to"
else
echo "...skipping setup for kernel8 configuration because it is already set..."
fi
Binary file added software/predict_2.2.5+dfsg.1-1_arm64.deb
Binary file not shown.
Binary file not shown.

0 comments on commit f93c5f4

Please sign in to comment.