建立分区:

 fdisk    :0x4000000  : :
fdisk 
Partition Map for MMC device   --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
-
-
-
Vendor: Man Snr f348b4bc Rev: 0.6 Prod: 8GND3R
Type: Removable Hard Disk
Capacity: 7456.0 MB = 7.2 GB ( x )

三个分区,对应的都是用扇区为单位进行表示的(一个扇区=512bits)

终端输入

printenv

显示如下内容

androidcrc=-
baudrate=
bootargs=lcd=at070tn92 tp=gslx680-linux root=/dev/mmcblk0p3 rw rootfstype=ext4
bootcmd=mmc read 0x48000000 ; bootm 0x48000000
bootcmd2=bootm 0x48000000
bootdelay=
bootfile=uImage
ethact=dwmac.c0060000
ethaddr=:e2:1c:ba:e8:
ethprime=RTL8211
fastboot=flash=mmc,:ubootpak:2nd:0x200,0x78000;flash=mmc,:2ndboot:2nd:0x200,0x4000\
;flash=mmc,:bootloader:boot:0x8000,0x70000;flash=mmc,:boot:ext4:0x00100000,0x04000000\
;flash=mmc,:system:ext4:0x04100000,0x2F200000;flash=mmc,:cache:ext4:0x33300000,0x1AC00000\
;flash=mmc,:misc:emmc:0x4E000000,0x00800000;flash=mmc,:recovery:emmc:0x4E900000,0x01600000\
;flash=mmc,:userdata:ext4:0x50000000,0x0;
fileaddr=
gatewayip=192.168.20.1
ipaddr=192.168.20.112
netmask=255.255.255.0
serverip=192.168.20.30
stderr=serial
stdin=serial
stdout=seri

然后就是输入

help

看看uboot可以进行的操作有什么了;

       - do nothing, unsuccessfully
- do nothing, successfully
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
cmd - cmd [command] options...
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
dhcp - boot image via network using DHCP/TFTP protocol
drawbmp - darw bmpfile on address 'addr' to framebuffer
env - environment handling commands
exit - exit script
ext4load- load binary file from a Ext4 filesystem
ext4ls - list files in a directory (default /)
ext4write- create a file in the root directory
fastboot- fastboot- use USB Fastboot protocol fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fatwrite- write file into a dos filesystem
fdisk - mmc list or create ms-dos partition tables (MAX TABLE )
go - start application at address 'addr'
goimage - start Image at address 'addr'
help - print command description/usage
i2c - I2C sub-system
i2cmod - set I2C mode
iminfo - print header information for application image
loadbmp - load bmpfile with command or 'bootlog' environment
loop - infinite loop on address range
md - memory display
mdio - MDIO utility commands
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtest - simple RAM read/write test
mw - memory write (fill)
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
pmic - PMIC
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
sdfuse - sdfuse - read images from FAT partition of SD card and write them to booting device. setenv - set environment variables
showvar - print local hushshell variables
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
udown - Download USB
update_mmc- update mmc data version - print monitor, compiler and linker version

其中可以用来烧写内存的两条命令就是;

 mmc
mmc - MMC sub system Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc setdsr <value> - set DSR register value

还有就是

 update_mmc
update_mmc - update mmc data Usage:
update_mmc <dev no> <type> <mem> <addr> <length>
- type : 2ndboot | boot | raw | part update_mmc <dev no> boot 'mem' 'addr' 'length' [load addr]
- update data 'length' add boot header() on 'mem' to device addr,
and set jump addr with 'load addr'
if no [load addr], set jump addr default u-boot _TEXT_BASE_ update_mmc <dev no> raw 'mem' 'addr' 'length'
- update data 'length' on 'mem' to device addr. update_mmc <dev no> part 'mem' 'part no' 'length'
- update partition image 'length' on 'mem' to mmc 'part no'. Note.
- All numeric parameters are assumed to be hex.

所以可以通过tftp 把uImage和rootfs都放进去,uImage做成boot.img还有做,使用的方法就是直接烧进去分区地址里面,用的是

mmc write 0x48000000 131080 10806

然后对应的环境变量也要做修改

setenv bootcmd mmc read 0x48000000   \;bootm 0x48000000
saveenv
rese

这样,kernel的镜像就被烧写进去mmc的第二个分区里面了

rootfs的烧写则是需要用

update_mmc  raw 0x48000000 0x8100000 0x1f400000

或者是

mmc write 0x48000000  

然后可以正常使用。

reset

