mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 23:33:00 +00:00
e985eb14ac
This converts the following to Kconfig: CONFIG_CMD_ASKENV CONFIG_CMD_BMP CONFIG_CMD_BOOTD CONFIG_CMD_CACHE CONFIG_CMD_CRC32 CONFIG_CMD_DHCP CONFIG_CMD_ENV CONFIG_CMD_EXPORTENV CONFIG_CMD_EXT2 CONFIG_CMD_EXT4 CONFIG_CMD_FLASH CONFIG_CMD_FS_GENERIC CONFIG_CMD_FUSE CONFIG_CMD_GPIO CONFIG_CMD_GPT CONFIG_CMD_GREPENV CONFIG_CMD_I2C CONFIG_CMD_IMLS CONFIG_CMD_IMPORTENV CONFIG_CMD_LOADB CONFIG_CMD_LOADS CONFIG_CMD_MEMINFO CONFIG_CMD_MII CONFIG_CMD_MTDPARTS CONFIG_CMD_NAND CONFIG_CMD_NAND_TRIMFFS CONFIG_CMD_NFS CONFIG_CMD_PCA953X CONFIG_CMD_PCA953X_INFO CONFIG_CMD_PCI CONFIG_CMD_PING CONFIG_CMD_READ CONFIG_CMD_SF CONFIG_CMD_SPI CONFIG_CMD_SPL CONFIG_CMD_SPL_WRITE_SIZE CONFIG_CMD_TIME CONFIG_CMD_TRACE CONFIG_CMD_UBI CONFIG_CMD_UBIFS CONFIG_CMD_UNZIP CONFIG_FS_EXT4 Signed-off-by: Tom Rini <trini@konsulko.com>
144 lines
5.6 KiB
C
144 lines
5.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
|
|
*/
|
|
|
|
/*
|
|
* Common options, macros and default environment for all
|
|
* theadorable x86 based boards
|
|
*/
|
|
|
|
#ifndef __THEADORABLE_X86_COMMON_H
|
|
#define __THEADORABLE_X86_COMMON_H
|
|
|
|
#define CONFIG_SYS_MONITOR_LEN (1 << 20)
|
|
|
|
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \
|
|
"stdout=serial\0" \
|
|
"stderr=serial\0"
|
|
|
|
#define VIDEO_IO_OFFSET 0
|
|
#define CONFIG_X86EMU_RAW_IO
|
|
#define CONFIG_BMP_16BPP
|
|
|
|
/* Environment settings */
|
|
|
|
#undef CONFIG_BOOTCOMMAND
|
|
#undef CONFIG_EXTRA_ENV_SETTINGS
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
"tftpdir=" DEF_ENV_TFTPDIR "\0" \
|
|
"eth_init=" DEF_ENV_ETH_INIT "\0" \
|
|
"ubuntu_part=" __stringify(DEF_ENV_UBUNTU_PART) "\0" \
|
|
"yocto_part=" __stringify(DEF_ENV_YOCTO_PART) "\0" \
|
|
"ubuntu_tty=" __stringify(DEF_ENV_UBUNTU_TTY) "\0" \
|
|
"yocto_tty=" __stringify(DEF_ENV_YOCTO_TTY) "\0" \
|
|
"start_eth=if test -n \"${eth_init}\";" \
|
|
"then run eth_init;else sleep 0;fi\0" \
|
|
"kernel-ver=4.8.0-54-generic\0" \
|
|
"boot=zboot 03000000 0 04000000 ${filesize}\0" \
|
|
"mtdparts=mtdparts=intel-spi:4k(descriptor),7084k(me)," \
|
|
"8k(env1),8k(env2),64k(mrc),640k(u-boot)," \
|
|
"64k(vga),-(fsp)\0" \
|
|
"addtty_ubuntu=setenv bootargs ${bootargs} " \
|
|
"console=ttyS${ubuntu_tty},${baudrate}\0" \
|
|
"addtty_yocto=setenv bootargs ${bootargs} " \
|
|
"console=ttyS${yocto_tty},${baudrate}\0" \
|
|
"addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" \
|
|
"addmisc=setenv bootargs ${bootargs} " \
|
|
"intel-spi.writeable=1 vmalloc=300M " \
|
|
"pci=realloc=on,hpmemsize=0,hpiosize=0\0" \
|
|
"bootcmd=if env exists recovery_status;" \
|
|
"then run swupdate;" \
|
|
"else run yocto_boot;run swupdate;" \
|
|
"fi\0" \
|
|
"setroot=part uuid scsi 0:${partnr} uuid;" \
|
|
"setenv root PARTUUID=${uuid}\0" \
|
|
"setroot_ubuntu=setenv partnr ${ubuntu_part};run setroot\0" \
|
|
"setroot_yocto=setenv partnr ${yocto_part};run setroot\0" \
|
|
"ubuntu_args=setenv bootargs " \
|
|
"root=${root} ro\0" \
|
|
"ubuntu_args_quiet=setenv bootargs " \
|
|
"root=${root} ro quiet\0" \
|
|
"ubuntu_load=load scsi 0:${ubuntu_part} 03000000 " \
|
|
"/boot/vmlinuz-${kernel-ver};" \
|
|
"load scsi 0:${ubuntu_part} 04000000 " \
|
|
"/boot/initrd.img-${kernel-ver}\0" \
|
|
"ubuntu_boot=run setroot_ubuntu ubuntu_args_quiet " \
|
|
"addmtd addmisc ubuntu_load boot\0" \
|
|
"ubuntu_boot_console=run setroot_ubuntu ubuntu_args " \
|
|
"addtty_ubuntu addmtd addmisc ubuntu_load boot\0" \
|
|
"net_args=setenv bootargs root=${root} ro\0" \
|
|
"net_boot=run start_eth setroot_ubuntu net_args " \
|
|
"addtty_ubuntu addmtd addmisc;" \
|
|
"tftp 03000000 ${tftpdir}/bzImage;" \
|
|
"load scsi 0:${ubuntu_part} 04000000 " \
|
|
"/boot/initrd.img-${kernel-ver};" \
|
|
"run boot\0" \
|
|
"yocto_args=setenv bootargs root=${root} " \
|
|
"panic=1\0" \
|
|
"yocto_args_fast=setenv bootargs root=${root} " \
|
|
"quiet panic=1\0" \
|
|
"yocto_boot=run setroot_yocto yocto_args addmtd addmisc " \
|
|
"addtty_yocto;" \
|
|
"if run yocto_load;then zboot 03000000;fi\0" \
|
|
"yocto_boot_fast=run setroot_yocto yocto_args_fast addmtd " \
|
|
"addmisc addtty_yocto yocto_load;zboot 03000000\0" \
|
|
"yocto_boot_tftp=run setroot_yocto yocto_args addmtd " \
|
|
"addmisc addtty_yocto " \
|
|
"start_eth yocto_load_tftp;zboot 03000000\0" \
|
|
"yocto_kernel=bzImage\0" \
|
|
"yocto_load=load scsi 0:${yocto_part} 03000000 " \
|
|
"/boot/${yocto_kernel}\0" \
|
|
"yocto_load_tftp=tftp 03000000 dfi/bzImage\0" \
|
|
"swupdate=if env exists swupdate_factory;" \
|
|
"then run swupdate_usb;run swupdate_run;" \
|
|
"else setenv swupdate_part 2;run swupdate_mmc;" \
|
|
"run swupdate_run;setenv swupdate_part 1;" \
|
|
"run swupdate_mmc;run swupdate_usb;" \
|
|
"run swupdate_run;" \
|
|
"fi\0" \
|
|
"swupdate-initrd=/boot/swupdate-image-theadorable.ext4.gz\0" \
|
|
"swupdate-kernel=/boot/bzImage\0" \
|
|
"swupdate_args=setenv bootargs root=/dev/ram rw panic=1\0" \
|
|
"swupdate_dev=0\0" \
|
|
"swupdate_factory=0\0" \
|
|
"swupdate_interface=usb\0" \
|
|
"swupdate_kernel=vmlinuz-4.4.0-28-generic\0" \
|
|
"swupdate_load=load ${swupdate_interface} ${swupdate_dev}:" \
|
|
"${swupdate_part} 03000000 ${swupdate-kernel}" \
|
|
" && load ${swupdate_interface} ${swupdate_dev}:" \
|
|
"${swupdate_part} 04000000 ${swupdate-initrd}\0" \
|
|
"swupdate_mmc=setenv swupdate_interface mmc;" \
|
|
"setenv swupdate_dev ${swupdate_mmcdev};" \
|
|
"setenv swupdate_part 1;" \
|
|
"mmc dev ${swupdate_dev};mmc rescan\0" \
|
|
"swupdate_mmcdev=0\0" \
|
|
"swupdate_part=1\0" \
|
|
"swupdate_run=run swupdate_args addtty_yocto addmtd addmisc;" \
|
|
"if run swupdate_load;then run boot;" \
|
|
"else echo SWUpdate cannot be started from " \
|
|
"${swupdate_interface};" \
|
|
"fi\0" \
|
|
"swupdate_usb=setenv swupdate_interface usb;" \
|
|
"setenv swupdate_dev 0;setenv swupdate_part 1;" \
|
|
"usb start\0" \
|
|
"logo_tftp=tftp ${loadaddr} ${tftpdir}/logo.bmp;" \
|
|
"bmp display ${loadaddr}\0" \
|
|
"preboot=scsi scan;load scsi 0:${ubuntu_part} ${loadaddr} " \
|
|
"/boot/logo/logo.bmp;bmp display ${loadaddr}\0" \
|
|
"rootpath=/tftpboot/theadorable-x86-conga/work/" \
|
|
"rootfs-yocto-swupdate-2017-03-29\0" \
|
|
"addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:" \
|
|
"${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
|
|
"set_bootargs_nfs=setenv bootargs root=/dev/nfs rw " \
|
|
"nfsroot=${serverip}:${rootpath},tcp,nfsvers=3\0" \
|
|
"net_nfs=run start_eth set_bootargs_nfs addtty_yocto addip " \
|
|
"addmtd addmisc;tftp 03000000 ${tftpdir}/bzImage;" \
|
|
"zboot 03000000\0" \
|
|
"load_uboot=tftp ${loadaddr} ${tftpdir}/u-boot.rom\0" \
|
|
"update_uboot=sf probe;" \
|
|
"sf update ${loadaddr} 0 800000;saveenv\0" \
|
|
"upd_uboot=run start_eth load_uboot update_uboot\0"
|
|
|
|
#endif /* __THEADORABLE_X86_COMMON_H */
|