Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Last active June 7, 2024 20:29
Show Gist options
  • Save deomorxsy/8a74a3915d338a57a404b66965f2c3a5 to your computer and use it in GitHub Desktop.
Save deomorxsy/8a74a3915d338a57a404b66965f2c3a5 to your computer and use it in GitHub Desktop.
Debug a raspberry pi 3 model b v1.2 - raspberry pi 2015 on a 6.9.0-1-MANJARO LiveCD with qemu-user-static, binfmt_misc and chroot
sudo pacman -Sy yay lib32-ncurses ncurses tmux qemu-user-static qemu-user-static-binfmt neovim
setxkbmap -model abnt2 -layout br -variant abnt2

cat <<"EOF" > ~/.tmux.conf
## ~/.tmux.conf

## Use vim keybindings in copy mode
set-option -g mouse on
setw -g mode-keys vi
set-option -s set-clipboard off
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
EOF

Check out the operating system installed

/ #
/ # cat /etc/os-release
NAME=Buildroot
VERSION=2018.08-gd14bfd8be1
ID=buildroot
VERSION_ID=2018.08
PRETTY_NAME="Buildroot 2018.08"
/ #

wpantund error

/ # wpantund
wpantund[5239]: Starting wpantund 0.08.00d (Dec 27 2019 13:06:32) . . .
wpantund[5239]:         BUILD_VERSION = d14bfd8be1
wpantund[5239]: Reading configuration from "/etc/wpantund.conf" . . .
wpantund[5239]: Configuration file "/etc/wpantund.conf" read.
wpantund[5239]: set-config-param: "Config:NCP:SocketPath" = "/dev/ttyACM0"
wpantund[5239]: Stat (autolog): Tx: 0 packets (0 udp, 0 tcp, 0 icmp6) -- 0 bytes
wpantund[5239]: Stat (autolog): Tx history is empty
wpantund[5239]: Stat (autolog):
wpantund[5239]: Stat (autolog): Rx: 0 packets (0 udp, 0 tcp, 0 icmp6) -- 0 bytes
wpantund[5239]: Stat (autolog): Rx history is empty
wpantund[5239]: Stat (autolog):
wpantund[5239]: Stat (autolog): NCP state history is empty.
wpantund[5239]: Stat (autolog):
wpantund[5239]: Stat (autolog):
wpantund[5239]: Unable to open socket. "No such file or directory" (2) (filename = /dev/ttyACM0, type = 6)
wpantund[5239]: Unable to open socket with path </dev/ttyACM0>, errno=2 (No such file or directory)
wpantund[5239]: Runtime error thrown while starting up, "Unable to open socket"
wpantund[5239]: Cleaning up. (gRet = 4)
wpantund[5239]: Stopped.
  1. try to reset the pico using RUN and GND
  2. reset the pico with gpio