Fix i.MX6

Description

Follwoing targets are broken (cannot be built) since Chinook release since freescale BSP has changed its layer convention since morty (2.2) and also lack of support (as I can see) for AGL build from meta-freescale community.

imx6qsabrelite
wandboard

I managed to build current master (pre-dd) and boot on imx6qsabreauto board, and to do so also in AGL distribution followings are needed.

  • Update repo manifest so that it contains the latest freescale layers (meta-freescale, meta-freescale-3rdparty and meta-freescale-distro)

  • Fragment files in template/machine/xxxx and aglsetup.sh needs to be update so that it has proper inclusion and settings for bblayers.conf and local.conf

  • Kernel recipes needs imx specific bbappends so that we have smack, etc. that are common definitions for AGL builds

  • weston-init bbappends also need to take care of freescale device (e.g. /dev/galcore permission)

I hope i.mx boards can be built using AGL distribution so that multiple of i.mx6 boards in my lab do not become trash, and also we will not give developers disappointment when they find they cannot build image for their board.

I have imx6sabreauto and imx6qsabrelite, but mainly doing projects on imx6qsabreauto (sabre platform for automotive infortainment).

At least, I want imx6qsabreauto to be built properly, even though it is classified as one of the community boards.

 

7/7 status:

With the latest gerrit change 10081, the board boots and looks like OK, also showing USB devices.

imx6qsabreauto is now the only i.MX6 board available in AGL build option (it is good to avoid confusion).

 

 

Environment

AGL builds chinook and after (morty based) Build targets imx6qsabrelite wandboard (imx6qsabreauto)  

relates to

Activity

Takashi Matsuzawa 
July 12, 2017 at 9:48 PM

Fixed for master/DD:

  • Can build imx6qsabreauto

  • Can boot to homescreen

  • There is no obvious failure and can use peripherals (e.g. lsusb works)

Further issues, if any, should be tracked in separate tickets.

Takashi Matsuzawa 
July 11, 2017 at 10:39 PM

Re: USB initialization issue

Upstream patch for this on u-boot ML.

https://lists.denx.de/pipermail/u-boot/2017-July/297697.html
https://lists.denx.de/pipermail/u-boot/2017-July/297698.html

But I think it is still OK that we use u-boot-imx for a while until it comes to u-boot-flsc and that version (latest BSP) becomes our base.

Takashi Matsuzawa 
July 6, 2017 at 10:01 PM

Added DD-must-fix label.
Gerrit change 10081 need to be DD or there is no GPIO/USB on imx6qsabreauto board.

Takashi Matsuzawa 
July 6, 2017 at 1:15 PM

By specifying u-boot-imx instead of u-boot-fslc, the usb issue is gone (now gpio, etc. initializations are done correctly.)

Preparing the patch.

 

Takashi Matsuzawa 
June 29, 2017 at 4:40 AM

The reiew comment to meta-agl change is fine, I confirmed that I can build and boot localy.
But I have another issue which need a fix.

>root@imx6qsabreauto:~# lsusb -v
>libusb: debug [libusb_init] created default context
>libusb: debug [libusb_init] libusb v1.0.20.11004
>libusb: error [op_init] could not find usbfs
>unable to initialize libusb: -99

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Priority

Created June 26, 2017 at 6:49 AM
Updated July 24, 2017 at 11:45 PM
Resolved July 12, 2017 at 9:48 PM