10/17/2011

mkmmc.sh for TI platform

TI使用mkmmc.sh來切partition和製作image...

之前因為不習慣vmplay外加硬碟要被吃光了...所以只好重灌順便來試試Ubuntu 11.04

但奇怪的是,之後在用mkmmc.sh時竟然沒辦作切parttition,一直說格式錯誤 :

===============
$ sudo ./mkmmc-android.sh /dev/sdc
Assuming Default Locations for Prebuilt Images
All data on /dev/sdc now will be destroyed! Continue? [y/n]
y
[Unmounting all existing partitions on the device ]
umount:/dev/sdc: 未掛載
[Partitioning /dev/sdc...]
磁碟 /dev/sdc 不包含有效的分割表
DISK SIZE - bytes
(standard_in) 1: syntax error
CYLINDERS -
expr: 格式錯誤
[Making filesystems...]
[Copying files...]
mount:特殊裝置 /dev/sdc1 不存在
[Copying START_HERE floder to boot partition]
umount:/dev/sdc1: 找不到
mount:特殊裝置 /dev/sdc2 不存在
umount:/dev/sdc2: 找不到
[Copying all clips to data partition]
mount:特殊裝置 /dev/sdc3 不存在
umount:/dev/sdc3: 找不到
[Done]
===============

當初還以為是Ubuntu 11.04的問題勒....

在細看script之後,才發現是因為 awk 要去取得fdisk print出來的資料,但因為語系的問題而造成擷取錯誤....

只要把語系改成英文就好了

$ export LANG=C

2 comments:

  1. 感謝你!這個問題困擾我好久~ Zerget

    ReplyDelete
  2. 我也是ㄡ....真的是要問對人!!

    ReplyDelete