国产精品久久久aaaa,日日干夜夜操天天插,亚洲乱熟女香蕉一区二区三区少妇,99精品国产高清一区二区三区,国产成人精品一区二区色戒,久久久国产精品成人免费,亚洲精品毛片久久久久,99久久婷婷国产综合精品电影,国产一区二区三区任你鲁

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

如何把文件系統(tǒng)燒到EMMC并從EMMC加載

瑞薩嵌入式小百科 ? 來源:瑞薩MCU小百科 ? 作者:瑞薩MCU小百科 ? 2023-10-30 16:06 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

之前文章介紹了如何下載并從SD卡加載文件系統(tǒng),提到過可以從EMMC引導(dǎo)系統(tǒng),本篇將為您介紹如何把文件系統(tǒng)燒到EMMC,并從EMMC加載。

接之前操作,系統(tǒng)已經(jīng)從SD卡正常啟動(本文方案需要借助SD卡):

Version: 3.0.3

smarc-rzg2l login: root

Last login: Sun Sep 20 1003 UTC 2020

root@smarc-rzg2l:~#

已經(jīng)可以接上網(wǎng)線,并借助網(wǎng)路(如ssh服務(wù))把相關(guān)文件拷貝到SD卡,為后邊做準(zhǔn)備。

需要的文件如下:

root@smarc-rzg2l:~# ls

Image-r9a07g044l2-smarc.dtb Image-smarc-rzg2l.bin core-image-qt-smarc-rzg2l.tar.bz2

EMMC創(chuàng)建分區(qū):

左右滑動查看完整內(nèi)容

root@smarc-rzg2l:~# 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 0xf23e9318.


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)


