4. Debian Application

Account: linaro; Password: linaro

4.1 Serial Terminal

Debug

Connect the board and PC with USB Serial cable, then power on, the terminal will output boot information. The default baudrate is 115200.

Terminal_UI

Serial Terminal

4.2 Display

Display IO

IdeaT527 provides HDMI and LVDS/MIPI output interfaces. The default configuration supports the following display combinations:

  • LVDS0 + LVDS2

  • LVDS0 + HDMI

  • MIPI0 + HDMI

_images/Debian_display1.webp

LVDS0 & LVDS2

_images/Debian_display2.webp

LVDS0 & HDMI

_images/Debian_display3.webp

MIPI0 & HDMI

4.3 USB

USB

IdeaT527 provides 2x USB2.0 connector, one of which is OTG-compatible.

4.3.1 USB2.0 Host

If the USB flash drive is connected and recognized successfully, an icon appears on the desktop. Double-click the icon to access the files on the drive.

Debian_Test_USB

4.3.2 USB2.0 OTG

USB

USB0(up) is OTG-compatible and is configured as Device mode by default.

Switch to Host mode
1echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
Serial terminal output
root@localhost:~# echo usb_host > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[  214.399298] sunxi:sunxi_usbc:[INFO]: rmmod_device_driver@3000000/10.usbc0/otg_role
[  214.407420] sunxi:sunxi_usbc:[INFO]: insmod_host_driver
[  214.414993] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_enable_ehci
[  214.423115] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc00963b5e8, 0x:ffffffc009bb5000, irq_no:88
[  214.439297] sunxi-ehci 4101000.ehci0-controller: supply hci not found, using dummy regulator
[  214.450064] sunxi-ehci 4101000.ehci0-controller: EHCI Host Controller
[  214.457318] sunxi-ehci 4101000.ehci0-controller: new USB bus registered, assigned bus number 5
[  214.467060] sunxi-ehci 4101000.ehci0-controller: irq 136, io mem 0x04101000
[  214.490610] sunxi-ehci 4101000.ehci0-controller: USB 2.0 started, EHCI 1.00
[  214.498699] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[  214.508036] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  214.516202] usb usb5: Product: EHCI Host Controller
[  214.522516] usb usb5: Manufacturer: Linux 5.15.147 ehci_hcd
[  214.528886] usb usb5: SerialNumber: sunxi-ehci
[  214.534986] hub 5-0:1.0: USB hub found
[  214.539290] hub 5-0:1.0: 1 port detected
[  214.544170] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_enable_ohci
[  214.553851] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc00963c278
[  214.568161] sunxi-ohci 4101400.ohci0-controller: supply hci not found, using dummy regulator
[  214.581256] sunxi-ohci 4101400.ohci0-controller: OHCI Host Controller
[  214.588497] sunxi-ohci 4101400.ohci0-controller: new USB bus registered, assigned bus number 6
[  214.598202] debugfs: Directory 'sunxi-ohci' with parent 'ohci' already present!
[  214.606445] sunxi-ohci 4101400.ohci0-controller: irq 137, io mem 0x04101400
[  214.674788] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[  214.684047] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  214.692168] usb usb6: Product: OHCI Host Controller
[  214.697654] usb usb6: Manufacturer: Linux 5.15.147 ohci_hcd
[  214.703911] usb usb6: SerialNumber: sunxi-ohci
[  214.709287] hub 6-0:1.0: USB hub found
[  214.713520] hub 6-0:1.0: 1 port detected
Switch to Device mode
1echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
Serial terminal output
root@localhost:~# echo usb_device > /sys/devices/platform/soc@3000000/10.usbc0/otg_role
[  532.907282] sunxi:sunxi_usbc:[INFO]: rmmod_host_driver/soc@3000000/10.usbc0/otg_role
[  532.914842] sunxi:ehci_sunxi:[INFO]: [ehci0-controller]: sunxi_usb_disable_ehci
[  532.923084] sunxi:ehci_sunxi:[INFO]: [sunxi-ehci0]: remove, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffc00963b5e8
[  532.936076] sunxi-ehci 4101000.ehci0-controller: remove, state 4
[  532.942822] usb usb5: USB disconnect, device number 1
[  532.948997] sunxi-ehci 4101000.ehci0-controller: USB bus 5 deregistered
[  532.956767] sunxi:ohci_sunxi:[INFO]: [ohci0-controller]: sunxi_usb_disable_ohci
[  532.964982] sunxi:ohci_sunxi:[INFO]: [sunxi-ohci0]: remove, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffc00963c278
[  532.977966] sunxi-ohci 4101400.ohci0-controller: remove, state 4
[  532.984716] usb usb6: USB disconnect, device number 1
[  532.991093] sunxi-ohci 4101400.ohci0-controller: USB bus 6 deregistered
[  532.998984] sunxi:sunxi_usbc:[INFO]: insmod_device_driver

