Merge branch '2022-12-12-build-related-updates' into next
- Updates to the keymile platforms for DM_I2C and text based environment migration - Finish migration of MTDPART/MTDIDS_DEFAULT to defconfig - Disable warning about RWX segments with gcc-12.2
This commit is contained in:
commit
9c955393f7
2
Makefile
2
Makefile
@ -806,6 +806,8 @@ KBUILD_CPPFLAGS += $(KCPPFLAGS)
|
||||
KBUILD_AFLAGS += $(KAFLAGS)
|
||||
KBUILD_CFLAGS += $(KCFLAGS)
|
||||
|
||||
KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments)
|
||||
|
||||
KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g)
|
||||
|
||||
# Use UBOOTINCLUDE when you must reference the include/ directory.
|
||||
|
@ -34,7 +34,6 @@ config KM_PHRAM
|
||||
|
||||
config KM_RESERVED_PRAM
|
||||
hex "Reserved RAM"
|
||||
default 0x801000 if ARCH_KIRKWOOD
|
||||
default 0x0 if MPC83xx
|
||||
default 0x1000 if MPC85xx || ARCH_LS1021A
|
||||
depends on !ARCH_SOCFPGA
|
||||
@ -77,21 +76,9 @@ config SYS_CLIPS_BASE
|
||||
help
|
||||
IFC Base Address for CLIPS FPGA.
|
||||
|
||||
config KM_CONSOLE_TTY
|
||||
string "KM Console"
|
||||
default "ttyS0"
|
||||
help
|
||||
TTY console to use on board.
|
||||
|
||||
config KM_DEF_NETDEV
|
||||
string "Default Netdevice"
|
||||
default "eth0"
|
||||
help
|
||||
Default netdevice for debug interface
|
||||
|
||||
config KM_COMMON_ETH_INIT
|
||||
bool "Common Ethernet Initialization"
|
||||
default y if ARCH_KIRKWOOD || MPC83xx
|
||||
default y if MPC83xx
|
||||
default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
|
||||
help
|
||||
Use the Ethernet initialization implemented in common code that
|
||||
@ -113,8 +100,7 @@ config KM_MVEXTSW_ADDR
|
||||
config KM_IVM_BUS
|
||||
int "IVM I2C Bus"
|
||||
default 0 if ARCH_SOCFPGA
|
||||
default 1 if ARCH_KIRKWOOD || MPC85xx || ARCH_LS1021A
|
||||
default 2 if MPC83xx
|
||||
default 1 if PPC || ARCH_LS1021A
|
||||
help
|
||||
Identifier number of I2C bus, where the inventory EEPROM is connected to.
|
||||
|
||||
|
@ -3,4 +3,4 @@
|
||||
# (C) Copyright 2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
|
||||
obj-y += km83xx.o ../common/common.o ../common/ivm.o km83xx_i2c.o
|
||||
obj-y += km83xx.o ../common/common.o ../common/ivm.o
|
||||
|
21
board/keymile/km83xx/km83xx.env
Normal file
21
board/keymile/km83xx/km83xx.env
Normal file
@ -0,0 +1,21 @@
|
||||
#if CONFIG_TARGET_KMCOGE5NE
|
||||
#define WCOM_UBI_PARTITION_APP
|
||||
hostname=kmcoge5ne
|
||||
netdev=eth1
|
||||
uimage=ecc_bch_uImage
|
||||
#elif CONFIG_TARGET_KMETER1
|
||||
hostname=kmeter1
|
||||
netdev=eth2
|
||||
uimage=uImage
|
||||
#else
|
||||
hostname=kmeter1
|
||||
netdev=eth0
|
||||
uimage=uImage
|
||||
#endif
|
||||
|
||||
#include <environment/pg-wcom/common.env>
|
||||
#include <environment/pg-wcom/powerpc.env>
|
||||
|
||||
#if CONFIG_TARGET_KMCOGE5NE
|
||||
add_default+= eccmode=bch
|
||||
#endif
|
@ -1,73 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2011
|
||||
* Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <i2c.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/delay.h>
|
||||
#include "../common/common.h"
|
||||
|
||||
static void i2c_write_start_seq(void)
|
||||
{
|
||||
struct fsl_i2c_base *base;
|
||||
base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR +
|
||||
CONFIG_SYS_FSL_I2C_OFFSET);
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
out_8(&base->cr, (I2C_CR_MEN | I2C_CR_MSTA));
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
out_8(&base->cr, (I2C_CR_MEN));
|
||||
}
|
||||
|
||||
int i2c_make_abort(void)
|
||||
{
|
||||
struct fsl_i2c_base *base;
|
||||
base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR +
|
||||
CONFIG_SYS_FSL_I2C_OFFSET);
|
||||
uchar last;
|
||||
int nbr_read = 0;
|
||||
int i = 0;
|
||||
int ret = 0;
|
||||
|
||||
/* wait after each operation to finsh with a delay */
|
||||
out_8(&base->cr, (I2C_CR_MSTA));
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
out_8(&base->cr, (I2C_CR_MEN | I2C_CR_MSTA));
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
in_8(&base->dr);
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
last = in_8(&base->dr);
|
||||
nbr_read++;
|
||||
|
||||
/*
|
||||
* do read until the last bit is 1, but stop if the full eeprom is
|
||||
* read.
|
||||
*/
|
||||
while (((last & 0x01) != 0x01) &&
|
||||
(nbr_read < CONFIG_SYS_IVM_EEPROM_MAX_LEN)) {
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
last = in_8(&base->dr);
|
||||
nbr_read++;
|
||||
}
|
||||
if ((last & 0x01) != 0x01)
|
||||
ret = -2;
|
||||
if ((last != 0xff) || (nbr_read > 1))
|
||||
printf("[INFO] i2c abort after %d bytes (0x%02x)\n",
|
||||
nbr_read, last);
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
out_8(&base->cr, (I2C_CR_MEN));
|
||||
udelay(DELAY_ABORT_SEQ);
|
||||
/* clear status reg */
|
||||
out_8(&base->sr, 0);
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
i2c_write_start_seq();
|
||||
if (ret != 0)
|
||||
printf("[ERROR] i2c abort failed after %d bytes (0x%02x)\n",
|
||||
nbr_read, last);
|
||||
|
||||
return ret;
|
||||
}
|
@ -34,7 +34,7 @@ static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN];
|
||||
|
||||
int checkboard(void)
|
||||
{
|
||||
printf("Board: Hitachi Power Grids %s\n", KM_BOARD_NAME);
|
||||
printf("Board: Hitachi Power Grids kmcent2\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
37
board/keymile/kmcent2/kmcent2.env
Normal file
37
board/keymile/kmcent2/kmcent2.env
Normal file
@ -0,0 +1,37 @@
|
||||
#include <environment/pg-wcom/common.env>
|
||||
|
||||
EEprom_ivm=pca9547:70:9
|
||||
arch=ppc_82xx
|
||||
boot=bootm ${load_addr_r} - ${fdt_addr_r}
|
||||
checkfdt=true
|
||||
cramfsloadfdt=cramfsload ${fdt_addr_r} fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb
|
||||
fpgacfg=true
|
||||
hostname=kmcent2
|
||||
hwconfig=fsl_ddr:ctlr_intlv=cacheline
|
||||
netdev=eth2
|
||||
|
||||
newenv=protect off ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE &&
|
||||
erase ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE &&
|
||||
protect on ENV_DEL_ADDR +CONFIG_ENV_TOTAL_SIZE
|
||||
|
||||
set_fdthigh=true
|
||||
uimage=uImage
|
||||
|
||||
update=protect off CONFIG_SYS_MONITOR_BASE +${filesize} &&
|
||||
erase CONFIG_SYS_MONITOR_BASE +${filesize} &&
|
||||
cp.b ${load_addr_r} CONFIG_SYS_MONITOR_BASE ${filesize} &&
|
||||
protect on CONFIG_SYS_MONITOR_BASE +${filesize}
|
||||
update-nor=protect off CONFIG_SYS_FLASH_BASE +${filesize} &&
|
||||
erase CONFIG_SYS_FLASH_BASE +${filesize} &&
|
||||
cp.b ${load_addr_r} CONFIG_SYS_FLASH_BASE ${filesize} &&
|
||||
protect on CONFIG_SYS_MONITOR_BASE +CONFIG_SYS_MONITOR_LEN
|
||||
|
||||
usb_phy_type=utmi
|
||||
usb_dr_mode=host
|
||||
|
||||
/*
|
||||
* The Linux fsl_fman driver needs to be able to process frames with more
|
||||
* than just the VLAN tag (i.e. eDSA tag). It is passed as a kernel boot
|
||||
* parameters
|
||||
*/
|
||||
add_default+= fsl_dpaa_fman.fsl_fm_max_frm=1558
|
3
board/keymile/pg-wcom-ls102xa/pg-wcom-expu1.env
Normal file
3
board/keymile/pg-wcom-ls102xa/pg-wcom-expu1.env
Normal file
@ -0,0 +1,3 @@
|
||||
#include <environment/pg-wcom/ls102xa.env>
|
||||
|
||||
hostname=EXPU1
|
3
board/keymile/pg-wcom-ls102xa/pg-wcom-seli8.env
Normal file
3
board/keymile/pg-wcom-ls102xa/pg-wcom-seli8.env
Normal file
@ -0,0 +1,3 @@
|
||||
#include <environment/pg-wcom/ls102xa.env>
|
||||
|
||||
hostname=SELI8
|
50
board/keymile/secu1/socfpga_secu.env
Normal file
50
board/keymile/secu1/socfpga_secu.env
Normal file
@ -0,0 +1,50 @@
|
||||
altbootcmd=run bootcmd;
|
||||
bootlimit=6
|
||||
bootnum=1
|
||||
bootretry=CONFIG_BOOT_RETRY_TIME
|
||||
|
||||
develop=tftp 0x200000 scripts/develop-secu.txt &&
|
||||
env import -t 0x200000 ${filesize} &&
|
||||
saveenv &&
|
||||
reset
|
||||
|
||||
fdt_addr=CONFIG_KM_FDT_ADDR
|
||||
load=tftpboot ${loadaddr} u-boot-with-nand-spl.sfp
|
||||
loadaddr=CONFIG_KM_KERNEL_ADDR
|
||||
newenv=nand erase 0x100000 0x40000
|
||||
release=run newenv; reset
|
||||
socfpga_legacy_reset_compat=1
|
||||
update=nand erase 0x0 0x00100000 && nand write ${loadaddr} 0x0 ${filesize}
|
||||
|
||||
userload=ubi part nand.ubi &&
|
||||
ubi check rootfs$bootnum &&
|
||||
ubi read $fdt_addr dtb$bootnum &&
|
||||
ubi read $loadaddr kernel$bootnum
|
||||
|
||||
userboot=setenv bootargs console=ttyS0,115200 ubi.fm_autoconvert=1 uio_pdrv_genirq.of_id="idq,regbank"
|
||||
ubi.mtd=1 ubi.block=0,rootfs$bootnum root=/dev/ubiblock0_$ubivolid ro
|
||||
rootfstype=squashfs init=sbin/preinit;
|
||||
bootz ${loadaddr} - ${fdt_addr}
|
||||
|
||||
verify=y
|
||||
|
||||
/*
|
||||
* FPGA Remote Update related environment
|
||||
*
|
||||
* Note that since those commands access the FPGA, the HPS-to-FPGA bridges
|
||||
* MUST have been previously enabled (for example with 'bridge enable').
|
||||
*/
|
||||
rmtu_page=0xFF29000C
|
||||
rmtu_reconfig=0xFF290018
|
||||
fpga_safebase=0x0
|
||||
fpga_userbase=0x2000000
|
||||
|
||||
_fpga_loaduser=echo "Loading FPGA USER image..." &&
|
||||
mw ${rmtu_page} ${fpga_userbase} &&
|
||||
mw ${rmtu_reconfig} 1
|
||||
|
||||
_fpga_loadsafe=echo "Loading FPGA SAFE image..." &&
|
||||
mw ${rmtu_page} ${fpga_safebase} &&
|
||||
mw ${rmtu_reconfig} 1
|
||||
|
||||
|
@ -111,20 +111,17 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
#define MTD_WRITEABLE_CMD 1
|
||||
|
||||
/* default values for mtdids and mtdparts variables */
|
||||
#if !defined(MTDIDS_DEFAULT)
|
||||
#ifdef CONFIG_MTDIDS_DEFAULT
|
||||
#define MTDIDS_DEFAULT CONFIG_MTDIDS_DEFAULT
|
||||
#else
|
||||
#define MTDIDS_DEFAULT NULL
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(MTDPARTS_DEFAULT)
|
||||
#ifdef CONFIG_MTDPARTS_DEFAULT
|
||||
#define MTDPARTS_DEFAULT CONFIG_MTDPARTS_DEFAULT
|
||||
#else
|
||||
#define MTDPARTS_DEFAULT NULL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
|
||||
extern void board_mtdparts_default(const char **mtdids, const char **mtdparts);
|
||||
#endif
|
||||
|
@ -34,6 +34,7 @@ CONFIG_BOOTP_NTPSERVER=y
|
||||
CONFIG_CMD_MII=y
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_SNTP=y
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
|
||||
CONFIG_DOS_PARTITION=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
|
@ -35,6 +35,7 @@ CONFIG_CMD_MII=y
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_SNTP=y
|
||||
# CONFIG_CMD_LED is not set
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
|
||||
CONFIG_DOS_PARTITION=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
|
@ -64,6 +64,7 @@ CONFIG_SYS_DISABLE_AUTOLOAD=y
|
||||
CONFIG_CMD_BMP=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
CONFIG_MTDIDS_DEFAULT="nand0=nand.0"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:256k(SPL),256k(SPL.backup1),256k(SPL.backup2),256k(SPL.backup3),1m(u-boot),1m(u-boot.backup1),1m(u-boot-2),1m(u-boot-2.backup1),256k(u-boot-env),256k(u-boot-env.backup1),256k(splash-screen),-(UBI)"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_SPL_DOS_PARTITION is not set
|
||||
|
@ -17,7 +17,6 @@ CONFIG_SYS_CACHE_STASHING=y
|
||||
# CONFIG_DEEP_SLEEP is not set
|
||||
CONFIG_PCIE1=y
|
||||
CONFIG_SYS_FSL_NUM_CC_PLLS=2
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_KM_IVM_BUS=2
|
||||
CONFIG_SYS_MONITOR_LEN=786432
|
||||
CONFIG_MP=y
|
||||
@ -54,6 +53,7 @@ CONFIG_MTDPARTS_DEFAULT="mtdparts=fe8000000.nor:128k(RCW),128k(fman),128k(QE),12
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_SOURCE_FILE="kmcent2"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -159,7 +159,6 @@ CONFIG_LCRR_DBYP_PLL_BYPASSED=y
|
||||
CONFIG_LCRR_EADC_2=y
|
||||
CONFIG_LCRR_CLKDIV_4=y
|
||||
CONFIG_83XX_PCICLK=0x3ef1480
|
||||
CONFIG_KM_DEF_NETDEV="eth1"
|
||||
CONFIG_SYS_MONITOR_LEN=786432
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||
@ -197,6 +196,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot,nand0=app"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);app:-(ubi1);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -219,13 +219,10 @@ CONFIG_SYS_OR3_PRELIM=0xF0000E25
|
||||
CONFIG_SYS_BR4_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR4_PRELIM=0xB0000801
|
||||
CONFIG_SYS_OR4_PRELIM=0xF0000E25
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -129,7 +129,6 @@ CONFIG_ACR_PARKM_USB_I2C1_BOOT=y
|
||||
CONFIG_LCRR_DBYP_PLL_BYPASSED=y
|
||||
CONFIG_LCRR_EADC_2=y
|
||||
CONFIG_LCRR_CLKDIV_4=y
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_SYS_MONITOR_LEN=786432
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||
@ -166,6 +165,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -185,13 +185,10 @@ CONFIG_SYS_OR1_PRELIM=0xFC000E25
|
||||
CONFIG_SYS_BR3_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR3_PRELIM=0xA0000801
|
||||
CONFIG_SYS_OR3_PRELIM=0xF0000E25
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -178,6 +178,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -199,13 +200,10 @@ CONFIG_SYS_OR2_PRELIM=0xF0000C25
|
||||
CONFIG_SYS_BR3_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR3_PRELIM=0xB0001001
|
||||
CONFIG_SYS_OR3_PRELIM=0xF0000040
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -157,6 +157,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -176,13 +177,10 @@ CONFIG_SYS_OR1_PRELIM=0xF8000E25
|
||||
CONFIG_SYS_BR2_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR2_PRELIM=0xA0000801
|
||||
CONFIG_SYS_OR2_PRELIM=0xF0000C25
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -177,6 +177,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -198,13 +199,10 @@ CONFIG_SYS_OR2_PRELIM=0xF0000C25
|
||||
CONFIG_SYS_BR3_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR3_PRELIM=0xB0001001
|
||||
CONFIG_SYS_OR3_PRELIM=0xF0000040
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -20,7 +20,6 @@ CONFIG_ENV_ADDR=0x60060000
|
||||
CONFIG_AHCI=y
|
||||
# CONFIG_DEEP_SLEEP is not set
|
||||
CONFIG_LAYERSCAPE_NS_ACCESS=y
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_KM_COMMON_ETH_INIT=y
|
||||
CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
|
||||
CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED=y
|
||||
@ -64,6 +63,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=60000000.nor,nand0=68000000.flash"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=60000000.nor:128k(rcw),128k(qe),128k(envred),128k(env),512k(res),1m(u-boot),128k(redenvred),128k(redenv),1m(redu-boot),-(ubi0);68000000.flash:-(ubi1)"
|
||||
CONFIG_CMD_UBI=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_SOURCE_FILE="pg-wcom-expu1"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_ENV_ADDR=0x60220000
|
||||
CONFIG_AHCI=y
|
||||
# CONFIG_DEEP_SLEEP is not set
|
||||
CONFIG_LAYERSCAPE_NS_ACCESS=y
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_KM_COMMON_ETH_INIT=y
|
||||
CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
|
||||
CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED=y
|
||||
@ -62,6 +61,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=60000000.nor,nand0=68000000.flash"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=60000000.nor:128k(rcw),128k(qe),128k(envred),128k(env),512k(res),1m(u-boot),128k(redenvred),128k(redenv),1m(redu-boot),-(ubi0);68000000.flash:-(ubi1)"
|
||||
CONFIG_CMD_UBI=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_SOURCE_FILE="pg-wcom-expu1"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -20,7 +20,6 @@ CONFIG_ENV_ADDR=0x60060000
|
||||
CONFIG_AHCI=y
|
||||
# CONFIG_DEEP_SLEEP is not set
|
||||
CONFIG_LAYERSCAPE_NS_ACCESS=y
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_KM_COMMON_ETH_INIT=y
|
||||
CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
|
||||
CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED=y
|
||||
@ -64,6 +63,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=60000000.nor,nand0=68000000.flash"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=60000000.nor:128k(rcw),128k(qe),128k(envred),128k(env),512k(res),1m(u-boot),128k(redenvred),128k(redenv),1m(redu-boot),-(ubi0);68000000.flash:-(ubi1)"
|
||||
CONFIG_CMD_UBI=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_SOURCE_FILE="pg-wcom-seli8"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -19,7 +19,6 @@ CONFIG_ENV_ADDR=0x60220000
|
||||
CONFIG_AHCI=y
|
||||
# CONFIG_DEEP_SLEEP is not set
|
||||
CONFIG_LAYERSCAPE_NS_ACCESS=y
|
||||
CONFIG_KM_DEF_NETDEV="eth2"
|
||||
CONFIG_KM_COMMON_ETH_INIT=y
|
||||
CONFIG_PIGGY_MAC_ADDRESS_OFFSET=3
|
||||
CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED=y
|
||||
@ -62,6 +61,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=60000000.nor,nand0=68000000.flash"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=60000000.nor:128k(rcw),128k(qe),128k(envred),128k(env),512k(res),1m(u-boot),128k(redenvred),128k(redenv),1m(redu-boot),-(ubi0);68000000.flash:-(ubi1)"
|
||||
CONFIG_CMD_UBI=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_SOURCE_FILE="pg-wcom-seli8"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_FLASH=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -3,7 +3,7 @@ CONFIG_SYS_L2_PL310=y
|
||||
CONFIG_ARCH_SOCFPGA=y
|
||||
CONFIG_SYS_MALLOC_LEN=0x4000000
|
||||
CONFIG_SYS_MALLOC_F_LEN=0x800
|
||||
CONFIG_ENV_SIZE=0x1000
|
||||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_OFFSET=0x100000
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_secu1"
|
||||
@ -24,7 +24,6 @@ CONFIG_BOOT_RETRY=y
|
||||
CONFIG_BOOT_RETRY_TIME=45
|
||||
CONFIG_RESET_TO_RETRY=y
|
||||
CONFIG_USE_BOOTARGS=y
|
||||
CONFIG_BOOTARGS="console=ttyS0,115200 ubi.fm_autoconvert=1 uio_pdrv_genirq.of_id=\"idq,regbank\""
|
||||
CONFIG_BOOTCOMMAND="setenv bootcmd 'bridge enable; if test ${bootnum} = 'b'; then run _fpga_loadsafe; else if test ${bootcount} -eq 4; then echo 'Switching copy...'; setexpr x $bootnum % 2 && setexpr bootnum $x + 1; saveenv; fi; run _fpga_loaduser; fi;echo 'Booting bank $bootnum' && run userload && run userboot;' && setenv altbootcmd 'setenv bootnum b && saveenv && boot;' && saveenv && saveenv && boot;"
|
||||
CONFIG_DEFAULT_FDT_FILE="socfpga_arria5_secu1.dtb"
|
||||
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
|
||||
@ -65,6 +64,7 @@ CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
# CONFIG_ISO_PARTITION is not set
|
||||
# CONFIG_EFI_PARTITION is not set
|
||||
CONFIG_ENV_SOURCE_FILE="socfpga_secu"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_NAND=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
|
@ -157,6 +157,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -176,13 +177,10 @@ CONFIG_SYS_OR1_PRELIM=0xF8000E25
|
||||
CONFIG_SYS_BR2_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR2_PRELIM=0xA0000801
|
||||
CONFIG_SYS_OR2_PRELIM=0xF0000C25
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -179,6 +179,7 @@ CONFIG_MTDIDS_DEFAULT="nor0=boot"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=boot:768k(u-boot),128k(env),128k(envred),-(ubi0);"
|
||||
CONFIG_CMD_UBI=y
|
||||
# CONFIG_CMD_UBIFS is not set
|
||||
CONFIG_ENV_SOURCE_FILE="km83xx"
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
|
||||
CONFIG_ENV_ADDR_REDUND=0xF00E0000
|
||||
@ -200,13 +201,10 @@ CONFIG_SYS_OR2_PRELIM=0xF0000C25
|
||||
CONFIG_SYS_BR3_PRELIM_BOOL=y
|
||||
CONFIG_SYS_BR3_PRELIM=0xB0000801
|
||||
CONFIG_SYS_OR3_PRELIM=0xF0000E24
|
||||
CONFIG_SYS_I2C_LEGACY=y
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_SYS_FSL_I2C_OFFSET=0x3000
|
||||
CONFIG_SYS_FSL_HAS_I2C2_OFFSET=y
|
||||
CONFIG_SYS_FSL_I2C2_OFFSET=0x3100
|
||||
CONFIG_SYS_I2C_SLAVE=0x7F
|
||||
CONFIG_SYS_I2C_SPEED=200000
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
# CONFIG_MMC is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
|
@ -57,6 +57,8 @@ CONFIG_CMD_EXT4=y
|
||||
CONFIG_CMD_FAT=y
|
||||
CONFIG_CMD_FS_GENERIC=y
|
||||
CONFIG_CMD_MTDPARTS=y
|
||||
CONFIG_MTDIDS_DEFAULT="nand0=nand"
|
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
|
||||
CONFIG_CMD_UBI=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ARP_TIMEOUT=200
|
||||
|
@ -30,8 +30,6 @@ static const char *get_mtdids(void)
|
||||
|
||||
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
|
||||
board_mtdparts_default(&mtdids, &mtdparts);
|
||||
#elif defined(MTDIDS_DEFAULT)
|
||||
mtdids = MTDIDS_DEFAULT;
|
||||
#elif defined(CONFIG_MTDIDS_DEFAULT)
|
||||
mtdids = CONFIG_MTDIDS_DEFAULT;
|
||||
#endif
|
||||
@ -147,8 +145,6 @@ static const char *get_mtdparts(void)
|
||||
|
||||
#if defined(CONFIG_SYS_MTDPARTS_RUNTIME)
|
||||
board_mtdparts_default(&mtdids, &mtdparts);
|
||||
#elif defined(MTDPARTS_DEFAULT)
|
||||
mtdparts = MTDPARTS_DEFAULT;
|
||||
#elif defined(CONFIG_MTDPARTS_DEFAULT)
|
||||
mtdparts = CONFIG_MTDPARTS_DEFAULT;
|
||||
#endif
|
||||
|
@ -21,7 +21,6 @@
|
||||
* for your console driver.
|
||||
*/
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
|
||||
#define MTDPARTS_MTDOOPS "errlog"
|
||||
|
||||
/*
|
||||
|
@ -21,7 +21,6 @@
|
||||
* for your console driver.
|
||||
*/
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
|
||||
#define MTDPARTS_MTDOOPS "errlog"
|
||||
|
||||
/*
|
||||
|
@ -115,7 +115,6 @@
|
||||
}
|
||||
#define CFG_SYS_NAND_ECCSIZE 512
|
||||
#define CFG_SYS_NAND_ECCBYTES 26
|
||||
#define MTDIDS_DEFAULT "nand0=nand.0"
|
||||
|
||||
#endif /* CONFIG_MTD_RAW_NAND */
|
||||
|
||||
|
@ -1,174 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* (C) Copyright 2008-2011
|
||||
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
||||
*/
|
||||
|
||||
#ifndef __CONFIG_KEYMILE_H
|
||||
#define __CONFIG_KEYMILE_H
|
||||
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/*
|
||||
* Miscellaneous configurable options
|
||||
*/
|
||||
|
||||
#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
|
||||
|
||||
#ifndef CONFIG_KM_DEF_ENV_BOOTPARAMS
|
||||
#define CONFIG_KM_DEF_ENV_BOOTPARAMS \
|
||||
"actual_bank=0\0"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_KM_UBI_PARTITION_NAME_BOOT
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
|
||||
#endif /* CONFIG_KM_UBI_PARTITION_NAME_BOOT */
|
||||
|
||||
#ifndef CONFIG_KM_UBI_PART_BOOT_OPTS
|
||||
#define CONFIG_KM_UBI_PART_BOOT_OPTS ""
|
||||
#endif /* CONFIG_KM_UBI_PART_BOOT_OPTS */
|
||||
|
||||
#ifndef CONFIG_KM_UBI_PARTITION_NAME_APP
|
||||
/* one flash chip only called boot */
|
||||
/* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */
|
||||
# define CONFIG_KM_UBI_LINUX_MTD \
|
||||
"ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \
|
||||
CONFIG_KM_UBI_PART_BOOT_OPTS
|
||||
# define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \
|
||||
"ubiattach=ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "\0"
|
||||
#else /* CONFIG_KM_UBI_PARTITION_NAME_APP */
|
||||
/* two flash chips called boot and app */
|
||||
/* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */
|
||||
/* app: CONFIG_KM_UBI_PARTITION_NAME_APP */
|
||||
# define CONFIG_KM_UBI_LINUX_MTD \
|
||||
"ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \
|
||||
CONFIG_KM_UBI_PART_BOOT_OPTS " " \
|
||||
"ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP
|
||||
# define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \
|
||||
"ubiattach=if test ${boot_bank} -eq 0; then; " \
|
||||
"ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "; else; " \
|
||||
"ubi part " CONFIG_KM_UBI_PARTITION_NAME_APP "; fi\0"
|
||||
#endif /* CONFIG_KM_UBI_PARTITION_NAME_APP */
|
||||
|
||||
#ifdef CONFIG_NAND_ECC_BCH
|
||||
#define CONFIG_KM_UIMAGE_NAME "ecc_bch_uImage\0"
|
||||
#define CONFIG_KM_ECC_MODE " eccmode=bch"
|
||||
#else
|
||||
#define CONFIG_KM_UIMAGE_NAME "uImage\0"
|
||||
#define CONFIG_KM_ECC_MODE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* boottargets
|
||||
* - set 'subbootcmds'
|
||||
* - set 'bootcmd' and 'altbootcmd'
|
||||
* available targets:
|
||||
* - 'release': for a standalone system kernel/rootfs from flash
|
||||
*/
|
||||
#define CONFIG_KM_DEF_ENV_BOOTTARGETS \
|
||||
"subbootcmds=ubiattach ubicopy checkfdt cramfsloadfdt " \
|
||||
"set_fdthigh cramfsloadkernel flashargs add_default " \
|
||||
"addpanic boot\0" \
|
||||
"develop=" \
|
||||
"tftp ${load_addr_r} scripts/develop-${arch}.txt && " \
|
||||
"env import -t ${load_addr_r} ${filesize} && " \
|
||||
"run setup_debug_env\0" \
|
||||
"ramfs=" \
|
||||
"tftp ${load_addr_r} scripts/ramfs-${arch}.txt && " \
|
||||
"env import -t ${load_addr_r} ${filesize} && " \
|
||||
"run setup_debug_env\0" \
|
||||
""
|
||||
|
||||
/*
|
||||
* bootargs
|
||||
* - modify 'bootargs'
|
||||
*
|
||||
* - 'add_default': default bootargs common for all arm/ppc boards
|
||||
* - 'addpanic': add kernel panic options
|
||||
* - 'flashargs': defaults arguments for flash base boot
|
||||
*
|
||||
*/
|
||||
#define CONFIG_KM_DEF_ENV_BOOTARGS \
|
||||
"add_default=" \
|
||||
"setenv bootargs ${bootargs} " \
|
||||
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
|
||||
":${hostname}:${netdev}:off:" \
|
||||
" console=" CONFIG_KM_CONSOLE_TTY ",${baudrate}" \
|
||||
" mem=${kernelmem} init=${init}" \
|
||||
CONFIG_KM_ECC_MODE \
|
||||
" phram.phram=phvar,${varaddr}," __stringify(CONFIG_KM_PHRAM)\
|
||||
" " CONFIG_KM_UBI_LINUX_MTD " " \
|
||||
CONFIG_KM_DEF_BOOT_ARGS_CPU \
|
||||
"\0" \
|
||||
"addpanic=" \
|
||||
"setenv bootargs ${bootargs} panic=1 panic_on_oops=1\0" \
|
||||
"flashargs=" \
|
||||
"setenv bootargs " \
|
||||
"root=mtdblock:rootfs${boot_bank} " \
|
||||
"rootfstype=squashfs ro\0" \
|
||||
""
|
||||
|
||||
/*
|
||||
* flash_boot
|
||||
* - commands for booting from flash
|
||||
*
|
||||
* - 'cramfsloadkernel': copy kernel from a cramfs to ram
|
||||
* - 'ubiattach': attach ubi partition
|
||||
* - 'ubicopy': copy ubi volume to ram
|
||||
* - volume names: bootfs0, bootfs1, bootfs2, ...
|
||||
*
|
||||
* processor specific settings
|
||||
* - 'cramfsloadfdt': copy fdt from a cramfs to ram
|
||||
*/
|
||||
#define CONFIG_KM_DEF_ENV_FLASH_BOOT \
|
||||
"cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0" \
|
||||
"cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0" \
|
||||
"ubicopy=ubi read ${cramfsaddr} bootfs${boot_bank}\0" \
|
||||
"uimage=" CONFIG_KM_UIMAGE_NAME \
|
||||
CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI
|
||||
|
||||
/*
|
||||
* constants
|
||||
* - KM specific constants and commands
|
||||
*
|
||||
* - 'default': setup default environment
|
||||
*/
|
||||
#define CONFIG_KM_DEF_ENV_CONSTANTS \
|
||||
"backup_bank=0\0" \
|
||||
"release=run newenv; reset\0" \
|
||||
"pnvramsize=" __stringify(CONFIG_KM_PNVRAM) "\0" \
|
||||
"testbootcmd=setenv boot_bank ${test_bank}; " \
|
||||
"run ${subbootcmds}; reset\0" \
|
||||
"env_version=1\0" \
|
||||
""
|
||||
|
||||
#ifndef CONFIG_KM_DEF_ENV
|
||||
#define CONFIG_KM_DEF_ENV \
|
||||
CONFIG_KM_DEF_ENV_BOOTPARAMS \
|
||||
"netdev=" __stringify(CONFIG_KM_DEF_NETDEV) "\0" \
|
||||
CONFIG_KM_DEF_ENV_CPU \
|
||||
CONFIG_KM_DEF_ENV_BOOTTARGETS \
|
||||
CONFIG_KM_DEF_ENV_BOOTARGS \
|
||||
CONFIG_KM_DEF_ENV_FLASH_BOOT \
|
||||
CONFIG_KM_DEF_ENV_CONSTANTS \
|
||||
"altbootcmd=run bootcmd\0" \
|
||||
"boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \
|
||||
"bootcmd=km_checkbidhwk && " \
|
||||
"setenv bootcmd \'if km_checktestboot; then; " \
|
||||
"setenv boot_bank ${test_bank}; else; " \
|
||||
"setenv boot_bank ${actual_bank}; fi;" \
|
||||
"run ${subbootcmds}; reset\' && " \
|
||||
"setenv altbootcmd \'setenv boot_bank ${backup_bank}; " \
|
||||
"run ${subbootcmds}; reset\' && " \
|
||||
"saveenv && saveenv && boot\0" \
|
||||
"cramfsloadfdt=" \
|
||||
"cramfsload ${fdt_addr_r} " \
|
||||
"fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \
|
||||
"fdt_addr_r=" __stringify(CONFIG_KM_FDT_ADDR) "\0" \
|
||||
"init=/sbin/init-overlay.sh\0" \
|
||||
"load_addr_r=" __stringify(CONFIG_KM_KERNEL_ADDR) "\0" \
|
||||
"load=tftpboot ${load_addr_r} ${u-boot}\0" \
|
||||
""
|
||||
#endif /* CONFIG_KM_DEF_ENV */
|
||||
|
||||
#endif /* __CONFIG_KEYMILE_H */
|
@ -66,9 +66,3 @@
|
||||
|
||||
#define CFG_SYS_DDR_TIMING_3 0x00000000
|
||||
|
||||
/* EEprom support */
|
||||
|
||||
/*
|
||||
* PAXE on the local bus CS3
|
||||
*/
|
||||
#define CFG_SYS_PAXE_BASE 0xA0000000
|
||||
|
@ -48,14 +48,6 @@
|
||||
|
||||
#define CFG_SYS_FLASH_BANKS_LIST { CFG_SYS_FLASH_BASE }
|
||||
|
||||
/* I2C */
|
||||
#define CFG_SYS_NUM_I2C_BUSES 4
|
||||
#define CFG_SYS_I2C_MAX_HOPS 1
|
||||
#define CFG_SYS_I2C_BUSES {{0, {I2C_NULL_HOP} }, \
|
||||
{0, {{I2C_MUX_PCA9547, 0x70, 2} } }, \
|
||||
{0, {{I2C_MUX_PCA9547, 0x70, 1} } }, \
|
||||
{1, {I2C_NULL_HOP} } }
|
||||
|
||||
#if defined(CONFIG_CMD_NAND)
|
||||
#define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE
|
||||
#endif
|
||||
@ -67,30 +59,6 @@
|
||||
*/
|
||||
#define CFG_SYS_BOOTMAPSZ (8 << 20)
|
||||
|
||||
/*
|
||||
* Environment
|
||||
*/
|
||||
|
||||
/*
|
||||
* Environment Configuration
|
||||
*/
|
||||
#ifndef CONFIG_KM_DEF_ENV /* if not set by keymile-common.h */
|
||||
#define CONFIG_KM_DEF_ENV "km-common=empty\0"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_KM_DEF_ARCH
|
||||
#define CONFIG_KM_DEF_ARCH "arch=ppc_82xx\0"
|
||||
#endif
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
CONFIG_KM_DEF_ENV \
|
||||
CONFIG_KM_DEF_ARCH \
|
||||
"newenv=" \
|
||||
"prot off " __stringify(CONFIG_ENV_ADDR) " +0x40000 && " \
|
||||
"era " __stringify(CONFIG_ENV_ADDR) " +0x40000\0" \
|
||||
"unlock=yes\0" \
|
||||
""
|
||||
|
||||
/*
|
||||
* QE UEC ethernet configuration
|
||||
*/
|
||||
|
@ -1,46 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* (C) Copyright 2011
|
||||
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
||||
*/
|
||||
|
||||
#ifndef __CONFIG_KEYMILE_POWERPC_H
|
||||
#define __CONFIG_KEYMILE_POWERPC_H
|
||||
|
||||
/* Do boardspecific init for all boards */
|
||||
|
||||
/* Increase max size of compressed kernel */
|
||||
|
||||
/******************************************************************************
|
||||
* (PRAM usage)
|
||||
* ... -------------------------------------------------------
|
||||
* ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM
|
||||
* ... |<------------------- pram -------------------------->|
|
||||
* ... -------------------------------------------------------
|
||||
* @END_OF_RAM:
|
||||
* @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose
|
||||
* @CONFIG_KM_PHRAM: address for /var
|
||||
* @CONFIG_KM_PNVRAM: address for PNVRAM (for the application)
|
||||
*/
|
||||
|
||||
/* set the default PRAM value to at least PNVRAM + PHRAM when pram env variable
|
||||
* is not valid yet, which is the case for when u-boot copies itself to RAM */
|
||||
#define CONFIG_PRAM ((CONFIG_KM_PNVRAM + CONFIG_KM_PHRAM)>>10)
|
||||
|
||||
/* architecture specific default bootargs */
|
||||
#define CONFIG_KM_DEF_BOOT_ARGS_CPU ""
|
||||
|
||||
#define CONFIG_KM_DEF_ENV_CPU \
|
||||
"u-boot="CONFIG_HOSTNAME "/u-boot.bin\0" \
|
||||
"update=" \
|
||||
"protect off " __stringify(BOOTFLASH_START) " +${filesize} && "\
|
||||
"erase " __stringify(BOOTFLASH_START) " +${filesize} && "\
|
||||
"cp.b ${load_addr_r} " __stringify(BOOTFLASH_START) \
|
||||
" ${filesize} && " \
|
||||
"protect on " __stringify(BOOTFLASH_START) " +${filesize}\0"\
|
||||
"set_fdthigh=true\0" \
|
||||
"checkfdt=true\0" \
|
||||
"bootm_mapsize=" __stringify(CONFIG_SYS_BOOTM_LEN) "\0" \
|
||||
""
|
||||
|
||||
#endif /* __CONFIG_KEYMILE_POWERPC_H */
|
@ -6,9 +6,6 @@
|
||||
#ifndef __CONFIG_PG_WCOM_LS102XA_H
|
||||
#define __CONFIG_PG_WCOM_LS102XA_H
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "keymile-common.h"
|
||||
|
||||
#define CFG_SYS_INIT_RAM_ADDR OCRAM_BASE_ADDR
|
||||
#define CFG_SYS_INIT_RAM_SIZE OCRAM_SIZE
|
||||
|
||||
@ -168,68 +165,6 @@
|
||||
|
||||
#define HWCONFIG_BUFFER_SIZE 256
|
||||
|
||||
/*
|
||||
* Environment
|
||||
*/
|
||||
|
||||
#define CONFIG_ENV_TOTAL_SIZE 0x40000
|
||||
#define ENV_DEL_ADDR CONFIG_ENV_ADDR_REDUND /* direct for newenv */
|
||||
|
||||
#ifndef CONFIG_KM_DEF_ENV /* if not set by keymile-common.h */
|
||||
#define CONFIG_KM_DEF_ENV
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_KM_DEF_BOOT_ARGS_CPU
|
||||
#define CONFIG_KM_DEF_BOOT_ARGS_CPU ""
|
||||
#endif
|
||||
|
||||
#define CONFIG_KM_DEF_ENV_CPU \
|
||||
"boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \
|
||||
"cramfsloadfdt=" \
|
||||
"cramfsload ${fdt_addr_r} " \
|
||||
"fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \
|
||||
"u-boot=" CONFIG_HOSTNAME "/u-boot.bin\0" \
|
||||
"update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize} && " \
|
||||
"erase " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize} && " \
|
||||
"cp.b ${load_addr_r} " \
|
||||
__stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize} && " \
|
||||
"protect on " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize}\0" \
|
||||
"update-nor=protect off " __stringify(CFG_SYS_FLASH_BASE) \
|
||||
" +${filesize} && " \
|
||||
"erase " __stringify(CFG_SYS_FLASH_BASE) \
|
||||
" +${filesize} && " \
|
||||
"cp.b ${load_addr_r} " \
|
||||
__stringify(CFG_SYS_FLASH_BASE) " ${filesize} && " \
|
||||
"protect on " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +" __stringify(CONFIG_SYS_MONITOR_LEN)"\0" \
|
||||
"set_fdthigh=true\0" \
|
||||
"checkfdt=true\0" \
|
||||
""
|
||||
|
||||
#define CONFIG_KM_NEW_ENV \
|
||||
"newenv=protect off " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) " && " \
|
||||
"erase " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) " && " \
|
||||
"protect on " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) "\0"
|
||||
|
||||
#define CONFIG_HW_ENV_SETTINGS \
|
||||
"hwconfig=devdis:esdhc,usb3,usb2,sata,sec,dcu,duart2,qspi," \
|
||||
"can1,can2_4,ftm2_8,i2c2_3,sai1_4,lpuart2_6," \
|
||||
"asrc,spdif,lpuart1,ftm1\0"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
CONFIG_KM_NEW_ENV \
|
||||
CONFIG_KM_DEF_ENV \
|
||||
CONFIG_HW_ENV_SETTINGS \
|
||||
"EEprom_ivm=pca9547:70:9\0" \
|
||||
"ethrotate=no\0" \
|
||||
""
|
||||
|
||||
#define CFG_SYS_BOOTMAPSZ (256 << 20) /* Increase map for Linux */
|
||||
|
||||
#endif
|
||||
|
@ -8,18 +8,6 @@
|
||||
#ifndef __KMCENT2_H
|
||||
#define __KMCENT2_H
|
||||
|
||||
#define CONFIG_HOSTNAME "kmcent2"
|
||||
#define KM_BOARD_NAME CONFIG_HOSTNAME
|
||||
|
||||
/*
|
||||
* The Linux fsl_fman driver needs to be able to process frames with more
|
||||
* than just the VLAN tag (i.e. eDSA tag). It is passed as a kernel boot
|
||||
* parameters
|
||||
*/
|
||||
#define CONFIG_KM_DEF_BOOT_ARGS_CPU "fsl_dpaa_fman.fsl_fm_max_frm=1558"
|
||||
|
||||
#include "km/keymile-common.h"
|
||||
|
||||
/* Application IFC chip selects */
|
||||
#define SYS_LAWAPP_BASE 0xc0000000
|
||||
#define SYS_LAWAPP_BASE_PHYS (0xf00000000ull | SYS_LAWAPP_BASE)
|
||||
@ -387,66 +375,4 @@ int get_scl(void);
|
||||
*/
|
||||
#define CFG_SYS_BOOTMAPSZ (64 << 20) /* Initial map for Linux*/
|
||||
|
||||
/*
|
||||
* Environment Configuration
|
||||
*/
|
||||
#ifndef CONFIG_KM_DEF_ENV /* if not set by keymile-common.h */
|
||||
#define CONFIG_KM_DEF_ENV
|
||||
#endif
|
||||
|
||||
#define __USB_PHY_TYPE utmi
|
||||
|
||||
#define CONFIG_KM_DEF_ENV_CPU \
|
||||
"boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \
|
||||
"cramfsloadfdt=" \
|
||||
"cramfsload ${fdt_addr_r} " \
|
||||
"fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \
|
||||
"u-boot=" CONFIG_HOSTNAME "/u-boot.bin\0" \
|
||||
"update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize} && " \
|
||||
"erase " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize} && " \
|
||||
"cp.b ${load_addr_r} " \
|
||||
__stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize} && " \
|
||||
"protect on " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +${filesize}\0" \
|
||||
"update-nor=protect off " __stringify(CFG_SYS_FLASH_BASE) \
|
||||
" +${filesize} && " \
|
||||
"erase " __stringify(CFG_SYS_FLASH_BASE) \
|
||||
" +${filesize} && " \
|
||||
"cp.b ${load_addr_r} " \
|
||||
__stringify(CFG_SYS_FLASH_BASE) " ${filesize} && " \
|
||||
"protect on " __stringify(CONFIG_SYS_MONITOR_BASE) \
|
||||
" +" __stringify(CONFIG_SYS_MONITOR_LEN) "\0" \
|
||||
"set_fdthigh=true\0" \
|
||||
"checkfdt=true\0" \
|
||||
"fpgacfg=true\0" \
|
||||
""
|
||||
|
||||
#define CONFIG_HW_ENV_SETTINGS \
|
||||
"hwconfig=fsl_ddr:ctlr_intlv=cacheline\0" \
|
||||
"usb_phy_type=" __stringify(__USB_PHY_TYPE) "\0" \
|
||||
"usb_dr_mode=host\0"
|
||||
|
||||
#define CONFIG_KM_NEW_ENV \
|
||||
"newenv=protect off " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) " && " \
|
||||
"erase " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) " && " \
|
||||
"protect on " __stringify(ENV_DEL_ADDR) \
|
||||
" +" __stringify(CONFIG_ENV_TOTAL_SIZE) "\0"
|
||||
|
||||
/* ppc_82xx is the equivalent to ppc_6xx, the generic ppc toolchain */
|
||||
#ifndef CONFIG_KM_DEF_ARCH
|
||||
#define CONFIG_KM_DEF_ARCH "arch=ppc_82xx\0"
|
||||
#endif
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
CONFIG_KM_DEF_ENV \
|
||||
CONFIG_KM_DEF_ARCH \
|
||||
CONFIG_KM_NEW_ENV \
|
||||
CONFIG_HW_ENV_SETTINGS \
|
||||
"EEprom_ivm=pca9547:70:9\0" \
|
||||
""
|
||||
|
||||
#endif /* __KMCENT2_H */
|
||||
|
@ -8,16 +8,10 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define CONFIG_HOSTNAME "kmcoge5ne"
|
||||
#define NAND_MAX_CHIPS 1
|
||||
#define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE /* PRIO_BASE_ADDRESS */
|
||||
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc8360.h"
|
||||
|
||||
|
@ -8,11 +8,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define CONFIG_HOSTNAME "kmeter1"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc8360.h"
|
||||
|
||||
|
@ -20,14 +20,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/*
|
||||
* High Level Configuration Options
|
||||
*/
|
||||
#define CONFIG_HOSTNAME "kmopti2"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc832x.h"
|
||||
|
||||
|
@ -20,14 +20,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/*
|
||||
* High Level Configuration Options
|
||||
*/
|
||||
#define CONFIG_HOSTNAME "kmsupx5"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc832x.h"
|
||||
|
||||
|
@ -20,14 +20,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/*
|
||||
* High Level Configuration Options
|
||||
*/
|
||||
#define CONFIG_HOSTNAME "kmtepr2"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc832x.h"
|
||||
|
||||
|
@ -7,10 +7,6 @@
|
||||
#define __CONFIG_PG_WCOM_EXPU1_H
|
||||
|
||||
#define WCOM_EXPU1
|
||||
#define CONFIG_HOSTNAME "EXPU1"
|
||||
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
|
||||
|
||||
/* CLIPS FPGA Definitions */
|
||||
#define CFG_SYS_CSPR3_EXT (0x00)
|
||||
|
@ -6,11 +6,6 @@
|
||||
#ifndef __CONFIG_PG_WCOM_SELI8_H
|
||||
#define __CONFIG_PG_WCOM_SELI8_H
|
||||
|
||||
#define CONFIG_HOSTNAME "SELI8"
|
||||
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0"
|
||||
#define CONFIG_KM_UBI_PARTITION_NAME_APP "ubi1"
|
||||
|
||||
/* PAXK FPGA Definitions */
|
||||
#define CFG_SYS_CSPR3_EXT (0x00)
|
||||
#define CFG_SYS_CSPR3 (CSPR_PHYS_ADDR(CONFIG_SYS_PAX_BASE) | \
|
||||
|
@ -7,7 +7,6 @@
|
||||
#define __CONFIG_SOCFPGA_SECU1_H__
|
||||
|
||||
#include <asm/arch/base_addr_ac5.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
/* Eternal oscillator */
|
||||
#define CFG_SYS_TIMER_RATE 40000000
|
||||
@ -23,58 +22,6 @@
|
||||
*/
|
||||
#define CFG_SYS_I2C_RTC_ADDR 0x68
|
||||
|
||||
/* Environment settings */
|
||||
|
||||
/*
|
||||
* FPGA Remote Update related environment
|
||||
*
|
||||
* Note that since those commands access the FPGA, the HPS-to-FPGA
|
||||
* bridges MUST have been previously enabled (for example
|
||||
* with 'bridge enable').
|
||||
*/
|
||||
#define FPGA_RMTU_ENV \
|
||||
"rmtu_page=0xFF29000C\0" \
|
||||
"rmtu_reconfig=0xFF290018\0" \
|
||||
"fpga_safebase=0x0\0" \
|
||||
"fpga_userbase=0x2000000\0" \
|
||||
"_fpga_loaduser=echo Loading FPGA USER image..." \
|
||||
" && mw ${rmtu_page} ${fpga_userbase} && mw ${rmtu_reconfig} 1\0" \
|
||||
"_fpga_loadsafe=echo Loading FPGA SAFE image..." \
|
||||
" && mw ${rmtu_page} ${fpga_safebase} && mw ${rmtu_reconfig} 1\0" \
|
||||
|
||||
#define CONFIG_KM_NEW_ENV \
|
||||
"newenv=" \
|
||||
"nand erase 0x100000 0x40000\0"
|
||||
|
||||
#define CONFIG_KM_DEF_ENV_BOOTTARGETS \
|
||||
"release=" \
|
||||
"run newenv; reset\0" \
|
||||
"develop=" \
|
||||
"tftp 0x200000 scripts/develop-secu.txt && env import -t 0x200000 ${filesize} && saveenv && reset\0"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
FPGA_RMTU_ENV \
|
||||
CONFIG_KM_DEF_ENV_BOOTTARGETS \
|
||||
CONFIG_KM_NEW_ENV \
|
||||
"socfpga_legacy_reset_compat=1\0" \
|
||||
"altbootcmd=run bootcmd;\0" \
|
||||
"bootlimit=6\0" \
|
||||
"bootnum=1\0" \
|
||||
"bootretry=" __stringify(CONFIG_BOOT_RETRY_TIME) "\0" \
|
||||
"fdt_addr=" __stringify(CONFIG_KM_FDT_ADDR) "\0" \
|
||||
"load=tftpboot ${loadaddr} u-boot-with-nand-spl.sfp\0" \
|
||||
"loadaddr=" __stringify(CONFIG_KM_KERNEL_ADDR) "\0" \
|
||||
"update=nand erase 0x0 0x00100000 && nand write ${loadaddr} 0x0 ${filesize}\0" \
|
||||
"userload=ubi part nand.ubi &&" \
|
||||
"ubi check rootfs$bootnum &&" \
|
||||
"ubi read $fdt_addr dtb$bootnum &&" \
|
||||
"ubi read $loadaddr kernel$bootnum\0" \
|
||||
"userboot=setenv bootargs " CONFIG_BOOTARGS \
|
||||
" ubi.mtd=1 ubi.block=0,rootfs$bootnum root=/dev/ubiblock0_$ubivolid" \
|
||||
" ro rootfstype=squashfs init=sbin/preinit;" \
|
||||
"bootz ${loadaddr} - ${fdt_addr}\0" \
|
||||
"verify=y\0"
|
||||
|
||||
/* The rest of the configuration is shared */
|
||||
#include <configs/socfpga_common.h>
|
||||
|
||||
|
@ -20,14 +20,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/*
|
||||
* High Level Configuration Options
|
||||
*/
|
||||
#define CONFIG_HOSTNAME "tuge1"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc832x.h"
|
||||
|
||||
|
@ -20,14 +20,7 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
/*
|
||||
* High Level Configuration Options
|
||||
*/
|
||||
#define CONFIG_HOSTNAME "tuxx1"
|
||||
|
||||
/* include common defines/options for all Keymile boards */
|
||||
#include "km/keymile-common.h"
|
||||
#include "km/km-powerpc.h"
|
||||
#include "km/km-mpc83xx.h"
|
||||
#include "km/km-mpc832x.h"
|
||||
|
||||
|
@ -32,8 +32,6 @@
|
||||
|
||||
/* SPI NOR flash default params, used by sf commands */
|
||||
|
||||
#define MTDIDS_DEFAULT "nand0=nand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=nand:240M(user),8M(errlog),8M(nand-bbt)"
|
||||
#define MTDPARTS_MTDOOPS "errlog"
|
||||
|
||||
/* Partition support */
|
||||
|
68
include/environment/pg-wcom/common.env
Normal file
68
include/environment/pg-wcom/common.env
Normal file
@ -0,0 +1,68 @@
|
||||
|
||||
#ifndef WCOM_UBI_PARTITION_APP
|
||||
/* one flash chip only called boot */
|
||||
# define WCOM_UBI_LINUX_MTD ubi.mtd=ubi0
|
||||
ubiattach=ubi part ubi0
|
||||
#else /* WCOM_UBI_PARTITION_APP */
|
||||
/* two flash chips called boot and app */
|
||||
# define WCOM_UBI_LINUX_MTD ubi.mtd=ubi0 ubi.mtd=ubi1
|
||||
ubiattach=if test ${boot_bank} -eq 0;
|
||||
then;
|
||||
ubi part ubi0;
|
||||
else;
|
||||
ubi part ubi1;
|
||||
fi
|
||||
#endif /* WCOMC_UBI_PARTITION_APP */
|
||||
|
||||
actual_bank=0
|
||||
|
||||
add_default=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off:
|
||||
console=ttyS0,${baudrate} mem=${kernelmem} init=${init}
|
||||
phram.phram=phvar,${varaddr},CONFIG_KM_PHRAM
|
||||
WCOM_UBI_LINUX_MTD
|
||||
|
||||
addpanic=setenv bootargs ${bootargs} panic=1 panic_on_oops=1
|
||||
altbootcmd=run bootcmd
|
||||
backup_bank=0
|
||||
boot=bootm ${load_addr_r} - ${fdt_addr_r}
|
||||
|
||||
bootcmd=km_checkbidhwk &&
|
||||
setenv bootcmd 'if km_checktestboot;
|
||||
then;
|
||||
setenv boot_bank ${test_bank};
|
||||
else;
|
||||
setenv boot_bank ${actual_bank};
|
||||
fi;
|
||||
run ${subbootcmds}; reset' &&
|
||||
setenv altbootcmd 'setenv boot_bank ${backup_bank};
|
||||
run ${subbootcmds};
|
||||
reset' &&
|
||||
saveenv &&
|
||||
saveenv &&
|
||||
boot
|
||||
|
||||
cramfsaddr=CONFIG_KM_CRAMFS_ADDR
|
||||
cramfsloadfdt=cramfsload ${fdt_addr_r} fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb
|
||||
cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}
|
||||
|
||||
develop=tftp ${load_addr_r} scripts/develop-${arch}.txt &&
|
||||
env import -t ${load_addr_r} ${filesize} &&
|
||||
run setup_debug_env
|
||||
|
||||
env_version=1
|
||||
fdt_addr_r=CONFIG_KM_FDT_ADDR
|
||||
flashargs=setenv bootargs root=mtdblock:rootfs${boot_bank} rootfstype=squashfs ro
|
||||
init=/sbin/init-overlay.sh
|
||||
load=tftpboot ${load_addr_r} ${hostname}/u-boot.bin
|
||||
load_addr_r=CONFIG_KM_KERNEL_ADDR
|
||||
pnvramsize=CONFIG_KM_PNVRAM
|
||||
|
||||
ramfs=tftp ${load_addr_r} scripts/ramfs-${arch}.txt &&
|
||||
env import -t ${load_addr_r} ${filesize} &&
|
||||
run setup_debug_env
|
||||
|
||||
release=run newenv; reset
|
||||
subbootcmds=ubiattach ubicopy checkfdt cramfsloadfdt set_fdthigh
|
||||
cramfsloadkernel flashargs add_default addpanic boot
|
||||
testbootcmd=setenv boot_bank ${test_bank}; run ${subbootcmds}; reset
|
||||
ubicopy=ubi read ${cramfsaddr} bootfs${boot_bank}
|
29
include/environment/pg-wcom/ls102xa.env
Normal file
29
include/environment/pg-wcom/ls102xa.env
Normal file
@ -0,0 +1,29 @@
|
||||
#define WCOM_UBI_PARTITION_APP
|
||||
|
||||
#include <environment/pg-wcom/common.env>
|
||||
|
||||
EEprom_ivm=pca9547:70:9
|
||||
boot=bootm $load_addr_r - $fdt_addr_r
|
||||
checkfdt=true
|
||||
cramfsloadfdt=cramfsload $fdt_addr_r fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb
|
||||
ethrotate=no
|
||||
hwconfig=devdis:esdhc,usb3,usb2,sata,sec,dcu,duart2,qspi,can1,can2_4,ftm2_8,i2c2_3,sai1_4,lpuart2_6,asrc,spdif,lpuart1,ftm1
|
||||
netdev=eth2
|
||||
|
||||
newenv=protect off CONFIG_ENV_ADDR_REDUND +0x40000 &&
|
||||
erase CONFIG_ENV_ADDR_REDUND +0x40000 &&
|
||||
protect on CONFIG_ENV_ADDR_REDUND +0x40000
|
||||
|
||||
set_fdthigh=true
|
||||
|
||||
update=protect off CONFIG_SYS_MONITOR_BASE +${filesize} &&
|
||||
erase CONFIG_SYS_MONITOR_BASE +${filesize} &&
|
||||
cp.b ${load_addr_r} CONFIG_SYS_MONITOR_BASE ${filesize} &&
|
||||
protect on CONFIG_SYS_MONITOR_BASE +${filesize}
|
||||
|
||||
update-nor=protect off CONFIG_SYS_FLASH_BASE +${filesize} &&
|
||||
erase CONFIG_SYS_FLASH_BASE +${filesize} &&
|
||||
cp.b ${load_addr_r} CONFIG_SYS_FLASH_BASE ${filesize} &&
|
||||
protect on CONFIG_SYS_MONITOR_BASE +0x100000
|
||||
|
||||
uimage=uImage
|
14
include/environment/pg-wcom/powerpc.env
Normal file
14
include/environment/pg-wcom/powerpc.env
Normal file
@ -0,0 +1,14 @@
|
||||
arch=ppc_82xx
|
||||
bootm_mapsize=CONFIG_SYS_BOOTM_LEN
|
||||
checkfdt=true
|
||||
set_fdthigh=true
|
||||
|
||||
update=protect off BOOTFLASH_START +${filesize} &&
|
||||
erase BOOTFLASH_START +${filesize} &&
|
||||
cp.b ${load_addr_r} BOOTFLASH_START ${filesize} &&
|
||||
protect on BOOTFLASH_START +${filesize}
|
||||
|
||||
newenv=prot off CONFIG_ENV_ADDR +0x40000 &&
|
||||
era CONFIG_ENV_ADDR +0x40000
|
||||
|
||||
unlock=yes
|
@ -425,9 +425,11 @@ cmd_efi_objcopy = $(OBJCOPY) -j .header -j .text -j .sdata -j .data -j \
|
||||
$(obj)/%.efi: $(obj)/%_efi.so
|
||||
$(call cmd,efi_objcopy)
|
||||
|
||||
KBUILD_EFILDFLAGS = -nostdlib -zexecstack -znocombreloc -znorelro
|
||||
KBUILD_EFILDFLAGS += $(call ld-option,--no-warn-rwx-segments)
|
||||
quiet_cmd_efi_ld = LD $@
|
||||
cmd_efi_ld = $(LD) -nostdlib -zexecstack -znocombreloc -T $(EFI_LDS_PATH) \
|
||||
-shared -Bsymbolic -znorelro -s $^ -o $@
|
||||
cmd_efi_ld = $(LD) $(KBUILD_EFILDFLAGS) -T $(EFI_LDS_PATH) \
|
||||
-shared -Bsymbolic -s $^ -o $@
|
||||
|
||||
EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)
|
||||
|
||||
|
@ -70,23 +70,6 @@ CONFIG_IRAM_BASE
|
||||
CONFIG_IRAM_END
|
||||
CONFIG_IRAM_SIZE
|
||||
CONFIG_IRAM_TOP
|
||||
CONFIG_KM_DEF_ARCH
|
||||
CONFIG_KM_DEF_BOOT_ARGS_CPU
|
||||
CONFIG_KM_DEF_ENV
|
||||
CONFIG_KM_DEF_ENV_BOOTARGS
|
||||
CONFIG_KM_DEF_ENV_BOOTPARAMS
|
||||
CONFIG_KM_DEF_ENV_BOOTTARGETS
|
||||
CONFIG_KM_DEF_ENV_CONSTANTS
|
||||
CONFIG_KM_DEF_ENV_CPU
|
||||
CONFIG_KM_DEF_ENV_FLASH_BOOT
|
||||
CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI
|
||||
CONFIG_KM_ECC_MODE
|
||||
CONFIG_KM_NEW_ENV
|
||||
CONFIG_KM_UBI_LINUX_MTD
|
||||
CONFIG_KM_UBI_PARTITION_NAME_APP
|
||||
CONFIG_KM_UBI_PARTITION_NAME_BOOT
|
||||
CONFIG_KM_UBI_PART_BOOT_OPTS
|
||||
CONFIG_KM_UIMAGE_NAME
|
||||
CONFIG_KSNET_CPSW_NUM_PORTS
|
||||
CONFIG_KSNET_MAC_ID_BASE
|
||||
CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE
|
||||
|
Loading…
Reference in New Issue
Block a user