UpBoard Configuration
Login ID: ubuntu
PASSWORD:turin
System Operational Installation
- Download Ubuntu 20.04.4 ISO from the Ubuntu download page, we used server edition
- Burn the downloaded image on a USB stick. We suggest using etcher or rufus for doing that. You can download the suggested software from:
- Insert the USB installer disk in an empty USB port and proceed with a normal Ubuntu installation.
Setup UpBoard kernel
To access the upboard gpios, we need to change the default kernel to UpBoard kernel.
- Add the upboard repository:
- Update the repository list
- Remove all the generic installed kernel
- Install the tested kernel:
- Install the updates:
- Reboot the system
- Test if all is done right:
uname -a
Linux upxtreme-UP-WHL01 5.4.0-1-generic #2~upboard2-Ubuntu SMP Thu Jul 25 13:35:27 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Configuring drivers
To be able to use the GPIO, PWM, SPI, I2C and UART functionality with a normal user
- Install the upboard-extras
-
Add the user that needs to access the HAT funcionality
GPIO
LEDs
SPI
I2C
UART
-
Reboot the system to apply the permission changes
Installing RPi.GPIO library
To have access to GPIO with python, install the RPi.GPIO lib for upboard
- This package provides a class to control the GPIO on a Raspberry Pi, ported to work on the UP board hardware, Download the GitHub
- Install the package
- Clone Blinkt repository
- Install the blinkt package
- Run one example
- Create a file to run like the example below:
- Open the file and paste the code:
- Create the file with this path:
#systemctl enable rainbow-leds.service
[Unit]
Description=enableHotSpot
After=network.target
[Service]
User=root
Type=forking
ExecStart=/home/ubuntu/blink.sh
StandardOutput=journal
[Install]
WantedBy=multi-user.target