APL1 Yocto user documentation

From AAEON Community Wiki
Jump to: navigation, search

How to install your operating system

AAEON Community Yocto BSP

Supported Yocto Distribution

Name Version Kernel branch url
Pyro 2.3 linux-yocto v4.9
linux-yocto v4.10
pyro https://github.com/emutex/aaeonc-yocto-bsp/tree/pyro
https://github.com/emutex/meta-aaeonc/tree/pyro

Host Setup

to setup an host for building Yocto for AAEON Community set of boards follow the official yocto documentation here:

https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#yp-resources

Obtain Yocto sources

To get the BSP you need to have repo installed and use it as:

  • Install the repo utility:
mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=$PATH:$HOME/bin
  • Download the BSP source:
mkdir aaeonc-yocto-bsp
cd aaeonc-yocto-bsp
repo init -u https://github.com/emutex/aaeonc-yocto-bsp.git -b pyro
repo sync

At the end of the commands you have every metadata you need to start work with.

Build an Image

To build a full image type from the source directory:

TEMPLATECONF=meta-aaeonc/conf source oe-init-build-env
bitbake core-image-sato



How to test the single interfaces

Board Specific Instruction

All the required modules for the AAEON Community series of board are integrated in the AAEON Community kernel from the ppa.

Not all the modules are loaded by default.

Hardware monitor

To read the value from the hardware sensors the lm-sensor package should be installed.

Run sensors-detect and answer YES to “Super I/O sensors”
sensors-detect

Test the sensor output using the lm-sensors utility "sensors".

$ sensors

f71889fg-isa-0a10
Adapter: ISA adapter
+3.3V:        +3.22 V  
in1:          +0.72 V  (max =  +2.04 V)
in2:          +1.35 V  
in3:          +1.20 V  
in4:          +0.97 V  
in5:          +0.84 V  
in6:          +0.73 V  
3VSB:         +3.22 V  
Vbat:         +3.02 V  
fan1:           0 RPM  ALARM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +40.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = transistor
temp2:        +38.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = transistor
temp3:          FAULT  (high = +70.0°C, hyst = +68.0°C)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

DIO

The DIO connector on the board is managed by GPIO controller via i2c.

Usage Example

To set the DIO input 1 to 0 do:

echo 259 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio259/direction
echo 1 > /sys/class/gpio/gpio259/value

To read the DIO input 1:

echo 260 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio260/direction
cat /sys/class/gpio/gpio260/value

F81801 Watchdog Timer

Reboot after 1 minute:

echo 1 > /dev/watchdog