<commit_before>### Prequisites

* Raspberry Pi 2B/3B/3B+
* Raspbian Stretch

### Installation
0. Create full backup of your SD card
1. Add the public key of the repository
   ```bash
   wget -q -O - https://www.pivccu.de/piVCCU/public.key | sudo apt-key add -
   ```

2. Add the package repository
   ```bash
   sudo bash -c 'echo "deb https://www.pivccu.de/piVCCU stable main" > /etc/apt/sources.list.d/pivccu.list'
   sudo apt update
   ```
   Instead of `stable` you can also use the `testing` tree, but be aware testing sometimes means not that stable.

3. Install the neccessary kernel modules
   ```bash
   sudo apt install pivccu-modules-dkms
   ```

4. Install the neccessary device tree patches (You can skip this step, if you do not use the HM-MOD-RPI-PCB or RPI-RF-MOD on GPIO header, for the HB-RF-USB this step is not neccessary)
   ```bash
   sudo apt install pivccu-modules-raspberrypi
   ```

4. Enable UART GPIO pins (only on Raspberry Pi 3) (You can skip this step, if you do not use the HM-MOD-RPI-PCB)
   * Option 1: Disabled bluetooth (prefered)
      ```bash
      sudo bash -c 'cat << EOT >> /boot/config.txt
      dtoverlay=pi3-disable-bt
      EOT'
      sudo systemctl disable hciuart.service
      ```

   * Option 2: Bluetooth attached to mini uart
      ```bash
      sudo bash -c 'cat << EOT >> /boot/config.txt
      dtoverlay=pi3-miniuart-bt
      enable_uart=1
      force_turbo=1
      EOT'
      ```

5. Disable serial console in command line (You can skip this step, if you do not use the HM-MOD-RPI-PCB)
   ```bash
   sudo sed -i /boot/cmdline.txt -e "s/console=serial0,[0-9]\+ //"
   sudo sed -i /boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"<commit_msg>Updated setup instructions for Raspberry Pi<commit_after>### Prequisites

* Raspberry Pi 2B/3B/3B+
* Raspbian Stretch

### Installation
0. Create full backup of your SD card
1. Add the public key of the repository
   ```bash
   wget -q -O - https://www.pivccu.de/piVCCU/public.key | sudo apt-key add -
   ```

2. Add the package repository
   ```bash
   sudo bash -c 'echo "deb https://www.pivccu.de/piVCCU stable main" > /etc/apt/sources.list.d/pivccu.list'
   sudo apt update
   ```
   Instead of `stable` you can also use the `testing` tree, but be aware testing sometimes means not that stable.

3. Install the neccessary kernel modules
   ```bash
   sudo apt install pivccu-modules-dkms
   ```

4. Install the neccessary device tree patches (You can skip this step, if you do not use the HM-MOD-RPI-PCB or RPI-RF-MOD on GPIO header, for the HB-RF-USB this step is not neccessary)
   ```bash
   sudo apt install pivccu-modules-raspberrypi
   ```

4. Enable UART GPIO pins (only on Raspberry Pi 3) (You can skip this step, if you do not use the HM-MOD-RPI-PCB or RPI-RF-MOD on GPIO header, for the HB-RF-USB this step is not neccessary)
   * Option 1: Disabled bluetooth (prefered)
      ```bash
      sudo bash -c 'cat << EOT >> /boot/config.txt
      dtoverlay=pi3-disable-bt
      EOT'
      sudo systemctl disable hciuart.service
      ```

   * Option 2: Bluetooth attached to mini uart
      ```bash
      sudo bash -c 'cat << EOT >> /boot/config.txt
      dtoverlay=pi3-miniuart-bt
      enable_uart=1
      force_turbo=1
      EOT'
      ```

5. Disable serial console in command line (You can skip this step, if you do not use the HM-MOD-RPI-PCB or RPI-RF-MOD on GPIO header, for the HB-RF-USB this step is not neccessary)
   ```bash
   sudo sed -i /boot/cmdline.txt -e "s/console=serial0,[0-9]\+ //"
   sudo sed -i /boot/cmdline.txt -e "s/console=ttyAMA0,[0-9]\+ //"
{'fraction_non_alphanumeric': 0.11297539149888143, 'fraction_numerical': 0.012863534675615212, 'mean_word_length': 2.765263157894737, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5492257', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1228, 'n_words': 445}