I had configured my Pi zero wifi connection after using the setup instructions in the build-a-weather-station-with-elixir-and-nerves_B4.0.pdf
all was working fine.
I updated a change to the NervesMOTD function and did a mix upload and lost connection to the pi zero.
Burned a firmware to a fresh sdcard and swapped over to usb cable and tried to ssh in to pi zero with fresh firmware.
ssh command just hangs now as shown below…
Tried reset of pi
reboot of Mac
I use LanScan to see what’s connected to my mac network and it no longer picks up the pi 2 when I switch it on/off.
I have been trying to find fixes all day that might help me reset my macOS USB connection.
might not be the problem
usb is still running a connected usb drive
$ export MIX_TARGET=rpi0
17:25:51~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ mix firmware
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
Compiling 3 files (.ex)
Generated sensor_hub app
|nerves_bootstrap| Building OTP Release...
* skipping runtime configuration (config/runtime.exs not found)
* creating _build/rpi0_dev/rel/sensor_hub/releases/0.1.0/vm.args
Updating base firmware image with Erlang release...
Copying rootfs_overlay: /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/_build/rpi0_dev/nerves/rootfs_overlay
Copying rootfs_overlay: /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/rootfs_overlay
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/_build/_nerves-tmp/combined.squashfs, block size 131072.
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments,
compressed xattrs, compressed ids
duplicates are removed
Filesystem size 28820.77 Kbytes (28.15 Mbytes)
54.96% of uncompressed filesystem size (52439.72 Kbytes)
Inode table size 19932 bytes (19.46 Kbytes)
28.41% of uncompressed inode table size (70170 bytes)
Directory table size 23961 bytes (23.40 Kbytes)
40.38% of uncompressed directory table size (59334 bytes)
Number of duplicate files found 91
Number of inodes 2119
Number of files 1714
Number of fragments 123
Number of symbolic links 160
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 245
Number of ids (unique uids + gids) 3
Number of uids 2
root (0)
elay15 (502)
Number of gids 2
wheel (0)
staff (20)
Building /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/_build/rpi0_dev/nerves/images/sensor_hub.fw...
Firmware built successfully! 🎉
Now you may install it to a MicroSD card using `mix burn` or upload it
to a device with `mix upload` or `mix firmware.gen.script`+`./upload.sh`.
17:26:23~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ mix upload
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
Path: /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/_build/rpi0_dev/nerves/images/sensor_hub.fw
Uploading to nerves.local...
ssh: Could not resolve hostname nerves.local: nodename nor servname provided, or not known
** (Mix) Unexpected exit from ssh (:epipe)
This is known to happen when ssh interactively prompts you for a
passphrase. The following are workarounds:
1. Load your private key identity into the ssh agent by running
`ssh-add`
2. Use the `upload.sh` script. Create one by running
`mix firmware.gen.script`.
17:26:44~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ ssh-add
Identity added: ########### - hashed out details
17:27:12~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ mix firmware.gen.script
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
OK to overwrite upload.sh? [Yn] y
Writing upload.sh...
17:27:37~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ mix upload nerves.local
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
Path: /Users/elay15/projects/groxio/nerves/sensor_hub_poncho/sensor_hub/_build/rpi0_dev/nerves/images/sensor_hub.fw
Uploading to nerves.local...
ssh: Could not resolve hostname nerves.local: nodename nor servname provided, or not known
** (Mix) Unexpected exit from ssh (:epipe)
This is known to happen when ssh interactively prompts you for a
passphrase. The following are workarounds:
1. Load your private key identity into the ssh agent by running
`ssh-add`
2. Use the `upload.sh` script. Create one by running
`mix firmware.gen.script`.
17:28:04~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ mix burn
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
Use 7.4 GiB memory card found at /dev/rdisk4? [Yn] y
100% [====================================] 33.80 MB in / 36.20 MB out
Success!
Elapsed time: 4.644 s
17:32:38~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ ssh nerves.local
^C
17:34:09~/projects/groxio/nerves/sensor_hub_poncho/sensor_hub
$ ssh nerves-034e.local
$ mix nerves.info
==> nerves
==> sensor_hub
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
|nerves_bootstrap| Environment Package List
Pkg: nerves_toolchain_armv6_nerves_linux_gnueabihf
Vsn: 1.4.3
Type: toolchain
BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}
Pkg: nerves_toolchain_ctng
Vsn: 1.8.4
Type: toolchain_platform
BuildRunner: {nil, []}
Pkg: nerves_system_br
Vsn: 1.17.4
Type: system_platform
BuildRunner: {nil, []}
Pkg: nerves_system_rpi0
Vsn: 1.17.3
Type: system
BuildRunner: {Nerves.Artifact.BuildRunners.Docker, [make_args: ["source", "all", "legal-info"]]}
|nerves_bootstrap| Loadpaths Start
Nerves environment
MIX_TARGET: rpi0
MIX_ENV: dev
|nerves_bootstrap| Environment Variable List
target: rpi0
toolchain: /Users/elay15/.nerves/artifacts/nerves_toolchain_armv6_nerves_linux_gnueabihf-darwin_x86_64-1.4.3
system: /Users/elay15/.nerves/artifacts/nerves_system_rpi0-portable-1.17.3
app: .
|nerves_bootstrap| Loadpaths End
Nerves: 1.7.12
Nerves Bootstrap: 1.10.6
Elixir: 1.12.3
|nerves_bootstrap| Info End