IMX6Q 运行 VxWorks 7.0 系统

本文简要概述了如何在IMX6Q上从uboot下载并启动VxWorks 7.0的过程。

IMX6Q CRB

U-Boot 2015.04 (Jan 01 2017 - 22:35:22)

CPU:   Freescale i.MX6Q rev1.5 at 792 MHz
CPU:   Temperature 51 C
Reset cause: POR
Board: LYS-IMX6Q
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc2(part 0) is current device
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0 
=> 
=> 
=> tftp 10100000 vxworks.bin
Using FEC device
TFTP from server 192.168.0.106; our IP address is 192.168.0.3
Filename 'vxworks.bin'.
Load address: 0x10100000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #
         617.2 KiB/s
done
Bytes transferred = 6679780 (65ece4 hex)
=> go 10100000
## Starting application at 0x10100000 ...
Target Name: vxTarget 
 
 _________            _________
 \77777777\          /77777777/
  \77777777\        /77777777/
   \77777777\      /77777777/
    \77777777\    /77777777/
     \77777777\   \7777777/
      \77777777\   \77777/              VxWorks 7
       \77777777\   \777/
        \77777777\   \7/     Core Kernel version: 1.2.0.1
         \77777777\   -      Build date: May 10 2018 23:37:28
          \77777777\
           \7777777/         Copyright Wind River Systems, Inc.
            \77777/   -                 1984-2018
             \777/   /7\
              \7/   /777\
               -   -------


                   Board: LYS-IMX6Q i.MX6Q Processor - ARMv7
          OS Memory Size: 2048MB
        ED&R Policy Mode: Deployed
  Application Mode Agent: Not started
         Stop Mode Agent: Not started




 Adding 14023 symbols for standalone.


-> 
-> devs
drv name                
  0 /null               
  1 /tyCo/0             
  1 /tyCo/1             
  1 /tyCo/2             
  1 /tyCo/3             
  2 /vxbus              
  9 /input/event        
 12 host:               
 13 /dev/fb0            
 14 /dev/galcore        
 10 /audio/0            
value = 25 = 0x19
-> 
-> Instantiating /sd1:2 as rawFs,  device = 0x30001


-> Instantiating /mmc2:2 as rawFs,  device = 0xa0001

-> 
-> devs
drv name                
  0 /null               
  1 /tyCo/0             
  1 /tyCo/1             
  1 /tyCo/2             
  1 /tyCo/3             
  2 /vxbus              
  9 /input/event        
 12 host:               
 13 /dev/fb0            
 14 /dev/galcore        
 10 /audio/0            
  4 /sd1:1              
  5 /sd1:2              
  4 /sd0:1              
  4 /mmc2:1             
  5 /mmc2:2             
value = 25 = 0x19
-> 
-> 
-> cd "/sd0:1"
value = 0 = 0x0
-> 
-> ll
drwxrwxrwx  1 0       0                 4096 Mar  8  2018 System Volume Information/
-rwxrwxrwx  1 0       0             12514633 Nov 26  2012 RAMDISK.GZ 
-rwxrwxrwx  1 0       0             14811136 Nov 26  2012 UBI.IMG 
-rwxrwxrwx  1 0       0               234896 Dec  4  2012 U-BOOT.IMG 
-rwxrwxrwx  1 0       0              3245384 Dec 27  2012 uImage 
-rwxrwxrwx  1 0       0                36079 Dec  4  2012 MLO 
value = 0 = 0x0
-> 
-> 
-> 
-> ipAttach 0,"gei"
value = 0 = 0x0
-> 
-> ifconfig 
lo0     Link type:Local loopback
        inet 127.0.0.1  mask 255.255.255.255
        inet6 unicast fe80::1%lo0  prefixlen 64  automatic
        inet6 unicast ::1  prefixlen 128
        UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI 
        MTU:1500  metric:1  VR:0  ifindex:1
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:0 mcast:0 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:0


enet0   Link type:Ethernet  HWaddr 00:04:9f:b1:b2:b3
        capabilities: VLAN_MTU 
        inet 192.168.0.3  mask 255.255.255.0  broadcast 192.168.0.255
        inet6 unicast fe80::204:9fff:feb1:b2b3%enet0  prefixlen 64  automatic
        UP RUNNING SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:2
        RX packets:353 mcast:0 errors:0 dropped:4
        TX packets:30 mcast:5 errors:0
        collisions:0 unsupported proto:0
        RX bytes:21366 (21 k)  TX bytes:1920


gei0    Link type:Ethernet  HWaddr 00:1b:21:75:26:d7
        capabilities: TXCSUM TX6CSUM VLAN_MTU VLAN_TXHWTAG VLAN_RXHWTAG 
        SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:3
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:0 mcast:0 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:0


