-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #995 from creas002/aarch64-support
aarch64 support
- Loading branch information
Showing
6 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.