~hnaguski/dashcam_buildroot

a br2-external tree for my dashcam project
Print out the fact that expand runs sync
Start setting up power system. The plan is to use the gpio-poweroff

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~hnaguski/dashcam_buildroot
read/write
git@git.sr.ht:~hnaguski/dashcam_buildroot

You can also use your local clone with git send-email.

Instructions
------------

Aquire hardware:
	Raspberry pi zero w
	Raspberry pi camera
	DS3231 based RTC (I have this one: https://www.adafruit.com/product/4282)
	Decently sized sd card

Clone this repo:
	$ git clone https://git.sr.ht/~hnaguski/dashcam_buildroot

Get buildroot:
	$ wget https://buildroot.org/downloads/buildroot-2021.08.1.tar.gz
or
	$ git clone git://git.buildroot.net/buildroot
	$ git checkout 2021.08.1

Change password of default user (called cam):
	$ ./setpasswd cam

Change root user password:
	$ ./setpasswd root

Tell buildroot to use this repo as a BR2_EXTERNAL tree:
	$ cd /path/to/source/of/buildroot
	$ make BR2_EXTERNAL=/path/to/this/repo list-defconfigs

Use the dashcam defconfig:
	$ make rpi0w_dashcam_defconfig

Build buildroot image (this takes a while):
	$ make && notify-send "buildroot is done building"

Identify desired device to put the image on:
	# fdisk -l

Copy image to said device:
	# dd if=/path/to/buildroot/output/images/sdcard.img of=/path/to/device status=progress

Resize video partition (third partition)
	./expand /path/to/device

What?
-----

This is a br2-external tree containing configurations for my dashcam project
which can be found at https://sr.ht/~hnaguski/dashcam

Currently I am making configs based on a Raspberry Pi Zero W with the
official camera module, an adafruit PIRTC DS3231, and some buttons/lights
controlled via the GPIO pins.

There will also be some software packages which contain programs/scripts for the
dashcam.