Giter Site home page Giter Site logo

pi_zero_rover_image's Introduction

Setup process

bash prepare_image.sh rover_pi.img /mnt/rover_pi

bash prepare_chroot.sh /mnt/rover_pi

In Chroot

chroot into image

sudo chroot /mnt/rover_pi /usr/bin/bash

cd /home/pi/chroot_setup

sudo bash setup.sh

Cleaup process

bash cleanup_chroot.sh /mnt/rover_pi

(assuming that /dev/loop20 was created during setup)

bash cleanup_mount.sh /dev/loop20 /mnt/rover_pi

Perform the flash to SD

sudo dd if=rover_pi.img of=/dev/mmcblk0 bs=2M status=progress

First run

cd /home/pi/chroot_setup

(edit rover_config with desired hostname)

rover_config

...

HOSTNAME="green_rover"

...

sudo bash first_run_setup.sh


Notes:

  • The custom image should be at least 4G for the lite version of raspberry

fallocate -l 4G "custom-pi.img"

Password:

raspberry

echo -e "raspberry\nraspberry" | passwd "pi"

Setup keys for using pacman

    rm -R /etc/pacman.d/gnupg/
    gpg --refresh-keys
    pacman-key --init
    pacman-key --populate
    pacman-key --refresh-keys

Resources: https://disconnected.systems/blog/raspberry-pi-archlinuxarm-setup

Troubleshooting:

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.