博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
redboot startup process
阅读量:2221 次
发布时间:2019-05-08

本文共 1371 字,大约阅读时间需要 4 分钟。

Redboot is a choice for us if we need to implement our boot loader without do it all by ourselves.  It is a portion of eCos package and we get the whole eCos pacakge when we want to get redboot source code.  The cross-tool is also included in such a package.

We get all source code of eCos including its of redboot. In fact, we do not need so much more and we may lose in so much more code. We only need to care for hal, redboot and a few other subtrees, for example services which provided compress/uncompress algorithms.

The real entry of redboot is reset_vector in /ecos/packages/hal/xxx/arch/current/src/vector.S. After some simple iniitializations such as MMU configuraiton or memory controller initializaiton, then transmit the control to cyg_start which just likes the main entry for c program. The cyg_start is in /ecos/packages/redboot/current/src/main.c.

All jobs are dealt in cyg_start. Firstly, it will do some initializaitons such as memory size configuration,workspace configuration. And then executes all routines in __RedBoot_INIT_TAB__ section. At this point, all hardware and software initializations are completed.  The following job is its duty, loading application. If there has a script and auto loading script enabled, the script will be executed. After procedded the script, the command line loop is started and then we can key in these commands now.

 

转载地址:http://vknfb.baihongyu.com/

你可能感兴趣的文章
(四)alin’s mysql学习笔记----索引简介
查看>>
分布式系统中的幂等性的理解
查看>>
spring的注解开发中的常用注解(一)------@bean @Configuration @ComponentScan @Import @Scope @Lazy
查看>>
(五)alin’s mysql学习笔记----索引性能分析
查看>>
Spring中使用@Transactional注解进行事务管理的时候只有应用到 public 方法才有效
查看>>
springboot整合rabbitmq及rabbitmq的简单入门
查看>>
mysql事务和隔离级别笔记
查看>>
事务的传播属性(有坑点)自调用失效学习笔记
查看>>
REDIS缓存穿透,缓存击穿,缓存雪崩原因+解决方案
查看>>
动态代理实现AOP
查看>>
23种常见的java设计模式
查看>>
关于被final修饰的基本数据类型一些注意事项
查看>>
java Thread中,run方法和start方法的区别
查看>>
在 XML 中有 5 个预定义的实体引用
查看>>
XML 元素是可扩展的
查看>>
避免 XML 属性?针对元数据的 XML 属性
查看>>
XML DOM nodeType 属性值代表的意思
查看>>
JSP相关知识
查看>>
JDBC的基本知识
查看>>
《Head first设计模式》学习笔记 - 适配器模式
查看>>