Problems with image build 4.19.35(imx6-ull)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with image build 4.19.35(imx6-ull)

Jump to solution
2,568 Views
shevchenko_ale1
Contributor II

Hi, help me!

I have some problems building the system 4.19.35 for imx6ull when I using the instructions i.MX_Yocto_Project_User's_Guide. 

I'm using ubuntu 18.04.
I follow these steps:
1. Installed packages:

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib  build-essential chrpath socat cpio python python3 python3-pip python3-pexpect  xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev  pylint3 xterm

2. I'm setting up a repo package:

mkdir ~/bin

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo

sudo apt-get install repo

3. I'm setting up a Yocto project

git config --global user.name "Your Name"
git config --global user.email "Your Email"
git config –list
mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml
repo sync

4.After that, I set up a build configuration

MACHINE=imx6ull14x14evk DISTRO=fsl-imx-fb source fsl-setup-release.sh -b build_ull

5. Started build

bitbake imx-image-multimedia

Thus, I got a tree of devices and a system image that are in the folder tmp/deploy/images/imx6ull14x14evk

6. After which I change the device tree, for the test I changed lsd in the file:

tmp/work-shared/imx6ull14x14evk/kernel-source/arch/arm/boot/dts/imx6ull-14x14-evk.dts

tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/linux-libc-headers/4.19-r0/linux-4.19/arch/arm/boot/dts/imx6ull-14x14-evk.dts

/home/sasha/imx-yocto-bsp/build_ull/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.19.35-r0/git/arch/arm/boot/dts/imx6ull-14x14-evk.dts

7. I start build again

bitbake imx-image-multimedia

8. Checking files in

tmp/deploy/images/imx6ull14x14evk

but they have not changed and in the terminal I see the following:

NOTE: Tasks Summary: Attempted 5720 tasks of which 5720 didn't need to be rerun and all succeeded.

What am I doing wrong?

I also tried using commands:

bitbake imx-image-multimedia -с fetch

bitbake imx-image-multimedia -с deploy

bitbake imx-image-multimedia -c compile -f

but it did not bring the desired result.

Regards,

Aleksandr

Labels (3)
1 Solution
2,082 Views
karangajjar
Senior Contributor II

Hi Aleksandr Shevchenko,

After you change the device tree or just the kernel code, you need not compile the full image.

Try below command and check the dtb and zImage:

$ bitbake -c compile -f linux-imx

$ bitbake linux-imx

Regards,

Karan Gajjar

View solution in original post

5 Replies
2,081 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Aleksandr,


Karan Gajjar’s suggestion is a good one. However, there is also the fact that Yocto is designed around distribution and not development. This means that Yocto does not keep track of changed source files and that sometimes the recipe will re-fecth the original configuration, erasing your changes.


It is suggested that you work on the changed you require by cross compiling outside of Yocto and that you incorporate the changes trough new recipes or appends to the current recipes. You can find more information on the Yocto Project documentation.


Regards,

2,081 Views
shevchenko_ale1
Contributor II

Hi gusarambula‌,

thanks for your reply.

Regards,

Aleksandr

0 Kudos
2,083 Views
karangajjar
Senior Contributor II

Hi Aleksandr Shevchenko,

After you change the device tree or just the kernel code, you need not compile the full image.

Try below command and check the dtb and zImage:

$ bitbake -c compile -f linux-imx

$ bitbake linux-imx

Regards,

Karan Gajjar

2,082 Views
shevchenko_ale1
Contributor II

Hi karan.gajjar@volansystech.com‌,

Thank you it works.

Regards, 

Aleksandr

2,082 Views
karangajjar
Senior Contributor II

Hi Aleksandr Shevchenko,

We are glad we could help in resolving your issue.

Regards,

Karan Gajjar

0 Kudos