RZ/G2L微处理器集成Cortex-A55核心(运行频率1.2GHz)、16位3L/DDR4内存、搭载Mali-G31的3D图形加速引擎以及H.264视频编解码器。此外,该处理器还具备多种外设接口,包括摄像头输入、显示输出、USB 2.0和千兆以太网,因此特别适合入门级工业人机界面(HMI)及需要视频处理功能的设备应用。

在基于RZ/G2L MPU的过程中,传统eMMC烧录流程效率成为生产瓶颈——单板烧录耗时约5分30秒,严重制约批量生产效率。针对这一痛点,我们创新性地推出了双阶段混合烧录方案,巧妙结合SCIF与Fastboot技术优势,实现了多设备并行烧录,大幅缩短了整体耗时。
双阶段技术架构
01Bootloer烧录阶段
通过SCIF接口批量写入U-Boot至多块主板eMMC
支持并行操作,避免单板串行等待
02系统镜像烧录阶段
配置U-Boot启用Fastboot over USB功能
PC端Fastboot工具同时操控多块主板,实现分区创建、内核及文件系统并行写入
效率对比:提升显著

详细实施方案
一、U-Boot配置
在源码中启用Fastboot和USB功能支持,并配置相关功能。
配置文件路径为:u-boot/git/configs/smarc-rzg2l_defconfig
关键配置示例
左右滑动查看完整内容
# Fastboot功能配置 CONFIG_USB_FUNCON_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x4D000000 CONFIG_FASTBOOT_BUF_SIZE=0x8000000 CONFIG_FASTBOOT_USB_DEV=28 CONFIG_FASTBOOT_FLASH=y CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_CMD_FASTBOOT=y # USB功能配置 CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Rene" CONFIG_USB_GADGET_VENDOR_NUM=0x18D1 CONFIG_USB_GADGET_PRODUCT_NUM=0x4E23
完成配置和源码修改后编译,得到fip_.srec、bl2_bp_pmic.srec,再通过SCIF下载模式使用Flash Wrir工具烧录BL2与FIP至eMMC。
二、Fastboot烧录流程
设备端操作
在U-Boot控制台中执行以下命令进入Fastboot模式:
左右滑动查看完整内容
setenv serial#'Renesas1'# 自定义设备唯一标识 saveenv fastboot usb 27 # 启动USB Fastboot服务
PC端操作
1验证设备连接
左右滑动查看完整内容
fastbootdevices
2创建并烧写MBR分区表(包含500MB启动分区和3.B根文件系统分区)
左右滑动查看完整内容
fastbootflash mbr part.mbr
3创建启动分区镜像
左右滑动查看完整内容
ddif=/dev/zero of=boot.img bs=1M count=256 sudomkfs.vfat -v -c -F32boot.img
4挂载并复制内核文件
左右滑动查看完整内容
sudomount boot.img /mnt cpkernel /mnt cpdtb /mnt sudoumount /mnt
5烧录分区并重启
左右滑动查看完整内容
fastbootflash0:1boot.img#启动分区 fastbootflash0:2core-image-minimal-smarc-rzg2l.ext4 # 根文件系统 fastbootreboot
启动参数配置
左右滑动查看完整内容
setenvbootargs 'rw rootwt earlycon root=/dev/mmcblk0p2' setenvbootcmd 'mmc dev0; fatload mmc0:10x48080000 Image-smarc-rzg2l.bin; fatloadmmc0:10x48000000 Image-r9a07g044l2-smarc.dtb; booti0x48080000 - 0x48000000' saveenv
多设备并行烧录实战
通过设备唯一ID识别,实现单PC控制多设备同步烧录:
设备端设置
左右滑动查看完整内容
setenvserial# 'Device_001' # 设备唯一标识 saveenv fastbootusb0
PC端并行操作
左右滑动查看完整内容
# 查看已连接设备 fastbootdevices # 终端1操作设备1 fastboot-s Device_001 flash mbr part.mbr fastboot-s Device_001 flash0:1boot.img fastboot-s Device_001 reboot # 终端2同时操作设备2 fastboot-s Device_002 flash mbr part.mbr fastboot-s Device_002 flash0:1boot.img fastboot-s Device_002 reboot
附:单个板子烧录成功log
fastboot log
左右滑动查看完整内容
g2l@g2l-VirtualBox:~$ fastboot devices Renesas1fastboot g2l@g2l-VirtualBox:~$ fastboot flash mbr part.mbr targetreported max download size of134217728bytes sending'mbr' (0KB)... OKAY[ 0.007s] writing'mbr'... OKAY[ 0.007s] finished. total time:0.014s g2l@g2l-VirtualBox:~$ fastboot flash0:1boot.img#启动分区 targetreported max download size of134217728bytes sending'0:1' (85274KB)... OKAY[ 7.543s] writing'0:1'... OKAY[ 4.010s] finished. total time:11.553s g2l@g2l-VirtualBox:~$ fastboot flash0:2core-image-minimal-smarc-rzg2l.ext4 targetreported max download size of134217728bytes Invaliarse file format at header magic erasing'0:2'... OKAY[ 5.145s] sendingsparse '0:2'1/1(80256KB)... OKAY[ 7.144s] writing'0:2'1/1... OKAY[ 54.646s] finished. total time:66.935s g2l@g2l-VirtualBox:~$ fastboot reboot rebooting... finished. total time:5.601s g2l@g2l-VirtualBox:~$
boot log
左右滑动查看完整内容
=> fastboot usb 0 ** Bad device specification mmc mbr_a ** Couldn't find partition mmc mbr_a ** Bad device specification mmc mbr ** Couldn't find partition mmc mbr ** Bad device specification mmc mbr ** Couldn't find partition mmc mbr Starting download of 512 bytes downlong of 512 bytes finished fastboot_mmc_flash_write: updating MBR ........ success ** Bad partition specification mmc 0:1_a ** Couldn't find partition mmc 0:1_a Starting download of 87320576 bytes .......................................................................... downloading of 87320576 bytes finished Flashing Raw Image ........ wrote 87320576 bytes to '0:1' ** Bad partition specification mmc 0:2_a ** Couldn't find partition mmc 0:2_a Erasing blocks 1026048 to 8388608 due to alignment ........ erased 3769630720 bytes from '0:2' Starting download of 82182548 bytes .......................................................................... downloading of 82182548 bytes finished Flashing sparse image at offset 1026048 Flashing Sparse Image ........ wrote 1184509952 bytes to '0:2' resetting ... NOTICE: BL2: v2.9(release):v2.5/rzg2l-1.00-3883-gc314a391c-dirty NOTICE: BL2: Built : 1418, Sep 192023 NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x1f840 src=(p:1)0x20000(256) len=0x10(1) NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x1f9a0 src=(p:1)0x20010(256) len=0x28(1) NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x44000000 src=(p:1)0x20090(256) len=0x6069(49) NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x1f840 src=(p:1)0x20000(256) len=0x10(1) NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x1f9a0 src=(p:1)0x20010(256) len=0x28(1) NOTICE: BL2: Load dst=0x1f9a0 src=(p:1)0x20038(256) len=0x28(1) NOTICE: BL2: eMMC boot from partition 1 NOTICE: BL2: Load dst=0x50000000 src=(p:1)0x26100(304) len=0xc0120(1538) NOTICE: BL2: Booting BL31 NOTICE: BL31: v2.9(release):v2.5/rzg2l-1.00-3883-gc314a391c-dirty NOTICE: BL31: Built : 1418, Sep 192023 U-Boot 2021.10 (Feb 182025 - 1150 +0800) CPU: Renesas Electronics CPU rev 1.0 Model: smarc-rzg2l : 1.9 GiB WDT: watchdog@0000000012800800 WDT: Started with servicing (60s timeout) MMC: @11c00000: 0, sd@11c10000: 1 Loading Environment from MMC... OK In: serial@1004b800 Out: serial@1004b800 Err: serial@1004b800 U-boot WDT started! Net: eth0: @11c20000 Hit any key to stop autoboot: 0 switch to partitions#0, OK mmc0(part 0) is current device
方案适用场景
01推荐使用场景
产线混合生产不同硬件版本
系统镜像需要频繁迭代的开发阶段
小批量多配置定制化订单
02不适用场景
无USB调试接口的主板版本
方案价值
通过SCIF+Fastboot两阶段混合烧录方案,RZG2L平台不仅实现了多设备并行烧录,还大幅提高了生产和开发效率。该方案尤其适合小批量定制化生产与快速迭代的开发阶段,为的量产部署提供了一种高效可行的思路。
上一篇:Nios II处理器硬件抽象层深度解析
下一篇:STM32学了两年半,却还是不会做项目
推荐阅读最新更新时间:2026-03-20 17:50
- 边缘计算主机盒选购指南:五大核心指标解析
- Arm AGI CPU 更多细节:台积电 3nm 制程、Neoverse V3 微架构
- Arm AGI CPU 重磅发布:构筑代理式 AI 云时代的芯片基石
- Arm 拓展其计算平台矩阵,首次跨足芯片产品
- 阿里达摩院发布RISC-V CPU玄铁C950,首次原生支持千亿参数大模型
- 边缘 AI 加速的 Arm® Cortex® ‑M0+ MCU 如何为电子产品注入更强智能
- 阿里达摩院发布玄铁C950,打破全球RISC-V CPU性能纪录
- VPU中的“六边形战士”:安谋科技Arm China发布“玲珑”V560/V760 VPU IP
- 利用锚定可信平台模块(TPM)的FPGA构建人形机器人安全
- ADR435B 5 Vout 超低噪声 XFET 电压基准的典型应用,具有灌电流和拉电流能力
- 使用 Analog Devices 的 ADP8140 的参考设计
- NCP699SN30T1G 150mA、3 路输出电压 CMOS 低 Iq LDO 的典型应用,在 TSOP-5 中启用
- ZTL431过压/欠压保护电路典型应用
- 使用 Microchip Technology 的 DVR2802B3 的参考设计
- 开源的浮游生物监测分析设备PlanktoScope
- STK503,旨在评估 AT90USB AVR MCU 的入门套件,通过 AVR Studio 支持 JTAGICE mkII 和 AVRISP mkII
- 使用 BittWare 的 XCVU190 的参考设计
- 远程声控参考设计
- NCP4354AADAPGEVB,用于 NCP4354、65W 适配器关闭模式控制器的评估板

【Follow me第三季第4期】英飞凌CY8CPROTO-063-BLE开发板全任务实战源码
毫米波雷达设计PPT(瑞萨)
非常经典的关于LLC的杨波博士论文
ASM10DTBD-S664






京公网安备 11010802033920号