Browse Source

Add some notes on raspberry pi usb + btrfs ; add some notes about arduino-cli

pull/135/head
KemoNine 2 months ago
parent
commit
5797077dbe
Signed by: KemoNine <kemonine@lollipopcloud.solutions> GPG Key ID: 3BC2928798AE11AB
2 changed files with 65 additions and 0 deletions
  1. 26
    0
      advanced/arduino.txt
  2. 39
    0
      advanced/raspberrry_pi_usb_btrfs_root.md

+ 26
- 0
advanced/arduino.txt View File

@@ -0,0 +1,26 @@
1
+Some misc notes on arduino-cli.
2
+
3
+This is mostly UNTESTED. YMMV.
4
+
5
+https://github.com/arduino/arduino-cli
6
+    use arm32 + multiarch for version 0.3.6-alpha on arm64 hardware
7
+apt install gcc-avr
8
+arduino-cli core update-index
9
+arduino-cli config init
10
+nano -w ~/.arduino15/arduino-cli.yaml
11
+board_manager:
12
+  additional_urls:
13
+    - https://raw.githubusercontent.com/adafruit/arduino-board-index/gh-pages/package_adafruit_index.json
14
+    - https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json
15
+    - https://dl.espressif.com/dl/package_esp32_index.json
16
+
17
+arduino-cli core update-index
18
+arduino-cli core install arduino:avr
19
+arduino-cli core install arduino:sam
20
+arduino-cli core install arduino:samd
21
+arduino-cli core install adafruit:avr
22
+arduino-cli core install adafruit:samd
23
+arduino-cli core install SparkFun:avr
24
+arduino-cli core install SparkFun:samd
25
+arduino-cli core install esp32:esp32
26
+arduino-cli core install esp8266:esp8266

+ 39
- 0
advanced/raspberrry_pi_usb_btrfs_root.md View File

@@ -0,0 +1,39 @@
1
+# Running a Raspberry Pi with USB based btrfs root filesystem
2
+
3
+This is a very advanced configuration and here as a set of notes for the more daring users building remixes.
4
+
5
+Please note: *you will need to change ```/dev/sda``` and ```/dev/sdb``` as well as any sizes and offsets to match your needs and approach*.
6
+
7
+``` bash
8
+
9
+dd if=/dev/sda of=/dev/sdb bs=1M
10
+parted /dev/sdb
11
+    mkpart
12
+    33G
13
+    -1
14
+    q
15
+mkfs.btrfs \
16
+    -L writable \
17
+    /dev/sdb3
18
+mkdir /mnt/new
19
+mkdir /mnt/orig
20
+mount /dev/sdb2 /mnt/orig
21
+mount -o autodefrag,compress,ssd,ssd_spread /dev/sdb3 /mnt/new
22
+rsync -aPr --delete-after /mnt/orig/ /mnt/new/
23
+nano -w /mnt/new/etc/fstab
24
+    btrfs filesystem type && mount options
25
+mount /dev/sdb1 /mnt/new/boot/firmware
26
+nano -w /mnt/new/boot/firmware/config.txt /mnt/new/boot/firmware/cmdline.txt
27
+umount /mnt/orig
28
+pvcreate /dev/sdb2
29
+vgcreate misc /dev/sdb2
30
+lvcreate -C y -n swap.1 -L 1G misc
31
+lvcreate -n scratch -L 6G misc
32
+mkswap /dev/mapper/misc-swap.1
33
+mkfs.btrfs -L scratch /dev/mapper/misc-scratch
34
+mkdir /scratch
35
+nano -w /mnt/new/etc/fstab
36
+    add lvm swap
37
+    add lvm scratch
38
+
39
+```

Loading…
Cancel
Save