https://github.com/idigitalflame/pocketbeagle
ArchLinux ARM Build/Config/Install scripts for the PocketBeagle (https://beagleboard.org/pocket)
https://github.com/idigitalflame/pocketbeagle
archlinux arm beagleboard configuration-files linux pocket-beagle pocketbeagle
Last synced: 7 months ago
JSON representation
ArchLinux ARM Build/Config/Install scripts for the PocketBeagle (https://beagleboard.org/pocket)
- Host: GitHub
- URL: https://github.com/idigitalflame/pocketbeagle
- Owner: iDigitalFlame
- License: apache-2.0
- Created: 2021-05-23T19:23:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T21:07:57.000Z (over 1 year ago)
- Last Synced: 2024-10-17T07:59:01.206Z (over 1 year ago)
- Topics: archlinux, arm, beagleboard, configuration-files, linux, pocket-beagle, pocketbeagle
- Language: Shell
- Homepage:
- Size: 260 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PocketBeagle Builder
This repo is dedicated to my build, install and configuration scripts for the
[PocketBeagle](https://beagleboard.org/pocket).
You can use the `install.sh` script to install and configure an ArchLinux install
that contains:
- USB Gadget (Ethernet) Support
- Auto DHCP
- Support to local proxy via Squid
- Read-only Root
- BTRFS Cache partition
- Local Console via UART
The install script requires a valid ArchLinux tar blob, which can be downloaded
[here](http://os.archlinuxarm.org/os/ArchLinuxARM-am33x-latest.tar.gz) or by
issuing the command:
- `wget http://os.archlinuxarm.org/os/ArchLinuxARM-am33x-latest.tar.gz`
- or
- `curl -Lo ArchLinuxARM-am33x-latest.tar.gz http://os.archlinuxarm.org/os/ArchLinuxARM-am33x-latest.tar.gz`
The `UbootRepo` directory is a modified Uboot build by @NitroProp
[https://github.com/NitroProp/PocketBeagle-ARCH-ReARMed](https://github.com/NitroProp/PocketBeagle-ARCH-ReARMed)
(thanks!) that is used for booting. (duh).
## Command Line Arguments
`sudo bash install.sh [source script]`
An example that should work "Out-Of-The-Box" would be:
```shell
sudo bash install.sh ArchLinuxARM-am33x-latest.tar.gz ./UbootRepo/u-boot /dev/mmcblk0
```
This example assumes the SD card you'd be using is at `/dev/mmcblk0`.
The last command line argument `[source script]` is a path to a script file that
is executed in the **Context of the Beagle (ARM) before completion** which allows
you to install other programs, enable systemd units, etc. This optional argument
is ignored if the path suggested does not exist, or is not a file.
## Install Requirements
(on the computer you're using to install from):
- `qemu-arm-static` from "qemu-user-static" (ARM chroot)
- `dd` from "coreutils" (Writing to the SD card)
- `lsof` from "lsof" (Process monitoring)
- `bsdtar` from "libarchive" (Extraction)
- `mkfs.ext4` from "e2fsprogs" (Formatting)
- `mkfs.vfat` from "dosfstools" (Formatting)
- `mkfs.btrfs` from "btrfs-progs" (Formatting)
## Building "config.sh"
The contents of "Config" directory are built using the `build-config.py` file with
the arguments:
```shell
python build-config.py ./Config ./config.sh
```
This will generate the configuration script from any changes made in the `Config`
folder. *(Requires `python3`)*
[](https://ko-fi.com/Z8Z4121TDS)