Comments (7)
@mobileoverlord - FYI: this issue may affect the Nerves tooling. I'm still thinking of a solution. The backstory to this issue is that @philipgiuliani is running on a Raspberry Pi where the SDCard containing the OS looks a lot like an SDCard that fwup
would like to program. Use of a configuration file came up while we were brainstorming possible solutions. I'm currently leaning towards being smarter with the auto-detect logic for this situation. That doesn't mean there wouldn't be a conf file, though. Also, I believe that we're swapped in how we ask the user to proceed. fwup
defaults to not burning an auto-detected SDCard, and mix firmware.burn
defaults to burning. We should probably make it consistent.
from fwup.
You could process the output of df
to ignore the drive that's mounted at /
.
I was thinking you could ignore anything that's in df
, since the person wouldn't be mounting their SD card, but that's probably not as robust with Linux auto-mounting USB drives.
from fwup.
@philipgiuliani: I added detection of which drive is mounted at /
to exclude it from the autodetect list. It's in the autodetect
branch. Could you try it out? You can get a prebuilt .deb
package for Raspbian here: http://files.troodon-software.com/fwup/autodetect/fwup_0.9.2-dev_armhf.deb. It will install fwup
to /usr/bin
, so if you've previously compiled from source, be sure to remove the one in /usr/local/bin
.
from fwup.
@fhunleth I'm not at home, i'll try it out today evening.
from fwup.
It seems to have worked fine.
pi@philipdev:~/workspace/gardex/apps/fw $ mix firmware.burn
Use 3.69 GiB memory card found at /dev/sda? [Yn]
Awesome, thanks! :)
from fwup.
Great! Thanks for verifying. I'll merge the change to master
for the next release.
I'm going to keep this issue open a little bit longer since the config file is still interesting. It has some ramifications, though, that need thought. If I don't get any great ideas before the next release, I'll close this and possibly open an issue solely regarding the config file.
from fwup.
I'm closing this issue, since I'm pretty sure that the original problem has been addressed. I'm not opposed to having a global config file, but I don't feel like there's enough motivation to spend time adding it (for me at least).
from fwup.
Related Issues (20)
- MBR partitions expansion not working on OSX HOT 1
- metadata tests failing HOT 4
- gpt checksum problem HOT 7
- require-partition-offset with gpt HOT 3
- Handle new line characters in `--public-key` HOT 2
- boot=true flag fails for gpt HOT 1
- Fail if meta-product is not correct HOT 3
- v1.8.2 Autodetect of `dev/mmcblk0` fails due to `/sys/block/mmcblk0/removable` returning 0 HOT 4
- Test Suite fails for v1.8.2 compile on NixOS HOT 3
- Could anyone help me move CI from Travis-CI to anywhere else? HOT 1
- fsck.fat v4.2 failure HOT 4
- question: sometimes, for ext4 partition, no sparse compression is done HOT 4
- Failed to start File System Check on Root Device HOT 6
- fwup:amd64 : Depends: libc6:amd64 (>= 2.4) but it is not installable HOT 8
- Add `.deb` for `aarch64` to the releases
- zlib-1.2.11 is no longer available from zlib.net HOT 3
- Add lock file support
- Support usb drive or card reader HOT 4
- Compiling with glibc 2.36 fails due to conflicting headers HOT 1
- xdelta tries to read too much data HOT 5
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 fwup.