Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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?

share|improve this question
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 Nov 28 '12 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. –  bluewhile Nov 28 '12 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 Nov 28 '12 at 11:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.