<acronym id="s8ci2"><small id="s8ci2"></small></acronym>
<rt id="s8ci2"></rt><rt id="s8ci2"><optgroup id="s8ci2"></optgroup></rt>
<acronym id="s8ci2"></acronym>
<acronym id="s8ci2"><center id="s8ci2"></center></acronym>
0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

RZ/G2L Demo調試經驗分享(5)

瑞薩MCU小百科 ? 來源:瑞薩嵌入式小百科 ? 2024-05-10 14:54 ? 次閱讀

準備發送Flash Writer文件

Flash_Writer_SCIF_RZG2L_SMARC_PMIC_DDR4_2GB_1PCS.mot

5b68b544-0e98-11ef-a297-92fbcf53809c.png

輸入指令

>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
5b9e3624-0e98-11ef-a297-92fbcf53809c.png

發送文件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)
5bb53f68-0e98-11ef-a297-92fbcf53809c.png5bd1bc06-0e98-11ef-a297-92fbcf53809c.png5bedb488-0e98-11ef-a297-92fbcf53809c.png

準備發送文件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)
5c94610c-0e98-11ef-a297-92fbcf53809c.png5cb4492c-0e98-11ef-a297-92fbcf53809c.png

斷開連接,關閉電源,更改撥碼開關。

5ccd3e78-0e98-11ef-a297-92fbcf53809c.png

接上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/
?5cf36314-0e98-11ef-a297-92fbcf53809c.png?

插入SD卡,啟動G2L EVK,啟動Linux后以root用戶身份登錄

5d241266-0e98-11ef-a297-92fbcf53809c.png

在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:~#
5d38b7b6-0e98-11ef-a297-92fbcf53809c.png

格式化eMMC

輸入命令

root@smarc-rzv2l:~# mkfs.ext4 /dev/mmcblk0p1
root@smarc-rzv2l:~# mkfs.ext4 /dev/mmcblk0p2
5d5c232c-0e98-11ef-a297-92fbcf53809c.png

格式化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
5d67b5e8-0e98-11ef-a297-92fbcf53809c.png

按下復位按鍵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
5d97b2ac-0e98-11ef-a297-92fbcf53809c.png

按下復位按鍵或者輸入命令‘reset’。重啟設備。

5da6622a-0e98-11ef-a297-92fbcf53809c.png



審核編輯:劉清

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • FlaSh
    +關注

    關注

    10

    文章

    1566

    瀏覽量

    146845
  • SD卡
    +關注

    關注

    2

    文章

    542

    瀏覽量

    63121
  • DDR4
    +關注

    關注

    12

    文章

    299

    瀏覽量

    40371
  • u-boot
    +關注

    關注

    0

    文章

    118

    瀏覽量

    38082

原文標題:RZ/G2L Demo調試經驗分享(5)[完結]

文章出處:【微信號:瑞薩MCU小百科,微信公眾號:瑞薩MCU小百科】歡迎添加關注!文章轉載請注明出處。