Using default response p.
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 124321791): +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 124321791): (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: 0xf23e9318


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-rzg2l:~#

格式化EMMC:

左右滑動查看完整內(nèi)容

root@smarc-rzg2l:~# mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.45.7 (28-Jan-2021)
Discarding device blocks: done
Creating filesystem with 512000 1k blocks and 128016 inodes
Filesystem UUID: cd3a51a9-ef38-4399-888e-9773fcc41ecc
Superblock backups stored on blocks:
    8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409


Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done


root@smarc-rzg2l:~# mkfs.ext4 /dev/mmcblk0p2
mke2fs 1.45.7 (28-Jan-2021)
Discarding device blocks: done
Creating filesystem with 15411968 4k blocks and 3858432 inodes
Filesystem UUID: 07d98391-d70c-4eed-a3af-4227a7460a32
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424


Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done


root@smarc-rzg2l:~#

掛載EMMC,拷貝內(nèi)核、設(shè)備樹、文件系統(tǒng):

左右滑動查看完整內(nèi)容

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 core-image-qt-smarc-rzg2l.tar.bz2 -C /mnt/
root@smarc-rzg2l:~# umount /dev/mmcblk0p2

關(guān)機(jī),設(shè)置開發(fā)板SW11/SW1撥碼開關(guān)模式:

9e439d58-76f8-11ee-939d-92fbcf53809c.png9e5074c4-76f8-11ee-939d-92fbcf53809c.png

重啟開發(fā)板,設(shè)置環(huán)境變量:

左右滑動查看完整內(nèi)容

NOTICE: BL2: v2.7(release):203c783-dirty
NOTICE: BL2: Built : 06:57:02, Nov 10 2022
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=0xb0238(1410)
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.7(release):203c783-dirty
NOTICE: BL31: Built : 06:57:02, Nov 10 2022




U-Boot 2021.10 (Mar 15 2023 - 07:34:17 +0000)


CPU:  Renesas Electronics K rev 2.1
Model: smarc-rzg2l
DRAM: 1.9 GiB
WDT:  watchdog@0000000012800800
WDT:  Started with servicing (60s timeout)
MMC:  sd@11c00000: 0, sd@11c10000: 1
Loading Environment from MMC... OK
In:  serial@1004b800
Out:  serial@1004b800
Err:  serial@1004b800
U-boot WDT started!
Net:
Error: ethernet@11c20000 address not set.
No ethernet found.


Hit any key to stop autoboot: 0
Hit any key to stop autoboot: 0
=> env default -a
## Resetting to default environment
=> 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

重啟開發(fā)板,從emmc成功加載:

BSP: RZG2L/RZG2L-SMARC-EVK/3.0.3
LSI: RZG2L
Version: 3.0.3
smarc-rzg2l login: root
Last login: Mon Sep 18 02:29:32 UTC 2023
root@smarc-rzg2l:~# df -h
Filesystem      Size Used Avail Use% Mounted on
/dev/root       58G 1.2G  54G  3% /
devtmpfs       740M   0 740M  0% /dev
tmpfs         933M   0 933M  0% /dev/shm
tmpfs         933M 9.7M 924M  2% /run
tmpfs         933M   0 933M  0% /sys/fs/cgroup
tmpfs         933M   0 933M  0% /tmp
tmpfs         933M  28K 933M  1% /var/volatile
tmpfs         187M   0 187M  0% /run/user/0
root@smarc-rzg2l:~#

審核編輯:湯梓紅

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • SD卡
    +關(guān)注

    關(guān)注

    2

    文章

    589

    瀏覽量

    68678
  • 文件系統(tǒng)
    +關(guān)注

    關(guān)注

    0

    文章

    302

    瀏覽量

    20974
  • 開發(fā)板
    +關(guān)注

    關(guān)注

    26

    文章

    6289

    瀏覽量

    118041
  • emmc
    +關(guān)注

    關(guān)注

    7

    文章

    261

    瀏覽量

    55981
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點(diǎn)推薦

    DR1 系列評估板 eMMC 健康管理案例開發(fā)手冊:信息查詢與壽命監(jiān)控

    本文為創(chuàng)龍科技DR1 系列評估板 eMMC 健康管理案例指南,核心是通過 emmc_get_info 程序讀取 eMMC 健康信息。內(nèi)容涵蓋 EXT_CSD 寄存器查詢、擦寫次數(shù)統(tǒng)計、壽命預(yù)估及日志
    的頭像 發(fā)表于 01-22 15:24 ?190次閱讀
    DR1 系列評估板 <b class='flag-5'>eMMC</b> 健康管理案例開發(fā)手冊:信息查詢與壽命監(jiān)控

    三星eMMC憑借寬溫特性增強(qiáng)電視環(huán)境適應(yīng)性

    三星128GB eMMC 5.1以350MB/s讀取速度和-25℃~85℃寬溫工作范圍,為智能電視提供高速穩(wěn)定的系統(tǒng)存儲。其3000次擦寫壽命與智能磨損均衡算法保障長期運(yùn)行可靠性,顯著提升開機(jī)速度與應(yīng)用加載流暢度。
    的頭像 發(fā)表于 01-16 09:26 ?235次閱讀
    三星<b class='flag-5'>eMMC</b>憑借寬溫特性增強(qiáng)電視環(huán)境適應(yīng)性

    基于易靈思eMMC IP的Linux系統(tǒng)加載方案

    eMMC全稱為 embedded Multi Media Card,主要用于非易失性存儲,它彌補(bǔ)了 FPGA 芯片自身存儲能力的不足,為 FPGA 提供一個高集成度、大容量、低成本、且易于使用的“硬盤”或“固態(tài)硬盤”解決方案。
    的頭像 發(fā)表于 12-23 14:19 ?7081次閱讀
    基于易靈思<b class='flag-5'>eMMC</b> IP的Linux<b class='flag-5'>系統(tǒng)</b><b class='flag-5'>加載</b>方案

    模擬器新紀(jì)元:晶存EMMC技術(shù)突破

    晶存128GB EMMC AT70BT7G3Y05G憑借620MB/s讀取速度、工業(yè)級寬溫(-40℃~85℃)及3000次擦寫壽命,為模擬器提供高速穩(wěn)定的存儲解決方案,確保大型場景流暢加載與長期穩(wěn)定運(yùn)行。
    的頭像 發(fā)表于 11-24 09:56 ?1473次閱讀
    模擬器新紀(jì)元:晶存<b class='flag-5'>EMMC</b>技術(shù)突破

    江波龍eMMC保障車載導(dǎo)航系統(tǒng)穩(wěn)定運(yùn)行

    江波龍128GB eMMC以車規(guī)級可靠性和高速讀寫性能,為智能中控導(dǎo)航系統(tǒng)提供大容量存儲支持。其eMMC 5.1接口與高耐久特性保障了系統(tǒng)快速啟動、流暢運(yùn)行及OTA升級穩(wěn)定性。
    的頭像 發(fā)表于 11-03 09:38 ?1593次閱讀
    江波龍<b class='flag-5'>eMMC</b>保障車載導(dǎo)航<b class='flag-5'>系統(tǒng)</b>穩(wěn)定運(yùn)行

    國產(chǎn)!全志T113-i 雙核Cortex-A7@1.2GHz 工業(yè)開發(fā)板—eMMC配置核心板使用說明(二)

    本文為創(chuàng)龍科技eMMC 配置核心板官方使用指南,聚焦 Linux 系統(tǒng)在該核心板上的應(yīng)用。主要內(nèi)容包括啟動卡與 “量產(chǎn)卡” 制作、兩種 eMMC 固化方式、分區(qū)與 OTA 升級說明、全量及局部鏡像編譯、
    的頭像 發(fā)表于 09-10 10:55 ?590次閱讀
    國產(chǎn)!全志T113-i 雙核Cortex-A7@1.2GHz 工業(yè)開發(fā)板—<b class='flag-5'>eMMC</b>配置核心板使用說明(二)

    工業(yè)網(wǎng)關(guān)的emmc是什么

    工業(yè)網(wǎng)關(guān)中的eMMC(Embedded Multi Media Card)是一種 嵌入式存儲解決方案 ,結(jié)合了閃存芯片(NAND Flash)和存儲控制器,專為工業(yè)環(huán)境中的數(shù)據(jù)存儲需求設(shè)計。以下
    的頭像 發(fā)表于 08-15 10:21 ?832次閱讀

    使用K230 BurningTool 燒錄 EMMC鏡像報錯怎么解決?

    誤刪了文件,故重新燒錄SD卡鏡像,還是發(fā)生如上報錯。然后又想重新燒錄EMMC鏡像,突然發(fā)現(xiàn)無法燒錄。 想求解的第一個問題是 dev下的文件是保存在SD卡內(nèi)還是開發(fā)板EMMC內(nèi) 第二個問
    發(fā)表于 07-23 06:03

    如何寫入eMMC中的正確區(qū)域?

    我正在使用一個定制的 FX3S 設(shè)備,該設(shè)備有一個連接到 S0 端口的 eMMC。在我的固件項目中,我使用 FATFS 作為嵌入式文件系統(tǒng),并且它運(yùn)行成功。 為了安裝新固件,我將 PMODE 引腳
    發(fā)表于 07-17 07:21

    如何將kmodel放置鏡像內(nèi)部,用于emmc燒錄?

    之前采用的方法是sd卡燒錄,也就是鏈接板子后,kmodel放置虛擬u盤中的kmodel路徑,并且增加main文件作為開機(jī)自啟,進(jìn)行識別,這個流程目前是沒問題的。 現(xiàn)在需要的是進(jìn)行emmc
    發(fā)表于 06-20 06:03

    飛凌嵌入式ElfBoard ELF 1板卡-uboot常用命令之eMMC/SD卡命令

    ; help mmc一、mmc dev使用mmc list可以看到當(dāng)前系統(tǒng)掛載的所有mmc設(shè)備:=&gt; mmc listFSL_SDHC: 0FSL_SDHC: 1 (eMMC)本系統(tǒng)
    發(fā)表于 05-26 17:33

    飛凌嵌入式ElfBoard ELF 1板卡-uboot常用命令之文件系統(tǒng)命令

    [] interface 表示接口,比如 mmc,dev是查詢的設(shè)備號,part 是要查詢的分區(qū)。比如我們要查詢eMMC Flash邏輯分區(qū)1 (fat分區(qū))的文件系統(tǒng)信息,命令如下: =&gt
    發(fā)表于 05-26 17:32

    硬件電路設(shè)計:深度解析eMMC的性能與應(yīng)用

    eMMC(Embedded Multi Media Card)是一種專為嵌入式系統(tǒng)設(shè)計的非易失性存儲解決方案,它將NAND閃存、主控芯片和接口協(xié)議封裝在一個BGA(Ball Grid Array
    的頭像 發(fā)表于 04-14 00:00 ?4681次閱讀
    硬件電路設(shè)計:深度解析<b class='flag-5'>eMMC</b>的性能與應(yīng)用

    QSPI啟動模式EMMC跳轉(zhuǎn)失敗的原因?

    失敗了: 4. 我使用的 emmc burn 命令如下: 一個。使用串口模式,燒錄工具燒錄 QSPI,然后寫入 FIP。S32 位于 EMMC 0 地址; b.使用串行引導(dǎo)(sw3 撥號 e
    發(fā)表于 04-02 08:07

    拯救NAND/eMMC:延長閃存壽命

    隨著電子設(shè)備的廣泛應(yīng)用,NAND閃存和eMMC作為主流存儲介質(zhì),其使用壽命受到廣泛關(guān)注。本文將探討其損壞的軟件原因,并提供延長使用壽命的實用方法。前言長時間運(yùn)行后出現(xiàn)NAND或者eMMC損壞,可能
    的頭像 發(fā)表于 03-25 11:44 ?3253次閱讀
    拯救NAND/<b class='flag-5'>eMMC</b>:延長閃存壽命