Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

U-boot tep5-imx6 patch issue #4

Open
Mothax opened this issue May 25, 2018 · 2 comments
Open

U-boot tep5-imx6 patch issue #4

Mothax opened this issue May 25, 2018 · 2 comments

Comments

@Mothax
Copy link

Mothax commented May 25, 2018

I've downloaded Yocto 2.0 with QT5 eMMC Installer for TEP-1560-IMX6 from https://www.technexion.com/support/download-center/?wpv-product=tep-1560-imx6&wpv_aux_current_post_id=78&wpv_view_count=181-TCPID78&wpv-dowload=yocto-runtime-images
for my TEP-1560-IMX6. I'm trying to build a new Yocto image. There is a file "How to build this image.txt" inside the Installer folder. It says that I must: "Apply display patches for 1368x768 LVDS panel in u-boot and kernel". There are two patches: 'tep5-imx6_15inch_1368x768_uboot.patch' and 'tep5-imx6_15inch_1368x768_kernel.patch'".
These patches cannot be applied.
u-boot-edm_2015.04.bb fetches:
SRCBRANCH = "tn-imx_v2015.04_4.1.15_1.0.0_ga"
SRCREV = "6fd697cd61e8793723cb3cc10dce2fb8438f8461"
SRC_URI = "git://github.com/TechNexion/u-boot-edm.git;branch=${SRCBRANCH}
file://tep5-imx6_15inch_1368x768_uboot.patch"
And file://tep5-imx6_15inch_1368x768_uboot.patch wants to make changes in "diff --git a/board/technexion/tek-imx6/tek-imx6.c b/board/technexion/tek-imx6/tek-imx6.c"
There are no files in the tn-imx_v2015.04_4.1.15_1.0.0_ga repo in u-boot-edm/board/technexion/ folder for tek-imx6/tek-imx6.c
Same problem with the kernel patch.
Where can I find correct patches for TEP-1560-IMX6? Current patch is applied to jethro_4.1.15-1.1.0_next Yocto distribution. Is there any display patch available for Yocto krogoth?

tep5-imx6_15inch_1368x768_uboot.txt
tep5-imx6_15inch_1368x768_kernel.txt
how_to_build_this_image.txt

@richard-hu
Copy link
Collaborator

Hello, Mothax:

I just apply these two patches(tep5-imx6_15inch_1368x768_uboot.patch and tep5-imx6_15inch_1368x768_kernel.patch) into u-boot and kernel, and it just works without any errors.

u-boot:
git://github.com/TechNexion/u-boot-edm.git
branch:tn-imx_v2015.04_4.1.15_1.0.0_ga
commit id: 6fd697c

kernel:
git://github.com/TechNexion/linux.git
branch:tn-imx_4.1.15_2.0.0_ga
commit id: cee96b426d432c9d40a832e8bd1ad2440893f84d

I can't reproduce the problem you have.

There are no files in the tn-imx_v2015.04_4.1.15_1.0.0_ga repo in u-boot-edm/board/technexion/ folder for tek-imx6/tek-imx6.c

There is "board/technexion/tek-imx6/tek-imx6.c b/board/technexion/tek-imx6/tek-imx6.c" as below:
https://github.com/TechNexion/u-boot-edm/blob/tn-imx_v2015.04_4.1.15_1.0.0_ga/board/technexion/tek-imx6/tek-imx6.c

Would you please provide me the error message you have when building yocto?

We plan to set up an automated system to generate release image.
We will upgrade all TechNexion products to lastest yocto.
The timing settings of this panel is as the patches.
It's possible to generate patches from u-boot and kernel source code then apply them into yocto krogoth. If you want me to make these patches for krogoth, you might need to wait until i'm in the office next Monday. And krogoth isn't yet tested in TEP5-IMX6, it's just a preview.

I'm sorry for the inconvenience.

BR,

Richard

@Mothax
Copy link
Author

Mothax commented May 28, 2018

Hi, Richard

Thank you for quick response. Now I'm sure that is nothing wrong with this patch. I think I've found what was the problem with my Yocto build this Monday morning. The error message was:
"Building a core-image-minimal fails with error:

| ERROR: User requested feature sdl
| configure was not able to find it.
| Install SDL devel"
Something wrong with the environment that could caused by the applied patch.
Fortunately this bug is solved by adding BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu ". I've found how to fix this bug at NXP forum: https://community.nxp.com/thread/429277#comment-823220

If krogoth was not tested with TEP5-IMX6 then I'll try to find a way to install firefox on jethro this week.
Chromium 48.0.2548.0 on prebuild image inside this Yocto 2.0 with QT5 eMMC Installer for TEP-1560-IMX6 crashes from time to time. It only works with --ignore-gpu-blacklist flag which is not an option for me.
My colleague has tested to install firefox on krogoth. It works well and a QT application works also well on imx6ul (an older board + screen at the office). I've to weather install already working QT demo and firefox on TEP-1560-IMX6 and fix screen size or use Yocto jethro where screen size is fixed/patched and move QT demo to it and make firefox or chromium work on it as installed applications. If I'll not solve this small problem this week I'll ask you to provide a patch for krogoth. Thanks.

Regards,
Mothax

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants