iMX53 : Android image creation on SD card fails

Bug #898550 reported by Abhishek Paliwal
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Critical
Guilherme Salgado

Bug Description

Description:
==========
Creating Android image on sd card fails.
Error message: " No space left on device"

Reproducible:
===========
Yes, 5/5 time

IMPACT:
========
Can't get started with Android image on iMX53

Steps:
==========
1.Download : system.tar.bz2 , boot.tar.bz2 and userdata.tar.bz2
from: https://android-build.linaro.org/builds/~linaro-android/staging-imx53/#build=86

2. download latest l-a-m-c tool
bzr branch lp:linaro-image-tools

3. Connect SD card to host machine(detected as /mnt/sdb in my case) and run command:

./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev mx53loco --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2

OR

./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev iMX53 --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2

Issue:
Image creation failed at:
211344 bytes (211 kB) copied, 0.0865144 s, 2.4 MB/s
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/fr-FR_nk0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/fr-FR_ta.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/de-DE_gl0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/en-GB_kh0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/en-US_lh0_sg.bin': No space left on device

Hardware:
==========
8GB SD card /tried with 16GB sd card as well.

Software:
==========
https://android-build.linaro.org/builds/~linaro-android/staging-imx53/#build=86

Logs:
======
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev mx53loco --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2

I see...
Device Mount point Size
/dev/sda none 238475MB
/dev/sda1 / 234483MB
/dev/sda2 none 3990MB
/dev/sda5 none 3990MB
/dev/sdb none 15193MB
/dev/sdc none 0MB
/dev/sdd none 0MB
/dev/sr0 none 0MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
Checking that no-one is using this disk right now ...
OK
Warning: bad partition start (earliest 794625)
Warning: partition 4 does not end at a cylinder boundary
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

Formating boot partition

mkfs.vfat 3.0.9 (31 Jan 2010)
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=userdata
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 524272 blocks
26213 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
64 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=cache
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262128 blocks
13106 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
32 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=system
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
32 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
mkfs.vfat 3.0.9 (31 Jan 2010)
Image Name: boot script
Created: Wed Nov 30 20:37:03 2011
Image Type: ARM Linux Script (uncompressed)
Data Size: 357 Bytes = 0.35 kB = 0.00 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
   Image 0: 349 Bytes = 0.34 kB = 0.00 MB
412+1 records in
412+1 records out
211344 bytes (211 kB) copied, 0.0865144 s, 2.4 MB/s
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/fr-FR_nk0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/fr-FR_ta.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/de-DE_gl0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/en-GB_kh0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/en-US_lh0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/it-IT_cm0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/es-ES_zl0_sg.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/tts/lang_pico/de-DE_ta.bin': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_045e_Product_028e.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_046d_Product_c532.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_046d_Product_c299.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_046d_Product_c294.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/qwerty.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_046d_Product_c216.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_05ac_Product_0239.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_22b8_Product_093d.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Vendor_054c_Product_0268.kl': No space left on device
mv: writing `/tmp/tmpt5F9W9/system-disc/usr/keylayout/Generic.kl': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/usr/share': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/usr/icu': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/usr/idc': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/usr/keychars': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/usr/srec': No space left on device
mv: cannot create directory `/tmp/tmpt5F9W9/system-disc/xbin': No space left on device
Traceback (most recent call last):
  File "./linaro-image-tools/linaro-android-media-create", line 145, in <module>
    populate_partition(SYSTEM_DIR + "/system", SYSTEM_DISK, system_partition)
  File "/home/user1/Downloads/11.11/celanup/staging-imx53/86/again/linaro-image-tools/linaro_image_tools/media_create/rootfs.py", line 32, in populate_partition
    move_contents(content_dir, root_disk)
  File "/home/user1/Downloads/11.11/celanup/staging-imx53/86/again/linaro-image-tools/linaro_image_tools/media_create/rootfs.py", line 151, in move_contents
    cmd_runner.run(mv_cmd, as_root=True).wait()
  File "/home/user1/Downloads/11.11/celanup/staging-imx53/86/again/linaro-image-tools/linaro_image_tools/cmd_runner.py", line 100, in wait
    raise SubcommandNonZeroReturnValue(self._my_args, returncode)
linaro_image_tools.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['sudo', '-E', 'mv', '/tmp/tmpt5F9W9/system/system/app', '/tmp/tmpt5F9W9/system/system/bin', '/tmp/tmpt5F9W9/system/system/build.prop', '/tmp/tmpt5F9W9/system/system/etc', '/tmp/tmpt5F9W9/system/system/fonts', '/tmp/tmpt5F9W9/system/system/framework', '/tmp/tmpt5F9W9/system/system/include', '/tmp/tmpt5F9W9/system/system/lib', '/tmp/tmpt5F9W9/system/system/media', '/tmp/tmpt5F9W9/system/system/modules', '/tmp/tmpt5F9W9/system/system/share', '/tmp/tmpt5F9W9/system/system/tts', '/tmp/tmpt5F9W9/system/system/usr', '/tmp/tmpt5F9W9/system/system/xbin', '/tmp/tmpt5F9W9/system-disc']" returned a non-zero value: 1

==========

Related branches

description: updated
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

Some more inputs:
1. Tried creating images for other hardwares with same LAMC tools ( panda,origen,snowball_sd - work fine.)
2. Tried creating 11.09 images with old LAMC tools(the one's for 11.09 official RC) - works fine
3. Copied 11.09 LAMC tools to 11.11 build - does not work- same issue

Revision history for this message
Mattias Backman (mabac) wrote :

From the comments here and in bug 900106 I gather that the same procedure works for the other builds, which makes me more inclined to believe that this is a regression in the image rather than l-i-t.

We get the same results with --image-file so it's not related to the sd card.

Changed in linaro-image-tools:
importance: Undecided → Critical
Revision history for this message
Guilherme Salgado (salgado) wrote :

The system tarball in https://android-build.linaro.org/builds/~linaro-android/staging-imx53/#build=81 has 101MB whereas the one in build #86 has 127MB. When unpacked, the tarball from build#86 uses 260780KB and the default system partition created by AndroidBoardConfig seems to be too small for that. It works for other boards and for previous imx53 builds because their system tarball is significantly smaller

Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: none → 11.12
assignee: nobody → Zach Pfeffer (pfefferz)
Changed in linaro-image-tools:
assignee: nobody → Guilherme Salgado (salgado)
status: New → In Progress
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Mattias Backman (mabac) wrote : Re: [Bug 898550] Re: iMX53 : Android image creation on SD card fails

On Tue, Dec 6, 2011 at 3:39 AM, Botao Sun <email address hidden> wrote:
> Observed on build 92: https://android-build.linaro.org/builds/~linaro-
> android/staging-imx53/#build=92

Could you try again using the linked branch?

Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :
Changed in linaro-image-tools:
milestone: none → 2011.12
Revision history for this message
Fathi Boudra (fboudra) wrote :
Changed in linaro-image-tools:
status: In Progress → Fix Committed
Fathi Boudra (fboudra)
no longer affects: linaro-android
Fathi Boudra (fboudra)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
Revision history for this message
Christian Unhold (unhold) wrote :

I have the same problem with the 2012.03 release and oneiric, panda from https://launchpad.net/linaro-image-tools/trunk/2012.03/+download/linaro-image-tools-2012.03.tar.gz

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.