The ODROID-C1 is a $35 quad-core computer with a Raspberry Pi compatible 40-pin header, though far more powerful and feature-rich.
Features of the board include:
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer. Use the provided micro SD to eMMC adapter card to install to eMMC.
dd if=/dev/zero of=/dev/sdX bs=1M count=8
fdisk /dev/sdX
mkfs.ext4 /dev/sdX1
mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdX1
mkdir root mount /dev/sdX1 root
wget http://os.archlinuxarm.org/os/ArchLinuxARM-odroid-c1-latest.tar.gz bsdtar -xpf ArchLinuxARM-odroid-c1-latest.tar.gz -C root
cd root/boot ./sd_fusing.sh /dev/sdX cd ../..
umount root
pacman-key --init pacman-key --populate archlinuxarm
To make use of the IR receiver, load module meson-ir
For one PWM (pin 33) and one SPI:
sudo modprobe pwm-peson npwm=1
sudo modprobe pwm-ctrl
For two PWM (pins 33 and 19) and no SPI
sudo modprobe pwm-peson npwm=2
sudo modprobe pwm-ctrl
You can control the PWM via simple sysfs entries. In /sys/devices/platform/pwm-ctrl you'll find the following files:
echo 50 > duty0 # 50% duty cycle
echo 1 > enable0 # enable PWM0
echo 100000 > freq0 # set frequency to 100kHz
Copyright ©2009-2022 Arch Linux ARM
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
The Arch Linux™ name and logo are used under permission of the Arch Linux Project Lead.