This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Juno - Linux Kernel - vmlinux file

Hi everybody,

where can I get a vmlinux version of the Linux Kernel provided with the Linaro Releases for the Juno Board?

In the official releases I can only find a "Image" file. I need a vmlinux for my debugger. I tried to use the "workspace script 16.09" to create all files from source, but I always receive an error: "Failed to sync Repo tool".

Thank you in advance,

Leandro.

Parents
  • Hi Mark, thank you for the quick answer.

    Sorry for the delay, I was out of office.

    Couple of questions /confirmations:

    - Can you confirm you started with a new workspace directory (to rule out any possibility of interference from a previous failed invocation of repo)?

         Yes, I started from a new workspace several times.

    - Can you post the result of: uname -a on your XUbuntu box

    Linux lrl-fh 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

        

    - Can you open a new shell and post the result of: echo $ARCH  (we're assuming you invoked the workspace script & build from a new shell)

    echo $ARCH returns nothing

    >I tried with other release versions and the same error came up.

    You mean you've tried older (16.05 etc) releases in different workspaces and see the same issue?

    Yes, I have tried at least with 16.05 and 16.04

Reply
  • Hi Mark, thank you for the quick answer.

    Sorry for the delay, I was out of office.

    Couple of questions /confirmations:

    - Can you confirm you started with a new workspace directory (to rule out any possibility of interference from a previous failed invocation of repo)?

         Yes, I started from a new workspace several times.

    - Can you post the result of: uname -a on your XUbuntu box

    Linux lrl-fh 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

        

    - Can you open a new shell and post the result of: echo $ARCH  (we're assuming you invoked the workspace script & build from a new shell)

    echo $ARCH returns nothing

    >I tried with other release versions and the same error came up.

    You mean you've tried older (16.05 etc) releases in different workspaces and see the same issue?

    Yes, I have tried at least with 16.05 and 16.04

Children
  • Hi,

    I think we will try to hang on to the makefile ARCH explanation for a while longer, because it's the only theory we have right now!

    >echo $ARCH returns nothing

    Do you mean the variable isn't set or that it is empty?

    Here's a better test, please can you try this with 16.06:

    $ tput reset

    $ unset ARCH

    $ ./build-scripts/build-all.sh juno-uefi clean

    $ ./build-scripts/build-all.sh juno-uefi

    ** please post the full log from your console as an attachment **

    We suspect the issue starts here: /uefi/edk2/BaseTools/Source/C/Makefiles/header.makefile & that the build detects the wrong (or empty) ARCH variable.

    For example: I can get the error you see using export ARCH=" " before I invoke the UEFI build.

    This results in /uefi/edk2/MdePkg/Include/$ARCH/ProcessorBind.h failing to be resolved and ultimately the build fails with  ../Include/Common/BaseTypes.h:23:27: fatal error: ProcessorBind.h: No such file or directory  #include <ProcessorBind.h>

    If ARCH is not set (as expected) we would expect the UEFI makefile to query it & report the following in the console log

    make: Entering directory `/media/markn/1TB_HDD/junk/HP_16_06_test/uefi/edk2/BaseTools'

    make -C Source/C

    Attempting to detect ARCH from 'uname -m': x86_64

    Detected ARCH of X64 using uname.

    Note the expected ARCH is X64 (not AARCH64) as we are querying the host arch (not the target).

    HTH

    MarkN.