T1042/T2080 vxworks7 开发笔记(一)

vxworks7 为WindRiver 推出的新一代版本,相比较6.9特别是驱动部分有很大的改变,vxworks7 和linux很像,有设备树的概念,所以从linux移植驱动到vxworks7 会方便很多。

  1. 新建VSB工程。
  2. 新建VIP工程,编译生成vxworks
  3. 使用库里的dts文件替换bsp里面的dts文件。
  4. 网络加载vxworks,可以启动但是没有shell

T1042/T2080 vxworks7 开发笔记(一)_第1张图片

为解决此问题,添加shell组件,rebuild 工程

T1042/T2080 vxworks7 开发笔记(一)_第2张图片

T1042/T2080 vxworks7 开发笔记(一)_第3张图片

Vxworks7 启动,有shell

T1042/T2080 vxworks7 开发笔记(一)_第4张图片

不支持CMD命令

T1042/T2080 vxworks7 开发笔记(一)_第5张图片

查看注册的设备驱动

-> vxbDrvShow

Driver [fslBookeTimer] class [vxbFdtBus] [freescale booke timer driver] (0x2934e4) (refs: 1)

Driver [genericPhy] class [vxbMiiBus] [Generic 10/100/1000 PHY driver] (0x294090) (refs: 3)

Driver [sgmiiPhy] class [vxbMiiBus] [Freescale SGMII PHY driver] (0x2940e8) (refs: 0)

Driver [mmdPhy] class [vxbMiiBus] [Clause 45 MMD PHY driver] (0x29414c) (refs: 4)

Driver [memacMdio] class [vxbFdtBus] [Freescale MEMAC MDIO driver] (0x2941c0) (refs: 8)

Driver [memac] class [vxbFdtBus] [Freescale MEMAC END driver] (0x2942c0) (refs: 6)

Driver [QorIQQman] class [vxbFdtBus] [Freescale QorIQQman driver] (0x294328) (refs: 1)

Driver [fsl,qman-portal] class [vxbFdtBus] [Freescale QorIQQman Portal driver] (0x294378) (refs: 18)

Driver [QorIQFman] class [vxbFdtBus] [Freescale QorIQFman driver] (0x294420) (refs: 1)

Driver [QorIQBman] class [vxbFdtBus] [Freescale QorIQBman driver] (0x294450) (refs: 1)

Driver [fsl,bman-portal] class [vxbFdtBus] [Freescale QorIQBman Portal driver] (0x2944a0) (refs: 18)

Driver [qoriqClock] class [vxbFdtBus] [Freescale QorIQ clock driver] (0x294c98) (refs: 1)

Driver [qoriqL3Cache] class [vxbFdtBus] [QorIQ L3 cache driver] (0x294cb8) (refs: 1)

Driver [coreNetL2Cache] class [vxbFdtBus] [CORENET L2 cache driver] (0x294cf8) (refs: 1)

Driver [qoriqFpga] class [vxbFdtBus] [Freescale QorIQ FPGA driver] (0x294d30) (refs: 1)

Driver [qoriqLaw] class [vxbFdtBus] [Freescale Integrated LAW Controller] (0x294d98) (refs: 1)

Driver [pcib] class [vxbPciBus] [PCI generic bridge driver] (0x295340) (refs: 0)

Driver [mainbus] class [root] [Freescale T2080QDS] (0x295470) (refs: 1)

Driver [mpic] class [vxbFdtBus] [interrupt controller driver] (0x295570) (refs: 1)

Driver [fdtBus] class [vxbNexusBus] [FDT bus controller] (0x295590) (refs: 1)

Driver [simpleBus] class [vxbFdtBus] [simple bus controller] (0x295644) (refs: 4)

Driver [ns16550] class [vxbFdtBus] [ns16550 serial OF driver] (0x29568c) (refs: 2)

value = 83 = 0x53 = 'S'

 

 

-> vxbDevShow

mainbus-0 at root nexus level(0)

