ti的技术支持和论坛上的大牛们,现在我这边通过SD卡烧写镜像到emmc中,一直烧写不成功,我的做法是通过SD卡进入到系统下面后,手动执行脚本的做法,不是设置的开机自启动来烧写的,手动执行脚本的打印信息如下:各位帮忙看看!有提示sfdisk的问题!不知道各位烧写成功的打印信息是啥样的!
****************************************************
1+0 records out
4096 bytes (4.0KB) copied, 0.002079 seconds, 1.9MB/s
./debrick.sh: line 49: bc: not found
No partition found. Continuing.
Partitioning the eMMC…
sfdisk: invalid option — 'D'
sfdisk [options] <dev> [[-N] <part>]
sfdisk [options] <command>
-A, –activate <dev> [<part> …] list or set bootable MBR partitions
-d, –dump <dev> dump partition table (usable for later input)
-J, –json <dev> dump partition table in JSON format
-g, –show-geometry [<dev> …] list geometry of all or specified devices
-l, –list [<dev> …] list partitions of each device
-F, –list-free [<dev> …] list unpartitions free areas of each device
-r, –reorder <dev> fix partitions order (by start offset)
-s, –show-size [<dev> …] list sizes of all or specified devices
-T, –list-types print the recognized types (see -X)
-V, –verify [<dev> …] test whether partitions seem correct
–delete <dev> [<part> …] delete all or specified partitions
–part-type <dev> <part> [<type>] print or change partition type
–part-uuid <dev> <part> [<uuid>] print or change partition uuid
–part-attrs <dev> <part> [<str>] print or change partition attributes
<part> partition number
<type> partition type, GUID for GPT, hex for MBR
-a, –append append partitions to existing partition table
-b, –backup backup partition table sectors (see -O)
–bytes print SIZE in bytes rather than in human readable format
–move-data[=<typescript>] move partition data after relocation (requires -N)
-f, –force disable all consistency checking
–color[=<when>] colorize output (auto, always or never)
colors are enabled by default
-N, –partno <num> specify partition number
-n, –no-act do everything except write to device
–no-reread do not check whether the device is in use
-O, –backup-file <path> override default backup file name
-o, –output <list> output columns
-q, –quiet suppress extra info messages
-w, –wipe <mode> wipe signatures (auto, always or never)
-X, –label <name> specify label type (dos, gpt, …)
-Y, –label-nested <name> specify nested label type (dos, bsd)
-L, –Linux deprecated, only for backward compatibility
-u, –unit S deprecated, only sector unit is supported
-v, –version output version information and exit
gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S
Start-C/H/S
bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
sgi: Device Start End Sectors Cylinders Size Type Id Attrs
sun: Device Start End Sectors Cylinders Size Type Id Flags
No partition found. Continuing.
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.000356 seconds, 1.4MB/s
Formatting the eMMC into 2 partitions…
mkfs.vfat: image is too small
/sbin/mkfs.ext3: line 1: X: not found
/sbin/mkfs.ext3: line 1: ELF: not found
/sbin/mkfs.ext3: line 2: syntax error: unexpected word (expecting ")")
Formatting done.
mount: mounting /dev/loop0 on tmp_boot failed: Invalid argument
mount: mounting /dev/mmcblk1p2 on tmp_rootfs failed: No such file or directory
Copying Files…
real 0m 0.76s
user 0m 0.59s
sys 0m 0.16s
umount: can't umount /dev/mmcblk1p1: Invalid argument
Boot partition done.
real 0m 0.01s
user 0m 0.00s
sys 0m 0.01s
umount: can't umount /dev/mmcblk1p2: No such file or directory
RootFS partition done.
It took 5 seconds to complete this task…
Sitara Example Flash Script is complete.
yunbo zhang:
另外还有一个想法是通过SD卡进入到系统下面后,手动来对emmc进行分区,使用的工具是fdisk,把emmc分为2个分区,一个是mmcblk1p1和mmcblk1p2,然后分别格式化为vfat和ext3,然后在/mnt目录下分别建立两个文件夹,分别挂载这两个分区,然后mmcblk1p1通过tftp把MLO,u-boot.img,am335x-boneblack.dtb,uImage这几个文件下载到挂载的文件夹中,mmcblk1p2通过tftp把rootfs下载到挂载的文件夹中,这样算不算烧写好了?
Jian Zhou:
回复 yunbo zhang:
不知道您有没有看过这篇文档,这里有对SD卡烧写eMMC方法的描述:
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/73278.aspx
yunbo zhang:
回复 Jian Zhou:
已经下载了这个pdf,这里面关于SD卡烧写的,我就是按照上面的来操作的,打印信息就是上面的!
Lu Simon:
回复 Jian Zhou:
請問您那篇文檔有提到 将 SD 卡上文件系统中的/etc/init.d/fetcher.sh 修改,但是我沒有這個檔案(fetcher.sh)??請問該怎麼處理與修改?謝謝您!
PS : 我用的SDK : ti-processor-sdk-linux-am335x-evm-02.00.00.00-Linux-x86-Install
yunbo zhang:
回复 Lu Simon:
其实就是一个启动脚本,就自己手动分区也可以,效果一样!
Lu Simon:
回复 yunbo zhang:
非常感謝!!
Jian Zhou:
回复 Lu Simon:
如果脚本执行不成功,可以手动执行下,看看哪里出的问题,有可能是权限不够。
user1810729:
回复 Jian Zhou:
前提:
1. SDK版本:ti-processor-sdk-linux-am335x-evm-04.03.00.05
2. 硬件版本:BBB REV C
3.SD卡(MMC0)启动系统一切正常,
Q:现在打算将SD卡中的程序烧写到EMMC,遇到了楼上一样的问题
在执行./debrick.sh其中的一段脚本时,
sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE << EOF,9,0x0C,*10,,,-EOF报错sfdisk: invalid option — 'D'
sfdisk工具已经不支持-D的option了?
我单独执行
sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE << EOF,9,0x0C,*10,,,-EOF 也报同样的错。希望能有回复,谢谢!
TI中文支持网