uboot中往s5p6818的emmc刷写内容的更多相关文章

  1. u-boot中分区和内核MTD分区关系

    一.u-boot中环境变量与uImage中MTD的分区关系 分区只是内核的概念,就是说A-B地址放内核,C-D地址放文件系统,(也就是规定哪个地址区间放内核或者文件系统)等等. 一般我们只需要分3-4 ...

  2. 关于Yaffs2在u-boot中的支持

    开发板是一块2G的MLC的NandFlash,页大小8k+512,为其移植u-boot到yaffs2这了.以前在Mini2440上移植过2k+64的slc的NandFlash的Yaffs2支持,当然也 ...

  3. 分析uboot中 make xxx_config过程

    make xxx_config实质上就是调用了 首先看MKCONFIG: [注意]SRCTREE=源文件下的目录 之后的语句: @$(MKCONFIG) $(@:_config=) arm arm92 ...

  4. 基于335X平台的UBOOT中交换芯片驱动移植

    基于335X平台的UBOOT中交换芯片驱动移植 一.软硬件平台资料 1.开发板:创龙AM3359核心板,网口采用RMII形式. 2.UBOOT版本:U-Boot-2016.05,采用FDT和DM. 3 ...

  5. uboot中的快捷菜单的制作说明 【转】

    转自:http://blog.chinaunix.net/uid-22030783-id-366971.html   在uboot中加入快捷操作菜单的方法非常简单,在论坛发布的uboot201003V ...

  6. 七、在U-boot中让LCD显示图片

    1. 增加Nandflash读取代码 因为要显示图片,而图片明显是放在Nandflash中比较合适,因此需要有能够操作Nandflash的函数.在U-boot中已经有能操作Nandflash的函数了, ...

  7. 在uboot中加入cmd_run命令,运行环境变量

    在学习uboot的过程中会经常烧录程序,每次都要敲一些下载指令.这样是不是很麻烦,有什么办法能快速的烧写呢.很简单,将需要敲击的指令编译到uboot中,以环境变量的形式存在.但是环境变量很好加,如何运 ...

  8. u-boot中添加自定义命令

    1.u-boot命令机制u-boot中,每个命令都使用一个struct cmd_tbl_s结构体定义,该定义在include/command.h中实现:struct cmd_tbl_s{ char * ...

  9. u-boot中的Makefile

    在windos下,pc机上电之后,BIOS会初始化硬件配置,为内核传递参数,引导操作系统启动,并且识别C盘.D盘.等整个操作系统启动起来之后,才可以运行应用程序比如QQ.QQ音影.同理,在嵌入式Lin ...

随机推荐

  1. 实验一:c++简单程序设计(1)

    实验结论 编程练习2-28 switch版源码: #include <iostream> using namespace std; int main(void) { cout <&l ...

  2. 11_vim

    vim编辑器 文本编辑器,字处理器linux重要哲学思想之一:使用纯文本格式来保存软件的配置信息,大多数情况下都是如此,而且一切皆文件此前学过nano,sed..nano入门简单,但功能简陋 vi:V ...

  3. MVVM以及vue的双向绑定

    原文:https://www.cnblogs.com/onepixel/p/6034307.html MVVM 是Model-View-ViewModel 的缩写,它是一种基于前端开发的架构模式,其核 ...

  4. 【python 3】 函数 初识

    函数初识 1.函数的定义.调用.返回值 函数的定义.调用.返回值 def demo(): ## 定义函数 (def + 空格 + 函数名 + () + 冒号) ## 如下为函数体 return a # ...

  5. linux中centros6.7安装php5.6,httpd-2.2.19(web产品化)遇到的问题总结

    前段时间在公司实习,web系统产品化的过程踩了很多坑,在这边总结一下,由于对linux不是很懂,全是自己一步步一个一个问题解决的 1,查看系统中是否安装apache,php,mysql环境 Apach ...

  6. P3958 奶酪

    传送门 思路: 模拟题.用并查集求出所有 “连通块” ,判断是否有 “连通块” 的最顶上和最下方都不小于奶酪的范围. Code: #include<iostream> #include&l ...

  7. 压测过程中使用nmon对服务器资源的监控

    1.nmon工具的下载和安装: 官网:http://nmon.sourceforge.net/pmwiki.php 下载完成后进行解压,更改权限:chmod 777 2.查看linux系统的版本,再使 ...

  8. loadrunner中JavaVuser脚本的编写

    1.环境准备:      LoadRunner11----->对应JDK1.6版本(32位) LoadRunner12----->对应JDK1.7版本(32位) (一).JDK下载安装完成 ...

  9. 环境准备—之—linux下安装python3和pip3

    转自 上海悠悠 https://www.cnblogs.com/yoyoketang/p/10195102.html 前言 centos7 自带有 python,但是却是 python2 版本的 py ...

  10. sqlite3如何判断一个表是否已经存在于数据库中 C++

    SELECT count(*) AS cnt FROM sqlite_master WHERE type='table' AND name='table_name';cnt will return 0 ...