Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
f5ed9e39
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,发现更多精彩内容 >>
提交
f5ed9e39
编写于
9月 08, 2008
作者:
P
Peter Tyser
提交者:
Wolfgang Denk
9月 09, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for booting of INTEGRITY operating system uImages
Signed-off-by:
N
Peter Tyser
<
ptyser@xes-inc.com
>
上级
72f1b65f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
46 addition
and
3 deletion
+46
-3
README
README
+3
-2
common/cmd_bootm.c
common/cmd_bootm.c
+38
-0
common/image.c
common/image.c
+3
-0
doc/uImage.FIT/source_file_format.txt
doc/uImage.FIT/source_file_format.txt
+1
-1
include/image.h
include/image.h
+1
-0
未找到文件。
README
浏览文件 @
f5ed9e39
...
...
@@ -3030,8 +3030,9 @@ details; basically, the header defines the following image properties:
* Target Operating System (Provisions for OpenBSD, NetBSD, FreeBSD,
4.4BSD, Linux, SVR4, Esix, Solaris, Irix, SCO, Dell, NCR, VxWorks,
LynxOS, pSOS, QNX, RTEMS;
Currently supported: Linux, NetBSD, VxWorks, QNX, RTEMS, LynxOS).
LynxOS, pSOS, QNX, RTEMS, INTEGRITY;
Currently supported: Linux, NetBSD, VxWorks, QNX, RTEMS, LynxOS,
INTEGRITY).
* Target CPU Architecture (Provisions for Alpha, ARM, AVR32, Intel x86,
IA64, MIPS, NIOS, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
Currently supported: ARM, AVR32, Intel x86, MIPS, NIOS, PowerPC).
...
...
common/cmd_bootm.c
浏览文件 @
f5ed9e39
...
...
@@ -108,6 +108,9 @@ static boot_os_fn do_bootm_qnxelf;
int
do_bootvx
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[]);
int
do_bootelf
(
cmd_tbl_t
*
cmdtp
,
int
flag
,
int
argc
,
char
*
argv
[]);
#endif
#if defined(CONFIG_INTEGRITY)
static
boot_os_fn
do_bootm_integrity
;
#endif
ulong
load_addr
=
CFG_LOAD_ADDR
;
/* Default Load Address */
static
bootm_headers_t
images
;
/* pointers to os/initrd/fdt images */
...
...
@@ -452,6 +455,11 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
break
;
#endif
#ifdef CONFIG_INTEGRITY
case
IH_OS_INTEGRITY
:
do_bootm_integrity
(
0
,
argc
,
argv
,
&
images
);
break
;
#endif
}
show_boot_progress
(
-
9
);
...
...
@@ -1144,3 +1152,33 @@ static int do_bootm_qnxelf(int flag, int argc, char *argv[],
return
1
;
}
#endif
#ifdef CONFIG_INTEGRITY
static
int
do_bootm_integrity
(
int
flag
,
int
argc
,
char
*
argv
[],
bootm_headers_t
*
images
)
{
void
(
*
entry_point
)(
void
);
#if defined(CONFIG_FIT)
if
(
!
images
->
legacy_hdr_valid
)
{
fit_unsupported_reset
(
"INTEGRITY"
);
return
1
;
}
#endif
entry_point
=
(
void
(
*
)(
void
))
images
->
ep
;
printf
(
"## Transferring control to INTEGRITY (at address %08lx) ...
\n
"
,
(
ulong
)
entry_point
);
show_boot_progress
(
15
);
/*
* INTEGRITY Parameters:
* None
*/
(
*
entry_point
)();
return
1
;
}
#endif
common/image.c
浏览文件 @
f5ed9e39
...
...
@@ -116,6 +116,9 @@ static table_entry_t uimage_os[] = {
{
IH_OS_QNX
,
"qnx"
,
"QNX"
,
},
{
IH_OS_VXWORKS
,
"vxworks"
,
"VxWorks"
,
},
#endif
#if defined(CONFIG_INTEGRITY) || defined(USE_HOSTCC)
{
IH_OS_INTEGRITY
,
"integrity"
,
"INTEGRITY"
,
},
#endif
#ifdef USE_HOSTCC
{
IH_OS_4_4BSD
,
"4_4bsd"
,
"4_4BSD"
,
},
{
IH_OS_DELL
,
"dell"
,
"Dell"
,
},
...
...
doc/uImage.FIT/source_file_format.txt
浏览文件 @
f5ed9e39
...
...
@@ -169,7 +169,7 @@ the '/images' node should have the following layout:
- os : OS name, mandatory for type="kernel", valid OS names are: "openbsd",
"netbsd", "freebsd", "4_4bsd", "linux", "svr4", "esix", "solaris", "irix",
"sco", "dell", "ncr", "lynxos", "vxworks", "psos", "qnx", "u_boot",
"rtems", "unity".
"rtems", "unity"
, "integrity"
.
- arch : Architecture name, mandatory for types: "standalone", "kernel",
"firmware", "ramdisk" and "fdt". Valid architecture names are: "alpha",
"arm", "i386", "ia64", "mips", "mips64", "ppc", "s390", "sh", "sparc",
...
...
include/image.h
浏览文件 @
f5ed9e39
...
...
@@ -85,6 +85,7 @@
#define IH_OS_RTEMS 18
/* RTEMS */
#define IH_OS_ARTOS 19
/* ARTOS */
#define IH_OS_UNITY 20
/* Unity OS */
#define IH_OS_INTEGRITY 21
/* INTEGRITY */
/*
* CPU Architecture Codes (supported by Linux)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录