This question is relate to this, but more general.
Currently I mount remote root by sshfs
sshfs -o sshfs_sync,sync_readdir,reconnect,follow_symlinks,direct_io,sync_read root@pi:/ pi
/proc is ok, but /dev/mem is not works
head pi/dev/mem head: error reading 'pi/dev/mem': Operation not permitted
So,how can I mount remote
/dev/mem to local
I want to control raspberry pi from my dev laptop, it will be way easier if I can just run program from my laptop by mount remote
Currently I mount raspberry by sshfs, the dev loop like
# Compile from my laptop is way faster env GOOS=linux GOARCH=arm GOBIN=`pwd`/bin go install main.go cp bin/main /path/to/mounted/pi # Then run from pi
If I can mount
/dev/mem, the dev loop will become
go run main.go # dev go run main.go # dev go run main.go # dev # Good to go env GOOS=linux GOARCH=arm GOBIN=`pwd`/bin go install main.go cp bin/main /path/to/mounted/pi
this will save a lot time, and I can do debug from my local.
Also I think mount
/dev/mem only cost a few of network, and I found Network device can mount remote device, but I can not compile due to docbook2man.