S5PV210开发与学习:1.1烧写系统:SD卡、fastboot、DNW刷机 |
您所在的位置:网站首页 › 自己在家怎么种蒜苗教程视频讲解 › S5PV210开发与学习:1.1烧写系统:SD卡、fastboot、DNW刷机 |
1.开发板示意图 就是利用刷机工具,向开发板中烧录预先编译好的系统镜像,使之在开发板上运行起来。 //默认的启动命令设置 x210 # printenv bootcmd=movi read kernel 30008000; movi read rootfs 30B00000 300000; bootm 30008000 30B00000 mtdpart=80000 400000 3000000 bootdelay=3 baudrate=115200 ethaddr=00:40:5c:26:0a:5b ipaddr=192.168.1.88 serverip=192.168.1.102 gatewayip=192.168.0.1 netmask=255.255.0.0 Environment size: 261/16380 bytes2.1破坏iNand中的BootLoader以从SD2启动 #在linux和android系统下,擦除uboot的方法: busybox dd if=/dev/zero of=/dev/block/mmcblk0 bs=512 seek=1 count=1 conv=sync sync #在uboot底下如何擦除uboot: movi write u-boot 0x30000000Linux sync命令的作用 dd命令:dd 说明:把板载iNand的第一个扇区用全0来填充,其实就是擦除它,这样板载的iNand的bootloader的开始的第1个扇区就被破坏了,将来启动时iROM还是会从iNand中读取前16KB,然后计算校验和。因为有一个扇区被擦除,所以校验和不通过,会启动失败(会从SD2去执行2nd启动); 破坏板载iNand的bootloader后,不插外部SD卡,启动会打印:SD checksum error。 2.2使用x210_Fusing_Tool.exe制作SD卡启动盘:注意以管理员身份打开工具 2.3.1开发板使用USB OTG连接PC,在PC安装x210_android_driver驱动,安装完注意重启下电脑 安装驱动提示文件的哈希值不在指定的目录文件中的解决办法 2.3.2在uboot中使用串口命令启动fastboot checking mode for fastboot ... Hit any key to stop autoboot: 0 x210 # fastboot [Partition table on MoviNAND] ptn 0 name='bootloader' start=0x0 len=N/A (use hard-coded info. (cmd: movi)) ptn 1 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi)) ptn 2 name='ramdisk' start=N/A len=0x300000(~3072KB) (use hard-coded info. (cmd: movi)) ptn 3 name='config' start=0xAECC00 len=0x1028DC00(~264759KB) ptn 4 name='system' start=0x10D7A800 len=0x1028DC00(~264759KB) ptn 5 name='cache' start=0x21008400 len=0x65F7000(~104412KB) ptn 6 name='userdata' start=0x275FF400 len=0xC0C6FC00(~3158463KB)2.3.4在Windows的CMD中使用fastboot命令烧录 查看当前连接的设备 E:\MyStudy\2.work\fastboot>fastboot.exe devices SMDKC110-01 fastboot烧录Uboot E:\MyStudy\2.work\fastboot>fastboot.exe flash bootloader android4.0.4/uboot.bin sending 'bootloader' (384 KB)... OKAY writing 'bootloader'... OKAY烧写linux Kernel E:\MyStudy\2.work\fastboot>fastboot.exe flash kernel android4.0.4/zImage-android sending 'kernel' (3800 KB)... OKAY writing 'kernel'... OKAY烧写android rom E:\MyStudy\2.work\fastboot>fastboot.exe flash system android4.0.4/x210.img sending 'system' (262144 KB)... OKAY writing 'system'... OKAYUboot打印信息 Received 17 bytes: download:00060000 Starting download of 393216 bytes downloading of 393216 bytes finished Received 16 bytes: flash:bootloader flashing 'bootloader' Writing BL1 to sector 1 (16 sectors).. checksum : 0xed857 writing bootloader.. 49, 1024 MMC write: dev # 0, block # 49, count 1024 ... 1024 blocks written: OK completed partition 'bootloader' flashed Received 17 bytes: download:003b6000 Starting download of 3891200 bytes ... downloading of 3891200 bytes finished Received 12 bytes: flash:kernel flashing 'kernel' writing kernel.. 1073, 8192 MMC write: dev # 0, block # 1073, count 8192 ... 8192 blocks written: OK completed partition 'kernel' flashed Received 17 bytes: download:10000000 Starting download of 268435456 bytes ................................................................................ ................................................................................ ................................................................................ ............... downloading of 268435456 bytes finished Received 12 bytes: flash:system flashing 'system' MMC write: dev # 0, block # 551892, count 529518 ... 529518 blocks written: OK partition 'system' flashed2.3.5烧录LinuxQT //烧写uboot E:\MyStudy\2.work\fastboot>fastboot.exe flash bootloader linuxQT/uboot.bin sending 'bootloader' (384 KB)... OKAY writing 'bootloader'... OKAY//烧Linux Kernel E:\MyStudy\2.work\fastboot>fastboot.exe flash kernel linuxQT/zImage-qt sending 'kernel' (3566 KB)... OKAY writing 'kernel'... OKAY//烧rootfs E:\MyStudy\2.work\fastboot>fastboot.exe flash system linuxQT/rootfs_qt4.ext3 sending 'system' (262144 KB)... OKAY writing 'system'... OKAY2.4DNW工具刷机2.4.1Windows系统下dnw刷机 2.4.1-1、usb启动配合dnw工具下载 开发使用USB启动,需要将OM5打到VCC才可以。 S5PV210的启动过程:开机时先执行内部的iROM中的BL0,然后BL0做了一系列的初始化后,再读取外部OMpin的 设置来确定用户选择了从哪里启动。当检测到我们设置的是USB启动时,S5PV210就会从USB OTG接口试图连接主 机进行下载启动。 2.4.1-2、dnw工具介绍 dnw是一个软件,是三星公司编写的,这个软件的功能是通过USB线连接开发板和电脑主机,然后从主机下载文件 镜像到开发板中去烧录系统。 使用注意1:dnw是需要装usb驱动的,驱动在“X210光盘资料\A盘\tools\USB驱动”目录中 使用注意2:dnw使用时通过usb线下载,所以一定要插USB线。 使用注意3:dnw下载时需要设置dnw下载内存地址。在dnw软件的菜单“Configuration”中设置 Download Address为0xd0020010,确认即可。 2.4.1-3、dnw驱动安装 X210开发板使用了软开关,但是我们这里还没到操作系统没去处理开关,所以在整个裸机实验中必须手工按下 POWER键才能保持开机,只要手一抬起来就关机了···· dnw驱动装好的标志是:开发板开机从usb启动后,设备管理器中显示已经安装的设备,并且关键是dnw工具中USB:OK 2.4.1-4、裸机程序下载地址设置 从usb启动做裸机实验时,因为不需要16字节的校验头,所以直接下载到0xd0020010 2.4.1-5、usb启动裸机实验总结 usb启动方式主要是用来调试程序的,其实分析S5PV210即可知道,我们这里是把裸机程序当作BL1来使用了。 2.4.1-6、板子变砖,DNW USB刷机 场景:uboot下输入错误的命令:movi write u-boot 0x300000000(多一个零),导致无法从emmc启动,串口输出乱码; 从USB启动,串口输出Uart negotiation Error; 1.板子USB连接电脑,将x210_ubs.bin传输到0xd0020010处; 2.待USB状态显示OK,继续将uboot.bin传输到0x23e00000处,此过程电源键不要松开; 3.待串口出现uboot启动信息,进入uboot命令行,使用fastboot重新刷机; 3.1.从SD启动,还是无法启动,串口输出烂码(无提示), 重复上述1/2/3步骤,然后uboot下执行:mw 0x30000000 0x0 0x100000 再执行:movi write u-boot 0x30000000
2.4.2linux系统下dnw刷机 参考:1.fastBoot使用 2.x210(s5pv210 linux)开发板fastboot和SD卡刷机详细教程 3. 烧写工具DNW的使用 4.x210_Fusing_Tool.exeSD固件烧写工具 5.关于S5PV210使用SD卡刷机中出现问题 6.【S5PV210学习笔记】外插SD卡启动程序失败的解决办法 7.u-boot下的内存操作命令mw与md |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |