-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mh-superbox/develop
Develop
- Loading branch information
Showing
57 changed files
with
795 additions
and
282 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,44 @@ | ||
# Unipi Neuron buildroot | ||
|
||
This is an external buildroot tree for the Unipi Neuron (https://www.unipi.technology/). | ||
All images contain Systemd, Python 3, Unipi kernel, Unipi tools and many useful system tools. | ||
The sdcard image is less than 300 MB! | ||
This is an external buildroot tree for the [Unipi Neuron](https://www.unipi.technology/) and the [Unipi Control](https://github.com/mh-superbox/unipi-control). | ||
|
||
Device config for: | ||
* Unipi Neuron - RPi 3B+ | ||
* Unipi Neuron - RPi 4B | ||
|
||
## Usage | ||
|
||
Download buildroot from https://buildroot.org/download.html and add this repro as external path. | ||
|
||
```shell | ||
$ git clone git@github.com:mh-superbox/rpi-buildroot.git | ||
$ git clone git://git.buildroot.net/buildroot | ||
~$ git clone https://github.com/mh-superbox/rpi-buildroot.git | ||
~$ git clone git://git.buildroot.net/buildroot | ||
|
||
~$ cd /buildroot | ||
~/buildroot$ # checkout LTS version | ||
~/buildroot$ git checkout 2022.02.2 | ||
|
||
$ cd /buildroot | ||
$ # checkout LTS version | ||
$ git checkout 2021.02.9 | ||
~/buildroot$ make BR2_EXTERNAL=../unipi-buildroot/buildroot list-defconfigs | ||
~/buildroot$ make unipi_neuron_rpi3b_defconfig | ||
|
||
$ make BR2_EXTERNAL=../rpi-buildroot list-defconfigs | ||
$ make unipi_neuron_rpi3b_defconfig | ||
# You can change the hostname with the BR2_TARGET_GENERIC_HOSTNAME variable | ||
~/buildroot$ make BR2_TARGET_GENERIC_HOSTNAME=unipi clean all | ||
``` | ||
|
||
For more information visit https://buildroot.org/ and read the documenation. | ||
Wait a long time ... and then write the image to a sdcard. | ||
|
||
```shell | ||
~/buildroot$ cd output/images/ | ||
~/buildroot/output/images$ dd bs=4M if=sdcard.img of=/dev/XXX status=progress | ||
``` | ||
Boot you Unipi Neuron with the sdcard and connect with ssh: | ||
The username and password are `unipi`. | ||
|
||
```shell | ||
~$ ssh unipi@unipi.local | ||
``` | ||
|
||
For more information visit https://buildroot.org/ and read the documenation. | ||
|
||
## Features | ||
|
||
* Monit is run at http://unipi.local:2812/ (Username and password are `unipi`) | ||
* OWFS (1-Wire) is run at http://unipi.local:8080/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
comment "Unipi packages" | ||
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-kernel/Config.in" | ||
source "$BR2_EXTERNAL_UNIPI_PATH/package/unipi-tools/Config.in" | ||
|
||
comment "Shell optimizations" | ||
source "$BR2_EXTERNAL_UNIPI_PATH/package/zsh-autosuggestions/Config.in" | ||
source "$BR2_EXTERNAL_UNIPI_PATH/package/zsh-history-substring-search/Config.in" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Please note that this is only a sample, we recommend you to change it to fit | ||
# your needs. | ||
# You should override this file using BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE. | ||
# See http://buildroot.org/manual.html#rootfs-custom | ||
# and http://elinux.org/RPiconfig for a description of config.txt syntax | ||
|
||
start_file=start.elf | ||
fixup_file=fixup.dat | ||
|
||
kernel=Image | ||
|
||
# To use an external initramfs file | ||
#initramfs rootfs.cpio.gz | ||
|
||
# Disable overscan assuming the display supports displaying the full resolution | ||
# If the text shown on the screen disappears off the edge, comment this out | ||
disable_overscan=1 | ||
|
||
# How much memory in MB to assign to the GPU on Pi models having | ||
# 256, 512 or 1024 MB total memory | ||
gpu_mem_256=100 | ||
gpu_mem_512=100 | ||
gpu_mem_1024=100 | ||
|
||
# fixes rpi (3B, 3B+, 3A+, 4B and Zero W) ttyAMA0 serial console | ||
dtoverlay=miniuart-bt | ||
|
||
# enable autoprobing of Bluetooth driver without need of hciattach/btattach | ||
dtoverlay=krnbt=on | ||
|
||
# Neuron | ||
dtparam=i2c_arm=on | ||
dtoverlay=i2c-rtc,mcp7941x | ||
dtoverlay=neuron-spi-new | ||
|
||
# enable 64bits support | ||
arm_64bit=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count> | ||
/etc/monit/monitrc f 700 0 0 - - - - - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
buildroot/board/common/rootfs_overlay/etc/monit/conf-available/avahi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
check process avahi with pidfile /var/run/avahi-daemon/pid | ||
group avahi | ||
|
||
start program = "/bin/systemctl start avahi-daemon.service" with timeout 60 seconds | ||
stop program = "/bin/systemctl stop avahi-daemon.service" | ||
|
||
if failed host 0.0.0.0 port 5353 type udp then restart | ||
if 5 restarts within 5 cycles then timeout |
Oops, something went wrong.