Difference between revisions of "AIR 021 Development"

From ESS-WIKI
Jump to: navigation, search
Line 88: Line 88:
 
[[File:021-xrandr.png|600px|border]]
 
[[File:021-xrandr.png|600px|border]]
  
 +
==== '''CAN''' ====
 +
Hardware setting
 +
<br/>
 +
[[File:Canbus ds015 4.png|600px|border]]
 +
 +
Set JPCAN1 Jumper to Can mode
 +
<br/> [[File:Canbus ds015.png|600px|border]]
 +
 +
Switch SW3 to ON
 +
<br/> [[File:Canbus ds015 1.png|600px|border]]
 +
 +
<Receive> In terminal, run below command
 +
<pre>
 +
$ sudo su
 +
# modprobe can
 +
# modprobe can-dev
 +
# modprobe mttcan
 +
# ip link set can0 type can bitrate 500000
 +
# ip link set can0 up
 +
# candump can0
 +
</pre>
 +
 +
<Transmit> In other device terminal, run below command
 +
<pre>
 +
$ sudo su
 +
# modprobe can
 +
# modprobe can-dev
 +
# modprobe mttcan
 +
# ip link set can0 type can bitrate 500000
 +
# ip link set can0 up
 +
# cansend can0 123#abcdabcd
 +
</pre>
 
== Reference ==
 
== Reference ==
 
[[AIR-021|AIR-021]]
 
[[AIR-021|AIR-021]]

Revision as of 09:47, 28 August 2025

Attention

Account & Password

Account number

ubuntu

In device used "sudo" or "sudo su" to root. Password required.

ubuntu

Flash Mac Address

First need to add a patch to the device tree{ Commit 682f22e8: [LAN] Enable Ethernet Controller I225-LM/I225-V support }

Download I226 tool to Device

I226 Flash Tool

Extract file

$ sudo tar zxvf LAN_I226_AIR-021.tar.gz

Flash

Attention : The MAC address can only be burned in once

Please make sure mac address and set in : -mac=<XXXXXXXXXXXX>

$ cd LAN_I226_AIR-021/I226_Flash_Tool
$ sudo su
# ./EepromAccessTool
# lspci
# setpci -s 0009:01:00.0 COMMAND=0007
# ./EepromAccessTool -nic=1 -f=FXVL_125B_LM_2MB_2.23.bin -mac=XXXXXXXXXXXX

Power off and restart

Cold reboot the device.

Burnin

AIR-021 Burnin

BootCount

Choose ATX or AT mode

021-atx-at.png

BootCount tool install

In first time please install bootcount tool

$ cd /usr/local/bin/BootCount+shutdown
$ sudo chmod a+x install.sh
$ sudo ./install.sh
$ cd /home/ubuntu
$ sudo ./bootCount.sh

Default enter the OS 30s will poweroff

Boot On Off

The boot count message will be printed before log-in.
Air030 bootcount.jpg
Reset the boot count please remove bootCount.tt.

$ rm bootCount.tt

Tools

Test Command

JP6.2

HDMI

Set on debug port

$ export DISPLAY=:0
$ xrandr

Image resolution : Full HD 1920 x 1080 pixels

$ xrandr -d :0 --output HDMI-0 --mode 1920x1080 -r 60.00

Image resolution : 4K 3840 x 2160 pixels

$ xrandr -d :0 --output HDMI-0 --mode 3840x2160 -r 60.00

021-xrandr.png

CAN

Hardware setting
Canbus ds015 4.png

Set JPCAN1 Jumper to Can mode
Canbus ds015.png

Switch SW3 to ON
Canbus ds015 1.png

<Receive> In terminal, run below command

$ sudo su
# modprobe can
# modprobe can-dev
# modprobe mttcan
# ip link set can0 type can bitrate 500000
# ip link set can0 up
# candump can0

<Transmit> In other device terminal, run below command

$ sudo su
# modprobe can
# modprobe can-dev
# modprobe mttcan
# ip link set can0 type can bitrate 500000
# ip link set can0 up
# cansend can0 123#abcdabcd

Reference

AIR-021