添加Shell组件

在“VxWorks 7:编译并启动AM57xx的VxBL”一文中,文章最后VxWork虽然启动,但是并没有进入shell,这是因为默认的VIP工程里并没有添加shell组件,需要我们自己添加。

VxWorks7 Add Shell Component

用于启动VxWorks7的VxBL生成与移植

VxWorks 7内核也可以通过uboot来启动,但风河还是提供了自己的Bootloader,名为VxBL,和QNX的IPL一样,也许只是为了简化一些行业领域的认证工作,毕竟uboot的代码量太大了。

生成AM57xx的VxBL

编译VxBL

1.cmd进入目录 D:\WindRiver4.0_SR0640\vxworks-7\pkgs_v2\boot\vxbl-2.0.1.1

VxWorks7 AM57xx VxBL

2.创建VxBL工程,输入make project CPU=ARMARCH7 BSP=ti_sitara_a15 TOOL=llvm FORCE=1

Paspberry Pi 4开发板

在Raspberry Pi 4 Model B开发板上通过Dockerhub来使用VxWorks 7容器

1 简介

容器可以让你将VxWorks的应用程序打包并和系统的其他部分进行分离开。VxWorks的容器可以被部署在被称为Dockerhub的元存储库上,并可从那儿分发到VxWorks的目标板上。

VxWorks是由风河公司提供的实时操作系统。

VxWorks有针对Raspberry Pi 4 model B目标板的板级支持包(BSP)。

Raspberry Pi 4开发板是一个小型的,价格可承受的计算机开发板。

DockerHub是一个Docker用户可以存储和分发容器镜像的仓库。

本文将介绍如何配置VxWorks以支持Raspberry Pi 4上的容器,还有DockerHub云如何注册。

今天和大家谈谈VxWorks 7下SD卡的vxbus驱动挂接,以及文件系统格式化的流程,VxWorks 7下的的vxbus驱动基于设备树,首先必须增加设备树节点,如下:


sdhc0: sdhc@E0100000
{
        compatible = "zynq,sdhc";
        reg = ;
        clock-frequency = ;
        interrupts = ;
        interrupt-parent = <&intc>;
        embedded = ;
        bus-width = ;
        max-dev-clock-frequency = ;
        card-status-check = ; 
};

了解清楚vxbus设备驱动SD卡的挂接流程,对于我们设备驱动的开发至关重要,具体流程如下:

1、设备初始化时会自动加载并识别设备树的节点配置,并匹配相应的驱动程序,首先匹配到SDHC主控制器设备compatible = "zynq,sdhc"; 在这个驱动中会调用attach去初始化相应的设备,具体代码如下:

Files:
Date 2021-11-30
File Size 1.03 MB
Download 219

摘要: 由于我国的空间技术的迅速发展,航天嵌入式系统的复杂性急剧增加。在航天领域要求对嵌入式操作系统vxWorks进行剪裁工作以适应航天设计的要求,而剪裁掉文件系统的VxWorks操作系统存在地面不能对星上的事件进行有效干预的问题。文中在“龙芯”计算机平台上通过对VxWorks 操作系统进行配置,设计了一种可在轨编程的方案,并针对其中的出现的修改后的函数中全局变量和调用函数的链接地址发生变化的问题提出了解决方案并完成了软件实现该功能。文中CPU采用 wh1770,通过修改原被调用函数的初始代码实现对于新函数的调用,并针对全局变量以及调用函数在更新函数中链接地址发生变化设计了在轨更新接口函数和更新代码提取工具,从而实现函数的在轨更新,给出了部分设计流程图以及代码提取工具的测试结果。测试结果显示该工具实现了设计目的,在航天工程领域具备一定的利用价值。

Due to the booming in the space technology, the complexity of RTOS in aerospace is increasing, It is necessary to tailor embedded operating system to adapt the demand of aerospace design. And there comes the problem that the VxWorks OS which is tailored File System can't tackle the event on the satellite efficiently. By the configuration on the VxWorks OS which is based on the Loongson computer platforms, I design a software which can realize On-orbit programming. And the resolution and a software for the issue that link address of the global variable and called function may change is given. The CPU in the article is wh1770. Based on modifying the first several codes of the old called function and designing the interface function and tools for extracting modified codes ,we can realize the on-orbit function updating. Part of the flow charts and test result are also given. This software can achieve the purpose of the design and has some value in aerospace applications.