mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
081c660201
- Set fdt_addr variable, which is needed for extlinux to find FDT. Otherwise booting kernel using extlinux results in missing FDT. - Also run fdt addr with FDT address so that fdt commands would work out of the box in U-Boot prompt. This is successfully used by Fedora/RISCV with 5.1-rc3+ kernel using OpenSBI -> U-Boot (S-mode) [extlinux] -> Kernel setup. Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
|
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
|
|
|
|
#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN SZ_8M
|
|
|
|
#define CONFIG_SYS_BOOTM_LEN SZ_64M
|
|
|
|
#define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
|
|
|
|
/* Environment options */
|
|
#define CONFIG_ENV_SIZE SZ_4K
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(QEMU, qemu, na) \
|
|
func(VIRTIO, virtio, 0) \
|
|
func(DHCP, dhcp, na)
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
#define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \
|
|
"bootcmd_qemu=" \
|
|
"if env exists kernel_start; then " \
|
|
"bootm ${kernel_start} - ${fdtcontroladdr};" \
|
|
"fi;\0"
|
|
|
|
#define BOOTENV_DEV_NAME_QEMU(devtypeu, devtypel, instance) \
|
|
"qemu "
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"fdt_high=0xffffffffffffffff\0" \
|
|
"initrd_high=0xffffffffffffffff\0" \
|
|
"kernel_addr_r=0x84000000\0" \
|
|
"fdt_addr_r=0x88000000\0" \
|
|
"scriptaddr=0x88100000\0" \
|
|
"pxefile_addr_r=0x88200000\0" \
|
|
"ramdisk_addr_r=0x88300000\0" \
|
|
BOOTENV
|
|
|
|
#define CONFIG_PREBOOT \
|
|
"setenv fdt_addr ${fdtcontroladdr};" \
|
|
"fdt addr ${fdtcontroladdr};"
|
|
|
|
#endif /* __CONFIG_H */
|