Firefox OSをビルドしてZTE Openに書き込んだけど起動しない場合の対処法

ZTE Open(inari)用にFirefox OSを自分でビルドして、flash.shの実行時に以下のようなエラーが出る場合、/out/target/product/inari/配下にboot.imgが無い可能性がある。

mikamikuh@mikaubuntu:~/project/firefox/B2G$ sudo ./flash.sh
< waiting for device >
erasing 'cache'...
...
finished. total time: 0.002s
Attempting to set the time on the device
time 1392659912 -> 1392659912.0
settimeofday failed Bad file number

その場合、以下のサイトからboot.imgをダウンロードする。

* https://mega.co.nz/#!uJ52xZJa!M_YwAEXRwifN21QmQbHgNCcEc5Ml2CKw57IBGxnvdm4

ダウンロードしたファイルをboot.imgにリネームし、先程のパスに配置する。
あとは./flash.shを実行し、以下のようになればおそらくFirefox OSが起動する。

mikamikuh@mikaubuntu:~/project/firefox/B2G$ sudo ./flash.sh
< waiting for device >
erasing 'cache'...
...
finished. total time: 0.002s
Attempting to set the time on the device
time 1392659912 -> 1392659912.0
settimeofday failed Bad file number