1

I want to flash a new ROM using the shell. (Need this later to do per app so there is no other way than shell). Here is what I tried

connected to 192.168.1.9:5555
Pauls-MacBook-Pro:~$ adb shell
root@android:/ # su
root@android:/ # flash_image
usage: flash_image partition file.img
root@android:/ # flash_image boot /mnt/sdcard/_updateboot.img
error opening /mnt/sdcard/_updateboot.img: No such file or directory
1|root@android:/ # flash_image boot /mnt/sdcard/_update/boot.img               
root@android:/ # flash_image misc /mnt/sdcard/_update/misc.img                 
root@android:/ # flash_image kernel /mnt/sdcard/_update/kernel.img             
root@android:/ # flash_image recovery /mnt/sdcard/_update/recovery.img         
root@android:/ # flash_image system /mnt/sdcard/_update/system.img             
mtd: write error (No space left on device)
error writing system: No space left on device
1|root@android:/ # flash_image system /mnt/sdcard/_update/system.img           
mtd: write error (No space left on device)
error writing system: No space left on device
1|root@android:/ # reboot

Even if I don't get the No space error it just wouldn't boot (it is a TV dongle, so no HDMI output). Has anyone an idea how to flash ROMs from an ROM?

3
  • 2
    To avoid the "no space left" problem, you could re-pack your image file as described in Removing files from & repackaging CyanogenMod ROM zip files. Though that might not solve your final issue ("not booting"), it should at least help a bit.
    – Izzy
    Commented Nov 28, 2012 at 7:43
  • These aren't zips. There are only .img like boot, kernel, recovery, system ... But I will try to modify them maybe it will work. Commented Nov 28, 2012 at 11:10
  • Might be Yaffs images, in which case you might want to look out for the yaffs2utils or yaffs_tools to handle them.
    – Izzy
    Commented Nov 28, 2012 at 11:48

0

You must log in to answer this question.

Browse other questions tagged .