Giter Club home page Giter Club logo

Comments (7)

fhunleth avatar fhunleth commented on July 28, 2024

@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.

GregMefford avatar GregMefford commented on July 28, 2024

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.

fhunleth avatar fhunleth commented on July 28, 2024

@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.

philipgiuliani avatar philipgiuliani commented on July 28, 2024

@fhunleth I'm not at home, i'll try it out today evening.

from fwup.

philipgiuliani avatar philipgiuliani commented on July 28, 2024

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.

fhunleth avatar fhunleth commented on July 28, 2024

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.

fhunleth avatar fhunleth commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.