当前位置: 首页 > news >正文

哪里可以学做网站网站开发安全

哪里可以学做网站,网站开发安全,怎么开电商网店,网络工程好就业吗1 基础介绍 FIT(flattened image tree)是U-Boot⽀持的⼀种新固件类型的引导⽅案,⽀持任意多个image打包和校 验。FIT 使⽤ its (image source file) ⽂件描述image信息,最后通过mkimage⼯具⽣成 itb (flattened image tree blob) …

1 基础介绍


FIT(flattened image tree)是U-Boot⽀持的⼀种新固件类型的引导⽅案,⽀持任意多个image打包和校
验。FIT 使⽤ its (image source file) ⽂件描述image信息,最后通过mkimage⼯具⽣成 itb (flattened image
tree blob) 镜像。its⽂件使⽤ DTS 的语法规则,⾮常灵活,可以直接使⽤libfdt 库和相关⼯具。
FIT 是U-Boot默认⽀持且主推的固件格式,SPL和U-Boot阶段都⽀持对FIT格式的固件引导。更多信息请
参考:
因为官⽅的FIT功能⽆法满⾜实际产品需求,所以RK平台对FIT进⾏了适配和优化。所以FIT⽅案中必须
使⽤RK U-Boot编译⽣的mkimage⼯具,不能使⽤PC⾃带的mkimage。


2 范例介绍


如下以u-boot.its和u-boot.itb作为范例进⾏介绍。
/images :静态定义了所有的资源,相当于⼀个 dtsi⽂件;
/configurations :每个 config 节点都描述了⼀套可启动的配置,相当于⼀个板级dts⽂件。
default = :指明默认启⽤的config;
./doc/uImage.FIT/
/dts-v1/;
/ {
description = "Simple image with OP-TEE support";
#address-cells = <1>;
images {
uboot {
description = "U-Boot";
data = /incbin/("./u-boot-nodtb.bin");
type = "standalone";
os = "U-Boot";
arch = "arm";
compression = "none";
使⽤mkimage⼯具和its⽂件可以⽣成itb⽂件:
fdtdump 命令可以查看 itb⽂件内容:
load = <0x00400000>;
hash {
algo = "sha256";
};
};
optee {
description = "OP-TEE";
data = /incbin/("./tee.bin");
type = "firmware";
arch = "arm";
os = "op-tee";
compression = "none";
load = <0x8400000>;
entry = <0x8400000>;
hash {
algo = "sha256";
};
};
fdt {
description = "U-Boot dtb";
data = /incbin/("./u-boot.dtb");
type = "flat_dt";
compression = "none";
hash {
algo = "sha256";
};
};
};
// configurations 节点下可以定义任意多个不同的conf节点,但实际产品⽅案上我们只需要⼀个
conf即可。
configurations {
default = "conf";
conf {
description = "Rockchip armv7 with OP-TEE";
rollback-index = <0x0>;
firmware = "optee";
loadables = "uboot";
fdt = "fdt";
signature {
algo = "sha256,rsa2048";
padding = "pss";
key-name-hint = "dev";
sign-images = "fdt", "firmware", "loadables";
};
};
};
};
            mkimage + dtc
