Hello,
I am trying to emulate beagleboard in qemu. I am using linaro 11.08 releases of nano rootfs and hwpack (this release is dated as on 2011/08/23) and the version of linaro-media-create I am using is 2012.06. After I run the following command, I do get a image generated but with the following error. Due to this error after I run the image, I cannot mount the image. I have pasted everything from the terminal till the end after I get the error.
*$ sudo linaro-media-create --image_file beagle_sd.img --dev beagle --binary nano-n-tar-20110823-1.tar.gz --hwpack hwpack_linaro-omap3_20110823-0_armel_supported.tar.gz*
*proc has been unmounted Sleeping for 1 second(s) to wait for the partition to settle Disk beagle_sd.img: cannot get geometry
sfdisk: ERROR: sector 0 does not have an msdos signature beagle_sd.img: unrecognized partition table type No partitions found Warning: beagle_sd.img is not a block device Disk beagle_sd.img: cannot get geometry
sfdisk: ERROR: sector 0 does not have an msdos signature beagle_sd.img: unrecognized partition table type No partitions found Warning: partition 1 does not end at a cylinder boundary BLKRRPART: Inappropriate ioctl for device 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).) Sleeping for 1 second(s) to wait for the partition to settle Disk beagle_sd.img: cannot get geometry start: (c,h,s) expected (0,1,1) found (0,1,32) end: (c,h,s) expected (6,160,25) found (25,127,31) start: (c,h,s) expected (6,160,27) found (26,0,1) end: (c,h,s) expected (391,159,24) found (1023,127,32) partition ends on cylinder 1023, beyond the end of the disk
Formating boot partition
mkfs.vfat 3.0.12 (29 Oct 2011) Loop device does not match a floppy size, using default hd params
Formating root partition
mke2fs 1.42 (29-Nov-2011) Filesystem label=rootfs OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 193536 inodes, 773120 blocks 38656 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=792723456 24 block groups 32768 blocks per group, 32768 fragments per group 8064 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912
Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done
`/tmp/tmpKKLnZe/binary/usr/lib/u-boot/omap3_beagle/u-boot.bin' -> `/tmp/tmpKKLnZe/boot-disc/u-boot.bin' `/tmp/tmpKKLnZe/binary/usr/lib/x-loader/omap3530beagle/MLO' -> `/tmp/tmpKKLnZe/boot-disc/MLO' Image Name: Linux Created: Fri Oct 19 17:03:27 2012 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3836224 Bytes = 3746.31 kB = 3.66 MB Load Address: 80008000 Entry Point: 80008000 Image Name: initramfs Created: Fri Oct 19 17:03:27 2012 Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 1853452 Bytes = 1810.01 kB = 1.77 MB Load Address: 00000000 Entry Point: 00000000 Image Name: boot script Created: Fri Oct 19 17:03:27 2012 Image Type: ARM Linux Script (uncompressed) Data Size: 444 Bytes = 0.43 kB = 0.00 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 436 Bytes = 0.43 kB = 0.00 MB `/tmp/tmpKKLnZe/boot-disc/boot.scr' -> `/tmp/tmpKKLnZe/boot-disc/boot.ini'
Populating rootfs partition Be patient, this may take a few minutes
Creating /etc/flash-kernel.conf
Updating /etc/network/interfaces
Done creating Linaro image on beagle_sd.img pshah9@ubuntu:~/Downloads/image$ *
I know this bug has been reported and the patch has been released by Guilherme (bug # 701678 and here is the link to the patch file https://launchpadlibrarian.net/62892999/udisks.diff ). The linaro-image-tools version that the patch was released was for 0.4.2 but this error still persist in 2012.06. And, I also tried if I can apply this patch on my linaro-media-tool version, but I keep on getting error as the source code has changed and so patch cant be applied.
And, there was another bug reported for linaro-image-tools that occurs with the same command. This is not a error but it is warning about /bin/df (bug # 651918): *$ sudo linaro-media-create --image_file beagle_sd.img --dev beagle --binary nano-n-tar-20110823-1.tar.gz --hwpack hwpack_linaro-omap3_20110823-0_armel_supported.tar.gz
**/bin/df: Warning: cannot read table of mounted file systems: No such file or directory* * *I get this warning little bit before the above error. I couldn't find any solution for this problem as this bug remains unassigned on launchpad.netwebsite.
So, can you please tell me how can I download the linaro-media-tool version that was released after 0.4.2 and contains the above patch or if possible a new patch for 2012.06? I am writing this email directly to this list as I am using it for my thesis and wanted to get it solved as fast as possible.
Tejas