U-Boot boot script doesn't work on Versatile Express

Bug #880859 reported by Tixy (Jon Medhurst)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro U-Boot
Won't Fix
Low
Unassigned

Bug Description

U-Boot for Versatile Express doesn't try and boot from the boot script (boot.scr) in the boot partition, this should be fixed.
Also, even when running this script by hand booting fails. This may be because linaro-media-create uses double quotes (") in the script and our U-Boot versions doesn't understand this?

For the record, to manually configure U-Boot to boot from MMC, the following environment variables can be used:

setenv bootargs 'root=/dev/mmcblk0p2 ro console=ttyAMA0,38400n8 mem=1024M ip=dhcp clcd=xvga rootwait mmci.fmax=4000000'
setenv bootload 'mmc rescan; fatload mmc 0:1 0x60000000 uImage; fatload mmc 0:1 0x62000000 uInitrd'
setenv bootcmd 'run bootload; bootm 0x60000000 0x62000000'
run bootcmd

Tags: ve
description: updated
Revision history for this message
Ryan Harkin (ryanharkin) wrote :

... and if you're booting the A5 platform, you should change the address prefixes from 0x6.... to 0x8....:

Eg:

setenv bootargs 'root=/dev/mmcblk0p2 ro console=ttyAMA0,38400n8 mem=1024M ip=dhcp clcd=xvga rootwait mmci.fmax=4000000'
setenv bootload 'mmc rescan; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x82000000 uInitrd'
setenv bootcmd 'run bootload; bootm 0x80000000 0x82000000'
run bootcmd

Anmar Oueja (anmar)
Changed in linaro-landing-team-arm:
milestone: none → 2011.11
importance: Undecided → High
assignee: nobody → Tixy (Jon Medhurst) (tixy)
visibility: private → public
Revision history for this message
Loïc Minier (lool) wrote :

Try building u-boot with CONFIG_SYS_HUSH_PARSER to get proper support for our boot script syntax

Concerning load address, you could have a separate board+config for a5 or you could build the same board twice under different names, see how efikasb/efikamx does this for instance. If there's a way to detect this at runtime, that would be ideal though!

Anmar Oueja (anmar)
Changed in linaro-landing-team-arm:
milestone: 2011.11 → none
Changed in linaro-landing-team-arm:
milestone: none → 2011.12
status: New → In Progress
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

This isn't actually released until it gets merged into Linaro's U-Boot

Changed in linaro-landing-team-arm:
status: In Progress → Fix Released
Revision history for this message
John Rigby (jcrigby) wrote :

Do we care about u-boot for vexpress anymore?

Changed in u-boot-linaro:
importance: Undecided → Low
Revision history for this message
Ryan Harkin (ryanharkin) wrote :

I don't!

Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

Except that at the moment the hwpack doesn't contain UEFI, so if Linaro U-Boot doesn't work, then the Ubuntu image won't have a working bootloader. And even if we move over to UEFI, that doesn't seem to work reliably yet..

Android builds U-Boot out of my personal branch which is a fork and hacked up version I made some time ago, and that does work for all CoreTiles. So I guess we can point people at that if they want a working bootloader.

Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

This fix isn't in Linaro's U-Boot or in mainline and the ARM Landing Team don't support U-Boot, so this bug is actually "won't fix'

Changed in linaro-landing-team-arm:
status: Fix Released → Won't Fix
Fathi Boudra (fboudra)
Changed in u-boot-linaro:
status: New → Won't Fix
Usman Ahmad (usman-ah)
Changed in u-boot-linaro:
status: Won't Fix → New
status: New → Won't Fix
Ryan Harkin (ryanharkin)
no longer affects: linaro-landing-team-arm
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.