收藏 人收藏

    評論

    相關推薦

    RZ/G2L Demo調試經驗分享(2)

    前面的工作已經把編譯環境準備好了,下面開始準備編譯
    的頭像 發表于 05-07 17:52 ?684次閱讀
    <b class='flag-5'>RZ</b>/<b class='flag-5'>G2L</b> <b class='flag-5'>Demo</b><b class='flag-5'>調試</b><b class='flag-5'>經驗</b>分享(2)

    RZ/G2L Demo調試經驗分享(3)

    首先是確認在Linux下,SD卡的設備名稱。在沒接入SD卡的情況下,Linux終端中輸入
    的頭像 發表于 05-08 14:48 ?701次閱讀
    <b class='flag-5'>RZ</b>/<b class='flag-5'>G2L</b> <b class='flag-5'>Demo</b><b class='flag-5'>調試</b><b class='flag-5'>經驗</b>分享(3)

    G2L系列 核心板 -RZ/G2L 處理器簡介|框架圖|功耗|原理圖及硬件設計指南

    電源,系統燒寫電路,以及調試串口電路。其它的RZ/ G2L核心板外圍電路的設計可參考飛凌嵌入式“OK-G2Lx-C底板說明”。2、
    發表于 06-21 14:45

    【飛凌RZ/G2L開發板試用體驗】開箱帖子,飛凌質量YYDS

    ,品質指的信賴。飛凌RZ/G2L開發板基于瑞薩RZ/G2L,在智能工控領域的一款高性能、超高效處理器。RZ/
    發表于 08-15 18:46

    【飛凌RZ/G2L開發板試用體驗】+01.開箱(zmj)

    【飛凌RZ/G2L開發板試用體驗】+01.開箱(zmj)感謝飛凌嵌入式和電子發燒友網提供的此次試用機會,可以親身體驗飛凌RZ/G2L開發板的魅力。前言:具備視頻處理功能的嵌入式電子設備
    發表于 08-28 19:13

    【飛凌RZ/G2L開發板】飛凌RZ/G2L開發板試用測評報告

    高性能、超高效處理器 RZ/G2L設計開發,功能接口資源豐富,支持多路UART、Ethernet、CAN-FD等,將RZ/G2L處理器的功能全部引出,非常方便開發和
    發表于 08-29 02:01

    【飛凌RZ/G2L開發板試用體驗】+08.RZ/V2L開發板的QT測試(zmj)

    【飛凌RZ/G2L開發板試用體驗】+08.RZ/V2L開發板的QT測試(zmj)Qt-Creator 是一個跨平臺的 QT 集成開發環境(IDE),包括了高級 C++代碼編輯器、項目和
    發表于 09-06 20:17

    【米爾瑞薩RZ/G2L開發板-試用體驗】開箱

    5、里面有一個快速入門(中英文)的小冊子: 6、按照使用說明,開機的畫面如下: 7、RZ/G2L 是瑞薩在智能工控領域的一款高性能、超高效處理器。RZ/
    發表于 05-14 19:41

    【米爾瑞薩RZ/G2L開發板-試用體驗】開箱 + 開機

    感謝 感謝電子發燒友論壇、感謝米爾電子,把米爾瑞薩RZ/G2L開發板試用話動的機會給了我。最近事情比較多,趕在這個空擋時間完成開箱報告。 開箱 第一次拿到米爾電子的試用機會,簡約的包裝盒透著電子行業
    發表于 05-18 19:33

    【米爾瑞薩RZ/G2L開發板-試用體驗】米爾瑞薩RZ/G2L開發板開箱視頻

    今天剛剛收到米爾瑞薩RZ/G2L開發板,拆開包裹后給人的感覺是驚艷,板卡設計真的很棒,來看看視頻做個簡單了解吧。 更多板卡可以登錄官網了解哦。https://www.myir.cn/
    發表于 05-22 21:58

    150套開發板免費送!還有5G手機拿?米爾RZ/G2L開發板創意秀

    人間最美五月天 不負韶華不負卿 米爾又來送板子了 不是3套,也不是4套 150套****米爾RZ/G2L開發板 送!免費!板卡不回收! 01 這是什么樣的有獎活動? 米爾RZ/G2L
    發表于 05-24 16:36

    【米爾瑞薩RZ/G2L開發板-試用體驗】米爾瑞薩RZ/G2L開發板使用SSH登錄

    收到的米爾瑞薩RZ/G2L開發板上電測試一下SSH登錄方式和其它測試! SSH登錄 在使用之前,需要事先連接網絡,筆者這里使用的是以太網,事先需要使用串口的登錄,然后輸入以下命令查看IP地址
    發表于 06-11 21:47

    【米爾瑞薩RZ/G2L開發板-試用體驗】認識一下米爾瑞薩RZ/G2L開發板的核心板

    收到米爾瑞薩RZ/G2L開發板后一直對米爾旗下開發板的做工感到非常精致,同時也有著很強大的功能,也一直很喜歡米爾系列開發板。 引領工業市場從32位MPU向64位演進 基于瑞薩高性價比RZ/G2
    發表于 07-29 00:21

    RZ/G2L Demo調試經驗流程分享(1)

    r01us0553ej0107-rz-g(Release Note).pdf,r01us0556ej0102-rz-g(Board_StartUp_Guide_smarcEVK).pdf,對SMARC EVK of RZ/
    的頭像 發表于 05-06 14:25 ?205次閱讀
    <b class='flag-5'>RZ</b>/<b class='flag-5'>G2L</b> <b class='flag-5'>Demo</b><b class='flag-5'>調試</b><b class='flag-5'>經驗</b>流程分享(1)

    RZ/G2L Demo調試經驗分享(4)

    可以看到SD卡,sdb設備的分區1 sdb1掛載在/media/venon/AC72-C97F,分區2掛載在/media/venon/rootfs。
    的頭像 發表于 05-09 14:17 ?136次閱讀
    <b class='flag-5'>RZ</b>/<b class='flag-5'>G2L</b> <b class='flag-5'>Demo</b><b class='flag-5'>調試</b><b class='flag-5'>經驗</b>分享(4)
    亚洲欧美日韩精品久久_久久精品AⅤ无码中文_日本中文字幕有码在线播放_亚洲视频高清不卡在线观看
    <acronym id="s8ci2"><small id="s8ci2"></small></acronym>
    <rt id="s8ci2"></rt><rt id="s8ci2"><optgroup id="s8ci2"></optgroup></rt>
    <acronym id="s8ci2"></acronym>
    <acronym id="s8ci2"><center id="s8ci2"></center></acronym>