本帖最后由 anqh 于 2020-10-16 17:58 编辑
硬件平台:领航者底板+zynq7020核心板 VxWorks bsp版本:xlnx_zynq7k_2_0_1_0 IDE:Workbench 4.0
SD卡启动SD卡启动,uboot加载uVxWorks - mmc dev 0;fatload mmc 0:1 0x05000000 uVxWorks;bootm 0x05000000
复制代码
进入系统 - reading uVxWorks
- 4897332 bytes read in 255 ms (18.3 MiB/s)
- ## Booting kernel from Legacy Image at 05000000 ...
- Image Name: vxworks
- Image Type: ARM VxWorks Kernel Image (uncompressed)
- Data Size: 4897268 Bytes = 4.7 MiB
- Load Address: 00200000
- Entry Point: 00200000
- Verifying Checksum ... OK
- Loading Kernel Image ... OK
- ## Starting vxWorks at 0x00200000, device tree at 0x00000000 ...
- Target Name: vxTarget
- _________ _________
- \77777777\ /77777777/
- \77777777\ /77777777/
- \77777777\ /77777777/
- \77777777\ /77777777/
- \77777777\ \7777777/
- \77777777\ \77777/ VxWorks 7 SMP
- \77777777\ \777/
- \77777777\ \7/ Core Kernel version: 3.1.0.0
- \77777777\ - Build date: Oct 14 2020 13:29:41
- \77777777\
- \7777777/ Copyright Wind River Systems, Inc.
- \77777/ - 1984-2020
- \777/ /7\
- \7/ /777\
- - -------
- Board: Zynq 7000 Development Board
- CPU Count: 2
- OS Memory Size: 1023MB
- ED&R Policy Mode: Deployed
- Debug Agent: Started (always)
- Stop Mode Agent: Not started
- Adding 10723 symbols for standalone.
- ->
- ->
- -> devs
- drv refs name
- 1 [ 3] /
- 5 [ 3] /mmc1
- 0 [ 3] /null
- 2 [ 3] /sd0:1 ==> /sd0a
- 2 [ 3] /sd0:2 ==> /sd0b
- 5 [ 3] /sd0a
- 6 [ 3] /sd0b
- 3 [ 3] /ttyS0
- 3 [ 3] /ttyS1
- 2 [ 3] /tyCo/0 ==> /ttyS0
- 2 [ 3] /tyCo/1 ==> /ttyS1
- 11 [ 3] host:
- value = 2 = 0x2
复制代码
支持驱动
- ETH
- EMMC
- SD卡
- QSPI
- UART(console uart0)
跑个hello world- #include <vxWorks.h>
- #include <stdio.h>
- void start(void)
- {
- printf("hello world, welcome to zynq!\r\n");
- }
复制代码- ->
- -> ld < /sd0a/hello_world.out
- value = 543310248 = 0x206241a8
- ->
- -> start
- hello world, welcome to zynq!
- value = 31 = 0x1f
- ->
复制代码
系统文件
|