Skip to content

Commit f35a866

Browse files
authored
Merge pull request #22 from macmpi/dev
version 1.2
2 parents 0d36941 + 2046d87 commit f35a866

File tree

7 files changed

+202
-117
lines changed

7 files changed

+202
-117
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ Extra files may be added next to `headless.apkovl.tar.gz` to customise boostrapp
2525
- `interfaces`[^3] (*optional*): define network interfaces at will, if defaults DCHP-based are not suitable.
2626
- `authorized_keys` (*optional*): provide client's public SSH key to secure `root` ssh login.
2727
- `ssh_host_*_key*` (*optional*): provide server's custom ssh keys to be injected (may be stored), instead of using bundled ones[^2] (not stored). Providing an empty key file will trigger new keys generation (ssh server may take longer to start).
28+
- `auto-updt` (*optional*): allow apkovl file automatic update with latest from master branch. If it contains *reboot* keyword all in one line, system will reboot after succesful update (unless ssh session is active or `unattended.sh` script is available).
2829

30+
Main execution steps are logged: `cat /var/log/messages | grep headless`.
2931

30-
**Goody:** seamless USB-serial & USB-ethernet gadget mode (PiZero for instance):\
31-
On supporting Pi devices, just add `dtoverlay=dwc2,dr_mode=peripheral` in `usercfg.txt` (or `config.txt`), and plug USB cable into host Computer port.\
32+
## Goody:
33+
Seamless USB-serial & USB-ethernet gadget mode (*e.g. PiZero*):
34+
- Make sure dwc2/dwc3 driver is loaded accordingly, and device configuration is set to `peripheral` mode: this may be hardware (including cable) and/or software driven.\
35+
(on supporting Pi devices, just add `dtoverlay=dwc2,dr_mode=peripheral` in `usercfg.txt` (or `config.txt`) to force by software)
36+
- Plug USB cable into host Computer port before boot.\
3237
Serial terminal can then be connected-to from host Computer (e.g. `cu -l ttyACM0` on Linux. xon/xoff flow control).\
3338
Alternatively, with host Computer set-up to share networking with USB interface as 10.42.0.1 gateway, one can log into device from host with: `ssh [email protected]`.
3439

35-
Main execution steps are logged: `cat /var/log/messages | grep headless`.
36-
3740
[^1]: Initial boot fully preserves system's original state (config files & installed packages): a fresh system will therefore come-up as unconfigured.
3841

3942
[^2]: About bundled ssh keys: this overlay is meant to **quickly bootstrap** system in order to then proceed with proper install; therefore it purposely embeds [some ssh keys](https://github.com/macmpi/alpine-linux-headless-bootstrap/tree/main/overlay/tmp/.trash) so that bootstrapping is as fast as possible. Those temporary keys are moved in RAM /tmp: they will **not be stored/reused** once actual system install is performed (whether or not ssh server is installed in final setup).

headless.apkovl.tar.gz

1 KB
Binary file not shown.

headless.apkovl.tar.gz.sha512

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
36892e9aa76807941602160ff62948c8953eefa36f9b386a0c7302fc46710b473a3e14b7eaf223a1ae6ac6454a839c78049c311fdbd50a204b2a011cb8faa474 headless.apkovl.tar.gz

make.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ if [ -n "$build_path" ]; then
3030
doas tar cv -C "$build_path"/overlay --no-recursion \
3131
$(doas find "$build_path"/overlay/ | sed "s|$build_path/overlay/||" | sort | xargs ) | \
3232
gzip -c9n > headless.apkovl.tar.gz
33-
TZ=UTC touch -cm -t "$t_stamp" headless.apkovl.tar.gz
33+
sha512sum headless.apkovl.tar.gz > headless.apkovl.tar.gz.sha512
34+
TZ=UTC touch -cm -t "$t_stamp" headless.apkovl.tar.gz*
3435
doas rm -rf "$build_path"
3536
fi
3637

0 commit comments

Comments
 (0)