Comments (3)
From time to time I also get write verification errors. This below happened at around 35%. Using the generated scrript makes no difference. SD card is totally new.
samuel@build:~/src/athasha/terminal$ MIX_TARGET=rpi3 mix upload athasha-ee0c
==> nerves
==> athasha_terminal
Nerves environment
MIX_TARGET: rpi3
MIX_ENV: dev
Path: /home/samuel/src/athasha/terminal/_build/rpi3_dev/nerves/images/athasha_terminal.fw
UUID: 88d57e66-f46d-5280-bdf9-7b1ecf8d25c3
Uploading to athasha-ee0c...
fwup: Upgrading partition B
fwup: write verification failed at offset 26476544
** (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`.
And a success after that:
samuel@build:~/src/athasha/terminal$ MIX_TARGET=rpi3 mix upload athasha-ee0c
==> nerves
==> athasha_terminal
Nerves environment
MIX_TARGET: rpi3
MIX_ENV: dev
Path: /home/samuel/src/athasha/terminal/_build/rpi3_dev/nerves/images/athasha_terminal.fw
UUID: 88d57e66-f46d-5280-bdf9-7b1ecf8d25c3
Uploading to athasha-ee0c...
fwup: Upgrading partition B
100% [====================================] 24.73 MB in / 26.76 MB out
Success!
Elapsed time: 5.733 s
from nerves.
@samuelventura I've only seen this happen with bad MicroSD cards and with MicroSD card sockets that have really been used a lot. There is one brand that had many failures reported a year ago and that was Kootion. We never figured out why. I haven't heard issues with the major brands. I primarily use Kingston and Sandisk. What brand are you using?
from nerves.
I am using ADATA and SanDisk mainly. I manually uploaded the fw file and ran fwup from nerves shell with same results. This is definitely hw related. I'm closing. Thank you.
Extra observations:
- Each attempt gets a little farther
- scp failed to transfer the fw file but successfully transferred a small text file
- sftp successfully transferred the fw file
iex(5)> cmd "fwup -aU -i /tmp/athasha_terminal.fw -d /dev/mmcblk0 -t upgrade"
fwup: Upgrading partition B
51% [================== ] 11.68 MB in / 13.67 MB out143
iex(6)> cmd "fwup -aU -i /tmp/athasha_terminal.fw -d /dev/mmcblk0 -t upgrade"
fwup: Upgrading partition B
61% [===================== ] 14.34 MB in / 16.33 MB out143
iex(7)> cmd "fwup -aU -i /tmp/athasha_terminal.fw -d /dev/mmcblk0 -t upgrade"
fwup: Upgrading partition B
65% [======================= ] 15.42 MB in / 17.41 MB out143
iex(8)> cmd "fwup -aU -i /tmp/athasha_terminal.fw -d /dev/mmcblk0 -t upgrade"
fwup: Upgrading partition B
100% [====================================] 24.73 MB in / 26.77 MB out
Success!
Elapsed time: 5.665 s
from nerves.
Related Issues (20)
- Add step-by-step network connection debugging script
- Add `:nerves_env` option support HOT 4
- Add "Systems > Compatibility" documentation
- Add mix task to display artifact name/information
- openssh-askpass hangs on Manjaro Linux HOT 3
- Maybe move shared bash scripts to Elixir?
- Google linked project web page routes to 404 HOT 1
- Fix JSON handling HOT 1
- Broken packages in Nix-shell file HOT 3
- firmware.patch should handle FAT resources delta updates
- minor issues with FAQ.md HOT 3
- Help Mod bus, TCP/IP HOT 1
- Hardcoded check for GNU Coreutils on MacOS HOT 3
- Elixir 1.15 / OTP 26 support
- `mix firmware` failure during squashfs HOT 9
- Provide more helpful script output with `mix firmware` task errors
- Contributing link in readme is broken
- Formatting in installation instructions are unclear HOT 1
- Failure entering the nerves.system.shell using erlang 26.0.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerves.