'AssertionError: Couldn't find the SPL file' when writing origen image

Bug #844207 reported by Paul Larson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Critical
Mattias Backman

Bug Description

linaro-image-tools:
  Installed: 2011.08-0ubuntu1~linaro2
------------

$ sudo linaro-media-create --hwpack hwpack_linaro-lt-origen_20110907-0_armel_supported.tar.gz --binary nano-n-tar-20110907-0.tar.gz --image_file origen.img --dev origen
------------------------------------------------------------
Installing (linaro-hwpack-install) hwpack_linaro-lt-origen_20110907-0_armel_supported.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://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ports.ubuntu.com natty InRelease
Ign http://ports.ubuntu.com natty-security InRelease
Ign http://ports.ubuntu.com natty-updates InRelease
Get:1 http://ppa.launchpad.net natty Release.gpg [316 B]
Get:2 http://ports.ubuntu.com natty Release.gpg [198 B]
Get:3 http://ports.ubuntu.com natty-security Release.gpg [198 B]
Get:4 http://ppa.launchpad.net natty Release.gpg [316 B]
Get:5 http://ports.ubuntu.com natty-updates Release.gpg [198 B]
Get:6 http://ppa.launchpad.net natty Release [9778 B]
Get:7 http://ports.ubuntu.com natty Release [39.8 kB]
Ign http://ppa.launchpad.net natty Release
Get:8 http://ppa.launchpad.net natty Release [9753 B]
Get:9 http://ports.ubuntu.com natty-security Release [31.4 kB]
Get:10 http://ports.ubuntu.com natty-updates Release [31.4 kB]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Get:11 http://ports.ubuntu.com natty/main armel Packages [1957 kB]
Get:12 http://ppa.launchpad.net natty/main armel Packages [53.8 kB]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Get:13 http://ppa.launchpad.net natty/main armel Packages [3697 B]
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Get:14 http://ports.ubuntu.com natty/universe armel Packages [7568 kB]
Ign http://ports.ubuntu.com natty/main TranslationIndex
Ign http://ports.ubuntu.com natty/universe TranslationIndex
Get:15 http://ports.ubuntu.com natty-security/main armel Packages [211 kB]
Get:16 http://ports.ubuntu.com natty-security/universe armel Packages [36.8 kB]
Ign http://ports.ubuntu.com natty-security/main TranslationIndex
Ign http://ports.ubuntu.com natty-security/universe TranslationIndex
Get:17 http://ports.ubuntu.com natty-updates/main armel Packages [386 kB]
Get:18 http://ports.ubuntu.com natty-updates/universe armel Packages [106 kB]
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 10.4 MB in 45s (231 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 1A9630052802CCC9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  devio flash-kernel hwpack-linaro-lt-origen linux-image-3.0.0-1000-origen linux-image-linaro-lt-origen u-boot-linaro-origen
  wireless-crda
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4069 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-3.0.0-1000-origen devio flash-kernel u-boot-linaro-origen linux-image-linaro-lt-origen
  hwpack-linaro-lt-origen
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 ... 8852 files and directories currently installed.)
Unpacking wireless-crda (from .../wireless-crda_1.13_armel.deb) ...
Selecting previously deselected package linux-image-3.0.0-1000-origen.
Unpacking linux-image-3.0.0-1000-origen (from .../linux-image-3.0.0-1000-origen_3.0.0-1000.0samsung5_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.28ubuntu19linaro2_armel.deb) ...
Selecting previously deselected package u-boot-linaro-origen.
Unpacking u-boot-linaro-origen (from .../u-boot-linaro-origen_2011.06-samsung5_armel.deb) ...
Selecting previously deselected package linux-image-linaro-lt-origen.
Unpacking linux-image-linaro-lt-origen (from .../linux-image-linaro-lt-origen_3.0.0.1000.4_armel.deb) ...
Selecting previously deselected package hwpack-linaro-lt-origen.
Unpacking hwpack-linaro-lt-origen (from .../hwpack-linaro-lt-origen_20110907-0_armel.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up wireless-crda (1.13) ...
Setting up linux-image-3.0.0-1000-origen (3.0.0-1000.0samsung5) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-3.0.0-1000-origen
/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 3.0.0-1000-origen /boot/vmlinuz-3.0.0-1000-origen
Setting up devio (1.2-1build1) ...
Setting up flash-kernel (2.28ubuntu19linaro2) ...
Setting up u-boot-linaro-origen (2011.06-samsung5) ...
Setting up linux-image-linaro-lt-origen (3.0.0.1000.4) ...
Setting up hwpack-linaro-lt-origen (20110907-0) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
devio set to automatically installed.
flash-kernel set to automatically installed.
linux-image-linaro-lt-origen set to automatically installed.
u-boot-linaro-origen set to automatically installed.
linux-image-3.0.0-1000-origen set to automatically installed.
wireless-crda set to automatically installed.
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 1A9630052802CCC9
Done
------------------------------------------------------------
proc umounted
Warning: origen.img is not a block device
Disk origen.img: cannot get geometry

sfdisk: ERROR: sector 0 does not have an msdos signature
 origen.img: unrecognized partition table type
No partitions found
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).)

Formating boot partition

mkfs.vfat 3.0.9 (31 Jan 2010)
Loop device does not match a floppy size, using default hd params

Formating root partition

mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
193152 inodes, 772096 blocks
38604 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
8048 inodes per group
Superblock backups stored on blocks:
 32768, 98304, 163840, 229376, 294912

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

This filesystem will be automatically checked every 22 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 161, in <module>
    args.is_live, args.is_lowmem, args.consoles)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/boards.py", line 488, in populate_boot
    rootfs_uuid, boot_disk, boot_device_or_file)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/boards.py", line 447, in make_boot_files
    boot_device_or_file, k_img_data, i_img_data, d_img_data)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/boards.py", line 1011, in _make_boot_files
    cls.install_samsung_boot_loader(chroot_dir, boot_device_or_file)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/boards.py", line 1065, in install_samsung_boot_loader
    spl_file = cls._get_samsung_spl(chroot_dir)
  File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/boards.py", line 1039, in _get_samsung_spl
    % (old_spl_path, new_spl_path))
AssertionError: Couldn't find the SPL file, tried /tmp/tmpP26yIw/binary/usr/lib/u-boot/origen/v310_mmc_spl.bin and /tmp/tmpP26yIw/binary/usr/lib/u-boot/origen/u-boot-mmc-spl.bin

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

Likely http://bazaar.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/revision/430

  [ This wouldn't have been an issue under hwpacks v2 (assuming that the hwpack maintainer adjusted
the config appropriately) ]

Thanks,

James

Changed in linaro-image-tools:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → Mattias Backman (mabac)
milestone: none → 2011.09
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.