-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sw][linux][raspi][ioc] Orange Pi Zero setup #131
Comments
epics on orange pi zerosudo apt -y install git net-tools build-essential re2c libnet-dev libpcap-dev libusb-1.0-0-dev mkdir $HOME/EPICS
cd $HOME/EPICS
wget https://epics.anl.gov/download/base/base-7.0.8.1.tar.gz
tar xf base-7.0.8.1.tar.gz && ln -s base-7.0.8.1 epics-base
cd epics-base
make -j2
~/EPICS/bin/linux-arm/softIoc
cat >> ~/.bashrc << 'EOF'
export EPICS_BASE=$HOME/EPICS/epics-base
export EPICS_HOST_ARCH=linu-arm
export PYEPICS_LIBCA=$HOME/EPICS/epics-base/lib/linux-arm/libca.so
EOF pythonsoftioc on raspi# because it will install 7.0.7.99.0.2 which will not work with latest softioc
uv pip install epicscorelibs==7.0.7.99.1.1
uv pip install softioc Then try with this test. pcaspy on raspisudo apt install -y swig mkdir ~/EPICS/support
cd ~/EPICS/support
wget https://github.com/epics-modules/pcas/archive/refs/tags/v4.13.3.tar.gz
mv v4.13.3.tar.gz pcas-4.13.13.tar.gz
tar xvzf pcas-4.13.3.tar.gz && rm pcas-4.13.3.tar.gz
cd ./pcas-4.13.3 cat > configure/RELEASE.local << EOF
EPICS_BASE = ${EPICS_BASE}
EOF make -j4 cat >> ~/.bashrc << EOF
export PCAS=~/EPICS/support/pcas-4.13.3
EOF source ~/.bashrc uv pip install pcaspy If encountered with: caget -V ldd ~/.virtualenvs/opi/lib/python3.11/site-packages/pcaspy/_cas.cpython-311-armhf-linux-gnu.so If epics version not matched with pcas build, then use cd $EPICS_BASE/lib/linux-arm/
ln -s libca.so.4.14.4 libca.so.4.14.3
ln -s libCom.so.3.23.1 libCom.so.3.23.0 |
swapfile## add
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile ## remove
sudo swapoff /swapfile
sudo rm /swapfile |
autostartrc-local#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>IP address is %s\n" "$_IP"
fi
### add your commands here ###
# keep this line
exit 0 systemd
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
image
apt mirrors
samba & tftp
raspi docs samba
# trouble shoot rm -rf /var/log/samba/log.smbd sudo rm -rf /var/lib/samba/registry.tdb
Test setup (TFTP)
Networking
sudo chmod 600 /etc/netplan/*.yaml sudo netplan try sudo netplan apply
Install fzf/zellij/zoxide
Download them from windows side
Or just use samba on windows side.
python
The text was updated successfully, but these errors were encountered: