alpha rc 3 doesn't build bootable sd card for overo (requires custom u-boot build for Tide)

Bug #728734 reported by AJ ONeal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro
Expired
Undecided
Unassigned

Bug Description

Procedure:
----

    sudo add-apt-repository ppa:linaro-maintainers/tools
    sudo apt-get update

    sudo apt-get install linaro-image-tools qemu-kvm qemu-kvm-extras-static vgabios

    wget http://releases.linaro.org/platform/linaro-n/hwpacks/alpha-3-rc/hwpack_linaro-overo_20110302-1_armel_supported.tar.gz
    wget http://releases.linaro.org/platform/linaro-n/developer/alpha-3-rc/linaro-n-developer-tar-20110302-0.packages

    vim /usr/lib/pymodules/python2.6/linaro_media_create/partitions.py
    - time.sleep(1)
    + print("Remove and reinsert your SD card now (you have 30 seconds)\n")
    + time.sleep(30)

    sudo linaro-media-create \
        --mmc /dev/sdx_CHANGE_ME \
        --dev overo \
        --hwpack ./hwpack_linaro-overo_20110302-1_armel_supported.tar.gz \
        --binary ./linaro-n-developer-tar-20110302-0.tar.gz

Now boot the gumstix with the serial connected

    screen /dev/ttyUSB0 115200

See u-boot output here: https://gist.github.com/853606

It will boot to the NAND instead of to the MMC.

Since new uboot uses `mmc rescan 0` and not `mmc init`, the `bootcmd` must be changed

    setenv bootcmd "mmc rescan 0; run loadbootscript; run bootscript; run mmcboot;"
    saveenv

This fix will not work for the Overo Tide since it has no NAND and cannot save to MMC

Other Comments (irc.freenode.net#linode):
----

lool: I guess we could provide an environment on SD and make sure that u-boot merges it with the in-memory one
lool: but boot.scr would be too late already, hmm
lool: I hope we don't need to build a special version of u-boot for MMC

Resources:
----

  * https://wiki.linaro.org/Boards/Overo/Setup
  * http://releases.linaro.org/platform/linaro-n/hwpacks/alpha-3-rc/
  * http://releases.linaro.org/platform/linaro-n/developer/alpha-3-rc/

AJ ONeal (coolaj86)
description: updated
Revision history for this message
Loïc Minier (lool) wrote :

(Note that Overo Tide is unaffected in the first place)

Would be nice if you could try with "./linaro-media-create ..." from "bzr branch lp:linaro-image-tools", might make stuff work from SD just fine

Revision history for this message
AJ ONeal (coolaj86) wrote :

I can confirm that neither bug is fixed with current version in the repository.

See this output: https://gist.github.com/853981

Procedure
====

sudo apt-get install \
    bzr \
    python-distutils-extra

bzr branch lp:linaro-image-tools

cd linaro-image-tools

sudo python setup.py install

I tried and it still requires the `sleep` hack

vim /usr/local/lib/python2.6/dist-packages/linaro_media_create/partitions.py

And then sd card create command is the same as above.

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

Could you include the output of sfdisk -uS -l /dev/yourmmc
with the image you created with the new linaro-image-tools?

BTW, no need to install to /usr/local/, you can run it from the bzr checkout (./linaro-media-create ...)

Revision history for this message
Tom Gall (tom-gall) wrote :

Is there an update on this bug with data obtained from either a recent build or the beta?

Changed in linaro:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Linaro because there has been no activity for 60 days.]

Changed in linaro:
status: Incomplete → Expired
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.