[u-boot.its] + [images]  =========>   [u-boot.itb]
cjh@ubuntu:~/uboot-nextdev/u-boot$ fdtdump fit/u-boot.itb | less
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x600 (1536)
// off_dt_struct: 0x48
// off_dt_strings: 0x48c
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 16
// boot_cpuid_phys: 0x0
// size_dt_strings: 0xc3
// size_dt_struct: 0x444
/memreserve/ 7f34d3411000 600;
/ {
  version = <0x00000001>;        // 新增固件版本号
  totalsize = <0x000bb600>;       // 新增字段描述整个itb⽂件的⼤小
  timestamp = <0x5ecb3553>;       // 新增当前固件⽣成时刻的时间戳
  description = "Simple image with OP-TEE support";
  #address-cells = <0x00000001>;
  images {
    uboot {
      data-size = <0x0007ed54>;   // 新增字段描述固件⼤小
      data-position = <0x00000a00>; // 新增字段描述固件偏移
      description = "U-Boot";
      type = "standalone";
      os = "U-Boot";
      arch = "arm";
      compression = "none";
      load = <0x00400000>;
      hash {
        // 新增固件的sha256校验和
        value = <0xeda8cd52 0x8f058118 0x00000003 0x35360000 0x6f707465
0x0000009f 0x00000091 0x00000000>;
        algo = "sha256";
     };
   };
    optee {
      data-size = <0x0003a058>;
      data-position = <0x0007f800>;
      description = "OP-TEE";
      type = "firmware";
      arch = "arm";
      os = "op-tee";
      compression = "none";
      load = <0x08400000>;
      entry = <0x08400000>;
      hash {
        value = <0xa569b7fc 0x2450ed39 0x00000003 0x35360000 0x66647400
0x00001686 0x000b9a00 0x552d426f>;
        algo = "sha256";
     };
   };
    fdt {


3 itb结构


itb本质是fdt_blob + images的⽂件集合,有如下两种打包⽅式,RK平台⽅案采⽤结构2⽅式。
      data-size = <0x00001686>;
      data-position = <0x000b9a00>;
      description = "U-Boot dtb";
      type = "flat_dt";
      compression = "none";
      hash {
        value = <0x0f718794 0x78ece7b2 0x00000003 0x35360000 0x00000001
0x6e730000 0x636f6e66 0x00000000>;
        algo = "sha256";
     };
   };
 };
  configurations {
    default = "conf";
    conf {
      description = "Rockchip armv7 with OP-TEE";
      rollback-index = <0x00000001>; // 固件防回滚版本号,没有⼿动指定时默认为0
      firmware = "optee";
      loadables = "uboot";
      fdt = "fdt";
      signature {
        algo = "sha256,rsa2048";
        padding = "pss";
        key-name-hint = "dev";
        sign-images = "fdt", "firmware", "loadables";
     };
   };
 };
};
    fdt blob
|-----------------------------------|
|  |------|  |------|  |------|   |
|  | img0 |  | img1 |  | img2 |   | 结构1:image在fdt_blob内,即:itb = fdt_blob(含
img)
|  |------|  |------|  |------|   |
|-----------------------------------|
|--------------|------|------|------|
|        |    |    |    |
|  fdt blob  | img0 | img1 | img2 | 结构2:image在fdt_blob外,即itb = fdt_blob +
img
|        |    |    |    |
|--------------|------|------|------|

http://www.yayakq.cn/news/893953/

相关文章:

  • 株洲的网站建设wordpress 评论者邮箱
  • 广州seo网站排名优化网站信息化建设总结
  • 公司网站维护建设费入什么科目深圳最好的营销网站建设公司哪家好
  • 建婚恋网站需要多少钱网站网页?问?
  • 挂机宝怎么做网站网站建设高端培训班
  • 如何创办一个网站eroticalia wordpress
  • 网站各类模块内容说明淘宝网站可以做百度快照吗
  • 网站外链公司在网站做广告怎么做分录
  • 哈尔滨大型网站设计公司东营建设信息网官网首页
  • 男女做爰高清免费视频网站企业邮箱怎么注册
  • 推广策略用英语怎么说网站优化 图片
  • 网站3d展示怎么做婚礼效果图怎么制作
  • 文件下载网站源码东莞哪里可以学网络营销
  • 网站动画效果用什么程序做的免费字体logo设计
  • 阿里云虚拟主机可以做几个网站吗网站域名注册费用
  • 0539 网站旅游网网站建设的管理
  • 厦门网站推广优化哪家好手机上的免费销售网站建设
  • 企业网站建设一站通系统简单flash 网站 模板
  • 用哪个登录网址最好苏州seo建站
  • 购物网站源码wordpress侧边栏按钮
  • 做钟点工 网站简洁大方的电商网站模板
  • 唐山炎黄宽带网站wordpress动漫整站
  • 贵州住房与城乡建设部网站东莞哪里的网站建设效果好
  • 电商类网站淘宝网页设计模板html
  • 设计比例网站泉州个人建站模板
  • 长治专业做网站免费企业
  • 哪些企业必须用网站电子商务网站建设代码
  • 装修平台网站排名前十名北京住房城乡建设部网站八大员
  • 网站建设图标图片宝安网站建设-信科网络
  • 网站建设在哪里可以筹集素材vs连接数据库做网站