Test all the RB interfaces in 10 mins in command Line
Refer the Hardware and System reference manual to check out the PIN Numbers and PORT numbers etc. of respective interfaces.
Hardware manual
In case of any doubts you can Ask questions in RuggedBoard forum.
Targeted Hardware | SOM : phyCORE - i.MX 6UL CB : RuggedBoard - i.MX6UL |
Targeted Software | - barebox v2022.02.0 - Linux Mainline Kernel v5.15.35(LTS kernel) - Yocto 4.0.1 (kirkstone) |
Description
To test the GPIO Device functionality in Kernel.
Required Hardware
RuggedBoard - i.MX6UL
Test Case:
Step-1: To export the gpio
$ echo 43 > /sys/class/gpio/export
Step-2: To set the in/output of the gpio to the file direction.
$ echo out > /sys/class/gpio/gpio43/direction
Step-3: To set the gpio value to 1 (off) , indicating the GPIO pin to be set to a active low level.
$ echo 1 > /sys/class/gpio/gpio43/value
Step-4: To set the gpio value to 0 (on) , indicating the GPIO pin to be set to a active low level.
$ echo 0 > /sys/class/gpio/gpio43/value
Here GPIO value can be calculated as :
VALUE = ( GPIO_BANK - 1)*32 + GPIO_Value
VALUE = (2 - 1)*32 + 11
= 32 + 11
= 43
Note : GPIO calculation will vary for board to board crosscheck with boards TRM.
Expected o/p
root@ruggedboard-imx6ul:~# echo 43 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio43/direction
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio43/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio43/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio43/value
********************************************************************************
root@ruggedboard-imx6ul:~# echo 44 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio44/direction
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio44/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio44/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio44/value
You can use remaining two user LED or any GPIO PIN mentioned in the Hardware manual with the same method. In case of any doubt post your detailed question into the RuggedBoard forum.
Description:
To test the RS232/UART Device functionality using two boards.
Required Hardware
RuggedBoard-i.MX6UL
USB CABLE
UART PORT
PATCH CORDS
Test Case 1 (Check the UART node in /dev/)
Boot the board from NAND/MMC.
Check weather the node is created in /dev
$ ls /dev/ttymxc1
Expected o/p
root@ruggedboard-imx6ul:~# ls /dev/ttymxc1
/dev/ttymxc1
Test Case 2 (Check the UART communication between 2 devices)
Boot the board from NAND/MMC, Check the Log file whether node is created or not.
Open microcom on both the boards and send data.
$ microcom -s <baud-rate> /dev/ttyS3
To establish a serial communication session with a device connected to the second UART interface (ttymxc1).
$ microcom -s 115200 /dev/ttymxc1
Expected o/p
RB-Device-1:
root@ruggedboard-imx6ul:~# microcom -s 115200 /dev/ttymxc1
helllo phytec
RB-Device-2:
root@ruggedboard-imx6ul:~# microcom -s 115200 /dev/ttymxc1
ruggedboard.............
Description
To test the read and write functionality of i2c based eeprom
Required Hardware
RuggedBoard-i.MX6UL
USB cable
Step-by-step guide
To scan the i2c bus in device we use the command as
$ i2cdetect -y -r 0
Give the below command to write the data on eeprom
$ echo hello > /sys/class/i2c-dev/i2c-0/device/0-0052/eeprom
Please give the below command to read the data from eeprom.
$ cat /sys/class/i2c-dev/i2c-0/device/0-0052/eeprom
Expected Output
root@ruggedboard-imx6ul:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- 18 -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- UU -- -- -- -- -- -- -- 5a -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --
root@ruggedboard-imx6ul:~# echo hello > /sys/class/i2c-dev/i2c-0/device/0-0052/eeprom
root@ruggedboard-imx6ul:~# cat /sys/class/i2c-dev/i2c-0/device/0-0052/eeprom
hello ...
phytec.... welcome to ruggedboard community......
Description
To test the USB1 Port functionality using the dmesg in Kernel with Pen-drive.
To test the USB1 Port functionality in Kernel with Pen-drive to read and write the data.
To test the USB1 Port functionality in Kernel with USB host performance test.
Required Hardware
RuggedBoard-i.MX6UL
USB PORT/Hub. -USB Stick.
Prerequisite
USB-STICK should be detected.
Test Case 1 (Insert Pen drive check the dmesg log)
To check wheather the USB node
$ dmesg | tail
Expected o/p
root@ruggedboard-imx6ul:~# dmesg | tail
[ 3853.290339] scsi host0: usb-storage 1-1:1.0
[ 3854.410737] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS
[ 3854.636262] sd 0:0:0:0: [sda] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 3854.659172] sd 0:0:0:0: [sda] Write Protect is off
[ 3854.664128] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 3854.669346] sd 0:0:0:0: [sda] No Caching mode page found
[ 3854.674993] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 3854.755368] sda: sda1 sda2 sda3
[ 3854.857424] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 3879.173126] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@ruggedboard-imx6ul:~#
Test Case 2 (Mount the Pen-drive and read and write the data)
Boot the board from NAND/MMC. After booting insert the USB Stick into Board USB port/USB-HUB, Check the Log file whether node is creadted or not using dmesg.
Once the node is detected, mount the node and do the read and write by typing the command given below.
$ mount /dev/sda1 /mnt/
$ cd /mnt
$ ls
Expected o/p
root@ruggedboard-imx6ul:~# mount /dev/sda
sda sda1 sda2 sda3
root@ruggedboard-imx6ul:~# mount /dev/sda1 /mnt/
[ 3879.173126] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@ruggedboard-imx6ul:~# cd /mnt/
root@ruggedboard-imx6ul:mnt# ls
Image* imx8mp-phycore-no-spiflash.dtbo*
bootenv.txt* imx8mp-phycore-rpmsg.dtbo*
imx8mp-isi-csi1.dtbo* imx8mp-vm016-csi1-fpdlink.dtbo*
imx8mp-isi-csi2.dtbo* imx8mp-vm016-csi1.dtbo*
imx8mp-isp-csi1.dtbo* imx8mp-vm016-csi2-fpdlink.dtbo*
imx8mp-isp-csi2.dtbo* imx8mp-vm016-csi2.dtbo*
imx8mp-phyboard-pollux-1552.1.dtbo* imx8mp-vm017-csi1-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-av-010.dtbo* imx8mp-vm017-csi1.dtbo*
imx8mp-phyboard-pollux-peb-av-012.dtbo* imx8mp-vm017-csi2-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-wlbt-05.dtbo* imx8mp-vm017-csi2.dtbo*
imx8mp-phyboard-pollux-rdk.dtb* oftree*
imx8mp-phycore-no-eth.dtbo* tee.bin*
imx8mp-phycore-no-rtc.dtbo* write.c*
root@ruggedboard-imx6ul:mnt#
root@ruggedboard-imx6ul:mnt# cd
root@ruggedboard-imx6ul:~# umount /mnt/
root@ruggedboard-imx6ul:~#
Test Case 3 (USB host performance test)
Boot the board from NAND/MMC
After booting run the script file and insert the USB Stick into Board USB port/USB-HUB.
$ sh usb_host_test.sh
Expected o/p
root@ruggedboard-imx6ul:~# sh usb_host_test.sh
insert usb flash stick
usb 1-1: new full-speed USB device number 3 using at91_ohci
usb 1-1: New USB device found, idVendor=0781, idProduct=5567
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Cruzer Blade
usb 1-1: Manufacturer: SanDisk
usb 1-1: SerialNumber: 4C530001280707107415
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host0: usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6
sd 0:0:0:0: [sda] 61341696 512-byte logical blocks: (31.4 GB/29.3 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda:
sd 0:0:0:0: [sda] Attached SCSI removable disk
dmesg -c
hdparm -t /dev/sda
hdparm -T /dev/sda
dd if=/dev/urandom bs=1M count=32 of=/tmp/test.img
mount -o rw,uid=1000 /dev/sda1 /mnt
time cp /tmp/test.img /mnt/test.img
time sync
md5sum -c /tmp/test.md5
time cp /mnt/test.img /tmp/test.img
md5sum -c /tmp/test.md5
mount -o rw,uid=1000,remount,sync /dev/sda1
time cp /tmp/test.img /mnt/test.img
md5sum -c /tmp/test.md5
umount /dev/sda1
Description
To test the Ethernet ping functionality in Kernel.
Required Hardware
Ethernet Switch / Hub / Router, Ethernet cable.
Test Case 1 (Ping Test)
Make sure the network configuration & connection between Host & Target is established, connected to same switch / router.
Boot the board.
Before the ping test for Ethernet in Linux,we need to set the ip address by using below command on the target board. Make sure both the Target and Host are in the same sub-net
$ ifconfig eth0 192.168.11.20 up
Ping to google by using below command.
$ ping google.com
Expected o/p
root@ruggedboard-imx6ul:~# ifconfig eth0 192.168.11.20 up
root@ruggedboard-imx6ul:~# ifconfig
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:34
eth0 Link encap:Ethernet HWaddr 50:2D:F4:24:72:47
inet addr:192.168.11.20 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: 2406:7400:56:4dfb:522d:f4ff:fe24:7247/64 Scope:Global
inet6 addr: fe80::522d:f4ff:fe24:7247/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13551 errors:0 dropped:1 overruns:0 frame:0
TX packets:547 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1688904 (1.6 MiB) TX bytes:55344 (54.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)
wwan0 Link encap:Ethernet HWaddr 0E:47:7D:CE:E4:B2
inet6 addr: fe80::c47:7dff:fece:e4b2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9778 (9.5 KiB)
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ping google.com
PING google.com (142.250.182.14): 56 data bytes
64 bytes from 142.250.182.14: seq=0 ttl=116 time=13.365 ms
64 bytes from 142.250.182.14: seq=1 ttl=116 time=8.825 ms
64 bytes from 142.250.182.14: seq=2 ttl=116 time=8.819 ms
64 bytes from 142.250.182.14: seq=3 ttl=116 time=8.717 ms
64 bytes from 142.250.182.14: seq=4 ttl=116 time=8.660 ms
^C
--- google.com ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 8.660/9.215/13.365 ms
root@ruggedboard-imx6ul:~#
Note : Use the working IP address of your LAN. Ping command is used to test net connectivity between two IP based devices.
Description
To test the CAN Device functionality in Kernel.
Required Hardware
RuggedBoard-i.MX6UL
CAN Phy should be mounted on Board.
Test Case 1 (Test with PCAN device)
Boot the board and After booting,check the interface is available or not by giving the below command.
$ ifconfig can0
• To Transmit packets from board to PC
Target side:
$ ip link set can0 down
$ ip link set can0 type can bitrate 50000
$ ip link set can0 up
$ cansend can0 123#1234567890
Host side:
$ sudo ip link set can0 down
$ sudo ip link set can0 type can bitrate 50000
$ sudo ip link set can0 up
$ candump can0
To Transmit packets from PC to Board
Host side :
$ sudo ip link set can0 down
$ sudo ip link set can0 type can bitrate 50000
$ sudo ip link set can0 up
$ sudo cansend can0 123#1232
Target side :
$ ip link set can0 down
$ ip link set can0 type can bitrate 50000
$ ip link set can0 up
$ candump can0
$ can0 123 [2] 12 32
Expected o/p :
To Transmit packets from board to PC
Target side:
root@ruggedboard-imx6ul:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:34
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890111213
Host side:
USER@ubuntudesk:~$ sudo ip link set can0 down
USER@ubuntudesk:~$ sudo ip link set can0 type can bitrate 50000
USER@ubuntudesk:~$ sudo ip link set can0 up
USER@ubuntudesk:~$ sudo candump can0
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 34 56 78 90
can0 123 [8] 12 34 56 78 90 11 12 13
can0 123 [8] 12 34 56 78 90 11 12 13
can0 123 [8] 12 34 56 78 90 11 12 13
To Transmit packets from PC to Board
Host side :
USER@ubuntudesk:~$ sudo ip link set can0 down
USER@ubuntudesk:~$ sudo ip link set can0 type can bitrate 50000
USER@ubuntudesk:~$ sudo ip link set can0 up
USER@ubuntudesk:~$ sudo cansend can0 123#1234567890
USER@ubuntudesk:~$ sudo cansend can0 123#1234567890111213
Target side:
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# candump can0
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 34 56 78 90
can0 123 [8] 12 34 56 78 90 11 12 13
can0 123 [8] 12 34 56 78 90 11 12 13
Test Case 2 (Board to Board)
Take 2 boards and Boot the boards from NAND/MMC.
After booting,check the interface is available or not by giving the below command.
$ ifconfig can0
Test the CAN in 2 Cases.
Case1: Test the CAN through commands.
To Transmit packets from Board1 to Board2
Board1 side:
ip link set can0 down
ip link set can0 type can bitrate 50000
ip link set can0 up
cansend can0 123#1234567890
Board2 side:
ip link set can0 down
ip link set can0 type can bitrate 50000
ip link set can0 up
candump can0
To Transmit packets from Board2 to Board1
Board2 side :
ip link set can0 down
ip link set can0 type can bitrate 50000
ip link set can0 up
cansend can0 123#1234567890
Board1 side :
ip link set can0 down
ip link set can0 type can bitrate 50000
ip link set can0 up
candump can0
Case2: Test the CAN through the application
After booting,run the can send application in board1 and can receive in board2 and vice versa by using like below commands.
./cansend
./canrecv
Expected o/p
Case1 :
To Transmit packets from Board1 to Board2
Board1 side:
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:34
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1232555555
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890111213
Board2 side:
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:25
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# candump can0
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 34 56 78 90
can0 123 [8] 12 34 56 78 90 11 12 13
can0 123 [8] 12 34 56 78 90 11 12 13
can0 123 [8] 12 34 56 78 90 11 12 13
To Transmit packets from Board2 to Board1
Board2 side :
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:25
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890
root@ruggedboard-imx6ul:~# cansend can0 123#1234567890111213
Board1 side :
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:34
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# candump can0
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 32 55 55 55
can0 123 [5] 12 34 56 78 90
can0 123 [8] 12 34 56 78 90 11 12 13
Case2 :
To Transmit packets from Board1 to Board2
Board1 side :
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# ./cans
Can Send Test
can0 at index 2
Wrote 16 bytes
Board2 side :
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# ./canr
Can Recieve Test
can0 at index 2
Can frames recieved
<0x123> [2] 11 22
To Transmit packets from Board2 to Board1
Board1 side :
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# ./canr
Can Recieve Test
can0 at index 2
Can frames recieved
<0x123> [2] 11 22
Board2 side :
root@ruggedboard-imx6ul:~# ip link set can0 down
root@ruggedboard-imx6ul:~# ip link set can0 type can bitrate 50000
root@ruggedboard-imx6ul:~# ip link set can0 up
root@ruggedboard-imx6ul:~# ./cans
Can Send Test
can0 at index 2
Wrote 16 bytes
Description
To test the digital input pin on the carrier board. Connect a digital input device, such as a switch or button, to the GPIO pin that you want to test.
Required Hardware
RuggedBoard - i.MX6UL
USB cable
Patch card
Step-by-step guide
• Check Carrier board having 4 digital input pins on P5 connector. Fifth pin of P5 connector is ground.
• After completion of board booting, connect the one end of patch card to first pin of P5 connector and other end to input voltage pin.
• Give the below commands to test the digital inputs 1 - To export the gpio.
$ echo 133 > sys/class/gpio/export
2 - To set the in/output of the gpio to the file direction.
$ echo in > /sys/class/gpio/gpio133/direction
3 - To show the value
$ cat /sys/class/gpio/gpio133/value
4 - Remove the patch card and give the below command
$ cat /sys/class/gpio/gpio133/value
• Here GPIO value can be calculated as
VALUE = (gpio_BANK - 1)*32 + GPIO_Value
Note : Gpio calculation will vary for board to board coss-check with boards TRM.
Expected Output
root@ruggedboard-imx6ul:~# echo 133 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo in > /sys/class/gpio/gpio133/direction
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio133/value
1
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio133/value
0
********************************************************************************
root@ruggedboard-imx6ul:~# echo 45 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo in > /sys/class/gpio/gpio45/direction
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio45/value
1
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio45/value
0
********************************************************************************
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo in > /sys/class/gpio/gpio1/direction
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio1/value
1
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio1/value
0
********************************************************************************
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo in > /sys/class/gpio/gpio1/direction
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio1/value
1
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio1/value
0
********************************************************************************
Description
To test the digital output pins on carrier board
Required Hardware
RuggedBoard - i.MX6UL
USB cable
External LED
Step-by-step guide
Carrier board having 4 digital out-pins on P6 connector.Please refer the schematic to p6 connector pins.
After booting connect the External LED positive to 2nd pin of P6 connector and other end to Ground.
Please give a below commands and observe the led status.
1 - To export the gpio.
$ echo 14 > /sys/class/gpio/export
2 - To set the in/output of the gpio to the file direction.
$ echo out > /sys/class/gpio/gpio14/direction
3 - To set the gpio value to 1 (off) , indicating the GPIO pin to be set to a active low level.
$ echo 1 > /sys/class/gpio/gpio14/value
4 - To set the gpio value to 0 (on) , indicating the GPIO pin to be set to a active low level.
$ echo 0 > /sys/class/gpio/gpio14/value
• Gpio value can be calculated as
VALUE = (gpio_BANK - 1)*32 + GPIO_Value
Note : Gpio calculation will vary for board to board cosscheck with boards TRM.
Expected Output
root@ruggedboard-imx6ul:~# echo 14 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio14/direction
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio14/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio14/value
*********************************************************************************
root@ruggedboard-imx6ul:~# echo 15> /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio15/direction
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio15/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio15/value
*********************************************************************************
root@ruggedboard-imx6ul:~# echo 12 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio12/direction
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio12/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio12/value
*********************************************************************************
root@ruggedboard-imx6ul:~# echo 13> /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio13/direction
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio13/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio13/value
*********************************************************************************
Description
To test the SD card Port functionality in Kernel with SD card.
To test the SD card Port functionality in Kernel with SD card and read the data from SD card.
To test the SD card Port functionality in Kernel with SD card and write the data to SD card.
Required Hardware
RuggedBoard-i.MX6UL
SD card.
Prerequisite
SD card should be detected.
Test Case 1 (Insert the SD card check the log)
Boot the board from NAND/MMC. After booting or while booting insert the SD card into Board MMC slot, Check the Log file whether node is created or not.
Expected o/p
root@ruggedboard-imx6ul:~# [ 490.928413] mmc0: host does not support reading read-only switch, assuming write-enable
[ 490.942741] mmc0: new high speed SDHC card at address aaaa
[ 490.989133] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 491.071056] mmcblk0: p1 p2 p3
root@ruggedboard-imx6ul:~#
Test Case 2 (Read the data from SD card)
Boot the board from NAND/MMC. After booting or while booting insert the SD card into Board MMC slot, Check the Log file whether node is created or not.
Mount the SD-Card using the mount command.
$ mount /dev/mmcblk0p1 /mnt/
$ cd /mnt/
Expected o/p
root@ruggedboard-imx6ul:~# mount /dev/mmcblk0p1 /mnt/
[ 542.315750] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@ruggedboard-imx6ul:~# ls
gstreamer-examples@ v4l2_c-examples@
root@ruggedboard-imx6ul:~# cd /mnt/
root@ruggedboard-imx6ul:mnt# ls
Image* imx8mp-phycore-no-spiflash.dtbo*
bootenv.txt* imx8mp-phycore-rpmsg.dtbo*
imx8mp-isi-csi1.dtbo* imx8mp-vm016-csi1-fpdlink.dtbo*
imx8mp-isi-csi2.dtbo* imx8mp-vm016-csi1.dtbo*
imx8mp-isp-csi1.dtbo* imx8mp-vm016-csi2-fpdlink.dtbo*
imx8mp-isp-csi2.dtbo* imx8mp-vm016-csi2.dtbo*
imx8mp-phyboard-pollux-1552.1.dtbo* imx8mp-vm017-csi1-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-av-010.dtbo* imx8mp-vm017-csi1.dtbo*
imx8mp-phyboard-pollux-peb-av-012.dtbo* imx8mp-vm017-csi2-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-wlbt-05.dtbo* imx8mp-vm017-csi2.dtbo*
imx8mp-phyboard-pollux-rdk.dtb* oftree*
imx8mp-phycore-no-eth.dtbo* tee.bin*
imx8mp-phycore-no-rtc.dtbo*
root@ruggedboard-imx6ul:mnt#
Test Case 3 (Write the data in SD card)
Boot the board from NAND/MMC. After booting or while booting insert the SD card into Board MMC slot, Check the Log file whether node is created or not.
$ mount /dev/mmcblk0p1 /mnt/
Expected o/p
root@ruggedboard-imx6ul:~# mount /dev/mmcblk0p1 /mnt/
[ 542.315750] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@ruggedboard-imx6ul:~# ls
gstreamer-examples@ v4l2_c-examples@
root@ruggedboard-imx6ul:~# cd /mnt/
root@ruggedboard-imx6ul:mnt# ls
Image* imx8mp-phycore-no-spiflash.dtbo*
bootenv.txt* imx8mp-phycore-rpmsg.dtbo*
imx8mp-isi-csi1.dtbo* imx8mp-vm016-csi1-fpdlink.dtbo*
imx8mp-isi-csi2.dtbo* imx8mp-vm016-csi1.dtbo*
imx8mp-isp-csi1.dtbo* imx8mp-vm016-csi2-fpdlink.dtbo*
imx8mp-isp-csi2.dtbo* imx8mp-vm016-csi2.dtbo*
imx8mp-phyboard-pollux-1552.1.dtbo* imx8mp-vm017-csi1-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-av-010.dtbo* imx8mp-vm017-csi1.dtbo*
imx8mp-phyboard-pollux-peb-av-012.dtbo* imx8mp-vm017-csi2-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-wlbt-05.dtbo* imx8mp-vm017-csi2.dtbo*
imx8mp-phyboard-pollux-rdk.dtb* oftree*
imx8mp-phycore-no-eth.dtbo* tee.bin*
imx8mp-phycore-no-rtc.dtbo*
root@ruggedboard-imx6ul:mnt#
root@ruggedboard-imx6ul:/mnt# vi write.c
root@ruggedboard-imx6ul:mnt# ls
Image* imx8mp-phycore-no-spiflash.dtbo*
bootenv.txt* imx8mp-phycore-rpmsg.dtbo*
imx8mp-isi-csi1.dtbo* imx8mp-vm016-csi1-fpdlink.dtbo*
imx8mp-isi-csi2.dtbo* imx8mp-vm016-csi1.dtbo*
imx8mp-isp-csi1.dtbo* imx8mp-vm016-csi2-fpdlink.dtbo*
imx8mp-isp-csi2.dtbo* imx8mp-vm016-csi2.dtbo*
imx8mp-phyboard-pollux-1552.1.dtbo* imx8mp-vm017-csi1-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-av-010.dtbo* imx8mp-vm017-csi1.dtbo*
imx8mp-phyboard-pollux-peb-av-012.dtbo* imx8mp-vm017-csi2-fpdlink.dtbo*
imx8mp-phyboard-pollux-peb-wlbt-05.dtbo* imx8mp-vm017-csi2.dtbo*
imx8mp-phyboard-pollux-rdk.dtb* oftree*
imx8mp-phycore-no-eth.dtbo* tee.bin*
imx8mp-phycore-no-rtc.dtbo* write.c*
root@ruggedboard-imx6ul:mnt# ^C
root@ruggedboard-imx6ul:mnt#
root@ruggedboard-imx6ul:mnt# cd
root@ruggedboard-imx6ul:~# umount /mnt/
root@ruggedboard-imx6ul:~#
Description
To test the ADC functionality with Potentio meter
Required Hardware
Rugged Board i.MX6UL
USB cable
Potentiometer
Step-by-step guide
After board booting connect the Potentiometer signal pin to Analog signal pin.
Give the below command to read the digital value of ADC.
$ cat /sys/bus/iio/devices/iio\:device0/in_voltage3_raw
Expected Output
root@ruggedboard-imx6ul:iio# cd /sys/bus/iio/devices/iio\:device0/
root@ruggedboard-imx6ul:iio:device0#
root@ruggedboard-imx6ul:iio:device0#
root@ruggedboard-imx6ul:iio:device0#
root@ruggedboard-imx6ul:iio:device0#
root@ruggedboard-imx6ul:iio:device0# ls
buffer/ in_voltage3_raw
power/ in_voltage_sampling_frequency
scan_elements/ in_voltage_scale
trigger/ name
dev of_node@
in_conversion_mode sampling_frequency_available
in_voltage0_raw subsystem@
in_voltage1_raw uevent
in_voltage2_raw
root@ruggedboard-imx6ul:iio:device0# cat in_voltage3_raw
4095
root@ruggedboard-imx6ul:iio:device0# cat in_voltage3_raw
0
Description
To test the debug console on carrier board.
Required Hardware
RuggedBoad - i.MX6UL
USB cable
Step-by-step guide
Connect the USB cabel to board to PC.
Follow the RB-Quick start guide to set the minicom settings.
Please give the below commands to open the debug console in PC.
$ sudo minicom
Expected Output
barebox 2019.01.0-bsp-yocto-i.mx6ul-pd19.1.0 #1 Fri Mar 10 11:11:44 UTC 2023
Board: Phytec phyCORE-i.MX6 Ultra Lite SOM with NAND
detected i.MX6 UltraLite revision 1.2
i.MX reset reason POR (SRSR: 0x00000001)
i.MX6 UltraLite unique ID: d1e090b62c2fb9d4
mdio_bus: miibus0: probed
eth0: got preset MAC address: 50:2d:f4:24:6f:5b
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
imx-usb 2184200.usb@2184200.of: USB EHCI 1.00
imx-esdhc 2190000.usdhc@2190000.of: registered as mmc0
state: New state registered 'state'
state: Using bucket 0@0x00000000
netconsole: registered as netconsole-1
phySOM-i.MX6: Using environment in NAND flash
malloc space: 0x8fe7cec0 -> 0x9fcf9d7f (size 254.5 MiB)
envfs: no envfs (magic mismatch) - envfs never written?
running /env/bin/init...
Hit m for menu or any key to stop autoboot: 0
booting 'nand'
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: registering /dev/nand0.root.ubi
ubi0: registering kernel as /dev/nand0.root.ubi.kernel
ubi0: registering oftree as /dev/nand0.root.ubi.oftree
ubi0: registering root as /dev/nand0.root.ubi.root
ubi0: attached mtd0 (name "nand0.root", size 507 MiB) to ubi0
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/1, WL threshold: 65536, image sequence number: 2930
ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
Loading ARM Linux zImage '/dev/nand0.root.ubi.kernel'
Loading devicetree from '/dev/nand0.root.ubi.oftree'
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
commandline: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.repair=yes
Starting kernel in secure mode
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.93-bsp-yocto-i.mx6ul-pd19.1.0 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Mar 30 10:32:30 UTC 203
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rugged Board i.MX6 UltraLite
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x96000000
[ 0.000000] percpu: Embedded 16 pages/cpu @dff91000 s34444 r8192 d22900 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.res
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 371996K/524288K available (9216K kernel code, 412K rwdata, 3100K rodata, 1024K init, 422K bss, 21220K reserved, 131072)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc0f00000 (1024 kB)
[ 0.000000] .data : 0xc0f00000 - 0xc0f67320 ( 413 kB)
[ 0.000000] .bss : 0xc0f69000 - 0xc0fd2800 ( 422 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000058] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.003040] Console: colour dummy device 80x30
[ 0.003099] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.003136] pid_max: default: 32768 minimum: 301
[ 0.003435] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003470] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004749] CPU: Testing write buffer coherency: ok
[ 0.005333] /cpus/cpu@0 missing clock-frequency property
[ 0.005374] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.006276] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.006608] Hierarchical SRCU implementation.
[ 0.007830] smp: Bringing up secondary CPUs ...
[ 0.007864] smp: Brought up 1 node, 1 CPU
[ 0.007889] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.007906] CPU: All CPU(s) started in SVC mode.
[ 0.009440] devtmpfs: initialized
[ 0.026309] random: get_random_u32 called from bucket_table_alloc+0x100/0x230 with crng_init=0
[ 0.026747] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027442] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.037942] pinctrl core: initialized pinctrl subsystem
[ 0.039913] NET: Registered protocol family 16
[ 0.056936] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059582] CPU identified as i.MX 6UL, silicon rev 1.2
[ 0.071828] vdd3p0: supplied by regulator-dummy
[ 0.073041] cpu: supplied by regulator-dummy
[ 0.074194] vddsoc: supplied by regulator-dummy
[ 0.093620] No ATAGs?
[ 0.093761] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.093798] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.097805] imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins or pins property in node /soc/aips-bus@2000000/iomuxc@20e0000/wlangrp
[ 0.097897] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.141950] mxs-dma 1804000.dma-apbh: initialized
[ 0.148418] vgaarb: loaded
[ 0.149426] SCSI subsystem initialized
[ 0.150485] usbcore: registered new interface driver usbfs
[ 0.150633] usbcore: registered new interface driver hub
[ 0.150845] usbcore: registered new device driver usb
[ 0.153830] i2c i2c-0: IMX I2C adapter registered
[ 0.153878] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.155355] i2c i2c-1: IMX I2C adapter registered
[ 0.155403] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.155791] media: Linux media interface: v0.10
[ 0.155924] Linux video capture interface: v2.00
[ 0.156064] pps_core: LinuxPPS API ver. 1 registered
[ 0.156084] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.156135] PTP clock support registered
[ 0.156811] Advanced Linux Sound Architecture Driver Initialized.
[ 0.158474] Bluetooth: Core ver 2.22
[ 0.158593] NET: Registered protocol family 31
[ 0.158615] Bluetooth: HCI device and connection manager initialized
[ 0.158653] Bluetooth: HCI socket layer initialized
[ 0.158681] Bluetooth: L2CAP socket layer initialized
[ 0.158750] Bluetooth: SCO socket layer initialized
[ 0.161250] clocksource: Switched to clocksource mxc_timer1
[ 0.161625] VFS: Disk quotas dquot_6.6.0
[ 0.161784] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.182617] NET: Registered protocol family 2
[ 0.184024] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.184154] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.184313] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.184519] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184582] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184918] NET: Registered protocol family 1
[ 0.185837] RPC: Registered named UNIX socket transport module.
[ 0.185867] RPC: Registered udp transport module.
[ 0.185882] RPC: Registered tcp transport module.
[ 0.185899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190775] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.201027] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.202699] NFS: Registering the id_resolver key type
[ 0.202778] Key type id_resolver registered
[ 0.202798] Key type id_legacy registered
[ 0.202911] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.204011] fuse init (API version 7.26)
[ 0.216169] NET: Registered protocol family 38
[ 0.216563] io scheduler noop registered
[ 0.216590] io scheduler deadline registered
[ 0.216956] io scheduler cfq registered (default)
[ 0.216981] io scheduler mq-deadline registered
[ 0.216999] io scheduler kyber registered
[ 0.224485] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[ 0.247819] Console: switching to colour frame buffer device 100x30
[ 0.263121] mxsfb 21c8000.lcdif: initialized
[ 0.266500] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.276041] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 0.979081] console [ttymxc0] enabled
[ 0.984718] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 61, base_baud = 5000000) is a IMX
[ 0.994847] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 62, base_baud = 5000000) is a IMX
[ 1.005048] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 63, base_baud = 5000000) is a IMX
[ 1.015354] 21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 64, base_baud = 5000000) is a IMX
[ 1.057750] brd: module loaded
[ 1.077839] loop: module loaded
[ 1.082871] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[ 1.100359] random: fast init done
[ 1.107171] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.113616] nand: Micron MT29F4G08ABADAH4
[ 1.117656] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.126101] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[ 1.134271] Bad block table found at page 262080, version 0x01
[ 1.140543] Bad block table found at page 262016, version 0x01
[ 1.147213] 3 ofpart partitions found on MTD device gpmi-nand
[ 1.153056] Creating 3 MTD partitions on "gpmi-nand":
[ 1.158146] 0x000000000000-0x000000400000 : "barebox"
[ 1.166337] 0x000000400000-0x000000500000 : "barebox-environment"
[ 1.174825] 0x000000500000-0x000020000000 : "root"
[ 1.289273] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 1.301093] spi_imx 2008000.ecspi: probed
[ 1.308675] spi_imx 200c000.ecspi: probed
[ 1.314648] libphy: Fixed MDIO Bus: probed
[ 1.319840] CAN device driver interface
[ 1.325800] flexcan 2090000.flexcan: device registered (reg_base=e0a28000, irq=24)
[ 1.335454] fec 20b4000.ethernet: 20b4000.ethernet supply phy not found, using dummy regulator
[ 1.345250] pps pps0: new PPS source ptp0
[ 1.378937] libphy: fec_enet_mii_bus: probed
[ 1.385038] fec 20b4000.ethernet eth1: registered PHC device 0
[ 1.393465] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 1.403340] pps pps1: new PPS source ptp1
[ 1.408831] libphy: fec_enet_mii_bus: probed
[ 1.415811] fec 2188000.ethernet eth0: registered PHC device 1
[ 1.423364] PPP generic driver version 2.4.2
[ 1.428114] PPP BSD Compression module registered
[ 1.432992] PPP Deflate Compression module registered
[ 1.438157] PPP MPPE Compression module registered
[ 1.443104] NET: Registered protocol family 24
[ 1.447826] usbcore: registered new interface driver asix
[ 1.453553] usbcore: registered new interface driver ax88179_178a
[ 1.459764] usbcore: registered new interface driver cdc_ether
[ 1.465871] usbcore: registered new interface driver net1080
[ 1.471713] usbcore: registered new interface driver rndis_host
[ 1.477734] usbcore: registered new interface driver cdc_subset
[ 1.483816] usbcore: registered new interface driver zaurus
[ 1.489536] usbcore: registered new interface driver cdc_ncm
[ 1.495502] usbcore: registered new interface driver qmi_wwan
[ 1.501376] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.507931] ehci-pci: EHCI PCI platform driver
[ 1.512625] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.518738] usbcore: registered new interface driver cdc_wdm
[ 1.524678] usbcore: registered new interface driver usb-storage
[ 1.530959] usbcore: registered new interface driver usbserial
[ 1.537122] usbcore: registered new interface driver usbserial_generic
[ 1.543833] usbserial: USB Serial support registered for generic
[ 1.549963] usbcore: registered new interface driver option
[ 1.555694] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.562813] usbcore: registered new interface driver qcaux
[ 1.568384] usbserial: USB Serial support registered for qcaux
[ 1.574370] usbcore: registered new interface driver qcserial
[ 1.580206] usbserial: USB Serial support registered for Qualcomm USB modem
[ 1.587340] usbcore: registered new interface driver sierra
[ 1.593051] usbserial: USB Serial support registered for Sierra USB modem
[ 1.603903] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[ 1.616045] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.621030] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.651361] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.658664] hub 1-0:1.0: USB hub found
[ 1.662742] hub 1-0:1.0: 1 port detected
[ 1.668684] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 1.680907] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.686072] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.721318] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.728525] hub 2-0:1.0: USB hub found
[ 1.732597] hub 2-0:1.0: 1 port detected
[ 1.740888] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.755859] atmel_mxt_ts 0-004a: __mxt_read_reg: i2c transfer failed (-6)
[ 1.763244] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.770158] atmel_mxt_ts 0-004a: Trying alternate bootloader address
[ 1.778017] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.792665] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 1.799486] rtc-m41t80 1-0068: registered as rtc0
[ 1.806763] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc1
[ 1.816537] i2c /dev entries driver
[ 1.822097] IR NEC protocol handler initialized
[ 1.826673] IR RC5(x/sz) protocol handler initialized
[ 1.831914] IR RC6 protocol handler initialized
[ 1.836474] IR JVC protocol handler initialized
[ 1.841025] IR Sony protocol handler initialized
[ 1.846693] IR SANYO protocol handler initialized
[ 1.851504] IR Sharp protocol handler initialized
[ 1.856234] IR MCE Keyboard/mouse protocol handler initialized
[ 1.862129] IR XMP protocol handler initialized
[ 1.872071] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.878850] Bluetooth: HCI UART driver ver 2.3
[ 1.883453] Bluetooth: HCI UART protocol H4 registered
[ 1.889528] sdhci: Secure Digital Host Controller Interface driver
[ 1.895829] sdhci: Copyright(c) Pierre Ossman
[ 1.900213] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.908338] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[ 1.972866] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 2.131451] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.149691] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.155984] usbcore: registered new interface driver usbhid
[ 2.161753] usbhid: USB HID core driver
[ 2.185461] NET: Registered protocol family 10
[ 2.192735] Segment Routing with IPv6
[ 2.196586] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.204249] NET: Registered protocol family 17
[ 2.208768] can: controller area network core (rev 20170425 abi 9)
[ 2.215275] NET: Registered protocol family 29
[ 2.219782] can: raw protocol (rev 20170425)
[ 2.224169] can: broadcast manager protocol (rev 20170425 t)
[ 2.229875] can: netlink gateway (rev 20170425) max_hops=1
[ 2.235832] 8021q: 802.1Q VLAN Support v1.8
[ 2.240125] Key type dns_resolver registered
[ 2.247170] cpu cpu0: Using anatop regulators: LDOs enabled
[ 2.253336] Registering SWP/SWPB emulation handler
[ 2.278269] imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 2.290463] ubi0: default fastmap pool size: 200
[ 2.295246] ubi0: default fastmap WL pool size: 100
[ 2.300145] ubi0: attaching mtd2
[ 2.567217] ubi0: attached by fastmap
[ 2.570921] ubi0: fastmap pool size: 200
[ 2.574966] ubi0: fastmap WL pool size: 100
[ 2.594590] ubi0: attached mtd2 (name "root", size 507 MiB)
[ 2.600207] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.607243] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.614110] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.621090] ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
[ 2.627236] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 2.634513] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 2930
[ 2.643171] ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
[ 2.652630] ubi0: background thread "ubi_bgt0d" started, PID 99
[ 2.663004] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 2.669311] rtc-m41t80 1-0068: hctosys: unable to read the hardware clock
[ 2.676949] Can: disabling
[ 2.679693] Backlight: disabling
[ 2.685217] gpio_dvfs: disabling
[ 2.688474] ALSA device list:
[ 2.691517] No soundcards found.
[ 2.722655] UBIFS (ubi0:2): recovery needed
[ 2.784781] UBIFS (ubi0:2): recovery deferred
[ 2.789353] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "root", R/O mode
[ 2.797611] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.807625] UBIFS (ubi0:2): FS size: 493047808 bytes (470 MiB, 3883 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.818387] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB)
[ 2.824284] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 1CF45089-7D85-458F-B823-E9419003C4C6, small LPT model
[ 2.839177] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
[ 2.847213] devtmpfs: mounted
[ 2.853112] Freeing unused kernel memory: 1024K
[ 3.124093] systemd[1]: System time before build time, advancing clock.
[ 3.206900] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GC)
[ 3.230149] systemd[1]: Detected architecture arm.
Welcome to The Yogurt Distribution BSP-Yocto-i.MX6UL-PD19.1.0!
[ 3.280114] systemd[1]: Set hostname to <ruggedboard-imx6ul>.
[ 3.558070] random: crng init done
[ 3.697676] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local .
[ 3.715017] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalli)
[ 4.021954] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.064012] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.108314] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.142862] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.183685] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Starting File System Check on Root Device...
Starting Apply Kernel Variables...
Mounting Kernel Debug File System...
Starting udev Coldplug all Devices...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
Starting Journal Service...
Mounting FUSE Control File System...
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Temporary Directory (/tmp).
Starting Remount Root and Kernel File Systems...
[ 5.175764] UBIFS (ubi0:2): completing deferred recovery
[ OK ] Started Journal Service.
[ 5.395780] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 121
[ 5.412759] UBIFS (ubi0:2): deferred recovery completed
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
[ 5.804357] systemd-journald[113]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
Starting Rebuild Journal Catalog...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started udev Kernel Device Manager.
Starting Network Service...
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Found device /dev/ttymxc0.
[ 10.011602] Generic PHY 20b4000.ethernet-1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=20b4000.ethernet-1:00, irq=POLL)
[ 10.082696] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 10.492133] Micrel KSZ8081 or KSZ8091 2188000.ethernet-2:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.eth)
[ 10.562484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started udev Wait for Complete Device Initialization.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting sshd.socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Listening on sshd.socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Lightning Fast Webserver With Light System Requirements...
[ OK ] Started HawkBit client for Rauc.
Starting Autostart Qt 5 Demo...
Starting Login Service...
[ OK ] Started Rauc Good-marking Service.
[ OK ] Started Serial Getty on ttymxc0.
[ OK ] Started can0 interface setup.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started D-Bus System Message Bus.
[ 12.480748] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ OK ] Started Login Service.
Starting Network Time Service...
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Autostart Qt 5 Demo.
Starting Rauc Update Service...
[ OK ] Started Network Time Service.
[ OK ] Reached target Multi-User System.
[ OK ] Started Rauc Update Service.
____ _ _ ____ ____ _____ ____ ____ ___ _ ____ ____
| _ \ | | | | / ___| / ___|| ____|| _ \ | __ ) / _ \ / \ | _ \ | _ \
| |_) || | | || | _ | | _ | _| | | | | | _ \ | | | | / _ \ | |_) || | | |
| _ < | |_| || |_| || |_| || |___ | |_| | | |_) || |_| |/ ___ \ | _ < | |_| |
|_| \_\ \___/ \____| \____||_____||____/ |____/ \___//_/ \_\|_| \_\|____/
__ __ ___ ____ _ _ ____ _____
\ \ / / / _ \ / ___|| | | || _ \ |_ _|
\ V / | | | || | _ | | | || |_) | | |
| | | |_| || |_| || |_| || _ < | |
|_| \___/ \____| \___/ |_| \_\ |_|
Yogurt (Phytec Example Distribution) BSP-Yocto-i.MX6UL-PD19.1.0 ruggedboard-imx6ul ttymxc0
ruggedboard-imx6ul login: root
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
Description
To test the Expansion Header GPIOs functionality in Kernel whether they are toggling.
Required Hardware
RuggedBoard-i.MX6UL
External LED.
Prerequisite
External LED should glow.
Test Case 1 (Connect the LED and toggle the GPIOs)
Boot the board from NAND/MMC. After booting check whether Expansion Header GPIOs are toggling or not.
To export the gpio.
$ echo 46 > /sys/class/gpio/export
To set the in/output of the gpio to the file direction.
$ echo out > /sys/class/gpio/gpio46/direction
To set the gpio value to 1 (off) , indicating the GPIO pin to be set to a active low level.
$ echo 1 > /sys/class/gpio/gpio46/value
To set the gpio value to 0 (on) , indicating the GPIO pin to be set to a active low level.
$ echo 0 > /sys/class/gpio/gpio46/value
Here GPIO value can be calculated as
VALUE = (GPIO_BANK - 1)*32 + GPIO_Valu
Note : GPIO calculation will vary for board to board crosscheck with boards TRM.
Expected o/p
root@ruggedboard-imx6ul:~# echo 46 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio46/direction
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio46/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio46/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio46/value
Description
To test the mPCIE functionality in Kernel.
Required Hardware
RuggedBoard-i.MX6UL
4G module(EC25e)
SIM
USB cable
Step-by-step guide
Boot the board and after booting insert the mPCIe module to the mPCIe connector.
Then open the microcom and use the command as below.
$ microcom -s 115200 /dev/ttyUSB3
Use below AT commands
AT
AT+CREG?
AT+CPIN?
AT+CSQ
ATD<MOBILENO>;
ATH
ATA
Expected Output
root@phyboard-segin-imx6ul-6:~# microcom -s 115200 /dev/ttyUSB3
at
OK
at+creg?
+CREG: 0,1
OK
at+csq
+CSQ: 22,99
OK
at+cpin?
+CPIN: READY
OK
atd7008296799;
OK
ath
OK
ata
OK
• For testing GSM .
1 - Create a script file by using below command.
$ vi gsm.sh
2 - Copy in script.
#!/bin/sh
ifconfig wwan0 down
echo Y > /sys/class/net/wwan0/qmi/raw_ip
ifconfig wwan0 up
qmi-network /dev/cdc-wdm0 start
udhcpc -i wwan0
3 - Run the script file by using command.
$ sh gsm.sh
Expected Output
root@ruggedboard-imx6ul:~# sh gsm.sh | |
Profile at '/etc/qmi-network.conf' not found... | Cannot open /dev/ttyUSB0! |
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-for| |
Device link layer protocol retrieved: raw-ip +-----------------------------+
Getting expected data format with 'qmicli -d /dev/cdc-wdm0 --get-expected-data-format'...
Expected link layer protocol retrieved: raw-ip
Device and kernel link layer protocol match: raw-ip
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn='' --client-no-release-cid '...
error: couldn't parse input string: key 'apn' required a value
Saving state at /tmp/qmi-network-state-cdc-wdm0... (CID: 19)
Saving state at /tmp/qmi-network-state-cdc-wdm0... (PDH: 2267156672)
Network started successfully
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for 100.112.188.239
udhcpc: lease of 100.112.188.239 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 125.22.47.102
/etc/udhcpc.d/50default: Adding DNS 59.144.144.106
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
4 - Ping to google by using below command.
$ ping google.com
Expected Output
root@ruggedboard-imx6ul:~# ping google.com
PING google.com (142.250.192.110): 56 data bytes
64 bytes from 142.250.192.110: seq=0 ttl=117 time=36.163 ms
64 bytes from 142.250.192.110: seq=1 ttl=117 time=48.522 ms
64 bytes from 142.250.192.110: seq=2 ttl=117 time=46.619 ms
64 bytes from 142.250.192.110: seq=3 ttl=117 time=46.129 ms
64 bytes from 142.250.192.110: seq=4 ttl=117 time=45.576 ms
64 bytes from 142.250.192.110: seq=5 ttl=117 time=45.362 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 36.163/44.728/48.522 ms
root@ruggedboard-imx6ul:~# usb 1-2: new full-speed USB device number 2 using at91_ohci
|usb 1-2: config 1 has an invalid interface number: 8 but max is 3
usb 1-2: config 1 has no interface number 1
usb 1-2: New USB device found, idVendor=1199, idProduct=68c0
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: Sierra Wireless WP7608
usb 1-2: Manufacturer: Sierra Wireless, Incorporated
usb 1-2: SerialNumber: XG85120024011021
qcserial 1-2:1.0: Qualcomm USB modem converter detected
usb 1-2: Qualcomm USB modem converter now attached to ttyUSB0
qcserial 1-2:1.2: Qualcomm USB modem converter detected
usb 1-2: Qualcomm USB modem converter now attached to ttyUSB1
qcserial 1-2:1.3: Qualcomm USB modem converter detected
usb 1-2: Qualcomm USB modem converter now attached to ttyUSB2
qmi_wwan 1-2:1.8: cdc-wdm0: USB WDM device
qmi_wwan 1-2:1.8 wwan0: register 'qmi_wwan' at usb-at91-2, WWAN/QMI device, 9a:c1:df:e1:6f:1
Description
To test the PWM functionality in Kernel with External LED.
Required Hardware
RuggedBoard-i.MX6UL
USB cable
External LED
Step-by-step guide
Boot the board from NAND/MMC.
Please connect the positive pin of LED to the 16 th pin of the M1 connector.And connect the other pin of led to ground.
Give the below commands the and observe the brightness of LED pin.
1 - To display the number of available PWM channels in the first PWM controller (pwmchip0) in the system.
$ cat /sys/class/pwm/pwmchip0/npwm
2 - To export the PWM channel with index 0 in the first PWM controller (pwmchip0) in the system.
$ echo 0 > /sys/class/pwm/pwmchip0/export
3 - To display the polarity of the PWM signal generated by PWM channel 0 in the first PWM controller (pwmchip0) in the system.
$ cat /sys/class/pwm/pwmchip0/pwm0/polarity
4 - To set the period of the PWM signal generated by PWM channel 0 in the first PWM controller (pwmchip0).
$ echo 50000 > /sys/class/pwm/pwmchip0/pwm0/period
5 - To set the duty_cycle of the PWM signal generated by PWM channel 0 in the first PWM controller (pwmchip0).
$ echo 4000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
6 - To enable the PWM signal generated by PWM channel 0 in the first PWM controller (pwmchip0).
$ echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
7 - To read the value of the "pwm" file in the "debug" directory under the "kernel" directory in the "sys" file system.
$ cat /sys/kernel/debug/pwm
8 - To disable the PWM (Pulse Width Modulation) output on the first PWM channel of the first PWM chip.
$ echo 0 > /sys/class/pwm/pwmchip0/pwm0/enable
Expected Output
root@ruggedboard-imx6ul:~# cat /sys/class/pwm/pwmchip0/npwm
1
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/pwm/pwmchip0/export
-sh: echo: write error: Device or resource busy
root@ruggedboard-imx6ul:~# cat /sys/class/pwm/pwmchip0/pwm0/polarity
normal
root@ruggedboard-imx6ul:~# echo 50000 > /sys/class/pwm/pwmchip0/pwm0/period
root@ruggedboard-imx6ul:~# echo 4000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/pwm/pwmchip0/pwm0/enable
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
root@ruggedboard-imx6ul:~# cat /sys/kernel/debug/pwm
platform/2088000.pwm, 1 PWM device
pwm-0 (sysfs ): requested enabled period: 50000 ns duty: 4000 ns polarity: normal
root@ruggedboard-imx6ul:~#
Description
To test the reset switch in carrier board.
Required Hardware
Rugged Board i.MX6UL
USB cable
Step-by-step guide
Boot the board from NAND/MMC.
After completion of board booting press the reset switch.
Please check the board is whether reboot or not.
Expected Output
barebox 2019.01.0-bsp-yocto-i.mx6ul-pd19.1.0 #1 Fri Mar 10 11:11:44 UTC 2023
Board: Phytec phyCORE-i.MX6 Ultra Lite SOM with NAND
detected i.MX6 UltraLite revision 1.2
i.MX reset reason POR (SRSR: 0x00000001)
i.MX6 UltraLite unique ID: d1e090b62c2fb9d4
mdio_bus: miibus0: probed
eth0: got preset MAC address: 50:2d:f4:24:6f:5b
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
imx-usb 2184200.usb@2184200.of: USB EHCI 1.00
imx-esdhc 2190000.usdhc@2190000.of: registered as mmc0
state: New state registered 'state'
state: Using bucket 0@0x00000000
netconsole: registered as netconsole-1
phySOM-i.MX6: Using environment in NAND flash
malloc space: 0x8fe7cec0 -> 0x9fcf9d7f (size 254.5 MiB)
envfs: no envfs (magic mismatch) - envfs never written?
running /env/bin/init...
Hit m for menu or any key to stop autoboot: 0
booting 'nand'
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: registering /dev/nand0.root.ubi
ubi0: registering kernel as /dev/nand0.root.ubi.kernel
ubi0: registering oftree as /dev/nand0.root.ubi.oftree
ubi0: registering root as /dev/nand0.root.ubi.root
ubi0: attached mtd0 (name "nand0.root", size 507 MiB) to ubi0
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/1, WL threshold: 65536, image sequence number: 2930
ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
Loading ARM Linux zImage '/dev/nand0.root.ubi.kernel'
Loading devicetree from '/dev/nand0.root.ubi.oftree'
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
commandline: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.repair=yes
Starting kernel in secure mode
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.93-bsp-yocto-i.mx6ul-pd19.1.0 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Mar 30 10:32:30 UTC 203
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rugged Board i.MX6 UltraLite
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x96000000
[ 0.000000] percpu: Embedded 16 pages/cpu @dff91000 s34444 r8192 d22900 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.res
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 371996K/524288K available (9216K kernel code, 412K rwdata, 3100K rodata, 1024K init, 422K bss, 21220K reserved, 131072)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc0f00000 (1024 kB)
[ 0.000000] .data : 0xc0f00000 - 0xc0f67320 ( 413 kB)
[ 0.000000] .bss : 0xc0f69000 - 0xc0fd2800 ( 422 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000058] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.003040] Console: colour dummy device 80x30
[ 0.003099] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.003136] pid_max: default: 32768 minimum: 301
[ 0.003435] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003470] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004749] CPU: Testing write buffer coherency: ok
[ 0.005333] /cpus/cpu@0 missing clock-frequency property
[ 0.005374] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.006276] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.006608] Hierarchical SRCU implementation.
[ 0.007830] smp: Bringing up secondary CPUs ...
[ 0.007864] smp: Brought up 1 node, 1 CPU
[ 0.007889] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.007906] CPU: All CPU(s) started in SVC mode.
[ 0.009440] devtmpfs: initialized
[ 0.026309] random: get_random_u32 called from bucket_table_alloc+0x100/0x230 with crng_init=0
[ 0.026747] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027442] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.037942] pinctrl core: initialized pinctrl subsystem
[ 0.039913] NET: Registered protocol family 16
[ 0.056936] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059582] CPU identified as i.MX 6UL, silicon rev 1.2
[ 0.071828] vdd3p0: supplied by regulator-dummy
[ 0.073041] cpu: supplied by regulator-dummy
[ 0.074194] vddsoc: supplied by regulator-dummy
[ 0.093620] No ATAGs?
[ 0.093761] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.093798] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.097805] imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins or pins property in node /soc/aips-bus@2000000/iomuxc@20e0000/wlangrp
[ 0.097897] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.141950] mxs-dma 1804000.dma-apbh: initialized
[ 0.148418] vgaarb: loaded
[ 0.149426] SCSI subsystem initialized
[ 0.150485] usbcore: registered new interface driver usbfs
[ 0.150633] usbcore: registered new interface driver hub
[ 0.150845] usbcore: registered new device driver usb
[ 0.153830] i2c i2c-0: IMX I2C adapter registered
[ 0.153878] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.155355] i2c i2c-1: IMX I2C adapter registered
[ 0.155403] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.155791] media: Linux media interface: v0.10
[ 0.155924] Linux video capture interface: v2.00
[ 0.156064] pps_core: LinuxPPS API ver. 1 registered
[ 0.156084] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.156135] PTP clock support registered
[ 0.156811] Advanced Linux Sound Architecture Driver Initialized.
[ 0.158474] Bluetooth: Core ver 2.22
[ 0.158593] NET: Registered protocol family 31
[ 0.158615] Bluetooth: HCI device and connection manager initialized
[ 0.158653] Bluetooth: HCI socket layer initialized
[ 0.158681] Bluetooth: L2CAP socket layer initialized
[ 0.158750] Bluetooth: SCO socket layer initialized
[ 0.161250] clocksource: Switched to clocksource mxc_timer1
[ 0.161625] VFS: Disk quotas dquot_6.6.0
[ 0.161784] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.182617] NET: Registered protocol family 2
[ 0.184024] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.184154] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.184313] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.184519] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184582] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184918] NET: Registered protocol family 1
[ 0.185837] RPC: Registered named UNIX socket transport module.
[ 0.185867] RPC: Registered udp transport module.
[ 0.185882] RPC: Registered tcp transport module.
[ 0.185899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190775] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.201027] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.202699] NFS: Registering the id_resolver key type
[ 0.202778] Key type id_resolver registered
[ 0.202798] Key type id_legacy registered
[ 0.202911] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.204011] fuse init (API version 7.26)
[ 0.216169] NET: Registered protocol family 38
[ 0.216563] io scheduler noop registered
[ 0.216590] io scheduler deadline registered
[ 0.216956] io scheduler cfq registered (default)
[ 0.216981] io scheduler mq-deadline registered
[ 0.216999] io scheduler kyber registered
[ 0.224485] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[ 0.247819] Console: switching to colour frame buffer device 100x30
[ 0.263121] mxsfb 21c8000.lcdif: initialized
[ 0.266500] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.276041] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 0.979081] console [ttymxc0] enabled
[ 0.984718] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 61, base_baud = 5000000) is a IMX
[ 0.994847] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 62, base_baud = 5000000) is a IMX
[ 1.005048] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 63, base_baud = 5000000) is a IMX
[ 1.015354] 21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 64, base_baud = 5000000) is a IMX
[ 1.057750] brd: module loaded
[ 1.077839] loop: module loaded
[ 1.082871] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[ 1.100359] random: fast init done
[ 1.107171] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.113616] nand: Micron MT29F4G08ABADAH4
[ 1.117656] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.126101] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[ 1.134271] Bad block table found at page 262080, version 0x01
[ 1.140543] Bad block table found at page 262016, version 0x01
[ 1.147213] 3 ofpart partitions found on MTD device gpmi-nand
[ 1.153056] Creating 3 MTD partitions on "gpmi-nand":
[ 1.158146] 0x000000000000-0x000000400000 : "barebox"
[ 1.166337] 0x000000400000-0x000000500000 : "barebox-environment"
[ 1.174825] 0x000000500000-0x000020000000 : "root"
[ 1.289273] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 1.301093] spi_imx 2008000.ecspi: probed
[ 1.308675] spi_imx 200c000.ecspi: probed
[ 1.314648] libphy: Fixed MDIO Bus: probed
[ 1.319840] CAN device driver interface
[ 1.325800] flexcan 2090000.flexcan: device registered (reg_base=e0a28000, irq=24)
[ 1.335454] fec 20b4000.ethernet: 20b4000.ethernet supply phy not found, using dummy regulator
[ 1.345250] pps pps0: new PPS source ptp0
[ 1.378937] libphy: fec_enet_mii_bus: probed
[ 1.385038] fec 20b4000.ethernet eth1: registered PHC device 0
[ 1.393465] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 1.403340] pps pps1: new PPS source ptp1
[ 1.408831] libphy: fec_enet_mii_bus: probed
[ 1.415811] fec 2188000.ethernet eth0: registered PHC device 1
[ 1.423364] PPP generic driver version 2.4.2
[ 1.428114] PPP BSD Compression module registered
[ 1.432992] PPP Deflate Compression module registered
[ 1.438157] PPP MPPE Compression module registered
[ 1.443104] NET: Registered protocol family 24
[ 1.447826] usbcore: registered new interface driver asix
[ 1.453553] usbcore: registered new interface driver ax88179_178a
[ 1.459764] usbcore: registered new interface driver cdc_ether
[ 1.465871] usbcore: registered new interface driver net1080
[ 1.471713] usbcore: registered new interface driver rndis_host
[ 1.477734] usbcore: registered new interface driver cdc_subset
[ 1.483816] usbcore: registered new interface driver zaurus
[ 1.489536] usbcore: registered new interface driver cdc_ncm
[ 1.495502] usbcore: registered new interface driver qmi_wwan
[ 1.501376] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.507931] ehci-pci: EHCI PCI platform driver
[ 1.512625] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.518738] usbcore: registered new interface driver cdc_wdm
[ 1.524678] usbcore: registered new interface driver usb-storage
[ 1.530959] usbcore: registered new interface driver usbserial
[ 1.537122] usbcore: registered new interface driver usbserial_generic
[ 1.543833] usbserial: USB Serial support registered for generic
[ 1.549963] usbcore: registered new interface driver option
[ 1.555694] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.562813] usbcore: registered new interface driver qcaux
[ 1.568384] usbserial: USB Serial support registered for qcaux
[ 1.574370] usbcore: registered new interface driver qcserial
[ 1.580206] usbserial: USB Serial support registered for Qualcomm USB modem
[ 1.587340] usbcore: registered new interface driver sierra
[ 1.593051] usbserial: USB Serial support registered for Sierra USB modem
[ 1.603903] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[ 1.616045] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.621030] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.651361] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.658664] hub 1-0:1.0: USB hub found
[ 1.662742] hub 1-0:1.0: 1 port detected
[ 1.668684] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 1.680907] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.686072] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.721318] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.728525] hub 2-0:1.0: USB hub found
[ 1.732597] hub 2-0:1.0: 1 port detected
[ 1.740888] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.755859] atmel_mxt_ts 0-004a: __mxt_read_reg: i2c transfer failed (-6)
[ 1.763244] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.770158] atmel_mxt_ts 0-004a: Trying alternate bootloader address
[ 1.778017] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.792665] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 1.799486] rtc-m41t80 1-0068: registered as rtc0
[ 1.806763] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc1
[ 1.816537] i2c /dev entries driver
[ 1.822097] IR NEC protocol handler initialized
[ 1.826673] IR RC5(x/sz) protocol handler initialized
[ 1.831914] IR RC6 protocol handler initialized
[ 1.836474] IR JVC protocol handler initialized
[ 1.841025] IR Sony protocol handler initialized
[ 1.846693] IR SANYO protocol handler initialized
[ 1.851504] IR Sharp protocol handler initialized
[ 1.856234] IR MCE Keyboard/mouse protocol handler initialized
[ 1.862129] IR XMP protocol handler initialized
[ 1.872071] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.878850] Bluetooth: HCI UART driver ver 2.3
[ 1.883453] Bluetooth: HCI UART protocol H4 registered
[ 1.889528] sdhci: Secure Digital Host Controller Interface driver
[ 1.895829] sdhci: Copyright(c) Pierre Ossman
[ 1.900213] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.908338] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[ 1.972866] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 2.131451] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.149691] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.155984] usbcore: registered new interface driver usbhid
[ 2.161753] usbhid: USB HID core driver
[ 2.185461] NET: Registered protocol family 10
[ 2.192735] Segment Routing with IPv6
[ 2.196586] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.204249] NET: Registered protocol family 17
[ 2.208768] can: controller area network core (rev 20170425 abi 9)
[ 2.215275] NET: Registered protocol family 29
[ 2.219782] can: raw protocol (rev 20170425)
[ 2.224169] can: broadcast manager protocol (rev 20170425 t)
[ 2.229875] can: netlink gateway (rev 20170425) max_hops=1
[ 2.235832] 8021q: 802.1Q VLAN Support v1.8
[ 2.240125] Key type dns_resolver registered
[ 2.247170] cpu cpu0: Using anatop regulators: LDOs enabled
[ 2.253336] Registering SWP/SWPB emulation handler
[ 2.278269] imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 2.290463] ubi0: default fastmap pool size: 200
[ 2.295246] ubi0: default fastmap WL pool size: 100
[ 2.300145] ubi0: attaching mtd2
[ 2.567217] ubi0: attached by fastmap
[ 2.570921] ubi0: fastmap pool size: 200
[ 2.574966] ubi0: fastmap WL pool size: 100
[ 2.594590] ubi0: attached mtd2 (name "root", size 507 MiB)
[ 2.600207] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.607243] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.614110] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.621090] ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
[ 2.627236] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 2.634513] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 2930
[ 2.643171] ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
[ 2.652630] ubi0: background thread "ubi_bgt0d" started, PID 99
[ 2.663004] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 2.669311] rtc-m41t80 1-0068: hctosys: unable to read the hardware clock
[ 2.676949] Can: disabling
[ 2.679693] Backlight: disabling
[ 2.685217] gpio_dvfs: disabling
[ 2.688474] ALSA device list:
[ 2.691517] No soundcards found.
[ 2.722655] UBIFS (ubi0:2): recovery needed
[ 2.784781] UBIFS (ubi0:2): recovery deferred
[ 2.789353] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "root", R/O mode
[ 2.797611] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.807625] UBIFS (ubi0:2): FS size: 493047808 bytes (470 MiB, 3883 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.818387] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB)
[ 2.824284] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 1CF45089-7D85-458F-B823-E9419003C4C6, small LPT model
[ 2.839177] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
[ 2.847213] devtmpfs: mounted
[ 2.853112] Freeing unused kernel memory: 1024K
[ 3.124093] systemd[1]: System time before build time, advancing clock.
[ 3.206900] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GC)
[ 3.230149] systemd[1]: Detected architecture arm.
Welcome to The Yogurt Distribution BSP-Yocto-i.MX6UL-PD19.1.0!
[ 3.280114] systemd[1]: Set hostname to <ruggedboard-imx6ul>.
[ 3.558070] random: crng init done
[ 3.697676] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local .
[ 3.715017] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalli)
[ 4.021954] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.064012] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.108314] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.142862] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.183685] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Starting File System Check on Root Device...
Starting Apply Kernel Variables...
Mounting Kernel Debug File System...
Starting udev Coldplug all Devices...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
Starting Journal Service...
Mounting FUSE Control File System...
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Temporary Directory (/tmp).
Starting Remount Root and Kernel File Systems...
[ 5.175764] UBIFS (ubi0:2): completing deferred recovery
[ OK ] Started Journal Service.
[ 5.395780] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 121
[ 5.412759] UBIFS (ubi0:2): deferred recovery completed
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
[ 5.804357] systemd-journald[113]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
Starting Rebuild Journal Catalog...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started udev Kernel Device Manager.
Starting Network Service...
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Found device /dev/ttymxc0.
[ 10.011602] Generic PHY 20b4000.ethernet-1barebox 2019.01.0-bsp-yocto-i.mx6ul-pd19.1.0 #1 Fri Mar 10 11:11:44 UTC 2023
Board: Phytec phyCORE-i.MX6 Ultra Lite SOM with NAND
detected i.MX6 UltraLite revision 1.2
i.MX reset reason POR (SRSR: 0x00000001)
i.MX6 UltraLite unique ID: d1e090b62c2fb9d4
mdio_bus: miibus0: probed
eth0: got preset MAC address: 50:2d:f4:24:6f:5b
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
imx-usb 2184200.usb@2184200.of: USB EHCI 1.00
imx-esdhc 2190000.usdhc@2190000.of: registered as mmc0
state: New state registered 'state'
state: Using bucket 0@0x00000000
netconsole: registered as netconsole-1
phySOM-i.MX6: Using environment in NAND flash
malloc space: 0x8fe7cec0 -> 0x9fcf9d7f (size 254.5 MiB)
envfs: no envfs (magic mismatch) - envfs never written?
running /env/bin/init...
Hit m for menu or any key to stop autoboot: 0
booting 'nand'
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: registering /dev/nand0.root.ubi
ubi0: registering kernel as /dev/nand0.root.ubi.kernel
ubi0: registering oftree as /dev/nand0.root.ubi.oftree
ubi0: registering root as /dev/nand0.root.ubi.root
ubi0: attached mtd0 (name "nand0.root", size 507 MiB) to ubi0
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/1, WL threshold: 65536, image sequence number: 2930
ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
Loading ARM Linux zImage '/dev/nand0.root.ubi.kernel'
Loading devicetree from '/dev/nand0.root.ubi.oftree'
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
commandline: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.repair=yes
Starting kernel in secure mode
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.93-bsp-yocto-i.mx6ul-pd19.1.0 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Mar 30 10:32:30 UTC 203
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rugged Board i.MX6 UltraLite
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x96000000
[ 0.000000] percpu: Embedded 16 pages/cpu @dff91000 s34444 r8192 d22900 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.res
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 371996K/524288K available (9216K kernel code, 412K rwdata, 3100K rodata, 1024K init, 422K bss, 21220K reserved, 131072)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc0f00000 (1024 kB)
[ 0.000000] .data : 0xc0f00000 - 0xc0f67320 ( 413 kB)
[ 0.000000] .bss : 0xc0f69000 - 0xc0fd2800 ( 422 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000058] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.003040] Console: colour dummy device 80x30
[ 0.003099] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.003136] pid_max: default: 32768 minimum: 301
[ 0.003435] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003470] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004749] CPU: Testing write buffer coherency: ok
[ 0.005333] /cpus/cpu@0 missing clock-frequency property
[ 0.005374] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.006276] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.006608] Hierarchical SRCU implementation.
[ 0.007830] smp: Bringing up secondary CPUs ...
[ 0.007864] smp: Brought up 1 node, 1 CPU
[ 0.007889] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.007906] CPU: All CPU(s) started in SVC mode.
[ 0.009440] devtmpfs: initialized
[ 0.026309] random: get_random_u32 called from bucket_table_alloc+0x100/0x230 with crng_init=0
[ 0.026747] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027442] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.037942] pinctrl core: initialized pinctrl subsystem
[ 0.039913] NET: Registered protocol family 16
[ 0.056936] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059582] CPU identified as i.MX 6UL, silicon rev 1.2
[ 0.071828] vdd3p0: supplied by regulator-dummy
[ 0.073041] cpu: supplied by regulator-dummy
[ 0.074194] vddsoc: supplied by regulator-dummy
[ 0.093620] No ATAGs?
[ 0.093761] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.093798] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.097805] imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins or pins property in node /soc/aips-bus@2000000/iomuxc@20e0000/wlangrp
[ 0.097897] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.141950] mxs-dma 1804000.dma-apbh: initialized
[ 0.148418] vgaarb: loaded
[ 0.149426] SCSI subsystem initialized
[ 0.150485] usbcore: registered new interface driver usbfs
[ 0.150633] usbcore: registered new interface driver hub
[ 0.150845] usbcore: registered new device driver usb
[ 0.153830] i2c i2c-0: IMX I2C adapter registered
[ 0.153878] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.155355] i2c i2c-1: IMX I2C adapter registered
[ 0.155403] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.155791] media: Linux media interface: v0.10
[ 0.155924] Linux video capture interface: v2.00
[ 0.156064] pps_core: LinuxPPS API ver. 1 registered
[ 0.156084] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.156135] PTP clock support registered
[ 0.156811] Advanced Linux Sound Architecture Driver Initialized.
[ 0.158474] Bluetooth: Core ver 2.22
[ 0.158593] NET: Registered protocol family 31
[ 0.158615] Bluetooth: HCI device and connection manager initialized
[ 0.158653] Bluetooth: HCI socket layer initialized
[ 0.158681] Bluetooth: L2CAP socket layer initialized
[ 0.158750] Bluetooth: SCO socket layer initialized
[ 0.161250] clocksource: Switched to clocksource mxc_timer1
[ 0.161625] VFS: Disk quotas dquot_6.6.0
[ 0.161784] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.182617] NET: Registered protocol family 2
[ 0.184024] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.184154] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.184313] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.184519] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184582] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184918] NET: Registered protocol family 1
[ 0.185837] RPC: Registered named UNIX socket transport module.
[ 0.185867] RPC: Registered udp transport module.
[ 0.185882] RPC: Registered tcp transport module.
[ 0.185899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190775] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.201027] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.202699] NFS: Registering the id_resolver key type
[ 0.202778] Key type id_resolver registered
[ 0.202798] Key type id_legacy registered
[ 0.202911] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.204011] fuse init (API version 7.26)
[ 0.216169] NET: Registered protocol family 38
[ 0.216563] io scheduler noop registered
[ 0.216590] io scheduler deadline registered
[ 0.216956] io scheduler cfq registered (default)
[ 0.216981] io scheduler mq-deadline registered
[ 0.216999] io scheduler kyber registered
[ 0.224485] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[ 0.247819] Console: switching to colour frame buffer device 100x30
[ 0.263121] mxsfb 21c8000.lcdif: initialized
[ 0.266500] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.276041] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 0.979081] console [ttymxc0] enabled
[ 0.984718] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 61, base_baud = 5000000) is a IMX
[ 0.994847] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 62, base_baud = 5000000) is a IMX
[ 1.005048] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 63, base_baud = 5000000) is a IMX
[ 1.015354] 21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 64, base_baud = 5000000) is a IMX
[ 1.057750] brd: module loaded
[ 1.077839] loop: module loaded
[ 1.082871] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[ 1.100359] random: fast init done
[ 1.107171] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.113616] nand: Micron MT29F4G08ABADAH4
[ 1.117656] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.126101] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[ 1.134271] Bad block table found at page 262080, version 0x01
[ 1.140543] Bad block table found at page 262016, version 0x01
[ 1.147213] 3 ofpart partitions found on MTD device gpmi-nand
[ 1.153056] Creating 3 MTD partitions on "gpmi-nand":
[ 1.158146] 0x000000000000-0x000000400000 : "barebox"
[ 1.166337] 0x000000400000-0x000000500000 : "barebox-environment"
[ 1.174825] 0x000000500000-0x000020000000 : "root"
[ 1.289273] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 1.301093] spi_imx 2008000.ecspi: probed
[ 1.308675] spi_imx 200c000.ecspi: probed
[ 1.314648] libphy: Fixed MDIO Bus: probed
[ 1.319840] CAN device driver interface
[ 1.325800] flexcan 2090000.flexcan: device registered (reg_base=e0a28000, irq=24)
[ 1.335454] fec 20b4000.ethernet: 20b4000.ethernet supply phy not found, using dummy regulator
[ 1.345250] pps pps0: new PPS source ptp0
[ 1.378937] libphy: fec_enet_mii_bus: probed
[ 1.385038] fec 20b4000.ethernet eth1: registered PHC device 0
[ 1.393465] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 1.403340] pps pps1: new PPS source ptp1
[ 1.408831] libphy: fec_enet_mii_bus: probed
[ 1.415811] fec 2188000.ethernet eth0: registered PHC device 1
[ 1.423364] PPP generic driver version 2.4.2
[ 1.428114] PPP BSD Compression module registered
[ 1.432992] PPP Deflate Compression module registered
[ 1.438157] PPP MPPE Compression module registered
[ 1.443104] NET: Registered protocol family 24
[ 1.447826] usbcore: registered new interface driver asix
[ 1.453553] usbcore: registered new interface driver ax88179_178a
[ 1.459764] usbcore: registered new interface driver cdc_ether
[ 1.465871] usbcore: registered new interface driver net1080
[ 1.471713] usbcore: registered new interface driver rndis_host
[ 1.477734] usbcore: registered new interface driver cdc_subset
[ 1.483816] usbcore: registered new interface driver zaurus
[ 1.489536] usbcore: registered new interface driver cdc_ncm
[ 1.495502] usbcore: registered new interface driver qmi_wwan
[ 1.501376] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.507931] ehci-pci: EHCI PCI platform driver
[ 1.512625] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.518738] usbcore: registered new interface driver cdc_wdm
[ 1.524678] usbcore: registered new interface driver usb-storage
[ 1.530959] usbcore: registered new interface driver usbserial
[ 1.537122] usbcore: registered new interface driver usbserial_generic
[ 1.543833] usbserial: USB Serial support registered for generic
[ 1.549963] usbcore: registered new interface driver option
[ 1.555694] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.562813] usbcore: registered new interface driver qcaux
[ 1.568384] usbserial: USB Serial support registered for qcaux
[ 1.574370] usbcore: registered new interface driver qcserial
[ 1.580206] usbserial: USB Serial support registered for Qualcomm USB modem
[ 1.587340] usbcore: registered new interface driver sierra
[ 1.593051] usbserial: USB Serial support registered for Sierra USB modem
[ 1.603903] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[ 1.616045] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.621030] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.651361] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.658664] hub 1-0:1.0: USB hub found
[ 1.662742] hub 1-0:1.0: 1 port detected
[ 1.668684] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 1.680907] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.686072] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.721318] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.728525] hub 2-0:1.0: USB hub found
[ 1.732597] hub 2-0:1.0: 1 port detected
[ 1.740888] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.755859] atmel_mxt_ts 0-004a: __mxt_read_reg: i2c transfer failed (-6)
[ 1.763244] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.770158] atmel_mxt_ts 0-004a: Trying alternate bootloader address
[ 1.778017] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.792665] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 1.799486] rtc-m41t80 1-0068: registered as rtc0
[ 1.806763] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc1
[ 1.816537] i2c /dev entries driver
[ 1.822097] IR NEC protocol handler initialized
[ 1.826673] IR RC5(x/sz) protocol handler initialized
[ 1.831914] IR RC6 protocol handler initialized
[ 1.836474] IR JVC protocol handler initialized
[ 1.841025] IR Sony protocol handler initialized
[ 1.846693] IR SANYO protocol handler initialized
[ 1.851504] IR Sharp protocol handler initialized
[ 1.856234] IR MCE Keyboard/mouse protocol handler initialized
[ 1.862129] IR XMP protocol handler initialized
[ 1.872071] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.878850] Bluetooth: HCI UART driver ver 2.3
[ 1.883453] Bluetooth: HCI UART protocol H4 registered
[ 1.889528] sdhci: Secure Digital Host Controller Interface driver
[ 1.895829] sdhci: Copyright(c) Pierre Ossman
[ 1.900213] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.908338] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[ 1.972866] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 2.131451] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.149691] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.155984] usbcore: registered new interface driver usbhid
[ 2.161753] usbhid: USB HID core driver
[ 2.185461] NET: Registered protocol family 10
[ 2.192735] Segment Routing with IPv6
[ 2.196586] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.204249] NET: Registered protocol family 17
[ 2.208768] can: controller area network core (rev 20170425 abi 9)
[ 2.215275] NET: Registered protocol family 29
[ 2.219782] can: raw protocol (rev 20170425)
[ 2.224169] can: broadcast manager protocol (rev 20170425 t)
[ 2.229875] can: netlink gateway (rev 20170425) max_hops=1
[ 2.235832] 8021q: 802.1Q VLAN Support v1.8
[ 2.240125] Key type dns_resolver registered
[ 2.247170] cpu cpu0: Using anatop regulators: LDOs enabled
[ 2.253336] Registering SWP/SWPB emulation handler
[ 2.278269] imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 2.290463] ubi0: default fastmap pool size: 200
[ 2.295246] ubi0: default fastmap WL pool size: 100
[ 2.300145] ubi0: attaching mtd2
[ 2.567217] ubi0: attached by fastmap
[ 2.570921] ubi0: fastmap pool size: 200
[ 2.574966] ubi0: fastmap WL pool size: 100
[ 2.594590] ubi0: attached mtd2 (name "root", size 507 MiB)
[ 2.600207] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.607243] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.614110] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.621090] ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
[ 2.627236] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 2.634513] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 2930
[ 2.643171] ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
[ 2.652630] ubi0: background thread "ubi_bgt0d" started, PID 99
[ 2.663004] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 2.669311] rtc-m41t80 1-0068: hctosys: unable to read the hardware clock
[ 2.676949] Can: disabling
[ 2.679693] Backlight: disabling
[ 2.685217] gpio_dvfs: disabling
[ 2.688474] ALSA device list:
[ 2.691517] No soundcards found.
[ 2.722655] UBIFS (ubi0:2): recovery needed
[ 2.784781] UBIFS (ubi0:2): recovery deferred
[ 2.789353] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "root", R/O mode
[ 2.797611] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.807625] UBIFS (ubi0:2): FS size: 493047808 bytes (470 MiB, 3883 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.818387] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB)
[ 2.824284] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 1CF45089-7D85-458F-B823-E9419003C4C6, small LPT model
[ 2.839177] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
[ 2.847213] devtmpfs: mounted
[ 2.853112] Freeing unused kernel memory: 1024K
[ 3.124093] systemd[1]: System time before build time, advancing clock.
[ 3.206900] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GC)
[ 3.230149] systemd[1]: Detected architecture arm.
Welcome to The Yogurt Distribution BSP-Yocto-i.MX6UL-PD19.1.0!
[ 3.280114] systemd[1]: Set hostname to <ruggedboard-imx6ul>.
[ 3.558070] random: crng init done
[ 3.697676] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local .
[ 3.715017] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalli)
[ 4.021954] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.064012] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.108314] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.142862] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.183685] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Starting File System Check on Root Device...
Starting Apply Kernel Variables...
Mounting Kernel Debug File System...
Starting udev Coldplug all Devices...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
Starting Journal Service...
Mounting FUSE Control File System...
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Temporary Directory (/tmp).
Starting Remount Root and Kernel File Systems...
[ 5.175764] UBIFS (ubi0:2): completing deferred recovery
[ OK ] Started Journal Service.
[ 5.395780] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 121
[ 5.412759] UBIFS (ubi0:2): deferred recovery completed
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
[ 5.804357] systemd-journald[113]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
Starting Rebuild Journal Catalog...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started udev Kernel Device Manager.
Starting Network Service...
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Found device /dev/ttymxc0.
[ 10.011602] Generic PHY 20b4000.ethernet-1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=20b4000.ethernet-1:00, irq=POLL)
[ 10.082696] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 10.492133] Micrel KSZ8081 or KSZ8091 2188000.ethernet-2:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.eth)
[ 10.562484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started udev Wait for Complete Device Initialization.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting sshd.socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Listening on sshd.socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Lightning Fast Webserver With Light System Requirements...
[ OK ] Started HawkBit client for Rauc.
Starting Autostart Qt 5 Demo...
Starting Login Service...
[ OK ] Started Rauc Good-marking Service.
[ OK ] Started Serial Getty on ttymxc0.
[ OK ] Started can0 interface setup.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started D-Bus System Message Bus.
[ 12.480748] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ OK ] Started Login Service.
Starting Network Time Service...
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Autostart Qt 5 Demo.
Starting Rauc Update Service...
[ OK ] Started Network Time Service.
[ OK ] Reached target Multi-User System.
[ OK ] Started Rauc Update Service.
____ _ _ ____ ____ _____ ____ ____ ___ _ ____ ____
| _ \ | | | | / ___| / ___|| ____|| _ \ | __ ) / _ \ / \ | _ \ | _ \
| |_) || | | || | _ | | _ | _| | | | | | _ \ | | | | / _ \ | |_) || | | |
| _ < | |_| || |_| || |_| || |___ | |_| | | |_) || |_| |/ ___ \ | _ < | |_| |
|_| \_\ \___/ \____| \____||_____||____/ |____/ \___//_/ \_\|_| \_\|____/
__ __ ___ ____ _ _ ____ _____
\ \ / / / _ \ / ___|| | | || _ \ |_ _|
\ V / | | | || | _ | | | || |_) | | |
| | | |_| || |_| || |_| || _ < | |
|_| \___/ \____| \___/ |_| \_\ |_|
Yogurt (Phytec Example Distribution) BSP-Yocto-i.MX6UL-PD19.1.0 ruggedboard-imx6ul ttymxc0
ruggedboard-imx6ul login: root
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
barebox 2019.01.0-bsp-yocto-i.mx6ul-pd19.1.0 #1 Fri Mar 10 11:11:44 UTC 2023
Board: Phytec phyCORE-i.MX6 Ultra Lite SOM with NAND
detected i.MX6 UltraLite revision 1.2
i.MX reset reason POR (SRSR: 0x00000001)
i.MX6 UltraLite unique ID: d1e090b62c2fb9d4
mdio_bus: miibus0: probed
eth0: got preset MAC address: 50:2d:f4:24:6f:5b
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4G08ABADAH4), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
imx-usb 2184200.usb@2184200.of: USB EHCI 1.00
imx-esdhc 2190000.usdhc@2190000.of: registered as mmc0
state: New state registered 'state'
state: Using bucket 0@0x00000000
netconsole: registered as netconsole-1
phySOM-i.MX6: Using environment in NAND flash
malloc space: 0x8fe7cec0 -> 0x9fcf9d7f (size 254.5 MiB)
envfs: no envfs (magic mismatch) - envfs never written?
running /env/bin/init...
Hit m for menu or any key to stop autoboot: 0
booting 'nand'
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: registering /dev/nand0.root.ubi
ubi0: registering kernel as /dev/nand0.root.ubi.kernel
ubi0: registering oftree as /dev/nand0.root.ubi.oftree
ubi0: registering root as /dev/nand0.root.ubi.root
ubi0: attached mtd0 (name "nand0.root", size 507 MiB) to ubi0
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 3/1, WL threshold: 65536, image sequence number: 2930
ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
Loading ARM Linux zImage '/dev/nand0.root.ubi.kernel'
Loading devicetree from '/dev/nand0.root.ubi.oftree'
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
Failed to fixup node in of_fixup_status+0x1/0x28: No such device
commandline: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.repair=yes
Starting kernel in secure mode
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.93-bsp-yocto-i.mx6ul-pd19.1.0 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Thu Mar 30 10:32:30 UTC 203
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Rugged Board i.MX6 UltraLite
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x96000000
[ 0.000000] percpu: Embedded 16 pages/cpu @dff91000 s34444 r8192 d22900 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: consoleblank=0 console=ttymxc0,115200n8 root=ubi0:root ubi.mtd=root rootfstype=ubifs rootwait ro fsck.res
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 371996K/524288K available (9216K kernel code, 412K rwdata, 3100K rodata, 1024K init, 422K bss, 21220K reserved, 131072)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc0f00000 (1024 kB)
[ 0.000000] .data : 0xc0f00000 - 0xc0f67320 ( 413 kB)
[ 0.000000] .bss : 0xc0f69000 - 0xc0fd2800 ( 422 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000058] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.003040] Console: colour dummy device 80x30
[ 0.003099] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.003136] pid_max: default: 32768 minimum: 301
[ 0.003435] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003470] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004749] CPU: Testing write buffer coherency: ok
[ 0.005333] /cpus/cpu@0 missing clock-frequency property
[ 0.005374] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.006276] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.006608] Hierarchical SRCU implementation.
[ 0.007830] smp: Bringing up secondary CPUs ...
[ 0.007864] smp: Brought up 1 node, 1 CPU
[ 0.007889] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.007906] CPU: All CPU(s) started in SVC mode.
[ 0.009440] devtmpfs: initialized
[ 0.026309] random: get_random_u32 called from bucket_table_alloc+0x100/0x230 with crng_init=0
[ 0.026747] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.027394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.027442] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.037942] pinctrl core: initialized pinctrl subsystem
[ 0.039913] NET: Registered protocol family 16
[ 0.056936] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059582] CPU identified as i.MX 6UL, silicon rev 1.2
[ 0.071828] vdd3p0: supplied by regulator-dummy
[ 0.073041] cpu: supplied by regulator-dummy
[ 0.074194] vddsoc: supplied by regulator-dummy
[ 0.093620] No ATAGs?
[ 0.093761] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.093798] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.097805] imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins or pins property in node /soc/aips-bus@2000000/iomuxc@20e0000/wlangrp
[ 0.097897] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.141950] mxs-dma 1804000.dma-apbh: initialized
[ 0.148418] vgaarb: loaded
[ 0.149426] SCSI subsystem initialized
[ 0.150485] usbcore: registered new interface driver usbfs
[ 0.150633] usbcore: registered new interface driver hub
[ 0.150845] usbcore: registered new device driver usb
[ 0.153830] i2c i2c-0: IMX I2C adapter registered
[ 0.153878] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.155355] i2c i2c-1: IMX I2C adapter registered
[ 0.155403] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.155791] media: Linux media interface: v0.10
[ 0.155924] Linux video capture interface: v2.00
[ 0.156064] pps_core: LinuxPPS API ver. 1 registered
[ 0.156084] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.156135] PTP clock support registered
[ 0.156811] Advanced Linux Sound Architecture Driver Initialized.
[ 0.158474] Bluetooth: Core ver 2.22
[ 0.158593] NET: Registered protocol family 31
[ 0.158615] Bluetooth: HCI device and connection manager initialized
[ 0.158653] Bluetooth: HCI socket layer initialized
[ 0.158681] Bluetooth: L2CAP socket layer initialized
[ 0.158750] Bluetooth: SCO socket layer initialized
[ 0.161250] clocksource: Switched to clocksource mxc_timer1
[ 0.161625] VFS: Disk quotas dquot_6.6.0
[ 0.161784] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.182617] NET: Registered protocol family 2
[ 0.184024] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.184154] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.184313] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.184519] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184582] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.184918] NET: Registered protocol family 1
[ 0.185837] RPC: Registered named UNIX socket transport module.
[ 0.185867] RPC: Registered udp transport module.
[ 0.185882] RPC: Registered tcp transport module.
[ 0.185899] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190775] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.201027] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.202699] NFS: Registering the id_resolver key type
[ 0.202778] Key type id_resolver registered
[ 0.202798] Key type id_legacy registered
[ 0.202911] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 0.204011] fuse init (API version 7.26)
[ 0.216169] NET: Registered protocol family 38
[ 0.216563] io scheduler noop registered
[ 0.216590] io scheduler deadline registered
[ 0.216956] io scheduler cfq registered (default)
[ 0.216981] io scheduler mq-deadline registered
[ 0.216999] io scheduler kyber registered
[ 0.224485] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[ 0.247819] Console: switching to colour frame buffer device 100x30
[ 0.263121] mxsfb 21c8000.lcdif: initialized
[ 0.266500] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.276041] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 22, base_baud = 5000000) is a IMX
[ 0.979081] console [ttymxc0] enabled
[ 0.984718] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 61, base_baud = 5000000) is a IMX
[ 0.994847] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 62, base_baud = 5000000) is a IMX
[ 1.005048] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 63, base_baud = 5000000) is a IMX
[ 1.015354] 21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 64, base_baud = 5000000) is a IMX
[ 1.057750] brd: module loaded
[ 1.077839] loop: module loaded
[ 1.082871] at24 0-0052: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[ 1.100359] random: fast init done
[ 1.107171] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.113616] nand: Micron MT29F4G08ABADAH4
[ 1.117656] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.126101] gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5
[ 1.134271] Bad block table found at page 262080, version 0x01
[ 1.140543] Bad block table found at page 262016, version 0x01
[ 1.147213] 3 ofpart partitions found on MTD device gpmi-nand
[ 1.153056] Creating 3 MTD partitions on "gpmi-nand":
[ 1.158146] 0x000000000000-0x000000400000 : "barebox"
[ 1.166337] 0x000000400000-0x000000500000 : "barebox-environment"
[ 1.174825] 0x000000500000-0x000020000000 : "root"
[ 1.289273] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 1.301093] spi_imx 2008000.ecspi: probed
[ 1.308675] spi_imx 200c000.ecspi: probed
[ 1.314648] libphy: Fixed MDIO Bus: probed
[ 1.319840] CAN device driver interface
[ 1.325800] flexcan 2090000.flexcan: device registered (reg_base=e0a28000, irq=24)
[ 1.335454] fec 20b4000.ethernet: 20b4000.ethernet supply phy not found, using dummy regulator
[ 1.345250] pps pps0: new PPS source ptp0
[ 1.378937] libphy: fec_enet_mii_bus: probed
[ 1.385038] fec 20b4000.ethernet eth1: registered PHC device 0
[ 1.393465] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 1.403340] pps pps1: new PPS source ptp1
[ 1.408831] libphy: fec_enet_mii_bus: probed
[ 1.415811] fec 2188000.ethernet eth0: registered PHC device 1
[ 1.423364] PPP generic driver version 2.4.2
[ 1.428114] PPP BSD Compression module registered
[ 1.432992] PPP Deflate Compression module registered
[ 1.438157] PPP MPPE Compression module registered
[ 1.443104] NET: Registered protocol family 24
[ 1.447826] usbcore: registered new interface driver asix
[ 1.453553] usbcore: registered new interface driver ax88179_178a
[ 1.459764] usbcore: registered new interface driver cdc_ether
[ 1.465871] usbcore: registered new interface driver net1080
[ 1.471713] usbcore: registered new interface driver rndis_host
[ 1.477734] usbcore: registered new interface driver cdc_subset
[ 1.483816] usbcore: registered new interface driver zaurus
[ 1.489536] usbcore: registered new interface driver cdc_ncm
[ 1.495502] usbcore: registered new interface driver qmi_wwan
[ 1.501376] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.507931] ehci-pci: EHCI PCI platform driver
[ 1.512625] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.518738] usbcore: registered new interface driver cdc_wdm
[ 1.524678] usbcore: registered new interface driver usb-storage
[ 1.530959] usbcore: registered new interface driver usbserial
[ 1.537122] usbcore: registered new interface driver usbserial_generic
[ 1.543833] usbserial: USB Serial support registered for generic
[ 1.549963] usbcore: registered new interface driver option
[ 1.555694] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.562813] usbcore: registered new interface driver qcaux
[ 1.568384] usbserial: USB Serial support registered for qcaux
[ 1.574370] usbcore: registered new interface driver qcserial
[ 1.580206] usbserial: USB Serial support registered for Qualcomm USB modem
[ 1.587340] usbcore: registered new interface driver sierra
[ 1.593051] usbserial: USB Serial support registered for Sierra USB modem
[ 1.603903] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[ 1.616045] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.621030] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.651361] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.658664] hub 1-0:1.0: USB hub found
[ 1.662742] hub 1-0:1.0: 1 port detected
[ 1.668684] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 1.680907] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.686072] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.721318] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.728525] hub 2-0:1.0: USB hub found
[ 1.732597] hub 2-0:1.0: 1 port detected
[ 1.740888] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.755859] atmel_mxt_ts 0-004a: __mxt_read_reg: i2c transfer failed (-6)
[ 1.763244] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.770158] atmel_mxt_ts 0-004a: Trying alternate bootloader address
[ 1.778017] atmel_mxt_ts 0-004a: mxt_bootloader_read: i2c recv failed (-6)
[ 1.792665] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 1.799486] rtc-m41t80 1-0068: registered as rtc0
[ 1.806763] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc1
[ 1.816537] i2c /dev entries driver
[ 1.822097] IR NEC protocol handler initialized
[ 1.826673] IR RC5(x/sz) protocol handler initialized
[ 1.831914] IR RC6 protocol handler initialized
[ 1.836474] IR JVC protocol handler initialized
[ 1.841025] IR Sony protocol handler initialized
[ 1.846693] IR SANYO protocol handler initialized
[ 1.851504] IR Sharp protocol handler initialized
[ 1.856234] IR MCE Keyboard/mouse protocol handler initialized
[ 1.862129] IR XMP protocol handler initialized
[ 1.872071] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 1.878850] Bluetooth: HCI UART driver ver 2.3
[ 1.883453] Bluetooth: HCI UART protocol H4 registered
[ 1.889528] sdhci: Secure Digital Host Controller Interface driver
[ 1.895829] sdhci: Copyright(c) Pierre Ossman
[ 1.900213] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.908338] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[ 1.972866] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 2.131451] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.149691] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.155984] usbcore: registered new interface driver usbhid
[ 2.161753] usbhid: USB HID core driver
[ 2.185461] NET: Registered protocol family 10
[ 2.192735] Segment Routing with IPv6
[ 2.196586] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.204249] NET: Registered protocol family 17
[ 2.208768] can: controller area network core (rev 20170425 abi 9)
[ 2.215275] NET: Registered protocol family 29
[ 2.219782] can: raw protocol (rev 20170425)
[ 2.224169] can: broadcast manager protocol (rev 20170425 t)
[ 2.229875] can: netlink gateway (rev 20170425) max_hops=1
[ 2.235832] 8021q: 802.1Q VLAN Support v1.8
[ 2.240125] Key type dns_resolver registered
[ 2.247170] cpu cpu0: Using anatop regulators: LDOs enabled
[ 2.253336] Registering SWP/SWPB emulation handler
[ 2.278269] imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 2.290463] ubi0: default fastmap pool size: 200
[ 2.295246] ubi0: default fastmap WL pool size: 100
[ 2.300145] ubi0: attaching mtd2
[ 2.567217] ubi0: attached by fastmap
[ 2.570921] ubi0: fastmap pool size: 200
[ 2.574966] ubi0: fastmap WL pool size: 100
[ 2.594590] ubi0: attached mtd2 (name "root", size 507 MiB)
[ 2.600207] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.607243] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.614110] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.621090] ubi0: good PEBs: 4052, bad PEBs: 4, corrupted PEBs: 0
[ 2.627236] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 2.634513] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 2930
[ 2.643171] ubi0: available PEBs: 0, total reserved PEBs: 4052, PEBs reserved for bad PEB handling: 76
[ 2.652630] ubi0: background thread "ubi_bgt0d" started, PID 99
[ 2.663004] rtc-m41t80 1-0068: Oscillator failure, data is invalid.
[ 2.669311] rtc-m41t80 1-0068: hctosys: unable to read the hardware clock
[ 2.676949] Can: disabling
[ 2.679693] Backlight: disabling
[ 2.685217] gpio_dvfs: disabling
[ 2.688474] ALSA device list:
[ 2.691517] No soundcards found.
[ 2.722655] UBIFS (ubi0:2): recovery needed
[ 2.784781] UBIFS (ubi0:2): recovery deferred
[ 2.789353] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "root", R/O mode
[ 2.797611] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.807625] UBIFS (ubi0:2): FS size: 493047808 bytes (470 MiB, 3883 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.818387] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB)
[ 2.824284] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 1CF45089-7D85-458F-B823-E9419003C4C6, small LPT model
[ 2.839177] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
[ 2.847213] devtmpfs: mounted
[ 2.853112] Freeing unused kernel memory: 1024K
[ 3.124093] systemd[1]: System time before build time, advancing clock.
[ 3.206900] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GC)
[ 3.230149] systemd[1]: Detected architecture arm.
Welcome to The Yogurt Distribution BSP-Yocto-i.MX6UL-PD19.1.0!
[ 3.280114] systemd[1]: Set hostname to <ruggedboard-imx6ul>.
[ 3.558070] random: crng init done
[ 3.697676] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local .
[ 3.715017] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalli)
[ 4.021954] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 4.064012] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.108314] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.142862] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.183685] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Starting File System Check on Root Device...
Starting Apply Kernel Variables...
Mounting Kernel Debug File System...
Starting udev Coldplug all Devices...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
Starting Journal Service...
Mounting FUSE Control File System...
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Temporary Directory (/tmp).
Starting Remount Root and Kernel File Systems...
[ 5.175764] UBIFS (ubi0:2): completing deferred recovery
[ OK ] Started Journal Service.
[ 5.395780] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 121
[ 5.412759] UBIFS (ubi0:2): deferred recovery completed
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
[ 5.804357] systemd-journald[113]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Reached target Local File Systems.
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
Starting Rebuild Journal Catalog...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started udev Kernel Device Manager.
Starting Network Service...
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Network.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Found device /dev/ttymxc0.
[ 10.011602] Generic PHY 20b4000.ethernet-1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=20b4000.ethernet-1:00, irq=POLL)
[ 10.082696] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 10.492133] Micrel KSZ8081 or KSZ8091 2188000.ethernet-2:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.eth)
[ 10.562484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started udev Wait for Complete Device Initialization.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting sshd.socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Listening on sshd.socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Lightning Fast Webserver With Light System Requirements...
[ OK ] Started HawkBit client for Rauc.
Starting Autostart Qt 5 Demo...
Starting Login Service...
[ OK ] Started Rauc Good-marking Service.
[ OK ] Started Serial Getty on ttymxc0.
[ OK ] Started can0 interface setup.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started D-Bus System Message Bus.
[ 12.480748] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ OK ] Started Login Service.
Starting Network Time Service...
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Autostart Qt 5 Demo.
Starting Rauc Update Service...
[ OK ] Started Network Time Service.
[ OK ] Reached target Multi-User System.
[ OK ] Started Rauc Update Service.
____ _ _ ____ ____ _____ ____ ____ ___ _ ____ ____
| _ \ | | | | / ___| / ___|| ____|| _ \ | __ ) / _ \ / \ | _ \ | _ \
| |_) || | | || | _ | | _ | _| | | | | | _ \ | | | | / _ \ | |_) || | | |
| _ < | |_| || |_| || |_| || |___ | |_| | | |_) || |_| |/ ___ \ | _ < | |_| |
|_| \_\ \___/ \____| \____||_____||____/ |____/ \___//_/ \_\|_| \_\|____/
__ __ ___ ____ _ _ ____ _____
\ \ / / / _ \ / ___|| | | || _ \ |_ _|
\ V / | | | || | _ | | | || |_) | | |
| | | |_| || |_| || |_| || _ < | |
|_| \___/ \____| \___/ |_| \_\ |_|
Yogurt (Phytec Example Distribution) BSP-Yocto-i.MX6UL-PD19.1.0 ruggedboard-imx6ul ttymxc0
ruggedboard-imx6ul login: root
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
Description
To test the RS485/UART Device functionality using two boards.
Required Hardware
RuggedBoard-i.MX6UL
USB Cable
Patch Cords
Test Case 1(Test RS485 with 2 boards)
Boot the board from NAND/MMC.
Check weather the node is created in /dev
$ ls /dev/ttymxc
To establish a serial communication session with a device connected to the second UART interface (ttymxc5).
$ microcom -s 115200 /dev/ttymxc5
Expected o/p
root@ruggedboard-imx6ul:~# ls /dev/ttymxc
ttymxc0 ttymxc1 ttymxc2 ttymxc4 ttymxc5
root@ruggedboard-imx6ul:~# microcom -s 115200 /dev/ttymxc5
helllo phytec...
RB-Device-2:
root@ruggedboard-imx6ul:~# microcom -s 115200 /dev/ttymxc5
ruggedboard.............
Description
To test the Bluetooth on carrier board
Required Hardware
RuggedBoard-i.MX6UL
Bluetooth module.
USB cable
Step-by-step guide
To load the "wilc-sdio" kernel module into the Linux kernel.
$ modprobe wilc-sdio
To send a message to the wilc_bt device driver to power up the Bluetooth module.
$ echo BT_POWER_UP > /dev/wilc_bt
To send a message to the wilc_bt device driver to initiate the download of firmware for the Bluetooth module.
$ echo BT_DOWNLOAD_FW > /dev/wilc_bt
To send a message to the wilc_bt device driver to wake up the Bluetooth module.
$ echo BT_FW_CHIP_WAKEUP > /dev/wilc_bt
To send a message to the wilc_bt device driver to allow the Bluetooth module to enter sleep mode.
$ echo BT_FW_CHIP_ALLOW_SLEEP > /dev/wilc_bt
To attach a Bluetooth Host Controller Interface (HCI) to a serial port on the i.MX6UL board.
$ hciattach /dev/ttymxc4 any 115200 noflow
To display the current configuration and status of all the Bluetooth HCI devices present in the system.
$ hciconfig -a
To bring up the Bluetooth HCI device with the ID "hci0".
$ hciconfig hci0 up
To perform a Bluetooth Low Energy (BLE) scan for nearby advertising devices.
$ hcitool lescan
Expected Output
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# modprobe wilc-sdio
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# echo BT_POWER_UP > /dev/wilc_bt
[ 273.921736] at_pwr_dev: open()
[ 273.925095] AT PWR: bt_power_up
[ 273.928287] Device already up. request source is BT
[ 273.938777] at_pwr_dev: close()
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# echo BT_DOWNLOAD_FW > /dev/wilc_bt
[ 282.671707] at_pwr_dev: open()
[ 282.675001] AT PWR: bt_download_fw
[ 282.678450] Bluetooth firmware: mchp/wilc3000_ble_firmware.bin
[ 282.705356] Downloading BT firmware size = 58852 ...
[ 282.765711] Starting BT firmware
[ 282.881035] BT Start Succeeded
[ 282.884357] at_pwr_dev: close()
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# echo BT_FW_CHIP_WAKEUP > /dev/wilc_bt
[ 290.921691] at_pwr_dev: open()
[ 290.925421] at_pwr_dev: close()
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# [ 295.853576] Another device is preventing allow sleep operation. request source is Wifi
[ 295.862227] Another device is preventing allow sleep operation. request source is Wifi
[ 295.871433] Another device is preventing allow sleep operation. request source is Wifi
echo BT_FW_CHIP_ALLOW_SLEEP > /dev/wilc_bt
[ 297.731704] at_pwr_dev: open()
[ 297.735366] at_pwr_dev: close()
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# hciattach ttymxc4 any 115200 noflow
Device setup complete
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: F8:F0:05:51:78:D3 ACL MTU: 27:30 SCO MTU: 0:0
DOWN
RX bytes:191 acl:0 sco:0 events:12 errors:0
TX bytes:64 acl:0 sco:0 commands:12 errors:0
Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# hciconfig hci0 up
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: F8:F0:05:51:78:D3 ACL MTU: 27:30 SCO MTU: 0:0
UP RUNNING
RX bytes:396 acl:0 sco:0 events:26 errors:0
TX bytes:200 acl:0 sco:0 commands:26 errors:0
Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
Can't read local name on hci0: Input/output error (5)
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# hcitool lescan
LE Scan ...
D4:EA:5F:C0:12:75 RPSS369
FA:CC:56:E1:7B:5D RPSS369
14:82:1B:2A:9A:ED (unknown)
11:34:44:4F:12:B9 (unknown)
EB:9A:22:E4:DE:6E RPSS369
F2:71:E2:6F:19:E3 RPSS369
F2:71:E2:6F:19:E3 (unknown)
CD:2C:97:CE:4F:5B RPSS369
C4:D2:D4:B4:32:24 RPSS369
C0:7A:C4:12:43:E8 RPSS369
C0:7A:C4:12:43:E8 (unknown)
CA:FA:19:61:4E:52 RPSS369
D6:2A:1D:20:3C:75 (unknown)
33:70:B4:97:EF:46 (unknown)
E8:8A:81:28:D7:DB RPSS369
D8:A9:DE:C9:41:26 RPSS369
E4:15:CE:FC:CE:49 RPSS369
AC:98:B1:15:26:6F Wave Call
AC:98:B1:15:26:6F (unknown)
33:70:B4:97:EF:46 (unknown)
C3:8D:9E:D1:E5:E6 RPSS369
D0:6D:24:21:93:9A RPSS369
33:70:B4:97:EF:46 (unknown)
D6:2A:1D:20:3C:75 (unknown)
D6:2A:1D:20:3C:75 ColorFit Pulse 2 Max_3C75
CD:6D:60:36:8E:05 RPSS369
E2:59:70:B1:60:F3 RPSS369
E2:59:70:B1:60:F3 (unknown)
33:70:B4:97:EF:46 (unknown)
D0:28:41:3E:66:94 RPSS369
AC:98:B1:15:26:6F Wave Call
AC:98:B1:15:26:6F (unknown)
FB:10:03:6B:BE:82 Celium_FWVer_10
FB:10:03:6B:BE:82 (unknown)
C4:D2:D4:B4:32:24 (unknown)
6B:FC:DA:ED:30:67 (unknown)
6B:FC:DA:ED:30:67 (unknown)
58:7A:D8:26:09:09 (unknown)
C3:8D:9E:D1:E5:E6 RPSS369
E8:8A:81:28:D7:DB RPSS369
E8:8A:81:28:D7:DB (unknown)
DD:9F:D5:9D:52:35 RPSS369
DD:9F:D5:9D:52:35 (unknown)
D8:A9:DE:C9:41:26 RPSS369
D8:A9:DE:C9:41:26 (unknown)
D4:EA:5F:C0:12:75 (unknown)
D6:2A:1D:20:3C:75 (unknown)
D6:2A:1D:20:3C:75 ColorFit Pulse 2 Max_3C75
33:70:B4:97:EF:46 (unknown)
CD:6D:60:36:8E:05 RPSS369
FE:64:68:EB:32:8C RPSS369
E2:59:70:B1:60:F3 RPSS369
E2:59:70:B1:60:F3 (unknown)
D8:A9:DE:C9:41:26 RPSS369
D8:A9:DE:C9:41:26 (unknown)
AC:98:B1:15:26:6F Wave Call
AC:98:B1:15:26:6F (unknown)
33:70:B4:97:EF:46 (unknown)
DE:D4:70:2D:5F:A6 RPSS369
6B:FC:DA:ED:30:67 (unknown)
6B:FC:DA:ED:30:67 (unknown)
D6:2A:1D:20:3C:75 (unknown)
D6:2A:1D:20:3C:75 ColorFit Pulse 2 Max_3C75
C3:8D:9E:D1:E5:E6 RPSS369
C3:8D:9E:D1:E5:E6 (unknown)
EE:CB:0D:B5:B8:03 RPSS369
EE:CB:0D:B5:B8:03 (unknown)
E8:8A:81:28:D7:DB RPSS369
E8:8A:81:28:D7:DB (unknown)
D0:6D:24:21:93:9A RPSS369
FA:CC:56:E1:7B:5D (unknown)
D6:2A:1D:20:3C:75 (unknown)
D6:2A:1D:20:3C:75 ColorFit Pulse 2 Max_3C75
FE:64:68:EB:32:8C RPSS369
D8:A9:DE:C9:41:26 RPSS369
D8:A9:DE:C9:41:26 (unknown)
74:53:16:6C:01:13 (unknown)
D0:28:41:3E:66:94 RPSS369
AC:98:B1:15:26:6F Wave Call
AC:98:B1:15:26:6F (unknown)
CD:2C:97:CE:4F:5B (unknown)
FB:10:03:6B:BE:82 Celium_FWVer_10
FB:10:03:6B:BE:82 (unknown)
DE:D4:70:2D:5F:A6 RPSS369
DE:D4:70:2D:5F:A6 (unknown)
D6:2A:1D:20:3C:75 (unknown)
C3:8D:9E:D1:E5:E6 RPSS369
E8:8A:81:28:D7:DB RPSS369
E4:15:CE:FC:CE:49 RPSS369
33:70:B4:97:EF:46 (unknown)
E0:59:6E:AD:77:CC RPSS369
E0:59:6E:AD:77:CC (unknown)
AC:98:B1:15:26:6F Wave Call
^Croot@ruggedboard-imx6ul:~# [ 378.541501] random: crng init done
[ 378.544987] random: 7 urandom warning(s) missed due to ratelimiting
Description
To test the spi with loop back in carrier board
Required Hardware
RuggedBoard-i.MX6UL
USB cable
Patch cable
Step-by-step guide
Check the spidev0.0 present or not . Please follow the below command.
$ ls /dev/
Short the miso and mosi pins with patch card.
Cross compile the below code with ruged board sdk and run the binary in board.
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 Anton Vorontsov <avorontsov@ru.mvista.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* Cross-compile with cross-gcc -I/path/to/cross-kernel/include
*/
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/ioctl.h>
#include <sys/stat.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static void pabort(const char *s)
{
perror(s);
abort();
}
static const char *device = "/dev/spidev0.0";
static uint32_t mode;
static uint8_t bits = 8;
static char *input_file;
static char *output_file;
static uint32_t speed = 500000;
static uint16_t delay;
static int verbose;
uint8_t default_tx[] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x40, 0x00, 0x00, 0x00, 0x00, 0x95,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xF0, 0x0D,
};
uint8_t default_rx[ARRAY_SIZE(default_tx)] = {0, };
char *input_tx;
static void hex_dump(const void *src, size_t length, size_t line_size,
char *prefix)
{
int i = 0;
const unsigned char *address = src;
const unsigned char *line = address;
unsigned char c;
printf("%s | ", prefix);
while (length-- > 0) {
printf("%02X ", *address++);
if (!(++i % line_size) || (length == 0 && i % line_size)) {
if (length == 0) {
while (i++ % line_size)
printf("__ ");
}
printf(" | "); /* right close */
while (line < address) {
c = *line++;
printf("%c", (c < 33 || c == 255) ? 0x2E : c);
}
printf("\n");
if (length > 0)
printf("%s | ", prefix);
}
}
}
/*
* Unescape - process hexadecimal escape character
* converts shell input "\x23" -> 0x23
*/
static int unescape(char *_dst, char *_src, size_t len)
{
int ret = 0;
int match;
char *src = _src;
char *dst = _dst;
unsigned int ch;
while (*src) {
if (*src == '\\' && *(src+1) == 'x') {
match = sscanf(src + 2, "%2x", &ch);
if (!match)
pabort("malformed input string");
src += 4;
*dst++ = (unsigned char)ch;
} else {
*dst++ = *src++;
}
ret++;
}
return ret;
}
static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len)
{
int ret;
int out_fd;
struct spi_ioc_transfer tr = {
.tx_buf = (unsigned long)tx,
.rx_buf = (unsigned long)rx,
.len = len,
.delay_usecs = delay,
.speed_hz = speed,
.bits_per_word = bits,
};
if (mode & SPI_TX_QUAD)
tr.tx_nbits = 4;
else if (mode & SPI_TX_DUAL)
tr.tx_nbits = 2;
if (mode & SPI_RX_QUAD)
tr.rx_nbits = 4;
else if (mode & SPI_RX_DUAL)
tr.rx_nbits = 2;
if (!(mode & SPI_LOOP)) {
if (mode & (SPI_TX_QUAD | SPI_TX_DUAL))
tr.rx_buf = 0;
else if (mode & (SPI_RX_QUAD | SPI_RX_DUAL))
tr.tx_buf = 0;
}
ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
if (ret < 1)
pabort("can't send spi message");
if (verbose)
hex_dump(tx, len, 32, "TX");
if (output_file) {
out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (out_fd < 0)
pabort("could not open output file");
ret = write(out_fd, rx, len);
if (ret != len)
pabort("not all bytes written to output file");
close(out_fd);
}
if (verbose || !output_file)
hex_dump(rx, len, 32, "RX");
}
static void print_usage(const char *prog)
{
printf("Usage: %s [-DsbdlHOLC3]\n", prog);
puts(" -D --device device to use (default /dev/spidev1.1)\n"
" -s --speed max speed (Hz)\n"
" -d --delay delay (usec)\n"
" -b --bpw bits per word\n"
" -i --input input data from a file (e.g. \"test.bin\")\n"
" -o --output output data to a file (e.g. \"results.bin\")\n"
" -l --loop loopback\n"
" -H --cpha clock phase\n"
" -O --cpol clock polarity\n"
" -L --lsb least significant bit first\n"
" -C --cs-high chip select active high\n"
" -3 --3wire SI/SO signals shared\n"
" -v --verbose Verbose (show tx buffer)\n"
" -p Send data (e.g. \"1234\\xde\\xad\")\n"
" -N --no-cs no chip select\n"
" -R --ready slave pulls low to pause\n"
" -2 --dual dual transfer\n"
" -4 --quad quad transfer\n");
exit(1);
}
static void parse_opts(int argc, char *argv[])
{
while (1) {
static const struct option lopts[] = {
{ "device", 1, 0, 'D' },
{ "speed", 1, 0, 's' },
{ "delay", 1, 0, 'd' },
{ "bpw", 1, 0, 'b' },
{ "input", 1, 0, 'i' },
{ "output", 1, 0, 'o' },
{ "loop", 0, 0, 'l' },
{ "cpha", 0, 0, 'H' },
{ "cpol", 0, 0, 'O' },
{ "lsb", 0, 0, 'L' },
{ "cs-high", 0, 0, 'C' },
{ "3wire", 0, 0, '3' },
{ "no-cs", 0, 0, 'N' },
{ "ready", 0, 0, 'R' },
{ "dual", 0, 0, '2' },
{ "verbose", 0, 0, 'v' },
{ "quad", 0, 0, '4' },
{ NULL, 0, 0, 0 },
};
int c;
c = getopt_long(argc, argv, "D:s:d:b:i:o:lHOLC3NR24p:v",
lopts, NULL);
if (c == -1)
break;
switch (c) {
case 'D':
device = optarg;
break;
case 's':
speed = atoi(optarg);
break;
case 'd':
delay = atoi(optarg);
break;
case 'b':
bits = atoi(optarg);
break;
case 'i':
input_file = optarg;
break;
case 'o':
output_file = optarg;
break;
case 'l':
mode |= SPI_LOOP;
break;
case 'H':
mode |= SPI_CPHA;
break;
case 'O':
mode |= SPI_CPOL;
break;
case 'L':
mode |= SPI_LSB_FIRST;
break;
case 'C':
mode |= SPI_CS_HIGH;
break;
case '3':
mode |= SPI_3WIRE;
break;
case 'N':
mode |= SPI_NO_CS;
break;
case 'v':
verbose = 1;
break;
case 'R':
mode |= SPI_READY;
break;
case 'p':
input_tx = optarg;
break;
case '2':
mode |= SPI_TX_DUAL;
break;
case '4':
mode |= SPI_TX_QUAD;
break;
default:
print_usage(argv[0]);
break;
}
}
if (mode & SPI_LOOP) {
if (mode & SPI_TX_DUAL)
mode |= SPI_RX_DUAL;
if (mode & SPI_TX_QUAD)
mode |= SPI_RX_QUAD;
}
}
static void transfer_escaped_string(int fd, char *str)
{
size_t size = strlen(str);
uint8_t *tx;
uint8_t *rx;
tx = malloc(size);
if (!tx)
pabort("can't allocate tx buffer");
rx = malloc(size);
if (!rx)
pabort("can't allocate rx buffer");
size = unescape((char *)tx, str, size);
transfer(fd, tx, rx, size);
free(rx);
free(tx);
}
static void transfer_file(int fd, char *filename)
{
ssize_t bytes;
struct stat sb;
int tx_fd;
uint8_t *tx;
uint8_t *rx;
if (stat(filename, &sb) == -1)
pabort("can't stat input file");
tx_fd = open(filename, O_RDONLY);
if (fd < 0)
pabort("can't open input file");
tx = malloc(sb.st_size);
if (!tx)
pabort("can't allocate tx buffer");
rx = malloc(sb.st_size);
if (!rx)
pabort("can't allocate rx buffer");
bytes = read(tx_fd, tx, sb.st_size);
if (bytes != sb.st_size)
pabort("failed to read input file");
transfer(fd, tx, rx, sb.st_size);
free(rx);
free(tx);
close(tx_fd);
}
int main(int argc, char *argv[])
{
int ret = 0;
int fd;
parse_opts(argc, argv);
fd = open(device, O_RDWR);
if (fd < 0)
pabort("can't open device");
/*
* spi mode
*/
ret = ioctl(fd, SPI_IOC_WR_MODE32, &mode);
if (ret == -1)
pabort("can't set spi mode");
ret = ioctl(fd, SPI_IOC_RD_MODE32, &mode);
if (ret == -1)
pabort("can't get spi mode");
/*
* bits per word
*/
ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits);
if (ret == -1)
pabort("can't set bits per word");
ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits);
if (ret == -1)
pabort("can't get bits per word");
/*
* max speed hz
*/
ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed);
if (ret == -1)
pabort("can't set max speed hz");
ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed);
if (ret == -1)
pabort("can't get max speed hz");
printf("spi mode: 0x%x\n", mode);
printf("bits per word: %d\n", bits);
printf("max speed: %d Hz (%d KHz)\n", speed, speed/1000);
if (input_tx && input_file)
pabort("only one of -p and --input may be selected");
if (input_tx)
transfer_escaped_string(fd, input_tx);
else if (input_file)
transfer_file(fd, input_file);
else
transfer(fd, default_tx, default_rx, sizeof(default_tx));
close(fd);
return ret;
}
After cross compiling above code copy the binary into your carrier board.
Please run the the binary with below command
$ ./spidev0.0
Expected Output
root@ruggedboard-imx6ul:~# mount /dev/mmcblk0p1 /mnt
[ 74.285531] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@ruggedboard-imx6ul:~# cd /mnt
root@ruggedboard-imx6ul:/mnt#
root@ruggedboard-imx6ul:/mnt# ./spidev0.0
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 KHz)
RX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@....�..................�.
Description
To test the USER LED's functionality in Kernel whether they are toggling.
Required Hardware
RuggedBoard-i.MX6UL
Test Case (Toggle the Respective led’s observe LED's weather glow Or not)
Boot the board from NAND/MMC. After booting check toggling of USER LEDs
$ echo 43 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio43/direction
$ echo 1 > /sys/class/gpio/gpio43/value
$ echo 0 > /sys/class/gpio/gpio43/value
Note : Gpio calculation will vary for board to board crosscheck with boards TRM.
Expected o/p
root@ruggedboard-imx6ul:~# echo 43 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio43/direction
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio43/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio43/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio43/value
root@ruggedboard-imx6ul:~# echo 44 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# echo out > /sys/class/gpio/gpio44/direction
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio44/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio44/value
root@ruggedboard-imx6ul:~# echo 0 > /sys/class/gpio/gpio44/value
root@ruggedboard-imx6ul:~# echo 1 > /sys/class/gpio/gpio44/value
Description
To test the USER Switch functionality in Kernel with application.
Required Hardware
RuggedBoard-i.MX6UL
Test Case (Test with Application)
Boot the board from NAND/MMC. After booting run the application and check USER Switch
$ echo 40 > /sys/class/gpio/export
To check the in/output of the gpio to the file direction
$ cat /sys/class/gpio/gpio40/direction
Expected o/p
root@ruggedboard-imx6ul:~# echo 40 > /sys/class/gpio/export
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio40/direction
in
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio40/value // user switch released
1
root@ruggedboard-imx6ul:~# cat /sys/class/gpio/gpio40/value // user switch pressed
0
root@ruggedboard-imx6ul:~#
Description
To test the wifi on carrier board
Required Hardware
RuggedBoard-i.MX6UL
USB cable
WIFi module
Step-by-step guide
To load the "wilc-sdio" kernel module into the Linux kernel.
$ modprobe wilc-sdio
Create the wpa_supplicant.conf file in /etc partition.
$ vi /etc/wpa_supplicant.conf
Write the below content in above file.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="<Airtel_9535504414_5GHz>"
proto=air47322
key_mgmt=WPA-PSK
psk="<password>"
}
Give the wifi name in above file in place of PHYTEC_777VR1.
Give the password of your wifi in place of password.
Give the below command to connect the wifi network.
$ wpa_supplicant -B -Dnl80211 -i wlan0 -c /etc/wpa_supplicant.conf
To obtain an IP address lease for the wlan0 wireless network interface using the DHCP protocol.
$ udhcpc -i wlan0
To test the internet give the below command.
$ ping google.com
Expected Output
root@ruggedboard-imx6ul:~# modprobe wilc-sdio
[ 647.624096] Registering wifi device
[ 647.627903] Max scan ids= 10,Max scan IE len= 1000,Signal Type= 1,Interface Modes= 844
[ 647.691605] Initializing Locks ...
[ 647.861690] wilc_sdio mmc1:0001:1: Driver Initializing success
root@ruggedboard-imx6ul:~# [ 648.412365] wilc_sdio mmc1:0001:1 wlan0: INFO [dump_station]Dumping station information
[ 648.459809] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1732] Get Timed out
[ 648.468433] wilc_sdio mmc1:0001:1 wlan0: Failed to get RSSI value
[ 648.557331] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[7d763fdd] wlan0
[ 648.567334] WILC POWER UP
[ 648.571150] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[7d763fdd][d989087c]
[ 648.597260] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 648.604771] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[ 648.629684] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[ 648.651960] wilc_sdio mmc1:0001:1: chipid 003000d0
[ 648.670837] wilc_sdio mmc1:0001:1 wlan0: INFO [init_chip]Bootrom sts = d
[ 648.687137] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Initialization done
[ 648.696031] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Initializing Threads ...
[ 648.705213] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for transmission
[ 648.741381] wilc_sdio mmc1:0001:1 wlan0: INFO [wlan_initialize_threads]Creating kthread for Debugging
[ 648.754404] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]Detect chip WILC3000
[ 648.763172] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]loading firmware mchp/wilc3000_wifi_firmware.bin
[ 648.774228] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_get_firmware]WLAN firmware: mchp/wilc3000_wifi_firmware.bin
[ 648.847211] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_firmware_download]Downloading Firmware ...
[ 648.856277] wilc_wlan_firmware_download: Downloading firmware size = 140360
[ 648.908815] wilc_wlan_firmware_download Offset = 120832
[ 648.920991] wilc_wlan_firmware_download Offset = 140360
[ 648.926336] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_firmware_download]Download Succeeded
[ 648.944172] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_start_firmware]Starting Firmware ...
[ 648.957535] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_start_firmware]Waiting for FW to get ready ...
[ 649.059843] wilc_wlan_cfg_indicate_rx: Info message received
[ 649.070945] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_start_firmware]Firmware successfully started
[ 649.113787] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_initialize]WILC Firmware Ver = WILC_WIFI_FW_REL_15_5 Build: 12551
[ 649.125164] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_fw_config]Start configuring Firmware
[ 649.304180] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 1.
[ 649.375765] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 2.
[ 649.406800] wilc_sdio mmc1:0001:1 wlan0: INFO [set_power_mgmt]dev [wlan0]
[ 649.414222] wilc_sdio mmc1:0001:1 wlan0: INFO [set_power_mgmt] Power save Enabled= 1 , TimeOut = -1
[ 649.449818] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 3.
[ 649.546532] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 4.
[ 649.588572] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 5.
[ 649.623825] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 6.
[ 649.690616] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 649.700189] wilc_sdio mmc1:0001:1 wlan0: INFO [dump_station]Dumping station information
[ 650.805159] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 7.
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# cat /usr/bin/wifi-enable.sh
#!/bin/sh
# connect with router
wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -i wlan0
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# sh /usr/bin/wifi-enable.sh
Successfully initialized wpa_supplicant
[ 744.793593] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 744.835545] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 744.880501] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 744.915549] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
nl80211: kernel reports: Authentication algorithm number required
[ 745.002678] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 745.034257] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 6.
[ 745.056402] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 5.
[ 745.069327] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 4.
[ 745.079355] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 3.
[ 745.121526] wilc_sdio mmc1:0001:1 wlan0: INFO [flush_pmksa]Flushing PMKID key values
[ 745.276232] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 4.
[ 745.311307] wilc_sdio mmc1:0001:1 wlan0: INFO [scan]Requested num of channel 14
[ 745.319261] wilc_sdio mmc1:0001:1 wlan0: INFO [scan]Scan Request IE len = 0
[ 745.326468] wilc_sdio mmc1:0001:1 wlan0: INFO [scan]Number of SSIDs 1
[ 745.333188] wilc_sdio mmc1:0001:1 wlan0: INFO [scan]Trigger Scan Request
udhcpc: started, v1.33.2
[ 745.526789] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 5.
[ 745.588979] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 6.
[ 745.994910] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 6.
udhcpc: sending discover
[ 746.176701] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 746.212398] wilc_wlan_cfg_indicate_rx: Scan Notification Received
[ 746.219263] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_scan_complete_received]Scan notification received
[ 746.238377] wilc_sdio mmc1:0001:1 wlan0: INFO [cfg_scan_result]Scan Done[7d763fdd]
[ 746.343059] wilc_sdio mmc1:0001:1 wlan0: INFO [connect]Connecting to SSID [Saswati] on netdev [7d763fdd] host if [c4f2fe00]
[ 746.355385] wilc_sdio mmc1:0001:1 wlan0: INFO [connect]Adding key with cipher group fac04
[ 746.364038] wilc_sdio mmc1:0001:1 wlan0: INFO [connect]Authentication Type = 0
[ 746.371602] wilc_sdio mmc1:0001:1 wlan0: INFO [connect]In OPEN SYSTEM
[ 746.378442] wilc_sdio mmc1:0001:1 wlan0: INFO [connect]Set MFP Type 0
[ 746.384986]
[ 746.386566] =============================
[ 746.390888] WARNING: suspicious RCU usage
[ 746.394997] 5.10.76-bsp-yocto-ampliphy-i.mx6ul-pd21.2.1 #1 Not tainted
[ 746.401830] -----------------------------
[ 746.405941] drivers/net/wireless/microchip/wilc1000/hif.c:568 suspicious rcu_dereference_check() usage!
[ 746.415619]
[ 746.415619] other info that might help us debug this:
[ 746.415619]
[ 746.423924]
[ 746.423924] rcu_scheduler_active = 2, debug_locks = 1
[ 746.430728] 3 locks held by wpa_supplicant/322:
[ 746.435347] #0: c17bfb8c (cb_lock){++++}-{3:3}, at: genl_rcv+0x14/0x34
[ 746.442564] #1: c17ba920 (rtnl_mutex){+.+.}-{3:3}, at: nl80211_pre_doit+0x104/0x1e8
[ 746.450886] #2: c53f1770 (&wdev->mtx){+.+.}-{3:3}, at: nl80211_connect+0x584/0x7a8
[ 746.459103]
[ 746.459103] stack backtrace:
[ 746.463571] CPU: 0 PID: 322 Comm: wpa_supplicant Not tainted 5.10.76-bsp-yocto-ampliphy-i.mx6ul-pd21.2.1 #1
[ 746.473388] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 746.479683] [<c01111b8>] (unwind_backtrace) from [<c010b9dc>] (show_stack+0x10/0x14)
[ 746.487530] [<c010b9dc>] (show_stack) from [<c0ea2df8>] (dump_stack+0xdc/0x104)
[ 746.495090] [<c0ea2df8>] (dump_stack) from [<bf009cd4>] (wilc_parse_join_bss_param+0x450/0x494 [wilc_sdio])
[ 746.505324] [<bf009cd4>] (wilc_parse_join_bss_param [wilc_sdio]) from [<bf000e1c>] (connect+0x1d0/0x668 [wilc_sdio])
[ 746.516078] [<bf000e1c>] (connect [wilc_sdio]) from [<c0de55b8>] (cfg80211_connect+0x1d8/0x8d0)
[ 746.524891] [<c0de55b8>] (cfg80211_connect) from [<c0db55a8>] (nl80211_connect+0x5a0/0x7a8)
[ 746.533348] [<c0db55a8>] (nl80211_connect) from [<c0bdfae4>] (genl_rcv_msg+0x168/0x358)
[ 746.541453] [<c0bdfae4>] (genl_rcv_msg) from [<c0bdebc4>] (netlink_rcv_skb+0xc0/0x118)
[ 746.549466] [<c0bdebc4>] (netlink_rcv_skb) from [<c0bdf280>] (genl_rcv+0x20/0x34)
[ 746.557046] [<c0bdf280>] (genl_rcv) from [<c0bde240>] (netlink_unicast+0x1b0/0x314)
[ 746.564801] [<c0bde240>] (netlink_unicast) from [<c0bde55c>] (netlink_sendmsg+0x1b8/0x3f4)
[ 746.573162] [<c0bde55c>] (netlink_sendmsg) from [<c0b62a40>] (____sys_sendmsg+0x1cc/0x280)
[ 746.581524] [<c0b62a40>] (____sys_sendmsg) from [<c0b64974>] (___sys_sendmsg+0xa8/0xd4)
[ 746.589618] [<c0b64974>] (___sys_sendmsg) from [<c0b64b40>] (sys_sendmsg+0x54/0x90)
[ 746.597368] [<c0b64b40>] (sys_sendmsg) from [<c0100080>] (ret_fast_syscall+0x0/0x28)
[ 746.605190] Exception stack(0xc4715fa8 to 0xc4715ff0)
[ 746.610328] 5fa0: 013c3808 013c2ec8 00000006 bec20858 00000000 00000000
[ 746.618595] 5fc0: 013c3808 013c2ec8 b6f01b70 00000128 bec20858 ffffffff 00000001 00000004
[ 746.626852] 5fe0: 00000128 bec20808 b6bdf15f b6b5e386
[ 746.704279] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_set_bssid]set bssid [fa:03:20:50:cc:5c]
[ 746.714901] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_send_connect_wid]send HOST_IF_WAITING_CONN_RESP
[ 746.838682] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_send_connect_wid]set state [3]
[ 747.130173] wilc_wlan_cfg_indicate_rx: Info message received
[ 747.139327] wilc_sdio mmc1:0001:1 wlan0: INFO [handle_rcvd_gnrl_async_info]Current State = 3,Received state = 1
[ 747.192802] wilc_sdio mmc1:0001:1 wlan0: INFO [cfg_connect_result]Connection response received=1 connect_stat[0]
[ 747.203369] wilc_sdio mmc1:0001:1 wlan0: INFO [cfg_connect_result]Connection Successful: BSSID: fa32050cc5c
[ 747.213503] wilc_sdio mmc1:0001:1 wlan0: INFO [cfg_connect_result]Association request info elements length = 27
[ 747.223835] wilc_sdio mmc1:0001:1 wlan0: INFO [cfg_connect_result]Association response info elements length = 116
[ 747.311417] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 747.397287] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]Adding key with cipher suite = fac04
[ 747.406909] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]c4eae300 c53f0000 0
[ 747.414654] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]key dc ea 53
[ 747.498665] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]Adding key with cipher suite = fac04
[ 747.507238] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]c4eae300 c53f0000 1
[ 747.515029] wilc_sdio mmc1:0001:1 wlan0: INFO [add_key]key 90 b8 1e
[ 747.636738] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18
[ 747.660880] wilc_sdio mmc1:0001:1 wlan0: INFO [dump_station]Dumping station information
[ 747.744714] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 7.
[ 747.861578] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 8.
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# ping google.com
PING google.com (142.250.182.78): 56 data bytes
64 bytes from 142.250.182.78: seq=0 ttl=55 time=72.592 ms
64 bytes from 142.250.182.78: seq=1 ttl=55 time=77.852 ms
64 bytes from 142.250.182.78: seq=4 ttl=55 time=93.796 ms
64 bytes from 142.250.182.78: seq=5 ttl=55 time=81.929 ms
64 bytes from 142.250.182.78: seq=7 ttl=55 time=148.951 ms
64 bytes from 142.250.182.78: seq=9 ttl=55 time=71.309 ms
64 bytes from 142.250.182.78: seq=10 ttl=55 time=105.928 ms
64 bytes from 142.250.182.78: seq=12 ttl=55 time=83.082 ms
64 bytes from 142.250.182.78: seq=13 ttl=55 time=91.171 ms
64 bytes from 142.250.182.78: seq=14 ttl=55 time=74.412 ms
64 bytes from 142.250.182.78: seq=15 ttl=55 time=122.640 ms
^C
--- google.com ping statistics ---
16 packets transmitted, 11 packets received, 31% packet loss
round-trip min/avg/max = 71.309/93.060/148.951 ms
root@ruggedboard-imx6ul:~#
Description
To test the RTC node functionality in Kernel.
Required Hardware
RuggedBoard-i.MX6UL
USB cable
Test Case 1 (Check the RTC Node)
Boot the board from NAND/MMC.Check how many nodes are there in /dev directory for rtc
$ ls /dev/rtc0
Expected o/p
root@ruggedboard-imx6ul:~# ls /dev/rtc0
/dev/rtc0
Test Case 2 (set the date and time and check it whether it set or not along With RTC battery (Check with multiple reboots))
Boot the board from NAND/MMC
Set the date to board in kernel # date mmddhhminyyyy.sec (e.g 021811582020.12 ) is the syntax
$ date 012316442023.00
Set the time and check by using below command to rtc.
$ hwclock -w -f /dev/rtcX
$ hwclock -r -f /dev/rtcX ( # here 'X' is available node numbers ).
Reboot the board, wait few minutes. Check date and time both are same or not.
$ date
Expected o/p
root@ruggedboard-imx6ul:~# ls /dev/rtc0
/dev/rtc0
root@ruggedboard-imx6ul:~# date 012316442023.00
Mon Jan 23 16:44:00 UTC 2023
root@ruggedboard-imx6ul:~# hwclock -w -f /dev/rtc0
root@ruggedboard-imx6ul:~# hwclock -r -f /dev/rtc0
Mon Jan 23 16:44:23 2023 0.000000 seconds
root@ruggedboard-imx6ul:~# date
Mon Jan 23 16:44:27 UTC 2023
root@ruggedboard-imx6ul:~# reboot
___ _ _ __ __ _____ _____ ____
| _ \ | | | |\ \ / /|_ _|| ____| / ___|
| |_) || |_| | \ V / | | | _| | |
| __/ | _ | | | | | | |___ | |___
|_| |_| |_| |_| |_| |_____| \____|
_ __ __ ____ _ ___ ____ _ _ __ __
/ \ | \/ || _ \ | | |_ _|| _ \ | | | |\ \ / /
/ _ \ | |\/| || |_) || | | | | |_) || |_| | \ V /
/ ___ \ | | | || __/ | |___ | | | __/ | _ | | |
/_/ \_\|_| |_||_| |_____||___||_| |_| |_| |_|
ampliPHY (Phytec Base Distribution) BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1 ruggedboard-imx6ul ttymxc0
ruggedboard-imx6ul login: root
root@ruggedboard-imx6ul:~#
root@ruggedboard-imx6ul:~# date
Mon Jan 23 16:48:14 UTC 2023
Last updated