uboot下emmc内容烧写(拷贝)步骤

您所在的位置:网站首页 emmc分区挂载 uboot下emmc内容烧写(拷贝)步骤

uboot下emmc内容烧写(拷贝)步骤

2023-05-27 09:26| 来源: 网络整理| 查看: 265

一、目的:嵌入式开发板,通过emmc上的内核文件加载启动linux操作系统,以及存放其他程序文件。需要将所需文件先写入emmc中。

二、总体步骤是:uboot启动后,进入linux下,将emmc分区并格式化,uboot下支持fat和ext2的格式,这里用fat格式,并挂载,然后放入所需要的文件。这样重启后,进入uboot下,将emmc中的文件load到内存中运行。

三、uboot下emmc内容烧写(拷贝)步骤:

1、uboot启动后,输入mmc info有mmc的相关信息

2、通过tftp或其他方式启动linux

3、linux启动后,输入fdisk -l能看到/dev/mmcblk0的信息

4、linux下用fdisk命令对mmc分区,格式化

#fdisk /dev/mmcblk0

fdisk命令都是非常简单的。 WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').

Command (m for help): m Command action a   toggle a bootable flag b   edit bsd disklabel c   toggle the dos compatibility flag d   delete a partition l   list known partition types m   print this menu n   add a new partition o   create a new empty DOS partition table p   print the partition table q   quit without saving changes s   create a new empty Sun disklabel t   change a partition's system id u   change display/entry units v   verify the partition table w   write table to disk and exit x   extra functionality (experts only) 先P,看看sd卡的分区现状。 然后d,删除原分区 n,创建分区

Command (m for help): n Command action e   extended p   primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-62528, default 1): 1 Last cylinder, +cylinders or +size{K,M,G} (1-62528, default 62528):  +1500M

t,指定分区类型, Command (m for help): t Selected partition 1 Hex code (type L to list codes): L

0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris         1  FAT12           39  Plan 9          82  Linux swap / So c1  DRDOS/sec (FAT- 2  XENIX root      3c  PartitionMagic  83  Linux           c4  DRDOS/sec (FAT- 3  XENIX usr       40  Venix 80286     84  OS/2 hidden C:  c6  DRDOS/sec (FAT- 4  FAT16



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3