http://www.eefocus.com/marianna/blog/13-08/296604_ef4b2.html
Linux系统使用fdisk/dd命令替代SD-Flasher
给SD分区,使用PM9或都fdisk都可以,fdisk参考上面文章,经实践SD卡都可以,20~30块钱的C2, C4卡完全可以使用,友善淘宝上买100块的卡太吭了,性好没买,在家随便找了个C2的卡也可以正常使用,速度还很快,毕竟Uboot.bin或者SuperBoot.bin就那么小,不会卡的。而且linux完全可以笔记本自代的读卡器,不用再买读卡器了,SD-Flasher在XP下完全不认识笔记本自代的SD读卡器。
分区时前面留下空白空间不要使用,这部分空间用来烧写UBoot.bin或者SuperBoot.bin. 大小大概50M左右吧,不放心就留100M吧。剩下的分一个fat32分区。
查看设备及分区情况
sudo fdisk -l
Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
255 heads, 63 sectors/track, 966 cylinders, total 15523840 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 96390 15502724 7703167+ b W95 FAT32
镜像写入SD卡:
sudo dd iflag=dsync oflag=dsync if=Superboot21.bin of=/dev/mmcblk0 seek=1
sync
注意我的SD设备是/dev/mmcblk0,注意查看fdisk -l显示及磁盘大小,别搞错了,把自己硬盘分了就完蛋了。
同样可以写入UBoot
sudo dd iflag=dsync oflag=dsync if=tiny210v2-uboot.bin of=/dev/mmcblk0 seek=1
sync
写完后SD插入Smart210,切换从SD卡启动
Rset或者断电再上电,就可以从mimicom访问Uboot了
显示:
BL1 Ver:1307020
Start cp
Running!
K
U-Boot 2013.01-rc2-g5654154-dirty (Sep 08 2013 - 22:53:59) for TINY210(Nand:K9G)
CPU: S5PC110@1000MHz
Board: FriendlyARM-TINY210
DRAM: 512 MiB
WARNING: Caches not enabled
PWM Moudle Initialized.
GPD0CON : 1111, GPD0DAT : e
NAND: 512 MiB
MMC: SAMSUNG SD/MMC: 0, SAMSUNG SD/MMC: 1
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: dm9000
checking mode for fastboot ...
fastboot_preboot() = 0
checking mode for fastboot ...
Hit any key to stop autoboot: 0
[Ver130726-TINY210v2]#
进入UBoot命令行,输入: printenv
显示:
[Ver130726-TINY210v2]#
baudrate=115200
bootcmd=nand read C0008000 100000 500000; bootm C0008000
bootdelay=3
ethact=dm9000
ethaddr=00:40:5c:26:0a:5b
gatewayip=192.168.1.1
ipaddr=192.168.1.230
netmask=255.255.255.0
serverip=192.168.1.229
stderr=serial
stdin=serial
stdout=serial
Environment size: 279/16380 bytes
UBoot镜像从这里获取:http://www.arm9home.net/read.php?tid-80476.html
或者附件中的也可以。
自己以前玩过都不记得了, 再把板子拿出玩,搜索发现了自己写已经刷过uboot了
另外我又找了一新版本的:http://blog.csdn.net/liukun321/article/details/7422627