News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

QNX Screen Problems on TE0808 XCZU9EG

Started by morne, May 08, 2019, 04:54:30 PM

Previous topic - Next topic

morne

Hi,

I am attempting to run QNX on a TE0808 dev kit with a XCZU9EG MPSoC and running into screen/display troubles.

I am using the ZCU102 BSP with additional graphics package provided by QNX. When I run the screen, it spits out some i2c errors:

Jan 01 00:00:04.895                   screen.36880                 slog*   300  screen: starting up...
   Jan 01 00:00:04.895                   screen.36880                 slog    300  screen: Configuration file:  /usr/lib/graphics/zcu102/graphics                                                                                .conf
   Jan 01 00:00:04.895                   screen.36880                 slog    300  screen: Configuration file:  /usr/lib/graphics/zcu102/graphics                                                                                .conf
   Jan 01 00:00:05.399                 i2c_xzynq.4105                 slog*     0  Master send did not terminate for slave 0x20
   Jan 01 00:00:05.399                   screen.36880                 slog    200  ERROR: 1 i2c_read_8 - Failed to read dev=20, regaddr=6 (5)
   Jan 01 00:00:05.399                   screen.36880                 slog    200  ERROR: 1 gtr_sel_mux_config - failed to read TCA6416 pin confi                                                                                g
   Jan 01 00:00:05.399                   screen.36880                 slog    200  wfd ERROR: 1 wfdCreateDevice - WFDzynq: couldn't create wfdcfg                                                                                 device.
   Jan 01 00:00:05.399                   screen.36880                 slog    300  screen: win_enumerate_displays: could not create display devic                                                                                e 1
   Jan 01 00:00:05.400                   screen.36880                 slog    300  screen: invalid display id:
           >>>   begin display 1
   
   Jan 01 00:00:05.400                   screen.36880                 slog    300  screen: invalid display id:
           >>>   begin display 1
   
   Jan 01 00:00:05.400                   screen.36880                 slog    300  screen: Port not found:
           >>>     display
   
   Jan 01 00:00:05.401                   screen.36880                 slog    300  screen: slog2 context created with 1 pages
   Jan 01 00:00:05.401                   screen.36880                 slog    300  screen: loading alloc module zynq-alloc...
   Jan 01 00:00:05.402                   screen.36880                 slog    300  screen: loading libhiddi.so...
[/font]



The calls are looking for a device at address 0x20. I'm wondering if the TE0808 hardware is slightly different than what the BSP is expecting, since they BSP is built for the Xilinx evaulation board.

Using the prebuilt petalinux OS, I ran i2c detect:

   root@petalinux:/dev# i2cdetect -l
   i2c-15  i2c             i2c-0-mux (chan_id 6)                   I2C adapter
   i2c-3   i2c             i2c-0-mux (chan_id 2)                   I2C adapter
   i2c-13  i2c             i2c-0-mux (chan_id 4)                   I2C adapter
   i2c-1   i2c             i2c-0-mux (chan_id 0)                   I2C adapter
   i2c-11  i2c             i2c-0-mux (chan_id 2)                   I2C adapter
   i2c-8   i2c             i2c-0-mux (chan_id 7)                   I2C adapter
   i2c-6   i2c             i2c-0-mux (chan_id 5)                   I2C adapter
   i2c-16  i2c             i2c-0-mux (chan_id 7)                   I2C adapter
   i2c-4   i2c             i2c-0-mux (chan_id 3)                   I2C adapter
   i2c-14  i2c             i2c-0-mux (chan_id 5)                   I2C adapter
   i2c-2   i2c             i2c-0-mux (chan_id 1)                   I2C adapter
   i2c-12  i2c             i2c-0-mux (chan_id 3)                   I2C adapter
   i2c-0   i2c             Cadence I2C at ff020000                 I2C adapter
   i2c-9   i2c             i2c-0-mux (chan_id 0)                   I2C adapter
   i2c-10  i2c             i2c-0-mux (chan_id 1)                   I2C adapter
   i2c-7   i2c             i2c-0-mux (chan_id 6)                   I2C adapter
   i2c-17  i2c             ZynqMP DP AUX                           I2C adapter
   i2c-5   i2c             i2c-0-mux (chan_id 4)                   I2C adapter



And for each bus:

   root@petalinux:/dev# i2cdetect -y -r 0
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 1
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: 70 -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 2
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- 26 -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 3
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 4
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 5
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 6
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: 50 51 52 -- 54 -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 7
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 8
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 9
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 10
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- 38 -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 11
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 12
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 13
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 14
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 15
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 16
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 16
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          -- -- -- -- -- -- -- -- -- -- -- -- --
   10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
   70: -- -- -- UU -- -- -- UU
   root@petalinux:/dev# i2cdetect -y -r 17
        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
   00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
   10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
   20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
   30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
   40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
   50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
   60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
        70: 70 71 72 73 74 75 76 77


I've no idea how helpful any of this information is, or if this forum is even the right avenue for this question, but if anyone has any information, I appreciate your help!


JH

Hi,
you can't use BSP form ZC102, that's completely other system. ZynqMP is an configurable processing system so every system has another configuration, which must be know from OS.

Start with our reference design and then start your QNX configuration.
Basic flow is allways:

       
  • Create Vivado Design with PS(we provide board part file for basic starterkit PS configuration --> or use the reference design itself)
  • Export HDF
  • Generate FSBL with HDF (--> we havean modified FSBL template available in the reference design, which configure SI5345 for GTR CLKS)
  • Generate AFT, PMU and OS (not all is done automatically, you must also check configuration like  Device tree...) with the same HDF
Important use for all the same Vivado/SDK...Version.
For QNX itself, I can't help much, maybe you should also write a post on the Xilinx Forum.Changes we have done for petalinux are listed on the Reference design description:br
John