Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
89ca873e
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
89ca873e
编写于
7月 21, 2016
作者:
T
Tom Rini
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.denx.de/u-boot-mpc85xx
上级
9f84da8d
b24a4f62
变更
52
隐藏空白更改
内联
并排
Showing
52 changed file
with
350 addition
and
52 deletion
+350
-52
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc85xx/cpu_init.c
+2
-2
arch/powerpc/cpu/mpc85xx/start.S
arch/powerpc/cpu/mpc85xx/start.S
+9
-3
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
+8
-0
arch/powerpc/cpu/mpc8xxx/pamu_table.c
arch/powerpc/cpu/mpc8xxx/pamu_table.c
+8
-0
arch/powerpc/include/asm/fsl_secure_boot.h
arch/powerpc/include/asm/fsl_secure_boot.h
+39
-2
board/freescale/common/fsl_chain_of_trust.c
board/freescale/common/fsl_chain_of_trust.c
+56
-0
board/freescale/t104xrdb/t104x_pbi_sb.cfg
board/freescale/t104xrdb/t104x_pbi_sb.cfg
+38
-0
board/freescale/t104xrdb/tlb.c
board/freescale/t104xrdb/tlb.c
+14
-1
configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
+30
-0
doc/SPL/README.spl-secure-boot
doc/SPL/README.spl-secure-boot
+18
-0
drivers/crypto/fsl/jr.c
drivers/crypto/fsl/jr.c
+17
-0
drivers/mtd/nand/fsl_ifc_spl.c
drivers/mtd/nand/fsl_ifc_spl.c
+24
-0
include/configs/B4860QDS.h
include/configs/B4860QDS.h
+2
-2
include/configs/BSC9131RDB.h
include/configs/BSC9131RDB.h
+1
-1
include/configs/BSC9132QDS.h
include/configs/BSC9132QDS.h
+1
-1
include/configs/C29XPCIE.h
include/configs/C29XPCIE.h
+1
-1
include/configs/MPC8308RDB.h
include/configs/MPC8308RDB.h
+2
-1
include/configs/MPC8313ERDB.h
include/configs/MPC8313ERDB.h
+3
-2
include/configs/MPC8315ERDB.h
include/configs/MPC8315ERDB.h
+3
-2
include/configs/MPC8323ERDB.h
include/configs/MPC8323ERDB.h
+2
-1
include/configs/MPC832XEMDS.h
include/configs/MPC832XEMDS.h
+2
-1
include/configs/MPC8349EMDS.h
include/configs/MPC8349EMDS.h
+2
-1
include/configs/MPC8349ITX.h
include/configs/MPC8349ITX.h
+2
-1
include/configs/MPC837XEMDS.h
include/configs/MPC837XEMDS.h
+2
-1
include/configs/MPC837XERDB.h
include/configs/MPC837XERDB.h
+2
-1
include/configs/MPC8536DS.h
include/configs/MPC8536DS.h
+1
-1
include/configs/MPC8544DS.h
include/configs/MPC8544DS.h
+2
-2
include/configs/MPC8548CDS.h
include/configs/MPC8548CDS.h
+1
-1
include/configs/MPC8572DS.h
include/configs/MPC8572DS.h
+1
-1
include/configs/P1010RDB.h
include/configs/P1010RDB.h
+1
-1
include/configs/P1022DS.h
include/configs/P1022DS.h
+1
-1
include/configs/P1023RDB.h
include/configs/P1023RDB.h
+1
-1
include/configs/P2041RDB.h
include/configs/P2041RDB.h
+1
-1
include/configs/T102xRDB.h
include/configs/T102xRDB.h
+1
-1
include/configs/T1040QDS.h
include/configs/T1040QDS.h
+1
-1
include/configs/T104xRDB.h
include/configs/T104xRDB.h
+29
-2
include/configs/T208xQDS.h
include/configs/T208xQDS.h
+1
-1
include/configs/T208xRDB.h
include/configs/T208xRDB.h
+1
-1
include/configs/T4240QDS.h
include/configs/T4240QDS.h
+1
-1
include/configs/T4240RDB.h
include/configs/T4240RDB.h
+1
-1
include/configs/controlcenterd.h
include/configs/controlcenterd.h
+1
-1
include/configs/corenet_ds.h
include/configs/corenet_ds.h
+1
-1
include/configs/cyrus.h
include/configs/cyrus.h
+1
-1
include/configs/p1_p2_rdb_pc.h
include/configs/p1_p2_rdb_pc.h
+1
-1
include/configs/p1_twr.h
include/configs/p1_twr.h
+1
-1
include/configs/sbc8548.h
include/configs/sbc8548.h
+1
-1
include/configs/xpedite1000.h
include/configs/xpedite1000.h
+1
-1
include/configs/xpedite517x.h
include/configs/xpedite517x.h
+1
-1
include/configs/xpedite520x.h
include/configs/xpedite520x.h
+1
-1
include/configs/xpedite537x.h
include/configs/xpedite537x.h
+1
-1
include/configs/xpedite550x.h
include/configs/xpedite550x.h
+1
-1
include/fsl_validate.h
include/fsl_validate.h
+7
-0
未找到文件。
arch/powerpc/cpu/mpc85xx/cpu_init.c
浏览文件 @
89ca873e
...
...
@@ -439,7 +439,7 @@ ulong cpu_init_f(void)
#ifdef CONFIG_SYS_DCSRBAR_PHYS
ccsr_gur_t
*
gur
=
(
void
*
)(
CONFIG_SYS_MPC85xx_GUTS_ADDR
);
#endif
#if defined(CONFIG_SECURE_BOOT)
#if defined(CONFIG_SECURE_BOOT)
&& !defined(CONFIG_SYS_RAMBOOT)
struct
law_entry
law
;
#endif
#ifdef CONFIG_MPC8548
...
...
@@ -459,7 +459,7 @@ ulong cpu_init_f(void)
disable_tlb
(
14
);
disable_tlb
(
15
);
#if defined(CONFIG_SECURE_BOOT)
#if defined(CONFIG_SECURE_BOOT)
&& !defined(CONFIG_SYS_RAMBOOT)
/* Disable the LAW created for NOR flash by the PBI commands */
law
=
find_law
(
CONFIG_SYS_PBI_FLASH_BASE
);
if
(
law
.
index
!=
-
1
)
...
...
arch/powerpc/cpu/mpc85xx/start.S
浏览文件 @
89ca873e
...
...
@@ -1069,17 +1069,23 @@ create_init_ram_area:
#elif !defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SECURE_BOOT)
/
*
create
a
temp
mapping
in
AS
=
1
for
Flash
mapping
*
created
by
PBL
for
ISBC
code
*/
*/
create_tlb1_entry
15
,
\
1,
BOOKE_PAGESZ_1M
,
\
CONFIG_SYS_MONITOR_BASE
&
0xfff00000
,
MAS2_I
|
MAS2_G
,
\
CONFIG_SYS_PBI_FLASH_WINDOW
&
0xfff00000
,
MAS3_SX|MAS3_SW|MAS3_SR
,
\
0,
r6
#elif defined(CONFIG_RAMBOOT_PBL) && defined(CONFIG_SECURE_BOOT)
/*
*
For
Targets
without
CONFIG_SPL
like
P3
,
P5
*
and
for
targets
with
CONFIG_SPL
like
T1
,
T2
,
T4
,
only
for
*
u
-
boot
-
spl
i
.
e
.
CONFIG_SPL_BUILD
*/
#elif defined(CONFIG_RAMBOOT_PBL) && defined(CONFIG_SECURE_BOOT) && \
(!
defined
(
CONFIG_SPL
)
||
defined
(
CONFIG_SPL_BUILD
))
/
*
create
a
temp
mapping
in
AS
=
1
for
mapping
CONFIG_SYS_MONITOR_BASE
*
to
L3
Address
configured
by
PBL
for
ISBC
code
*/
*/
create_tlb1_entry
15
,
\
1,
BOOKE_PAGESZ_1M
,
\
CONFIG_SYS_MONITOR_BASE
&
0xfff00000
,
MAS2_I
|
MAS2_G
,
\
...
...
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
浏览文件 @
89ca873e
...
...
@@ -239,15 +239,23 @@ int pamu_init(void)
spaact_size
=
sizeof
(
struct
paace
)
*
NUM_SPAACT_ENTRIES
;
/* Allocate space for Primary PAACT Table */
#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_PPAACT_ADDR))
ppaact
=
(
void
*
)
CONFIG_SPL_PPAACT_ADDR
;
#else
ppaact
=
memalign
(
PAMU_TABLE_ALIGNMENT
,
ppaact_size
);
if
(
!
ppaact
)
return
-
1
;
#endif
memset
(
ppaact
,
0
,
ppaact_size
);
/* Allocate space for Secondary PAACT Table */
#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SPAACT_ADDR))
sec
=
(
void
*
)
CONFIG_SPL_SPAACT_ADDR
;
#else
sec
=
memalign
(
PAMU_TABLE_ALIGNMENT
,
spaact_size
);
if
(
!
sec
)
return
-
1
;
#endif
memset
(
sec
,
0
,
spaact_size
);
ppaact_phys
=
virt_to_phys
((
void
*
)
ppaact
);
...
...
arch/powerpc/cpu/mpc8xxx/pamu_table.c
浏览文件 @
89ca873e
...
...
@@ -28,6 +28,14 @@ void construct_pamu_addr_table(struct pamu_addr_tbl *tbl, int *num_entries)
i
++
;
#endif
#if (defined(CONFIG_SPL_BUILD) && (CONFIG_SYS_INIT_L3_VADDR))
tbl
->
start_addr
[
i
]
=
(
uint64_t
)
virt_to_phys
((
void
*
)
CONFIG_SYS_INIT_L3_VADDR
);
tbl
->
size
[
i
]
=
256
*
1024
;
/* 256K CPC flash */
tbl
->
end_addr
[
i
]
=
tbl
->
start_addr
[
i
]
+
tbl
->
size
[
i
]
-
1
;
i
++
;
#endif
debug
(
"PAMU address
\t\t\t
size
\n
"
);
for
(
j
=
0
;
j
<
i
;
j
++
)
debug
(
"%llx
\t\t\t
%llx
\n
"
,
tbl
->
start_addr
[
j
],
tbl
->
size
[
j
]);
...
...
arch/powerpc/include/asm/fsl_secure_boot.h
浏览文件 @
89ca873e
...
...
@@ -35,7 +35,9 @@
defined(CONFIG_T104xD4RDB) || \
defined(CONFIG_PPC_T1023) || \
defined(CONFIG_PPC_T1024)
#ifndef CONFIG_SYS_RAMBOOT
#define CONFIG_SYS_CPC_REINIT_F
#endif
#define CONFIG_KEY_REVOCATION
#undef CONFIG_SYS_INIT_L3_ADDR
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
...
...
@@ -43,7 +45,13 @@
#if defined(CONFIG_RAMBOOT_PBL)
#undef CONFIG_SYS_INIT_L3_ADDR
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
#ifdef CONFIG_SYS_INIT_L3_VADDR
#define CONFIG_SYS_INIT_L3_ADDR \
(CONFIG_SYS_INIT_L3_VADDR & ~0xFFF00000) | \
0xbff00000
#else
#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
#endif
#endif
#if defined(CONFIG_C29XPCIE)
...
...
@@ -72,6 +80,32 @@
#ifdef CONFIG_CHAIN_OF_TRUST
#ifdef CONFIG_SPL_BUILD
#define CONFIG_SPL_DM 1
#define CONFIG_SPL_CRYPTO_SUPPORT
#define CONFIG_SPL_HASH_SUPPORT
#define CONFIG_SPL_RSA
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
/*
* PPAACT and SPAACT table for PAMU must be placed on DDR after DDR init
* due to space crunch on CPC and thus malloc will not work.
*/
#define CONFIG_SPL_PPAACT_ADDR 0x2e000000
#define CONFIG_SPL_SPAACT_ADDR 0x2f000000
#define CONFIG_SPL_JR0_LIODN_S 454
#define CONFIG_SPL_JR0_LIODN_NS 458
/*
* Define the key hash for U-Boot here if public/private key pair used to
* sign U-boot are different from the SRK hash put in the fuse
* Example of defining KEY_HASH is
* #define CONFIG_SPL_UBOOT_KEY_HASH \
* "41066b564c6ffcef40ccbc1e0a5d0d519604000c785d97bbefd25e4d288d1c8b"
* else leave it defined as NULL
*/
#define CONFIG_SPL_UBOOT_KEY_HASH NULL
#endif
/* ifdef CONFIG_SPL_BUILD */
#define CONFIG_CMD_ESBC_VALIDATE
#define CONFIG_CMD_BLOB
#define CONFIG_FSL_SEC_MON
...
...
@@ -82,7 +116,9 @@
#define CONFIG_FSL_CAAM
#endif
/* fsl_setenv_chain_of_trust() must be called from
#ifndef CONFIG_SPL_BUILD
/*
* fsl_setenv_chain_of_trust() must be called from
* board_late_init()
*/
#ifndef CONFIG_BOARD_LATE_INIT
...
...
@@ -119,5 +155,6 @@
#endif
/* #ifdef CONFIG_BOOTSCRIPT_COPY_RAM */
#include <config_fsl_chain_trust.h>
#endif
/* #ifndef CONFIG_SPL_BUILD */
#endif
/* #ifdef CONFIG_CHAIN_OF_TRUST */
#endif
board/freescale/common/fsl_chain_of_trust.c
浏览文件 @
89ca873e
...
...
@@ -6,7 +6,17 @@
#include <common.h>
#include <fsl_validate.h>
#include <fsl_secboot_err.h>
#include <fsl_sfp.h>
#include <dm/root.h>
#ifdef CONFIG_ADDR_MAP
#include <asm/mmu.h>
#endif
#ifdef CONFIG_FSL_CORENET
#include <asm/fsl_pamu.h>
#endif
#ifdef CONFIG_LS102XA
#include <asm/arch/immap_ls102xa.h>
...
...
@@ -52,6 +62,7 @@ int fsl_check_boot_mode_secure(void)
return
0
;
}
#ifndef CONFIG_SPL_BUILD
int
fsl_setenv_chain_of_trust
(
void
)
{
/* Check Boot Mode
...
...
@@ -68,3 +79,48 @@ int fsl_setenv_chain_of_trust(void)
setenv
(
"bootcmd"
,
CONFIG_CHAIN_BOOT_CMD
);
return
0
;
}
#endif
#ifdef CONFIG_SPL_BUILD
void
spl_validate_uboot
(
uint32_t
hdr_addr
,
uintptr_t
img_addr
)
{
int
res
;
/*
* Check Boot Mode
* If Boot Mode is Non-Secure, skip validation
*/
if
(
fsl_check_boot_mode_secure
()
==
0
)
return
;
printf
(
"SPL: Validating U-Boot image
\n
"
);
#ifdef CONFIG_ADDR_MAP
init_addr_map
();
#endif
#ifdef CONFIG_FSL_CORENET
if
(
pamu_init
()
<
0
)
fsl_secboot_handle_error
(
ERROR_ESBC_PAMU_INIT
);
#endif
#ifdef CONFIG_FSL_CAAM
if
(
sec_init
()
<
0
)
fsl_secboot_handle_error
(
ERROR_ESBC_SEC_INIT
);
#endif
/*
* dm_init_and_scan() is called as part of common SPL framework, so no
* need to call it again but in case of powerpc platforms which currently
* do not use common SPL framework, so need to call this function here.
*/
#if defined(CONFIG_SPL_DM) && (!defined(CONFIG_SPL_FRAMEWORK))
dm_init_and_scan
(
false
);
#endif
res
=
fsl_secboot_validate
(
hdr_addr
,
CONFIG_SPL_UBOOT_KEY_HASH
,
&
img_addr
);
if
(
res
==
0
)
printf
(
"SPL: Validation of U-boot successful
\n
"
);
}
#endif
/* ifdef CONFIG_SPL_BUILD */
board/freescale/t104xrdb/t104x_pbi_sb.cfg
0 → 100644
浏览文件 @
89ca873e
#PBI commands
#Software Workaround for errata A-007662 to train PCIe2 controller in Gen2 speed
09250100 00000400
09250108 00002000
#Software Workaround for errata A-008007 to reset PVR register
09000010 0000000b
09000014 c0000000
09000018 81d00017
89020400 a1000000
091380c0 000f0000
89020400 00000000
#Initialize CPC1
09010000 00200400
09138000 00000000
091380c0 00000100
#Configure CPC1 as 256KB SRAM
09010100 00000000
09010104 bffc0007
09010f00 081e000d
09010000 80000000
#Configure LAW for CPC1
09000cd0 00000000
09000cd4 bffc0000
09000cd8 81000011
#Configure alternate space
09000010 00000000
09000014 bf000000
09000018 81000000
#Configure SPI controller
09110000 80000403
09110020 2d170008
09110024 00100008
09110028 00100008
0911002c 00100008
#Flush PBL data
091380c0 000FFFFF
090e0200 bffd0000
091380c0 000FFFFF
board/freescale/t104xrdb/tlb.c
浏览文件 @
89ca873e
...
...
@@ -28,7 +28,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 1 */
/* *I*** - Covers boot page */
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L3_ADDR)
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L3_ADDR) && \
!defined(CONFIG_SECURE_BOOT)
/*
* *I*G - L3SRAM. When L3 is used as 256K SRAM, the address of the
* SRAM is at 0xfffc0000, it covered the 0xfffff000.
...
...
@@ -36,6 +37,18 @@ struct fsl_e_tlb_entry tlb_table[] = {
SET_TLB_ENTRY
(
1
,
CONFIG_SYS_INIT_L3_ADDR
,
CONFIG_SYS_INIT_L3_ADDR
,
MAS3_SX
|
MAS3_SW
|
MAS3_SR
,
MAS2_I
|
MAS2_G
,
0
,
0
,
BOOKE_PAGESZ_256K
,
1
),
#elif defined(CONFIG_SECURE_BOOT) && defined(CONFIG_SPL_BUILD)
/*
* *I*G - L3SRAM. When L3 is used as 256K SRAM, in case of Secure Boot
* the physical address of the SRAM is at 0xbffc0000,
* and virtual address is 0xfffc0000
*/
SET_TLB_ENTRY
(
1
,
CONFIG_SYS_INIT_L3_VADDR
,
CONFIG_SYS_INIT_L3_ADDR
,
MAS3_SX
|
MAS3_SW
|
MAS3_SR
,
MAS2_I
|
MAS2_G
,
0
,
0
,
BOOKE_PAGESZ_256K
,
1
),
#else
SET_TLB_ENTRY
(
1
,
0xfffff000
,
0xfffff000
,
MAS3_SX
|
MAS3_SW
|
MAS3_SR
,
MAS2_I
|
MAS2_G
,
...
...
configs/T1042RDB_PI_NAND_SECURE_BOOT_defconfig
0 → 100644
浏览文件 @
89ca873e
CONFIG_PPC=y
CONFIG_MPC85xx=y
CONFIG_TARGET_T104XRDB=y
CONFIG_SPL=y
CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_OF_BOARD_SETUP=y
CONFIG_OF_STDOUT_VIA_ALIAS=y
CONFIG_SYS_EXTRA_OPTIONS="PPC_T1042,T1042RDB_PI,RAMBOOT_PBL,SPL_FSL_PBL,NAND,SECURE_BOOT"
CONFIG_BOOTDELAY=0
CONFIG_HUSH_PARSER=y
CONFIG_CMD_GREPENV=y
CONFIG_CMD_MMC=y
CONFIG_CMD_SF=y
CONFIG_CMD_I2C=y
CONFIG_CMD_USB=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_EXT2=y
CONFIG_CMD_FAT=y
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_STMICRO=y
CONFIG_NETDEVICES=y
CONFIG_E1000=y
CONFIG_SYS_NS16550=y
CONFIG_FSL_ESPI=y
CONFIG_OF_LIBFDT=y
CONFIG_RSA=y
CONFIG_DM=y
doc/SPL/README.spl-secure-boot
0 → 100644
浏览文件 @
89ca873e
Overview of SPL verified boot on powerpc/mpc85xx & arm/layerscape platforms
===========================================================================
Introduction
------------
This document provides an overview of how SPL verified boot works on powerpc/
mpc85xx & arm/layerscape platforms.
Methodology
-----------
The SPL image is responsible for loading the next stage boot loader, which is
the main u-boot image. For secure boot process on these platforms ROM verifies
SPL image, so to continue chain of trust SPL image verifies U-boot image using
spl_validate_uboot(). This function uses QorIQ Trust Architecture header
(appended to U-boot image) to validate the U-boot binary just before passing
control to it.
drivers/crypto/fsl/jr.c
浏览文件 @
89ca873e
...
...
@@ -599,9 +599,26 @@ int sec_init_idx(uint8_t sec_idx)
sec_out32
(
&
sec
->
mcfgr
,
mcr
);
#ifdef CONFIG_FSL_CORENET
#ifdef CONFIG_SPL_BUILD
/*
* For SPL Build, Set the Liodns in SEC JR0 for
* creating PAMU entries corresponding to these.
* For normal build, these are set in set_liodns().
*/
liodn_ns
=
CONFIG_SPL_JR0_LIODN_NS
&
JRNSLIODN_MASK
;
liodn_s
=
CONFIG_SPL_JR0_LIODN_S
&
JRSLIODN_MASK
;
liodnr
=
sec_in32
(
&
sec
->
jrliodnr
[
0
].
ls
)
&
~
(
JRNSLIODN_MASK
|
JRSLIODN_MASK
);
liodnr
=
liodnr
|
(
liodn_ns
<<
JRNSLIODN_SHIFT
)
|
(
liodn_s
<<
JRSLIODN_SHIFT
);
sec_out32
(
&
sec
->
jrliodnr
[
0
].
ls
,
liodnr
);
#else
liodnr
=
sec_in32
(
&
sec
->
jrliodnr
[
0
].
ls
);
liodn_ns
=
(
liodnr
&
JRNSLIODN_MASK
)
>>
JRNSLIODN_SHIFT
;
liodn_s
=
(
liodnr
&
JRSLIODN_MASK
)
>>
JRSLIODN_SHIFT
;
#endif
#endif
ret
=
jr_init
(
sec_idx
);
...
...
drivers/mtd/nand/fsl_ifc_spl.c
浏览文件 @
89ca873e
...
...
@@ -11,6 +11,9 @@
#include <asm/io.h>
#include <fsl_ifc.h>
#include <linux/mtd/nand.h>
#ifdef CONFIG_CHAIN_OF_TRUST
#include <fsl_validate.h>
#endif
static
inline
int
is_blank
(
uchar
*
addr
,
int
page_size
)
{
...
...
@@ -268,6 +271,27 @@ void nand_boot(void)
*/
flush_cache
(
CONFIG_SYS_NAND_U_BOOT_DST
,
CONFIG_SYS_NAND_U_BOOT_SIZE
);
#endif
#ifdef CONFIG_CHAIN_OF_TRUST
/*
* U-Boot header is appended at end of U-boot image, so
* calculate U-boot header address using U-boot header size.
*/
#define CONFIG_U_BOOT_HDR_ADDR \
((CONFIG_SYS_NAND_U_BOOT_START + \
CONFIG_SYS_NAND_U_BOOT_SIZE) - \
CONFIG_U_BOOT_HDR_SIZE)
spl_validate_uboot
(
CONFIG_U_BOOT_HDR_ADDR
,
CONFIG_SYS_NAND_U_BOOT_START
);
/*
* In case of failure in validation, spl_validate_uboot would
* not return back in case of Production environment with ITS=1.
* Thus U-Boot will not start.
* In Development environment (ITS=0 and SB_EN=1), the function
* may return back in case of non-fatal failures.
*/
#endif
uboot
=
(
void
*
)
CONFIG_SYS_NAND_U_BOOT_START
;
uboot
();
}
...
...
include/configs/B4860QDS.h
浏览文件 @
89ca873e
...
...
@@ -830,7 +830,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=b4860qds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=b4860qds/b4860qds.dtb\0" \
"bdev=sda3\0"
...
...
@@ -868,7 +868,7 @@ unsigned long get_board_ddr_clk(void);
"setenv bootargs root=/dev/ram rw " \
"console=$consoledev,$baudrate $othbootargs;" \
"setenv ramdiskaddr 0x02000000;" \
"setenv fdtaddr 0x0
0c
00000;" \
"setenv fdtaddr 0x0
1e
00000;" \
"setenv loadaddr 0x1000000;" \
"bootm $loadaddr $ramdiskaddr $fdtaddr"
...
...
include/configs/BSC9131RDB.h
浏览文件 @
89ca873e
...
...
@@ -403,7 +403,7 @@ extern unsigned long get_sdram_size(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=bsc9131rdb.dtb\0" \
"bdev=sda1\0" \
"hwconfig=usb1:dr_mode=host,phy_type=ulpi\0" \
...
...
include/configs/BSC9132QDS.h
浏览文件 @
89ca873e
...
...
@@ -647,7 +647,7 @@ combinations. this should be removed later
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=bsc9132qds.dtb\0" \
"bdev=sda1\0" \
CONFIG_DEF_HWCONFIG\
...
...
include/configs/C29XPCIE.h
浏览文件 @
89ca873e
...
...
@@ -530,7 +530,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=name/of/device-tree.dtb\0" \
"othbootargs=ramdisk_size=600000\0" \
...
...
include/configs/MPC8308RDB.h
浏览文件 @
89ca873e
...
...
@@ -203,7 +203,7 @@
*/
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
/* start of monitor */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -452,6 +452,7 @@
* the maximum mapped by the Linux kernel during initialization.
*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC8313ERDB.h
浏览文件 @
89ca873e
...
...
@@ -241,7 +241,7 @@
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -268,7 +268,7 @@
#define CONFIG_CMD_MTDPARTS
#define MTDIDS_DEFAULT "nand0=e2800000.flash"
#define MTDPARTS_DEFAULT \
"mtdparts=e2800000.flash:512k(uboot),128k(env),
3
m@1m(kernel),-(fs)"
"mtdparts=e2800000.flash:512k(uboot),128k(env),
6
m@1m(kernel),-(fs)"
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_CMD_NAND 1
...
...
@@ -502,6 +502,7 @@
*/
/* Initial Memory map for Linux*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
#define CONFIG_SYS_RCWH_PCIHOST 0x80000000
/* PCIHOST */
...
...
include/configs/MPC8315ERDB.h
浏览文件 @
89ca873e
...
...
@@ -169,7 +169,7 @@
/*
* The reserved memory
*/
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -241,7 +241,7 @@
#define CONFIG_CMD_MTDPARTS
#define MTDIDS_DEFAULT "nand0=e0600000.flash"
#define MTDPARTS_DEFAULT \
"mtdparts=e0600000.flash:512k(uboot),128k(env),
3
m@1m(kernel),-(fs)"
"mtdparts=e0600000.flash:512k(uboot),128k(env),
6
m@1m(kernel),-(fs)"
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_CMD_NAND 1
...
...
@@ -489,6 +489,7 @@
* the maximum mapped by the Linux kernel during initialization.
*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC8323ERDB.h
浏览文件 @
89ca873e
...
...
@@ -156,7 +156,7 @@
#endif
/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -359,6 +359,7 @@
*/
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC832XEMDS.h
浏览文件 @
89ca873e
...
...
@@ -168,7 +168,7 @@
#endif
/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -441,6 +441,7 @@
*/
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC8349EMDS.h
浏览文件 @
89ca873e
...
...
@@ -225,7 +225,7 @@
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -508,6 +508,7 @@
*/
/* Initial Memory map for Linux*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
#define CONFIG_SYS_RCWH_PCIHOST 0x80000000
/* PCIHOST */
...
...
include/configs/MPC8349ITX.h
浏览文件 @
89ca873e
...
...
@@ -330,7 +330,7 @@ boards, we say we have two, but don't display a message if we find only one. */
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -544,6 +544,7 @@ boards, we say we have two, but don't display a message if we find only one. */
*/
/* Initial Memory map for Linux*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
#define CONFIG_SYS_HRCW_LOW (\
HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
...
...
include/configs/MPC837XEMDS.h
浏览文件 @
89ca873e
...
...
@@ -200,7 +200,7 @@
#endif
/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -522,6 +522,7 @@ extern int board_pci_host_broken(void);
* the maximum mapped by the Linux kernel during initialization.
*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC837XERDB.h
浏览文件 @
89ca873e
...
...
@@ -225,7 +225,7 @@
#undef CONFIG_SYS_RAMBOOT
#endif
#define CONFIG_SYS_MONITOR_LEN (
384 * 1024)
/* Reserve 384
kB for Mon */
#define CONFIG_SYS_MONITOR_LEN (
512 * 1024)
/* Reserve 512
kB for Mon */
#define CONFIG_SYS_MALLOC_LEN (512 * 1024)
/* Reserved for malloc */
/*
...
...
@@ -533,6 +533,7 @@
* the maximum mapped by the Linux kernel during initialization.
*/
#define CONFIG_SYS_BOOTMAPSZ (256 << 20)
/* Initial Memory map for Linux */
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
/* Increase max gunzip size */
/*
* Core HID Setup
...
...
include/configs/MPC8536DS.h
浏览文件 @
89ca873e
...
...
@@ -727,7 +727,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=8536ds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=8536ds/mpc8536ds.dtb\0" \
"bdev=sda3\0" \
"hwconfig=usb1:dr_mode=host,phy_type=ulpi\0"
...
...
include/configs/MPC8544DS.h
浏览文件 @
89ca873e
...
...
@@ -209,7 +209,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#define CONFIG_SYS_I2C_FSL
#define CONFIG_SYS_FSL_I2C_SPEED 400000
#define CONFIG_SYS_FSL_I2C_SLAVE 0x7F
#define CONFIG_SYS_FSL_I2C_OFFSET 0x3
0
00
#define CONFIG_SYS_FSL_I2C_OFFSET 0x3
1
00
#define CONFIG_SYS_I2C_NOPROBES { {0, 0x69} }
#define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
...
...
@@ -462,7 +462,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=8544ds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=8544ds/mpc8544ds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/MPC8548CDS.h
浏览文件 @
89ca873e
...
...
@@ -562,7 +562,7 @@ extern unsigned long get_clock_freq(void);
"consoledev=ttyS1\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=mpc8548cds.dtb\0"
#define CONFIG_NFSBOOTCOMMAND \
...
...
include/configs/MPC8572DS.h
浏览文件 @
89ca873e
...
...
@@ -668,7 +668,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=8572ds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=8572ds/mpc8572ds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/P1010RDB.h
浏览文件 @
89ca873e
...
...
@@ -862,7 +862,7 @@ extern unsigned long get_sdram_size(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=p1010rdb.dtb\0" \
"bdev=sda1\0" \
"hwconfig=usb1:dr_mode=host,phy_type=utmi\0" \
...
...
include/configs/P1022DS.h
浏览文件 @
89ca873e
...
...
@@ -731,7 +731,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=p1022ds.dtb\0" \
"bdev=sda3\0" \
"hwconfig=esdhc;audclk:12\0"
...
...
include/configs/P1023RDB.h
浏览文件 @
89ca873e
...
...
@@ -375,7 +375,7 @@ extern unsigned long get_clock_freq(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=p1023rdb.dtb\0" \
"othbootargs=ramdisk_size=600000\0" \
"bdev=sda1\0" \
...
...
include/configs/P2041RDB.h
浏览文件 @
89ca873e
...
...
@@ -698,7 +698,7 @@ unsigned long get_board_sys_clk(unsigned long dummy);
"usb_dr_mode=host\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=p2041rdb/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=p2041rdb/p2041rdb.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/T102xRDB.h
浏览文件 @
89ca873e
...
...
@@ -897,7 +897,7 @@ unsigned long get_board_ddr_clk(void);
"cmp.b $loadaddr $ubootaddr $filesize\0" \
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"bdev=sda3\0"
#define CONFIG_LINUX \
...
...
include/configs/T1040QDS.h
浏览文件 @
89ca873e
...
...
@@ -770,7 +770,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=t1040qds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=t1040qds/t1040qds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/T104xRDB.h
浏览文件 @
89ca873e
...
...
@@ -18,7 +18,14 @@
#include <asm/config_mpc85xx.h>
#ifdef CONFIG_RAMBOOT_PBL
#ifndef CONFIG_SECURE_BOOT
#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/t104xrdb/t104x_pbi.cfg
#else
#define CONFIG_SYS_FSL_PBL_PBI \
$(SRCTREE)/board/freescale/t104xrdb/t104x_pbi_sb.cfg
#endif
#ifdef CONFIG_T1040RDB
#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t104xrdb/t1040_rcw.cfg
#endif
...
...
@@ -62,7 +69,17 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
#ifdef CONFIG_NAND
#define CONFIG_SPL_NAND_SUPPORT
#ifdef CONFIG_SECURE_BOOT
#define CONFIG_U_BOOT_HDR_SIZE (16 << 10)
/*
* HDR would be appended at end of image and copied to DDR along
* with U-Boot image.
*/
#define CONFIG_SYS_NAND_U_BOOT_SIZE ((768 << 10) + \
CONFIG_U_BOOT_HDR_SIZE)
#else
#define CONFIG_SYS_NAND_U_BOOT_SIZE (768 << 10)
#endif
#define CONFIG_SYS_NAND_U_BOOT_DST 0x30000000
#define CONFIG_SYS_NAND_U_BOOT_START 0x30000000
#define CONFIG_SYS_NAND_U_BOOT_OFFS (256 << 10)
...
...
@@ -161,6 +178,10 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
#define CONFIG_ENV_SIZE 0x2000
#define CONFIG_ENV_OFFSET (512 * 0x800)
#elif defined(CONFIG_NAND)
#ifdef CONFIG_SECURE_BOOT
#define CONFIG_RAMBOOT_NAND
#define CONFIG_BOOTSCRIPT_COPY_RAM
#endif
#define CONFIG_SYS_EXTRA_ENV_RELOC
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_SIZE 0x2000
...
...
@@ -202,8 +223,14 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
* Config the L3 Cache as L3 SRAM
*/
#define CONFIG_SYS_INIT_L3_ADDR 0xFFFC0000
/*
* For Secure Boot CONFIG_SYS_INIT_L3_ADDR will be redefined and hence
* Physical address (CONFIG_SYS_INIT_L3_ADDR) and virtual address
* (CONFIG_SYS_INIT_L3_VADDR) will be different.
*/
#define CONFIG_SYS_INIT_L3_VADDR 0xFFFC0000
#define CONFIG_SYS_L3_SIZE 256 << 10
#define CONFIG_SPL_GD_ADDR (CONFIG_SYS_INIT_L3_ADDR + 32 * 1024)
#define CONFIG_SPL_GD_ADDR (CONFIG_SYS_INIT_L3_
V
ADDR + 32 * 1024)
#ifdef CONFIG_RAMBOOT_PBL
#define CONFIG_ENV_ADDR (CONFIG_SPL_GD_ADDR + 4 * 1024)
#endif
...
...
@@ -873,7 +900,7 @@ $(SRCTREE)/board/freescale/t104xrdb/t1042d4_rcw.cfg
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=" __stringify(RAMDISKFILE) "\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=" __stringify(FDTFILE) "\0" \
"bdev=sda3\0"
...
...
include/configs/T208xQDS.h
浏览文件 @
89ca873e
...
...
@@ -840,7 +840,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=t2080qds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=t2080qds/t2080qds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/T208xRDB.h
浏览文件 @
89ca873e
...
...
@@ -792,7 +792,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=t2080rdb/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=t2080rdb/t2080rdb.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/T4240QDS.h
浏览文件 @
89ca873e
...
...
@@ -577,7 +577,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=t4240qds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=t4240qds/t4240qds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/T4240RDB.h
浏览文件 @
89ca873e
...
...
@@ -770,7 +770,7 @@ unsigned long get_board_ddr_clk(void);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=t4240rdb/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=t4240rdb/t4240rdb.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/controlcenterd.h
浏览文件 @
89ca873e
...
...
@@ -447,7 +447,7 @@
"consoledev=ttyS1\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=controlcenterd.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/corenet_ds.h
浏览文件 @
89ca873e
...
...
@@ -708,7 +708,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=p4080ds/ramdisk.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=p4080ds/p4080ds.dtb\0" \
"bdev=sda3\0"
...
...
include/configs/cyrus.h
浏览文件 @
89ca873e
...
...
@@ -520,7 +520,7 @@
"ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"bdev=sda3\0"
#define CONFIG_HDBOOT \
...
...
include/configs/p1_p2_rdb_pc.h
浏览文件 @
89ca873e
...
...
@@ -989,7 +989,7 @@ i2c mw 18 3 __SW_BOOT_MASK 1; reset
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"bdev=sda1\0" \
"jffs2nor=mtdblock3\0" \
"norbootaddr=ef080000\0" \
...
...
include/configs/p1_twr.h
浏览文件 @
89ca873e
...
...
@@ -513,7 +513,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=rootfs.ext2.gz.uboot\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"bdev=sda1\0" \
"norbootaddr=ef080000\0" \
"norfdtaddr=ef040000\0" \
...
...
include/configs/sbc8548.h
浏览文件 @
89ca873e
...
...
@@ -595,7 +595,7 @@
"consoledev=ttyS0\0" \
"ramdiskaddr=2000000\0" \
"ramdiskfile=uRamdisk\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
1e
00000\0" \
"fdtfile=sbc8548.dtb\0"
#define CONFIG_NFSBOOTCOMMAND \
...
...
include/configs/xpedite1000.h
浏览文件 @
89ca873e
...
...
@@ -304,7 +304,7 @@ extern void out32(unsigned int, unsigned long);
"osfile=/home/user/board.uImage\0" \
"fdtfile=/home/user/board.dtb\0" \
"ubootfile=/home/user/u-boot.bin\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
0x1e
00000\0" \
"osaddr=0x1000000\0" \
"loadaddr=0x1000000\0" \
"prog_uboot="CONFIG_PROG_UBOOT"\0" \
...
...
include/configs/xpedite517x.h
浏览文件 @
89ca873e
...
...
@@ -699,7 +699,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
"osfile=/home/user/board.uImage\0" \
"fdtfile=/home/user/board.dtb\0" \
"ubootfile=/home/user/u-boot.bin\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
0x1e
00000\0" \
"osaddr=0x1000000\0" \
"loadaddr=0x1000000\0" \
"prog_uboot1="CONFIG_PROG_UBOOT1"\0" \
...
...
include/configs/xpedite520x.h
浏览文件 @
89ca873e
...
...
@@ -483,7 +483,7 @@
"osfile=/home/user/board.uImage\0" \
"fdtfile=/home/user/board.dtb\0" \
"ubootfile=/home/user/u-boot.bin\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
0x1e
00000\0" \
"osaddr=0x1000000\0" \
"loadaddr=0x1000000\0" \
"prog_uboot1="CONFIG_PROG_UBOOT1"\0" \
...
...
include/configs/xpedite537x.h
浏览文件 @
89ca873e
...
...
@@ -554,7 +554,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
"osfile=/home/user/board.uImage\0" \
"fdtfile=/home/user/board.dtb\0" \
"ubootfile=/home/user/u-boot.bin\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
0x1e
00000\0" \
"osaddr=0x1000000\0" \
"loadaddr=0x1000000\0" \
"prog_uboot1="CONFIG_PROG_UBOOT1"\0" \
...
...
include/configs/xpedite550x.h
浏览文件 @
89ca873e
...
...
@@ -538,7 +538,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
"osfile=/home/user/board.uImage\0" \
"fdtfile=/home/user/board.dtb\0" \
"ubootfile=/home/user/u-boot.bin\0" \
"fdtaddr=
c
00000\0" \
"fdtaddr=
0x1e
00000\0" \
"osaddr=0x1000000\0" \
"loadaddr=0x1000000\0" \
"prog_uboot1="CONFIG_PROG_UBOOT1"\0" \
...
...
include/fsl_validate.h
浏览文件 @
89ca873e
...
...
@@ -254,4 +254,11 @@ int fsl_secboot_blob_decap(cmd_tbl_t *cmdtp, int flag, int argc,
int
fsl_check_boot_mode_secure
(
void
);
int
fsl_setenv_chain_of_trust
(
void
);
/*
* This function is used to validate the main U-boot binary from
* SPL just before passing control to it using QorIQ Trust
* Architecture header (appended to U-boot image).
*/
void
spl_validate_uboot
(
uint32_t
hdr_addr
,
uintptr_t
img_addr
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录