value = 0 = 0x0
-> 
-> ifconfig "gei0 192.168.0.230 up"
value = 0 = 0x0
-> 
-> ifconfig      
lo0     Link type:Local loopback
        inet 127.0.0.1  mask 255.255.255.255
        inet6 unicast fe80::1%lo0  prefixlen 64  automatic
        inet6 unicast ::1  prefixlen 128
        UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI 
        MTU:1500  metric:1  VR:0  ifindex:1
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:0 mcast:0 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:0


enet0   Link type:Ethernet  HWaddr 00:04:9f:b1:b2:b3
        capabilities: VLAN_MTU 
        inet 192.168.0.3  mask 255.255.255.0  broadcast 192.168.0.255
        inet6 unicast fe80::204:9fff:feb1:b2b3%enet0  prefixlen 64  automatic
        UP RUNNING SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:2
        RX packets:376 mcast:0 errors:0 dropped:4
        TX packets:31 mcast:5 errors:0
        collisions:0 unsupported proto:0
        RX bytes:22746 (22 k)  TX bytes:1980


gei0    Link type:Ethernet  HWaddr 00:1b:21:75:26:d7
        capabilities: TXCSUM TX6CSUM VLAN_MTU VLAN_TXHWTAG VLAN_RXHWTAG 
        inet 192.168.0.230  mask 255.255.255.0  broadcast 192.168.0.255
        inet6 unicast fe80::21b:21ff:fe75:26d7%gei0  prefixlen 64  tentative  automatic
        UP RUNNING SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:3
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:3 mcast:2 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:210


value = 0 = 0x0
-> 
-> ifconfig "enet0 down"
value = 0 = 0x0
-> 
-> ifconfig
lo0     Link type:Local loopback
        inet 127.0.0.1  mask 255.255.255.255
        inet6 unicast fe80::1%lo0  prefixlen 64  automatic
        inet6 unicast ::1  prefixlen 128
        UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI 
        MTU:1500  metric:1  VR:0  ifindex:1
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:0 mcast:0 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:0


enet0   Link type:Ethernet  HWaddr 00:04:9f:b1:b2:b3
        capabilities: VLAN_MTU 
        inet 192.168.0.3  mask 255.255.255.0  broadcast 192.168.0.255
        SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:2
        RX packets:411 mcast:0 errors:0 dropped:25
        TX packets:34 mcast:7 errors:0
        collisions:0 unsupported proto:0
        RX bytes:24868 (24 k)  TX bytes:2220


gei0    Link type:Ethernet  HWaddr 00:1b:21:75:26:d7
        capabilities: TXCSUM TX6CSUM VLAN_MTU VLAN_TXHWTAG VLAN_RXHWTAG 
        inet 192.168.0.230  mask 255.255.255.0  broadcast 192.168.0.255
        inet6 unicast fe80::21b:21ff:fe75:26d7%gei0  prefixlen 64  tentative  automatic
        UP SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:3
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:12 mcast:11 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:900


value = 0 = 0x0
-> 
-> 
-> ifconfig
lo0     Link type:Local loopback
        inet 127.0.0.1  mask 255.255.255.255
        inet6 unicast fe80::1%lo0  prefixlen 64  automatic
        inet6 unicast ::1  prefixlen 128
        UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI 
        MTU:1500  metric:1  VR:0  ifindex:1
        RX packets:0 mcast:0 errors:0 dropped:0
        TX packets:0 mcast:0 errors:0
        collisions:0 unsupported proto:0
        RX bytes:0  TX bytes:0


enet0   Link type:Ethernet  HWaddr 00:04:9f:b1:b2:b3
        capabilities: VLAN_MTU 
        inet 192.168.0.3  mask 255.255.255.0  broadcast 192.168.0.255
        SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:2
        RX packets:536 mcast:0 errors:0 dropped:150
        TX packets:34 mcast:7 errors:0
        collisions:0 unsupported proto:0
        RX bytes:32412 (32 k)  TX bytes:2220


gei0    Link type:Ethernet  HWaddr 00:1b:21:75:26:d7
        capabilities: TXCSUM TX6CSUM VLAN_MTU VLAN_TXHWTAG VLAN_RXHWTAG 
        inet 192.168.0.230  mask 255.255.255.0  broadcast 192.168.0.255
        inet6 unicast fe80::21b:21ff:fe75:26d7%gei0  prefixlen 64  automatic
        UP RUNNING SIMPLEX BROADCAST MULTICAST 
        MTU:1500  metric:1  VR:0  ifindex:3
        RX packets:68 mcast:1 errors:0 dropped:61
        TX packets:81 mcast:71 errors:0
        collisions:0 unsupported proto:0
        RX bytes:7687  TX bytes:6360


value = 0 = 0x0
->