linaro-media-create exits with ValueError building graphical engineering image for ux500

Bug #737173 reported by Jesse Barker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
High
Lee Jones

Bug Description

jesse@jesse-desktop:~/lmc$ linaro-media-create --rootfs ext3 --mmc /dev/sdb --binary images/linaro-n-graphical-engineering-tar-20110317-0.tar.gz --hwpack hwpacks/u8500/hwpack_linaro-u8500_20110317-0_armel_unsupported.tar.gz --dev ux500

I see...
Device Mount point Size
/dev/sda none 305245MB
/dev/sr0 none 0MB
/dev/sdd none 0MB
/dev/sde none 0MB
/dev/sda1 / 296503MB
/dev/sda2 none 8740MB
/dev/sdc none 0MB
/dev/sdb none 7592MB
/dev/sda5 none 8740MB
/dev/sdb1 /media/1CC2-775B 7588MB
Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
[sudo] password for jesse:
------------------------------------------------------------
Installing (apt-get) hwpack_linaro-u8500_20110317-0_armel_unsupported.tar.gz in target rootfs.
Unpacking hardware pack ...Done
Updating apt package lists ...
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Ign file: ./ Translation-en
Ign http://ports.ubuntu.com natty InRelease
Ign http://ports.ubuntu.com natty-security InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ports.ubuntu.com natty-updates InRelease
Get:1 http://ports.ubuntu.com natty Release.gpg [198 B]
Get:2 http://ppa.launchpad.net natty Release.gpg [316 B]
Hit http://ports.ubuntu.com natty-security Release.gpg
Hit http://ppa.launchpad.net natty Release.gpg
Hit http://ports.ubuntu.com natty-updates Release.gpg
Get:3 http://ppa.launchpad.net natty Release [9781 B]
Get:4 http://ports.ubuntu.com natty Release [39.8 kB]
Hit http://ppa.launchpad.net natty Release
Ign http://ppa.launchpad.net natty Release
Hit http://ports.ubuntu.com natty-security Release
Hit http://ports.ubuntu.com natty-updates Release
Get:5 http://ppa.launchpad.net natty/main armel Packages [1787 B]
Get:6 http://ports.ubuntu.com natty/main armel Packages [1553 kB]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Get:7 http://ppa.launchpad.net natty/main armel Packages [7424 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Get:8 http://ports.ubuntu.com natty/universe armel Packages [5865 kB]
Ign http://ports.ubuntu.com natty/main TranslationIndex
Ign http://ports.ubuntu.com natty/universe TranslationIndex
Get:9 http://ports.ubuntu.com natty-security/main armel Packages [14 B]
Get:10 http://ports.ubuntu.com natty-security/universe armel Packages [14 B]
Ign http://ports.ubuntu.com natty-security/main TranslationIndex
Ign http://ports.ubuntu.com natty-security/universe TranslationIndex
Get:11 http://ports.ubuntu.com natty-updates/main armel Packages [14 B]
Get:12 http://ports.ubuntu.com natty-updates/universe armel Packages [14 B]
Ign http://ports.ubuntu.com natty-updates/main TranslationIndex
Ign http://ports.ubuntu.com natty-updates/universe TranslationIndex
Ign http://ports.ubuntu.com natty/main Translation-en
Ign http://ports.ubuntu.com natty/universe Translation-en
Ign http://ports.ubuntu.com natty-security/main Translation-en
Ign http://ports.ubuntu.com natty-security/universe Translation-en
Ign http://ports.ubuntu.com natty-updates/main Translation-en
Ign http://ports.ubuntu.com natty-updates/universe Translation-en
Fetched 7477 kB in 53s (139 kB/s)
Reading package lists...
W: GPG error: http://ppa.launchpad.net natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F66626F405361FB7
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  devio flash-kernel linux-image-2.6.35-1000-u8500 linux-u8500
  u-boot-linaro-u8500 wireless-crda
0 upgraded, 6 newly installed, 0 to remove and 71 not upgraded.
Need to get 0 B/3333 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  wireless-crda linux-image-2.6.35-1000-u8500 devio flash-kernel linux-u8500
  u-boot-linaro-u8500
Install these packages without verification [y/N]? y
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package wireless-crda.
(Reading database ... 114663 files and directories currently installed.)
Unpacking wireless-crda (from .../wireless-crda_1.13_armel.deb) ...
Selecting previously deselected package linux-image-2.6.35-1000-u8500.
Unpacking linux-image-2.6.35-1000-u8500 (from .../linux-image-2.6.35-1000-u8500_2.6.35-1000.4_armel.deb) ...
Done.
Selecting previously deselected package devio.
Unpacking devio (from .../devio_1.2-1build1_armel.deb) ...
Selecting previously deselected package flash-kernel.
Unpacking flash-kernel (from .../flash-kernel_2.28ubuntu17_armel.deb) ...
Selecting previously deselected package linux-u8500.
Unpacking linux-u8500 (from .../linux-u8500_2.6.35.1000.6_armel.deb) ...
Selecting previously deselected package u-boot-linaro-u8500.
Unpacking u-boot-linaro-u8500 (from .../u-boot-linaro-u8500_2010.12-0ubuntu1+ppa2_armel.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up wireless-crda (1.13) ...
Setting up linux-image-2.6.35-1000-u8500 (2.6.35-1000.4) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-1000-u8500
/bin/df: Warning: cannot read table of mounted file systems: No such file or directory
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-1000-u8500 /boot/vmlinuz-2.6.35-1000-u8500
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-1000-u8500 /boot/vmlinuz-2.6.35-1000-u8500
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-1000-u8500 /boot/vmlinuz-2.6.35-1000-u8500
Setting up devio (1.2-1build1) ...
Setting up flash-kernel (2.28ubuntu17) ...
Setting up linux-u8500 (2.6.35.1000.6) ...
Setting up u-boot-linaro-u8500 (2010.12-0ubuntu1+ppa2) ...
Done
Cleaning up ...W: GPG error: http://ppa.launchpad.net natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F66626F405361FB7
Done
------------------------------------------------------------
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
481440 inodes, 1923783 blocks
96189 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1971322880
59 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
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 280, 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 386, in make_uImage
    '%s/vmlinuz-*-%s' % (uboot_parts_dir, suffix))
  File "/usr/lib/pymodules/python2.6/linaro_media_create/boards.py", line 377, in _get_file_matching
    "No files found matching '%s'; can't continue" % regex)
ValueError: No files found matching '/tmp/tmpfZdyNF/binary/boot/vmlinuz-*-ux500'; can't continue

Related branches

Revision history for this message
James Westby (james-w) wrote :

The LT hwpack no longer contains the kernel name that linaro-image-tools expects.

http://lists.linaro.org/pipermail/linaro-dev/2011-March/002969.html

was where I think this was raised.

I'm unsure of how to proceed here until we hear back from the landing team.

Thanks,

James

Changed in linaro-image-tools:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.4.4
Loïc Minier (lool)
Changed in linaro-image-tools:
assignee: nobody → Lee Jones (lag)
status: Triaged → In Progress
Revision history for this message
Lee Jones (lag) wrote :

I have submitted a patch to correct this behaviour.

Revision history for this message
Loïc Minier (lool) wrote :

Yup; was just updating the bug to reflect that you had provided a branch; thanks

Loïc Minier (lool)
Changed in linaro-image-tools:
status: In Progress → Fix Committed
Revision history for this message
Loïc Minier (lool) wrote :
Mattias Backman (mabac)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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