4.4 Ethernet

Ethernet

❶ Connect the board and router with an Ethernet cable. According to the log, it can be seen that the Gigabit Ethernet recognition is successful.

Serial terminal output
root@localhost:~#
[  120.653124] sunxi-gmac 4500000.gmac0 eth0: Link is Up - 1Gbps/Full - flow control off
[  120.662102] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

❷ View the status of the network interface.

1ifconfig
Serial terminal output
root@localhost:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.36  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::80e7:226a:415b:5e96  prefixlen 64  scopeid 0x20<link>
        ether de:e4:39:05:0e:30  txqueuelen 1000  (Ethernet)
        RX packets 153  bytes 12976 (12.6 KiB)
        RX errors 0  dropped 18  overruns 0  frame 0
        TX packets 18  bytes 1938 (1.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 173

❸ Network connection test.

1ping -I eth0 www.armdesigner.com
Serial terminal output
root@localhost:~# ping -I eth0 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196) from 192.168.0.36 eth0: 56(84) bytes of data.
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=1 ttl=49 time=189 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=2 ttl=49 time=210 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=3 ttl=49 time=205 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=4 ttl=49 time=234 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=5 ttl=49 time=225 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=6 ttl=49 time=204 ms
^C
--- www.armdesigner.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 189.204/211.286/233.520/14.514 ms

4.5 4G & SSD (M.2)

4G+SSD

4G(USB2) cannot be used with SSD(PCIe) simultaneously. The Boardcon firmware enables 4G by default.

4.5.1 4G

❶ Insert 4G module to M.2 slot (4G model: EM05).

❷ Connect antenna and insert SIM card.

❸ Power on.

❹ Initiate the PPP connection.

1pppd call quectel-ppp &
Serial terminal output
root@localhost:~# pppd call quectel-ppp &
[1] 1213
root@localhost:~# pppd options in effect:
debug           # (from /etc/ppp/peers/quectel-ppp)
nodetach                # (from /etc/ppp/peers/quectel-ppp)
dump            # (from /etc/ppp/peers/quectel-ppp)
noauth          # (from /etc/ppp/peers/quectel-ppp)
user test               # (from /etc/ppp/peers/quectel-ppp)
password ??????         # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp                # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB3            # (from /etc/ppp/peers/quectel-ppp)
115200          # (from /etc/ppp/peers/quectel-ppp)
lock            # (from /etc/ppp/peers/quectel-ppp)
connect chat -s -v -f /etc/ppp/peers/quectel-chat-connect               # (from /etc/ppp/peers/quectel-ppp)
disconnect chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect         # (from /etc/ppp/peers/quectel-ppp)
nocrtscts               # (from /etc/ppp/peers/quectel-ppp)
modem           # (from /etc/ppp/peers/quectel-ppp)
asyncmap 0              # (from /etc/ppp/options)
lcp-echo-failure 4              # (from /etc/ppp/options)
lcp-echo-interval 30            # (from /etc/ppp/options)
hide-password           # (from /etc/ppp/peers/quectel-ppp)
novj            # (from /etc/ppp/peers/quectel-ppp)
novjccomp               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local               # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote              # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp           # (from /etc/ppp/peers/quectel-ppp)
noipdefault             # (from /etc/ppp/peers/quectel-ppp)
ipcp-max-failure 30             # (from /etc/ppp/peers/quectel-ppp)
defaultroute            # (from /etc/ppp/peers/quectel-ppp)
usepeerdns              # (from /etc/ppp/peers/quectel-ppp)
noccp           # (from /etc/ppp/peers/quectel-ppp)
noipx           # (from /etc/ppp/options)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it

send (ATE0^M)
expect (OK)
^M

❺ Test 4G Network.

1ifconfig
2ping -I ppp0 www.armdesigner.com
Serial terminal output
root@localhost:~# ifconfig
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.54.2.148  netmask 255.255.255.255  destination 10.64.64.64
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 4  bytes 52 (52.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 198 (198.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
root@localhost:~# ping -I ppp0 www.armdesigner.com
PING www.armdesigner.com (67.222.54.196) from 10.54.2.148 ppp0: 56(84) bytes of data.
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=1 ttl=42 time=324 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=2 ttl=42 time=290 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=3 ttl=42 time=258 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=4 ttl=42 time=264 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=5 ttl=42 time=296 ms
64 bytes from 67-222-54-196.unifiedlayer.com (67.222.54.196): icmp_seq=6 ttl=42 time=257 ms
^C
--- www.armdesigner.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5000ms
rtt min/avg/max/mdev = 256.983/281.440/324.067/24.307 ms

4.5.2 SSD

Note

IdeaT527 Debian firmware only supports ext4-formatted SSDs. If devices that are not in ext4 format, the user can choose to format them on the board. After formatting, the files on the device will be permanently lost, so please proceed with caution.

1mke2fs -t ext4 /dev/block/nvme0n1p1

❶ Insert SSD module to M.2 slot.

❷ Power on.

❸ Mount SSD.

If the SSD device is connected and recognized successfully, an icon appears on the desktop. Double-click the icon to access the files on the drive.

Debian_Test_USB

4.6 SD Card

SD

❶ Insert the micro SD card into the card slot.

❷ Mount MicroSD.

After inserting the SD card, if it is connected and recognized successfully, an icon appears on the desktop. Double-click the icon to access the files on the drive.

Debian_Test_USB

4.7 Audio I/O

Audio I/O

4.7.1 Audio Input

Note

This platform supports two audio input sources for recording: Headset and MIC. Only one input source can be enabled at a time. To switch input sources, disable the currently active input source first.

❶ Plug the headset into the 3.5mm Audio jack.

❷ Set the recording source to Headset.

1amixer -c 0 cset name='MIC1 Switch' on
2amixer -c 0 cset name='MIC2 Switch' off

❸ Start recording.

1arecord -Dhw:0,0 -d 10 -r 48000 -f S16_LE test.wav

4.7.2 Audio Output

❶ Plug the headset into the 3.5mm Audio jack.

❷ Switch the audio output to the headset channel.

1amixer -c 0 cset name='HPOUT Switch' on

❸ Play audio.

1aplay -Dhw:0,0 test.wav

4.8 WiFi & Bluetooth

WiFi&BT

4.8.1 WiFi

❶ Connect the WiFi antenna.

❷ Click the network icon in the top right corner of the UI interface.

❸ Select the SSID from the list of available networks and enter the password.

_images/Debian_Test_WIFI.png

SSID

After connected, user can open Browser or ping URL/IP at terminal to test network.

1ifconfig
2ping -I wlan0 www.armdesigner.com

4.8.2 Bluetooth

❶ Click the Bluetooth icon in the top right corner of the desktop, then right-click and choose Devices….

Debian test bluetooth
Debian test bluetooth

❷ The Bluetooth device name is hidden by default. Set the Bluetooth device name to be visible.

Click Adapter -> Preferences -> Always visible

_images/Debian_Test_BT_2.webp
_images/Debian_Test_BT_2-2.webp

❸ Click Search to start searching and select the available device in the list to pair.

_images/Debian_Test_BT_3.png

After successful configuration, Bluetooth devices can communicate with each other directly.

4.9 IR

IR

Execute the command to retrieve the data reported by the IR module:

1hexdump /dev/input/event1
Serial terminal output
root@localhost:~# hexdump /dev/input/event1
0000000 4019 694a 0000 0000 eb1d 0007 0000 0000
0000010 0004 0004 1864 0018 4019 694a 0000 0000
0000020 eb1d 0007 0000 0000 0000 0000 0000 0000
0000030 4019 694a 0000 0000 d960 0008 0000 0000
0000040 0004 0004 1864 0018 4019 694a 0000 0000
0000050 d960 0008 0000 0000 0000 0000 0000 0000
0000060 401a 694a 0000 0000 b8e8 0003 0000 0000
0000070 0004 0004 1865 0018 401a 694a 0000 0000
0000080 b8e8 0003 0000 0000 0000 0000 0000 0000
0000090 401a 694a 0000 0000 a4fb 0004 0000 0000
00000a0 0004 0004 1865 0018 401a 694a 0000 0000
00000b0 a4fb 0004 0000 0000 0000 0000 0000 0000
00000c0 401a 694a 0000 0000 325b 0009 0000 0000
00000d0 0004 0004 1865 0018 401a 694a 0000 0000
00000e0 325b 0009 0000 0000 0000 0000 0000 0000
00000f0 401a 694a 0000 0000 1e5c 000a 0000 0000
0000100 0004 0004 1865 0018 401a 694a 0000 0000
0000110 1e5c 000a 0000 0000 0000 0000 0000 0000

View the event node for the input device corresponding to the IR-RX module:

1cat /proc/bus/input/devices

4.10 RS485

_images/RS485.webp

❶ Connect PC and board with USB-to-RS485 adapter.

RS485 connection

RS485 connection

❷ Open the Serial Terminal of board and RS485 adapter respectively. Set the baud rate to 115200.

_images/Debian_RS485_baudrate.png

❸ Execute the following commands on the terminal serial ports of board.

1com /dev/ttyAS5 115200 8 0 1

❹ Input character to test RS485 communication.

_images/Debian_RS485_Test.png

4.11 CAN

CAN

The device name for CAN0 is awlink0.

❶ Connect PC and board with USB-to-CAN adapter.

CAN connection

CAN connection

❷ Open the CAN application and set the baudrate to 1000000 on PC.

_images/Debian_CAN_baudrate.png

❸ Execute commands on Serial Terminal to configure and start the CAN network.

1ip link set awlink0 down
2ip link set awlink0 type can bitrate 1000000
3ip link set awlink0 qlen 300
4ip link set awlink0 up
_images/Debian_CAN_config.png

❹ Configure CAN as receiver.

1candump awlink0 &
_images/Debian_CAN_receiver.png

❺ Set CAN as Transmitter.

1cansend awlink0 123#1122334455667788
_images/Debian_CAN_Transmitter.png

4.12 UART (RS232)

_images/UART.webp

❶ Connect RX and TX of UART.

❷ Execute command and input character to test.

1com /dev/ttyAS3 115200 8 0 1
Serial terminal output
root@localhost:~# com /dev/ttyAS3 115200 8 0 1
port = /dev/ttyAS3
baudrate = 115200
cs = 8
parity = 0
stopb = 1
jkjkjkjk
RECV: jkjkjkjk
kkkkkkk
RECV: kkkkkkk
0000023232uu
RECV: 0000023232uu
jkjkj
RECV: jkjkj

4.13 RTC

RTC

❶ Insert a CR1220 battery before test. It keeps the time running when the main power is off.

❷ Set date and time manually.

1su
2date -s "2026-10-09 16:30:30"           //set system date
3hwclock -w                              //set the hardware clock to current system time
4hwclock                                 //display date and time

❸ Power off. Wait a while, then reapply power. If the RTC is functioning correctly, the clock should maintain its time and keep running while the board is powered off.

4.14 ADC

RTC

Note

The ADC input voltage must not exceed 1.8 V.

4.14.1 LRADC

1cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw

The following logs show the ADC readings when the ADC input is connected to 0V and 1.8 V, respectively:

Serial terminal output
root@localhost:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
0
root@localhost:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
1323

4.14.2 GPADC

1cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw

The following logs show the ADC readings when the ADC input is connected to 0V and 1.8 V, respectively:

Serial terminal output
root@localhost:~# cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw
0
root@localhost:~# cat /sys/bus/iio/devices/iio\:device1/in_voltage5_raw
1797