Giter Club home page Giter Club logo

bootstrap's Issues

Edit FAT /BOOT partition without mounting

Change the flow from " flash then edit " to " edit then flash ".

  • Copy setup.sh on /boot which is a FAT partition on Debian derived linux OSes.
  • Raw edit /etc/rc.local (search in the partition, edit the bytes in place) to run the script put in /boot. Since rc.local is full of comments, this is doable without editing the partition.
  • Flash this edited image to the SDCard.

This would enable not requiring ext4 support, which would simplify supporting non-linux OSes. The main caveat is that there is no good FAT Go tool, the closest is a unsupported partial implementation https://github.com/mitchellh/go-fs. Since the whole edition can be lowered to a a single file being created, this is within the realm of the possible.

makefile support on each supported hardware ?

i would like to use periph/bootstrap so we can deploy golang and flutter ( source and binaries) to embedded devices...

We use makefile such that it allows us to use make in Github Actions and on our embedded devices with no changes except maybe some sniffing in the makefiles to detect GOOS , GOARCH, etc

Here is an example of make being used in this way: https://github.com/getcouragenow/booty/blob/master/makefile

Here is it running: https://github.com/getcouragenow/booty/actions/runs/468914088

SO , I was wondering if your bootstrap installs make on each device ?

udisksctl requirement undocumented, empty error

I didn't have udisksctl resulting in the error shown below running efe. The error message should at least be a little more useful. Probably need to document that udisksctl is required as well. If I get time I'll submit a PR. Thanks!

efe -sdcard /dev/mmcblk1 -wifi-ssid "myssid" -wifi-pass "mypass" -email "myemail" -board "raspberrypi"       
- Reusing Raspbian Jessie Lite image /home/bzub/2018-10-09-raspbian-stretch-lite.img                                                                   
- Modifying image /home/bzub/2018-10-09-raspbian-stretch-lite-mod.img                                                                                  
Warning! This will blow up everything in /dev/mmcblk1                                                                                                  
                                                                                                                                                       
This script has minimal use of 'sudo' for 'dd' to format the SDCard                                                                                    
                                                                                                                                                       
- Flashing (takes 2 minutes)                                                                                                                           
445+0 records in                                                                                                                                       
445+0 records out                                                                                                                                      
1866465280 bytes (1.9 GB, 1.7 GiB) copied, 192.543 s, 9.7 MB/s                                                                                         
- Flushing I/O cache                                                                                                                                   
                                                                                                                                                       
efe: failed to mount "/dev/mmcblk1p1": "".

txt, _ := capture("", "/usr/bin/udisksctl", "mount", "-b", mnt)

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.