mainbus-0:

   fdtBus-0 (refs: 9) on mainbus0 (refs: 2)

   fdtBus-0: (0x2008e4c0) level(1)

      fslBookeTimer-0 (refs: 0) on fdtBus0 (refs: 9)

      fslBookeTimer-0: (0x2008e550) level(2)

      simpleBus-0 (refs: 18) on fdtBus0 (refs: 9)

      simpleBus-0: (0x2008e700) level(2)

         fsl,bman-portal-0 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-0: (0x2008ea50) level(3)

         fsl,bman-portal-1 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-1: (0x2008ece0) level(3)

         fsl,bman-portal-2 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-2: (0x2008ef70) level(3)

         fsl,bman-portal-3 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-3: (0x2008f200) level(3)

         fsl,bman-portal-4 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-4: (0x2008f490) level(3)

         fsl,bman-portal-5 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-5: (0x2008f720) level(3)

         fsl,bman-portal-6 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-6: (0x2008f9b0) level(3)

         fsl,bman-portal-7 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-7: (0x2008fc40) level(3)

         fsl,bman-portal-8 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-8: (0x2008fed0) level(3)

         fsl,bman-portal-9 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-9: (0x20090160) level(3)

         fsl,bman-portal-10 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-10: (0x200903f0) level(3)

         fsl,bman-portal-11 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-11: (0x20090680) level(3)

         fsl,bman-portal-12 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-12: (0x20090910) level(3)

         fsl,bman-portal-13 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-13: (0x20090ba0) level(3)

         fsl,bman-portal-14 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-14: (0x20090e30) level(3)

         fsl,bman-portal-15 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-15: (0x200910c0) level(3)

         fsl,bman-portal-16 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-16: (0x20091350) level(3)

         fsl,bman-portal-17 (refs: 0) on simpleBus0 (refs: 18)

         fsl,bman-portal-17: (0x200915e0) level(3)

      simpleBus-1 (refs: 18) on fdtBus0 (refs: 9)

      simpleBus-1: (0x20091670) level(2)

         fsl,qman-portal-0 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-0: (0x200919c0) level(3)

         fsl,qman-portal-1 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-1: (0x20091c80) level(3)

         fsl,qman-portal-2 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-2: (0x20091f40) level(3)

         fsl,qman-portal-3 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-3: (0x20092200) level(3)

         fsl,qman-portal-4 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-4: (0x200924c0) level(3)

         fsl,qman-portal-5 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-5: (0x20092780) level(3)

         fsl,qman-portal-6 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-6: (0x20092a40) level(3)

         fsl,qman-portal-7 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-7: (0x20092d00) level(3)

         fsl,qman-portal-8 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-8: (0x20092fc0) level(3)

         fsl,qman-portal-9 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-9: (0x20093280) level(3)

         fsl,qman-portal-10 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-10: (0x20093540) level(3)

         fsl,qman-portal-11 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-11: (0x20093800) level(3)

         fsl,qman-portal-12 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-12: (0x20093ac0) level(3)

         fsl,qman-portal-13 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-13: (0x20093d80) level(3)

         fsl,qman-portal-14 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-14: (0x20094040) level(3)

         fsl,qman-portal-15 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-15: (0x20094300) level(3)

         fsl,qman-portal-16 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-16: (0x200945c0) level(3)

         fsl,qman-portal-17 (refs: 0) on simpleBus1 (refs: 18)

         fsl,qman-portal-17: (0x20094880) level(3)

      simpleBus-2 (refs: 1) on fdtBus0 (refs: 9)

      simpleBus-2: (0x20094940) level(2)

         qoriqFpga-0 (refs: 0) on simpleBus2 (refs: 1)

         qoriqFpga-0: (0x20094c10) level(3)

      simpleBus-3 (refs: 29) on fdtBus0 (refs: 9)

      simpleBus-3: (0x20094ca0) level(2)

         coreNetL2Cache-0 (refs: 0) on simpleBus3 (refs: 29)

         coreNetL2Cache-0: (0x20094f10) level(3)

         qoriqL3Cache-0 (refs: 0) on simpleBus3 (refs: 29)

         qoriqL3Cache-0: (0x20095180) level(3)

         qoriqLaw-0 (refs: 0) on simpleBus3 (refs: 29)

         qoriqLaw-0: (0x20095370) level(3)

         qoriqClock-0 (refs: 0) on simpleBus3 (refs: 29)

         qoriqClock-0: (0x200a14e0) level(3)

         i2c-0 (refs: 0) on simpleBus3 (refs: 29)

         i2c-0: <(no driver attached)> (0x200a2160) level(3)

         QorIQQman-0 (refs: 0) on simpleBus3 (refs: 29)

         QorIQQman-0: (0x200a2360) level(3)

         QorIQBman-0 (refs: 0) on simpleBus3 (refs: 29)

         QorIQBman-0: (0x200bd400) level(3)

         QorIQFman-0 (refs: 14) on simpleBus3 (refs: 29)

         QorIQFman-0: (0x200be640) level(3)

            memac-0 (refs: 0) on QorIQFman0 (refs: 14)

            memac-0: (0x200bfdc0) level(4)

            memac-1 (refs: 0) on QorIQFman0 (refs: 14)

            memac-1: (0x202ecb10) level(4)

            memacMdio-0 (refs: 3) on QorIQFman0 (refs: 14)

            memacMdio-0: (0x20519790) level(4)

               genericPhy-0 (refs: 0) on memacMdio0 (refs: 3)

               genericPhy-0: (0x20519af0) level(5)

               genericPhy-1 (refs: 0) on memacMdio0 (refs: 3)

               genericPhy-1: (0x20519cf0) level(5)

               genericPhy-2 (refs: 0) on memacMdio0 (refs: 3)

               genericPhy-2: (0x20519e90) level(5)

            memac-2 (refs: 0) on QorIQFman0 (refs: 14)

            memac-2: (0x2051a030) level(4)

            memacMdio-1 (refs: 1) on QorIQFman0 (refs: 14)

            memacMdio-1: (0x20f93010) level(4)

               mmdPhy-0 (refs: 0) on memacMdio1 (refs: 1)

               mmdPhy-0: (0x20f93370) level(5)

            memac-3 (refs: 0) on QorIQFman0 (refs: 14)

            memac-3: (0x20f934d0) level(4)

            memacMdio-2 (refs: 1) on QorIQFman0 (refs: 14)

            memacMdio-2: (0x21a0c510) level(4)

               mmdPhy-1 (refs: 0) on memacMdio2 (refs: 1)

               mmdPhy-1: (0x21a0c830) level(5)

            memac-4 (refs: 0) on QorIQFman0 (refs: 14)

            memac-4: (0x21a0c990) level(4)

            memacMdio-3 (refs: 1) on QorIQFman0 (refs: 14)

            memacMdio-3: (0x22b48490) level(4)

               mmdPhy-2 (refs: 0) on memacMdio3 (refs: 1)

               mmdPhy-2: (0x22b487b0) level(5)

            memac-5 (refs: 0) on QorIQFman0 (refs: 14)

            memac-5: (0x22b48910) level(4)

            memacMdio-4 (refs: 1) on QorIQFman0 (refs: 14)

            memacMdio-4: (0x22b48d60) level(4)

               mmdPhy-3 (refs: 0) on memacMdio4 (refs: 1)

               mmdPhy-3: (0x2344d540) level(5)

            memacMdio-5 (refs: 0) on QorIQFman0 (refs: 14)

            memacMdio-5: (0x2344d6a0) level(4)

            memacMdio-6 (refs: 0) on QorIQFman0 (refs: 14)

            memacMdio-6: (0x2344d9a0) level(4)

            memacMdio-7 (refs: 0) on QorIQFman0 (refs: 14)

            memacMdio-7: (0x2344dcd0) level(4)

         spi-0 (refs: 0) on simpleBus3 (refs: 29)

         spi-0: <(no driver attached)> (0x21cf9f40) level(3)

         usbphy-0 (refs: 0) on simpleBus3 (refs: 29)

         usbphy-0: <(no driver attached)> (0x21cfa0c0) level(3)

         usbphy-1 (refs: 0) on simpleBus3 (refs: 29)

         usbphy-1: <(no driver attached)> (0x21cfa240) level(3)

         usb0-0 (refs: 0) on simpleBus3 (refs: 29)

         usb0-0: <(no driver attached)> (0x21cfa420) level(3)

         usb1-0 (refs: 0) on simpleBus3 (refs: 29)

         usb1-0: <(no driver attached)> (0x21cfa600) level(3)

         sdhc-0 (refs: 0) on simpleBus3 (refs: 29)

         sdhc-0: <(no driver attached)> (0x21cfa7e0) level(3)

         mpic-0 (refs: 0) on simpleBus3 (refs: 29)

         mpic-0: (0x21cfa960) level(3)

         pic-timer-0 (refs: 0) on simpleBus3 (refs: 29)

         pic-timer-0: <(no driver attached)> (0x21cfad40) level(3)

         msi-0 (refs: 0) on simpleBus3 (refs: 29)

         msi-0: <(no driver attached)> (0x21cfb720) level(3)

         msi-1 (refs: 0) on simpleBus3 (refs: 29)

         msi-1: <(no driver attached)> (0x21cfc100) level(3)

         msi-2 (refs: 0) on simpleBus3 (refs: 29)

         msi-2: <(no driver attached)> (0x21cfcae0) level(3)

         msi-3 (refs: 0) on simpleBus3 (refs: 29)

         msi-3: <(no driver attached)> (0x21cfd4c0) level(3)

         pic-timer-1 (refs: 0) on simpleBus3 (refs: 29)

         pic-timer-1: <(no driver attached)> (0x21cfd840) level(3)

         global-utilities-0 (refs: 0) on simpleBus3 (refs: 29)

         global-utilities-0: <(no driver attached)> (0x21cfd9c0) level(3)

         rcpm-0 (refs: 0) on simpleBus3 (refs: 29)

         rcpm-0: <(no driver attached)> (0x21cfdb40) level(3)

         ns16550-0 (refs: 0) on simpleBus3 (refs: 29)

         ns16550-0: (0x21cfdd40) level(3)

         ns16550-1 (refs: 0) on simpleBus3 (refs: 29)

         ns16550-1: (0x21d01bf0) level(3)

         dma-0 (refs: 0) on simpleBus3 (refs: 29)

         dma-0: <(no driver attached)> (0x21d02580) level(3)

         dma-1 (refs: 0) on simpleBus3 (refs: 29)

         dma-1: <(no driver attached)> (0x21d02700) level(3)

         sata-0 (refs: 0) on simpleBus3 (refs: 29)

         sata-0: <(no driver attached)> (0x21d02900) level(3)

         sata-1 (refs: 0) on simpleBus3 (refs: 29)

         sata-1: <(no driver attached)> (0x21d02b00) level(3)

      pcie-0 (refs: 0) on fdtBus0 (refs: 9)

      pcie-0: <(no driver attached)> (0x21d02b60) level(2)

      pcie-1 (refs: 0) on fdtBus0 (refs: 9)

      pcie-1: <(no driver attached)> (0x21d02d60) level(2)

      pcie-2 (refs: 0) on fdtBus0 (refs: 9)

      pcie-2: <(no driver attached)> (0x21d02f60) level(2)

      pcie-3 (refs: 0) on fdtBus0 (refs: 9)

      pcie-3: <(no driver attached)> (0x21d03160) level(2)

   virtBus-0 (refs: 0) on mainbus0 (refs: 2)

   virtBus-0: <(no driver attached)> (0x21d03360) level(1)

value = 567292768 = 0x21d03360 = '`

各类问题欢迎进群讨论:QQ群:245079182

 

你可能感兴趣的:(vxworks7_PPC)