-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Chris Brandt edited this page Aug 6, 2025
·
19 revisions
Welcome to the notes wiki!
General Notes
xxx
TFTP Allow TFTP uploads from board to host
sudo vi /etc/default/tftpd-hpa
# TFTP PC -> board (make sure file in /var/lib/tftpboot has group read set, chmod +x xxxx)
$ tftp -g -r desktop-shell.so 10.10.10.30
$ tftp 10.10.10.30 -c get devmem2
### note, if devmem2 was built with Yocto, devmem2 will want to look in /lib64 for the libraries (so just copy the form /lib to /lib64, or make a symlink)
$ tftp 10.10.10.30 -c put /tmp/link_reg.txt
put localfile remotefile
systemctl status tftpd-hpa.service
read.sh
#!/bin/bash
# Starting address
start_address=0x10860000
# Number of registers to read
num_registers=4096
# Size of each register (in bytes)
register_size=4
for (( i=0; i<$num_registers; i++ )); do
address=$((start_address + i * register_size))
value=$(devmem2 $address l | grep Read)
echo "Register at 0x$address: $value"
done
./read.sh > /tmp/link_reg.txt