[U-Boot] [PATCH 14/14] x86: qemu: Add a config for 64-bit U-Boot

Bin Meng bmeng.cn at gmail.com
Tue Feb 7 05:45:14 UTC 2017


On Wed, Jan 25, 2017 at 12:09 PM, Simon Glass <sjg at chromium.org> wrote:
> On 18 January 2017 at 04:33, Bin Meng <bmeng.cn at gmail.com> wrote:
>> Add a new board config which uses 64-bit U-Boot. Supported features
>> are the same as the other 64-bit board (Google Chromebook Link).
>> It is a start for us to test 64-bit U-Boot easily without the need
>> to access a real hardware.
>>
>> Note CONFIG_SPL_ENV_SUPPORT is required for QEMU 64-bit as without
>> this the SPL build fails at the end. This is just a workaround as
>> CONFIG_SPL_ENV_SUPPORT is not needed at all.
>>
>> common/built-in.o:(.data.env_htab+0xc): undefined reference to 'env_flags_validate'
>> lib/built-in.o: In function `hsearch_r':
>> lib/hashtable.c:380: undefined reference to 'env_callback_init'
>> lib/hashtable.c:382: undefined reference to 'env_flags_init'
>> make[1]: *** [spl/u-boot-spl] Error 1
>>
>> Except those SPL options required by 64-bit, compared to 32-bit
>> config, the following options are different:
>>
>> - CONFIG_SYS_MALLOC_F_LEN has to be increased to 0x1000 for SPL.
>> - CONFIG_DEBUG_UART has to be included due to the weird issue.
>>   See TODO comments in arch/x86/cpu/x86_64/cpu.c:arch_setup_gd().
>>   Once this issue gets fixed, debug uart can be optional.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>>
>> ---
>>
>>  board/emulation/Kconfig              |  7 ++++
>>  board/emulation/qemu-x86/Kconfig     |  2 +-
>>  board/emulation/qemu-x86/MAINTAINERS |  7 ++++
>>  configs/qemu-x86_64_defconfig        | 80 ++++++++++++++++++++++++++++++++++++
>>  4 files changed, 95 insertions(+), 1 deletion(-)
>>  create mode 100644 configs/qemu-x86_64_defconfig
>
> Reviewed-by: Simon Glass <sjg at chromium.org>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list