Skip to content

Files

Latest commit

81af5b9 · May 10, 2020

History

History
This branch is 510 commits behind marcone/teslausb:main-dev.

pi-gen-sources

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 10, 2020
Jan 22, 2020

Building a teslausb image

To build a ready to flash one-step setup image for CIFS, do the following:

  1. Clone pi-gen from https://github.com/RPi-Distro/pi-gen
  2. Follow the instructions in the pi-gen readme to install the required dependencies
  3. In the pi-gen folder, run:
    echo 'IMG_NAME=teslausb' > config
    echo 'HOSTNAME=teslausb' >> config
    echo 'STAGE_LIST="stage0 stage1 stage2 stage_teslausb"' >> config
    rm -rf stage2/EXPORT_NOOBS
    mkdir stage_teslausb
    touch stage_teslausb/EXPORT_IMAGE
    cp stage2/prerun.sh stage_teslausb/prerun.sh
    
  4. Copy teslausb/pi-gen-sources/00-teslausb-tweaks to the pi-gen/stage_teslausb folder
  5. Run build.sh or build-docker.sh, depending on how you configured pi-gen to build the image
  6. Sit back and relax, this could take a while (for reference, on a dual-core 2.6 Ghz Intel Core i3 and 50 Mbps internet connection, it took under an hour) If all went well, the image will be in the deploy folder. Use Etcher or similar tool to flash it.