准备发送Flash Writer文件
Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot

输入指令
>EM_SECSD Please Input EXT_CSD Index(H'00 - H'1FF) :b1 EXT_CSD[B1] = 0x02 Please Input Value(H'00 - H'FF) :2 EXT_CSD[B1] = 0x02 >EM_SECSD Please Input EXT_CSD Index(H'00 - H'1FF) :b3 EXT_CSD[B3] = 0x08 Please Input Value(H'00 - H'FF) :8 EXT_CSD[B3] = 0x08

发送文件bl2_bp-smarc-rzg2l_pmic.srec
>EM_W EM_W Start -------------- --------------------------------------------------------- Please select,eMMC Partition Area. 0:User Partition Area : 62160896 KBytes eMMC Sector Cnt : H'0 - H'0768FFFF 1:Boot Partition 1 : 32256 KBytes eMMC Sector Cnt : H'0 - H'0000FBFF 2:Boot Partition 2 : 32256 KBytes eMMC Sector Cnt : H'0 - H'0000FBFF --------------------------------------------------------- Select area(0-2)>1 -- Boot Partition 1 Program ----------------------------- Please Input Start Address in sector :1 Please Input Program Start Address : 11e00 Work RAM(H'50000000-H'50FFFFFF) Clear.... please send ! ('.' & CR stop load)



准备发送文件fip-smarc-rzg2l_pmic.srec
>EM_W
EM_W Start --------------
---------------------------------------------------------
Please select,eMMC Partition Area.
0:User Partition Area : 62160896 KBytes
eMMC Sector Cnt : H'0 - H'0768FFFF
1:Boot Partition 1 : 32256 KBytes
eMMC Sector Cnt : H'0 - H'0000FBFF
2:Boot Partition 2 : 32256 KBytes
eMMC Sector Cnt : H'0 - H'0000FBFF
---------------------------------------------------------
Select area(0-2)>1
-- Boot Partition 1 Program -----------------------------
Please Input Start Address in sector :100
Please Input Program Start Address : 0
Work RAM(H'50000000-H'50FFFFFF) Clear....
please send ! ('.' & CR stop load)


断开连接,关闭电源,更改拨码开关。

接上SD卡(SD卡需要提前做好分区以及格式),将Linux kernel、Devise tree、root filesystem复制到/media/user/rootfs/home/root/
输入命令
$ sudo cp ~/rzg_vlp_v3.0.3/build/tmp/deploy/images/smarc-rzg2l/Image-smarc-rzg2l.bin /media/venon/rootfs/home/root/ $ sudo cp ~/rzg_vlp_v3.0.3/build/tmp/deploy/images/smarc-rzg2l/Image-r9a07g044l2-smarc.dtb /media/venon/rootfs/home/root/ $ sudo cp ~/rzg_vlp_v3.0.3/build/tmp/deploy/images/smarc-rzg2l/core-image-qt-smarc-rzg2l.tar.bz2 /media/venon/rootfs/home/root/
插入SD卡,启动G2L EVK,启动Linux后以root用户身份登录

在eMMC中创建分区
输入如下命令
root@smarc-rzv2l:~# fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.35.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): o Created a new DOS disklabel with disk identifier 0xf3d53104. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): (Push the enter key) Partition number (1-4, default 1): (Push the enter key) First sector (2048-124321791, default 2048): (Push the enter key) Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-124321791, default 1243217 91): +500M Created a new partition 1 of type 'Linux' and of size 500 MiB. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): (Push the enter key) Using default response p. Partition number (2-4, default 2): (Push the enter key) First sector (1026048-124321791, default 1026048): (Push the enter key) Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-124321791, default 1243 21791): (Push the enter key) Created a new partition 2 of type 'Linux' and of size 58.8 GiB. Command (m for help): p Disk /dev/mmcblk0: 59.29 GiB, 63652757504 bytes, 124321792 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf3d53104 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 2048 1026047 1024000 500M 83 Linux /dev/mmcblk0p2 1026048 124321791 123295744 58.8G 83 Linux Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. root@smarc-rzv2l:~#

格式化eMMC
输入命令
root@smarc-rzv2l:~# mkfs.ext4 /dev/mmcblk0p1 root@smarc-rzv2l:~# mkfs.ext4 /dev/mmcblk0p2

格式化eMMC并写入内核、设备树和rootfs
root@smarc-rzg2l:~# mount /dev/mmcblk0p1 /mnt/ root@smarc-rzg2l:~# cp Image-smarc-rzg2l.bin /mnt/ root@smarc-rzg2l:~# cp Image-r9a07g044l2-smarc.dtb /mnt/ root@smarc-rzg2l:~# umount /dev/mmcblk0p1 root@smarc-rzg2l:~# mount /dev/mmcblk0p2 /mnt/root@smarc-rzg2l:~# tar xf /home/root/core-image-qt-smarc-rzg2l.tar.bz2 -C /mnt/ root@smarc-rzg2l:~# umount /dev/mmcblk0p2

按下复位按键SW10,或者输入命令reboot重启设备,配置U-boot环境变量。
=> setenv bootargs 'root=/dev/mmcblk0p2 rootwait' => setenv bootcmd 'mmc dev 1; ext4load mmc 0:1 0x48080000 Image-smarc-rzg2l.bin; ext4load mmc 0:1 0x48000000 Image-r9a07g044l2-smarc.dtb; booti 0x48080000 - 0x48000000' => saveenv Saving Environment to MMC... Writing to MMC(0)... OK

按下复位按键或者输入命令‘reset’。重启设备。

审核编辑:刘清
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。
举报投诉
-
FlaSh
+关注
关注
10文章
1762浏览量
156091 -
SD卡
+关注
关注
2文章
593浏览量
69791 -
DDR4
+关注
关注
12文章
351浏览量
43376 -
u-boot
+关注
关注
0文章
141浏览量
39996
发布评论请先 登录
相关推荐
热点推荐
G2L系列 核心板 -RZ/G2L 处理器简介|框架图|功耗|原理图及硬件设计指南
电源,系统烧写电路,以及调试串口电路。其它的RZ/ G2L核心板外围电路的设计可参考飞凌嵌入式“OK-G2Lx-C底板说明”。2、
发表于 06-21 14:45
【飞凌RZ/G2L开发板试用体验】+01.开箱(zmj)
【飞凌RZ/G2L开发板试用体验】+01.开箱(zmj)感谢飞凌嵌入式和电子发烧友网提供的此次试用机会,可以亲身体验飞凌RZ/G2L开发板的魅力。前言:具备视频处理功能的嵌入式电子设备
发表于 08-28 19:13
RZ/G2L Demo调试经验流程分享(1)
r01us0553ej0107-rz-g(Release Note).pdf,r01us0556ej0102-rz-g(Board_StartUp_Guide_smarcEVK).pdf,对SMARC EVK of RZ/
Renesas RZ/G2L, RZ/V2L SMARC模块板硬件设计解析
Renesas RZ/G2L, RZ/V2L SMARC模块板硬件设计解析 在嵌入式系统开发领域,Renesas的RZ/
RZ/G2L Demo调试经验分享(5)
评论