On Tue, Mar 08, 2011 at 03:10:56PM +0800, Shawn Guo wrote:
Hi Zygmunt,
On Mon, Mar 07, 2011 at 02:19:41PM +0100, Zygmunt Bazyli Krynicki wrote:
This will most lokalu not help. Try my hacking branch of linaro-image-tools. I had the same problem as you and I added a workaround.
Thanks. But using your branch make it fail at some other place.
--- quote begin --- [...] Ign http://ports.ubuntu.com natty/main Translation-en Ign http://ports.ubuntu.com natty/universe Translation-en Ign http://ports.ubuntu.com natty-updates/main Translation-en Ign http://ports.ubuntu.com natty-updates/universe Translation-en Fetched 15.0 MB in 10min 34s (23.6 kB/s) W: Failed to fetch bzip2:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_natty_universe_binary-armel_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead. Cleaning up ...Done [sudo] password for r65073: proc umounted Traceback (most recent call last): File "/home/r65073/repos/linaro/lmc/hacking/linaro-media-create", line 128, in <module> ROOTFS_DIR, TMP_DIR, lmc_dir, args.hwpack_force_yes, *hwpacks) File "/home/r65073/repos/linaro/lmc/hacking/linaro_media_create/hwpack.py", line 58, in install_hwpacks install_hwpack(chroot_dir, hwpack_file, hwpack_force_yes) File "/home/r65073/repos/linaro/lmc/hacking/linaro_media_create/hwpack.py", line 78, in install_hwpack cmd_runner.run(args, as_root=True).wait() File "/home/r65073/repos/linaro/lmc/hacking/linaro_media_create/cmd_runner.py", line 65, in wait raise SubcommandNonZeroReturnValue(self._my_args, returncode) linaro_media_create.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['sudo', 'chroot', '/tmp/tmp6xLw4j/binary', 'linaro-hwpack-install', '/hwpack_linaro-imx51_20110302-0_armel_unsupported.tar.gz']" returned a non-zero value: 100 --- quote end ---
By looking the workaround on the hacking branch, I changed the sleep(1) to sleep(5) in /usr/share/pyshared/linaro_media_create/partitions.py, and almost made it, but sadly it still fails at the last step.
--- quote begin --- proc umounted Checking that no-one is using this disk right now ... OK 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)
Formating root partition
mke2fs 1.41.12 (17-May-2010) Filesystem label=rootfs OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 237104 inodes, 947835 blocks 47391 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=973078528 29 block groups 32768 blocks per group, 32768 fragments per group 8176 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. 162+1 records in 162+1 records out 166624 bytes (167 kB) copied, 0.0412763 s, 4.0 MB/s mkimage: Write error on /tmp/tmpXkyS2N/boot-disc/uImage: Success Traceback (most recent call last): File "/usr/bin/linaro-media-create", line 134, in <module> args.device, args.is_live, args.is_lowmem, args.consoles) File "/usr/lib/pymodules/python2.6/linaro_media_create/populate_boot.py", line 57, in populate_boot boot_disk, boot_script, boot_device_or_file) File "/usr/lib/pymodules/python2.6/linaro_media_create/boards.py", line 118, in make_boot_files boot_device_or_file) File "/usr/lib/pymodules/python2.6/linaro_media_create/boards.py", line 312, in _make_boot_files cls.load_addr, uboot_parts_dir, cls.kernel_suffix, boot_dir) File "/usr/lib/pymodules/python2.6/linaro_media_create/boards.py", line 389, in make_uImage 'kernel', load_addr, load_addr, 'Linux', img_data, img) File "/usr/lib/pymodules/python2.6/linaro_media_create/boards.py", line 363, in _run_mkimage proc.wait() File "/usr/lib/pymodules/python2.6/linaro_media_create/cmd_runner.py", line 65, in wait raise SubcommandNonZeroReturnValue(self._my_args, returncode) linaro_media_create.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['sudo', 'mkimage', '-A', 'arm', '-O', 'linux', '-T', 'kernel', '-C', 'none', '-a', '0x90008000', '-e', '0x90008000', '-n', 'Linux', '-d', '/tmp/tmpXkyS2N/binary/boot/vmlinuz-2.6.38-1000-linaro-mx51', '/tmp/tmpXkyS2N/boot-disc/uImage']" returned a non-zero value: 1 --- quote end ---