首先感谢万象奥科 & 发烧友给与的机会。此外再说一句,这块板子真的无与伦比,为什么这么说,听我慢慢解释。
一、开箱
正面照,邮票板上VANXOAK金字闪闪发亮,其上是一颗瑞萨RZ/G2UL 处理器,配备单核 Arm® Cortex®-A55 (1.0 GHz) CPU 和单核 Arm® Cortex®-M33 (200 MHz) CPU,双网卡(WIFI + RJ45)。
具体配备:
l 异构多核,单核Cortex-A55+M33
l 可靠连接,邮票孔封装
l 高速内存,512M/1GB DDR4
l 海量存储,8G eMMC
l 工业品质,工作温度-40~85℃
l 显示输出,搭载LCD 控制器
l 图像接入,支持MIPI-CSI摄像头
l 高速网络,支持双路千兆网
l 丰富外设,USB2.0 × 2、UART x 5、CAN-FD x 2、SPI x 3、I2C x 2、I2S x 4、ADC x 2 ……
翻过来背板看看,走线清晰,油印明亮:
二、上电
板子使用5V电源,后来发现USART口也可以单独供电,免去DC电源。
U-Boot 2021.10 (Apr 22 2022 - 03:04:59 +0000)
CPU: Renesas Electronics CPU rev 1.0
Model: g2ul-iot
DRAM: 896 MiB
WDT: Started with servicing (5s timeout)
MMC: sd@11c00000: 0, sd@11c10000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
给的是1G ram版本的板子,再次感谢VANXOAK。
看看CPU信息:
root@g2uliot:~# cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
内存信息:
root@g2uliot:~# cat /proc/meminfo
MemTotal: 877880 kB
MemFree: 512580 kB
MemAvailable: 521168 kB
Buffers: 6380 kB
Cached: 70524 kB
SwapCached: 0 kB
Active: 25748 kB
Inactive: 143524 kB
Active(anon): 484 kB
Inactive(anon): 103396 kB
Active(file): 25264 kB
Inactive(file): 40128 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 92368 kB
Mapped: 35304 kB
Shmem: 11512 kB
KReclaimable: 10292 kB
Slab: 48760 kB
SReclaimable: 10292 kB
SUnreclaim: 38468 kB
KernelStack: 1680 kB
PageTables: 1788 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 438940 kB
Committed_AS: 311048 kB
VmallocTotal: 135290159040 kB
VmallocUsed: 5208 kB
VmallocChunk: 0 kB
Percpu: 296 kB
AnonHugePages: 12288 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
FileHugePages: 0 kB
FilePmdMapped: 0 kB
CmaTotal: 393216 kB
CmaFree: 256140 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
系统版本:
root@g2uliot:~# uname -a
Linux g2uliot 5.10.83-cip1-yocto-standard #1 SMP PREEMPT Tue Apr 5 23:00:00 UTC 2011 aarch64 GNU/Linux
三、WIFI设置
按照如下步骤配置WIFI:
1、ifconfig wlan0 up
2、wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &
3、wpa_passphrase SSID pwd> wpa_sup.conf
4、killall wpa_supplicant
5、wpa_supplicant -B -Dwext -iwlan0 -c ./wpa_sup.conf
6、udhcpc -i wlan0
最后查看是否获取IP:
root@g2uliot:~# ifconfig
eth0 Link encap:Ethernet HWaddr 92:1B:95:2D:0A:DD
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:161
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:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7544 (7.3 KiB) TX bytes:7544 (7.3 KiB)
wlan0 Link encap:Ethernet HWaddr 94:A4:08:4E:CC:5C
inet addr:192.168.99.232 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::96a4:8ff:fe4e:cc5c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1632 (1.5 KiB) TX bytes:5932 (5.7 KiB)
此时开发板已经连上WIFI,但是DNS还没有设置好,可以通过修改/etc/resolv.conf文件,加入DNS(114.114.114.114)来实现。
最后来一个ping。
root@g2uliot:~
PING www.163.com (112.15.45.25): 56 data bytes
64 bytes from 112.15.45.25: seq=0 ttl=56 time=17.175 ms
64 bytes from 112.15.45.25: seq=1 ttl=56 time=14.382 ms
64 bytes from 112.15.45.25: seq=2 ttl=56 time=12.634 ms
64 bytes from 112.15.45.25: seq=3 ttl=56 time=12.570 ms
64 bytes from 112.15.45.25: seq=4 ttl=56 time=11.941 ms
^C
--- www.163.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 11.941/13.740/17.175 ms
##感谢阅读##