Boot failed in LAVA on "linux-linaro-lsk-armv8".

Bug #1301199 reported by Botao
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LAVA Dispatcher
Fix Released
High
Tyler Baker
Linaro CI
Fix Released
High
Fathi Boudra

Bug Description

https://validation.linaro.org/dashboard/image-reports/linux-linaro-lsk-armv8

A boot failure occurred on "linux-linaro-lsk-armv8" in LAVA with following error information:

https://validation.linaro.org/scheduler/job/116306/log_file

###########################################
<LAVA_DISPATCHER>2014-03-20 07:19:18 AM INFO: [ACTION-B] deploy_linaro_image is started with {u'image': u'http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/615/lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140319-615.img.gz'}
<LAVA_DISPATCHER>2014-03-20 07:19:18 AM INFO: Downloading image: http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/615/lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140319-615.img.gz
<LAVA_DISPATCHER>2014-03-20 07:19:59 AM INFO: md5sum of downloaded content: 7ca7a440ec815b941351defbec2bb84e
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: [ACTION-E] deploy_linaro_image is finished successfully.

<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: [ACTION-B] boot_linaro_image is started with {u'options': [u'boot_cmds=boot_cmds_oe']}
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: Boot the test image
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: Booting the test image. Attempt: 1
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: No INITRD found, [u'uInitrd', u'ramdisk.img', u'initrd.*']
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: No DTB found, u'fvp-base-gicv2-psci.dtb'
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM WARNING: Invalid boot option: boot_cmds
<LAVA_DISPATCHER>2014-03-20 07:20:23 AM INFO: launching fastmodel with command u'sudo -u www-data ARMLMD_LICENSE_FILE="8224@control" /opt/arm/FVP_Base_AEMv8A-AEMv8A/models/Linux64_GCC-4.1/FVP_Base_AEMv8A-AEMv8A -a coretile.cluster0.*=None -C bp.virtioblockdevice.image_path=/srv/lava/instances/production/var/www/lava-server/images/tmpf48Idr/lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140319-615.img -C bp.secure_memory=0 -C bp.smsc_91c111.mac_address="72:42:BC:97:73:BA" -C pctl.startup=0.0.0.0 -C bp.pl011_uart0.untimed_fifos=1 -C bp.flashloader0.fname=None -C bp.secureflashloader.fname=/srv/lava/instances/production/var/www/lava-server/images/tmpf48Idr/bl1.bin -C cluster1.NUM_CORES=4 -C bp.smsc_91c111.enabled=true -C bp.hostbridge.interfaceName="armv8_03" -C cache_state_modelled=0 -C cluster0.NUM_CORES=4 '

Error: application or data file 'None' does not exist

<LAVA_DISPATCHER>2014-03-20 07:20:23 AM ERROR: boot_linaro_image failed
###########################################

Looks like something goes wrong in boot command. By comparison, below is my procedure list when I did it locally:

1. Download files from this web page:

http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617

$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/Image
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/bl1.bin
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/bl2.bin
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/bl31.bin
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/img-foundation.axf
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/img.axf
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140324-617.img.gz
$ wget http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617/uefi_fvp-base.bin

2. Unzip the image file:
$ gunzip lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140324-617.img.gz

3. Change permission to 777 on all files:
$ chmod 777 *

4. Download "fvp-base-gicv2-psci.dtb" from non-lsk build page then create a link:

$ wget http://snapshots.linaro.org/openembedded/pre-built/vexpress64/617/fvp-base-gicv2-psci.dtb
$ chmod 777 fvp-base-gicv2-psci.dtb
$ ln -sf fvp-base-gicv2-psci.dtb fdt.dtb

5. Set license validation on another tab of console. Open a new tab of console then run:
$ ssh -L 8224:localhost:8224 -L 18224:localhost:18224 -N <email address hidden>

6. Run the simulator in original tab of console:
$ ARMLMD_LICENSE_FILE=8224@127.0.0.1
$ export ARMLMD_LICENSE_FILE
$ ./FVP_Base_AEMv8A-AEMv8A/models/Linux64_GCC-4.1/FVP_Base_AEMv8A-AEMv8A -C pctl.startup=0.0.0.0 -C bp.secure_memory=0 -C cluster0.NUM_CORES=4 -C cluster1.NUM_CORES=4 -C cache_state_modelled=1 -C bp.pl011_uart0.untimed_fifos=1 -C bp.secureflashloader.fname=bl1.bin -C bp.flashloader0.fname=uefi_fvp-base.bin -C bp.virtioblockdevice.image_path=lsk-vexpress64-openembedded_minimal-armv8-gcc-4.8_20140324-617.img

Then the simulator can run through the boot successfully.

I noticed that there is no "fvp-base-gicv2-psci.dtb" file on lsk vexpress64 download page:

http://snapshots.linaro.org/openembedded/pre-built/lsk-vexpress64/617

So I downloaded it from non-lsk pre-built page:

http://snapshots.linaro.org/openembedded/pre-built/vexpress64/617

Hopefully it helps.

Botao (botao-sun)
description: updated
Fathi Boudra (fboudra)
no longer affects: linaro-linux-baseline
Revision history for this message
Fathi Boudra (fboudra) wrote :

I think I already fixed this bug caused by the upstream bootwrapper changes and LAVA changes (bootloadertype uefi is now required).

Fathi Boudra (fboudra)
Changed in linaro-stable-kernel:
assignee: nobody → Fathi Boudra (fboudra)
Revision history for this message
Milosz Wasilewski (mwasilew) wrote :

I'm not sure about the bootloadertype. Please compare these jobs:
1. with bootloadertype - doesn't boot
https://validation.linaro.org/scheduler/job/118856/definition

2. without bootloadertype - boots
https://validation.linaro.org/scheduler/job/118889/definition

Other thing is that the same image doesn't boot on FVP Base model _with_ bootloadertype in job definition. I'm adding Tyler to CC. Maybe he has some more info on that.

Revision history for this message
Fathi Boudra (fboudra) wrote : Re: [Bug 1301199] Re: Boot failed in LAVA on "linux-linaro-lsk-armv8".

I'm sure it has been fixed.

Fathi Boudra (fboudra)
Changed in linaro-stable-kernel:
milestone: none → 14.04
Fathi Boudra (fboudra)
affects: linaro-stable-kernel → linaro-ci
Changed in linaro-ci:
milestone: 14.04 → none
milestone: none → 2014.04
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

Seems like the bug is reproduced again on LAVA.

INFO: Booting the test image. Attempt: 1
WARNING: No INITRD found, [u'uInitrd', u'ramdisk.img', u'initrd.*']
WARNING: No DTB found, [u'fvp-base-gicv2-psci.dtb', u'rtsm_ve-aemv8a.dtb']
ERROR: boot_linaro_image failed

RuntimeError: No SECURE FLASHLOADER found, u'bl1.bin'
CriticalError: Failed to boot test image.

https://validation.linaro.org/scheduler/job/120812/log_file#L_0_8

Revision history for this message
Fathi Boudra (fboudra) wrote :

Naresh, it's a different issue. The secure flashloader is now named fvp_bl1.bin.

Fathi Boudra (fboudra)
Changed in linaro-ci:
importance: Undecided → High
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in lava-dispatcher:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Tyler Baker (tyler-baker)
Fathi Boudra (fboudra)
Changed in linaro-ci:
status: Fix Committed → Fix Released
Changed in lava-dispatcher:
milestone: none → 2014.05
Changed in lava-dispatcher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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