element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development QNX on Zedboard
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 176 subscribers
  • Views 710 views
  • Users 0 members are here
Related

QNX on Zedboard

exds75
exds75 over 5 years ago

Hi Microzed,

zedboard, Vivado/SDK 2016.2, QNX Momentics IDE 6.5SP1, QNX BSP for zc702

 

I am working to port QNX on zedboard by zc702 BSP, which was dated 2014-08-18 and available from

http://community.qnx.com/sf/wiki/do/viewPage/projects.bsp/wiki/XilinxZc702

After closely follow the previous topic in this forum,

http://microzed.org/content/porting-qnx-zedboard

zedboard hangs on the boot sequence "Starting Network driver...". I have to completely comment out the ethernet portion (both static IP and DHCP) in the build script to get zedboard booted up.

 

Then I found another topic on QNX devnp in the forum,

http://zedboard.org/content/ethernet-not-running-zedboard

1.hardcode MAC address 00:0a:35:00:01:22 in control.c

2.comment out MIO 11 reset in xzynq.c

3.hardcode phyid=0x01410dd1 in zxynq.c

zedboard bootup with messages:

Starting Network driver...
ifconfig: SIOCAIFADDR: No such process
Unable to access "/dev/socket" (2)
#

 

below is the complete boot sequence:

CPU1: L1 Dcache: 1024x32 WB
CPU1: VFP-d32 FPSID=41033094
CPU1: NEON MVFR0=10110222 MVFR1=01111111
CPU1: 413fc090: Cortex A9 MPCore rev 0 666MHz
alloc_syspage_memory: syspage size:00000f18 _syspage_ptr:0089b000
callout_io_map_armv7_dev: mapping paddr:f8f02000 returns:fc40d000
callout_io_map: mapping paddr:f8f00200 returns:fc40e200
callout_io_map: mapping paddr:f8f01000 returns:fc40f000
callout_io_map: mapping paddr:f8f00100 returns:fc410100
callout_io_map: mapping paddr:e000a000 returns:fc413000
callout_io_map: mapping paddr:f8f02000 returns:fc414000
callout_io_map: mapping paddr:f8f01000 returns:fc415000
callout_io_map: mapping paddr:f8005000 returns:fc416000
callout_io_map: mapping paddr:f8f00600 returns:fc417600
callout_io_map: mapping paddr:e0001000 returns:fc418000
callout_io_map: mapping paddr:e0001000 returns:fc419000
callout_io_map: mapping paddr:e0001000 returns:fc41a000
cpu_startnext: cpu1 -> fc408c18

System page at phys:0089b000 user:fc408000 kern:fc408000
Starting next program at vfe0471ec
cpu_startnext: cpu0 -> fe0471ec
Starting Clock driver (/dev/clock)...
Welcome to QNX Neutrino 6.5.0 on the Zynq7000 ZC702 (ARM Cortex-A9 MPCore)
Starting SDHC driver (/dev/hd0)...
Starting QSPI Flash memory (/dev/fs0p0)...
(devf  t1::f3s_flash_probe:277) Unable to properly identify any flash devices
Path=0 - Generic SDHCI
 target=0 lun=0     Direct-Access(0) - SD:116 SMI   Rev: 1.0
Unable to access "/dev/fs0p0" (2)
Starting OCM driver (/dev/ocm/)...
Starting XADC driver (/dev/xadc)...
Starting FPGA driver (/dev/fpga)...
Starting USB Host driver (/dev/io-usb/)...
Starting Network driver...
ifconfig: SIOCAIFADDR: No such process
Unable to access "/dev/socket" (2)
# ls /dev
clock        mem          ptyp2        ser1         tty          ttyp6
console      null         ptyp3        shmem        ttyp0        ttyp7
dbgmem       ocm          ptyp4        slog         ttyp1        tymem
fpga         pipe         ptyp5        stderr       ttyp2        xadc
hd0          profiler     ptyp6        stdin        ttyp3        zero
hd0t11       ptyp0        ptyp7        stdout       ttyp4
io-usb       ptyp1        sem          text         ttyp5
#
 

Please advise, thanks in advance

Mike

  • Sign in to reply
  • Cancel
  • jafoste4
    0 jafoste4 over 5 years ago

    Hello exdes,

    Are you trying to run QNX on a MicroZed or a Zedboard?

    The beginning of your post is slighly confusing stating both boards.

    Also you may wish to take a look at this http://www.wiki.xilinx.com/QNX

    Thanks,

    Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • exds75
    0 exds75 over 5 years ago in reply to jafoste4

    Hi Josh,

    I am working on zedboard.

    The xilinx weblink is dedicated for zc702, while I have trouble to port QNX BSP from zc702 to zedboard.

    Please advise, thanks in advance.

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 5 years ago

    Hi Mike,

    I had similar troubles bringing up Ethernet on MicroZed but the PHY should be similar to ZedBoard.

    What is the significance of the phyid=0x01410dd1 value in the code?

    Best Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 5 years ago

    Hi Mike,

    Also wanted to point out this new EVM that was posted for the Xilinx ZC702 board which may also be helpful for you:

    http://community.qnx.com/sf/wiki/do/viewPage/projects.bsp/wiki/XilinxZc702

    Best Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • exds75
    0 exds75 over 5 years ago in reply to zedhed

    Hi Kevin,

    My ethernet setting was mostly inspired by Mr. heelancd and who posted in http://zedboard.org/content/ethernet-not-running-zedboard , quote:

    1) Hardcode the PHY address to 0
    2) The ZC702 seems to store the PHY MAC address in an I2C EEPROM. I had to eliminate any EEPROM code to make sure nothing hangs/fails in trying to access it and then hardcode the MAC address to 00:0a:35:00:01:22
    3) I eliminated any code that attempted to reset the PHY through MIO 11 as this connection is not wired on the Zedboard
    3) I didn't actually need this, but you may need to change the PHY ID to 0x1410dd1

    However, I am stuck at the first step "Hardcode the  to 0 in source code". There are 3 source C files in devnp folder which possibly contains PHY address (phy_addr in mii.c and nicinfo.h, phys_addr in bdring.c, phy_address in control.c as varieties). Note nicinfo.h is in /opt/qnx650/target/qnx6/usr/include/hw/nicinfo.h

    Please help to give a try, thanks in advance,

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • exds75
    0 exds75 over 5 years ago in reply to zedhed

    Hi Kevin,

    any update ? Please advise, thanks in advance,

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • exds75
    0 exds75 over 5 years ago in reply to zedhed

    Hi Kevin,

    I tested on microzed today. It is able to bootup with ethernet. Thanks for the support.

    Best

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • zedhed
    0 zedhed over 5 years ago

    Hi Mike,

    That is great news to hear!

    Did you need to do any further modifications to the QNX configuration to get it working with MicroZed? 

    Best Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • exds75
    0 exds75 over 5 years ago in reply to zedhed

    Hi Kevin,

    Mostly I followed your post

    http://microzed.org/content/porting-qnx-zedboard

    and I hardcoded MAC address to  00:0a:35:00:01:23 in control.c in devnp directory.

    Thank you for the pioneer expedition

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube