米尔小助手1 发表于 2023-6-13 09:56:36

【米尔瑞萨RZ/G2L开发板-试用体验】米尔瑞萨RZ/G2L开发板使用SSH登录

收到的米尔瑞萨RZ/G2L开发板上电测试一下SSH登录方式和其它测试!https://file1.elecfans.com/web2/M00/88/89/wKgaomRrdJOAb8YzACWQdoNqKig847.jpghttps://file1.elecfans.com/web2/M00/88/89/wKgaomRrcgyAYrP4AB6Mh-ywCg4814.jpghttps://file1.elecfans.com/web2/M00/88/8A/wKgZomRrcSCAcuVlADqtRB6xQXw513.jpgSSH登录在使用之前,需要事先连接网络,笔者这里使用的是以太网,事先需要使用串口的登录,然后输入以下命令查看IP地址:ifconfighttps://file1.elecfans.com/web2/M00/89/78/wKgaomSFziGAGepDAAIuY7h-BFQ389.png​也可修改网络 IP地址 ,使用以下命令:ifconfig eth0 192.168.101.5当然啦,如果已经将以太网配置成DHCP模式,那么在只要插上网线就会得到一个IP地址。修改/etc/network/inteRFaces文件即可,修改内容如下:
https://file.elecfans.com/web2/M00/4E/85/poYBAGK-t7yAR6DzAAAGUAIIfdU645.jpg
​然后就可使用ifconfig查看IP。接下来就可使用SSH登录系统了,还是可以使用Xshell等工具,当然也可在ubuntu系统中使用SSH登录。https://file1.elecfans.com/web2/M00/89/7B/wKgZomSFzkOAV93yAAKejGAA2Us779.png值得注意的是,登录用户和密码默认都是root,如果忘记密码可以通过串口登录进系统,使用passwd修改。成功登录打印信息如下:​https://file.elecfans.com/web2/M00/4F/1F/pYYBAGK-t7uAC963AAAN0RjgL_k630.jpg和使用串口登录一样。下面是烧录BSP到SD卡的具体操作:烧录BSP到SD卡:
我们如果想从SD卡启动则需将BSP烧录到SD卡中。使用SD卡插入SD卡,并将读卡器插入Linux主机中。使用官方提供的脚本初始化SD卡,并通过提示完成操作。
$ wget https://raw.githubusercontent.com/renesas-rz/rzg2_bsp_scripts/master/usb_sd_partition/usb_sd_partition.sh
$ chmod +x usb_sd_partition.sh
$ ./usb_sd_partition.sh
进入BSP目录,打开BSP编译目录,拷贝对应BSP文件到不同分区中。注意最后使用sync指令确保文件写入已经完成,之后再安全弹出SD读卡器。#Change to the Yocto output directory that contains the files$ cd build/tmp/deploy/images/smarc-rzg2l#Copy the Linux kernel and Device Tree to partition 1sudo cp -v Image /media/USER/RZ_FAT
sudo cp -v r9a07g044l2-smarc.dtb /media/USER/RZ_FATCopy and expand the Root File System to partition 2sudo tar -xvf core-image-weston-smarc-rzg2l.tar.gz -C /media/USER/RZ_ext#Make sure all files are finished writing before removing the USB card reader from the PC$ sync以上做了SSH登录方式和烧录BSP到SD卡的基本操作,对米尔瑞萨RZ/G2L开发板连接电脑的基本连接。

casy99 发表于 2023-7-8 08:35:53

有没有资料啊?楼主

米尔小助手2 发表于 2023-7-20 10:53:47

casy99 发表于 2023-7-8 08:35
有没有资料啊?楼主

这次赠送的开发板,在产品包装里的操作指南里面都有资料的

iec 发表于 2024-8-18 10:54:28

根本连不上呀,怎么都连不上呢
页: [1]
查看完整版本: 【米尔瑞萨RZ/G2L开发板-试用体验】米尔瑞萨RZ/G2L开发板使用SSH登录