I have try to generate uImage from Yocto LS1012A.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I have try to generate uImage from Yocto LS1012A.

2,826件の閲覧回数
nattapongsungch
Contributor III

Hello,

I'am new for Yocto build. 

I have done follow "QorIQ SDK 2.0 Documentation" to generate binary and images but i'm not see uImage on it.

First , I tried to change "Image" to uImage but it's not working.

Second, I tried to patch kernel and recompile.

1) $ bitbake -c cleansstate virtual/kernel

2) $ bitbake -c patch virtual/kernel

3) $ bitbake -c compile -f virtual/kernel

4) $ bitbake virtual/kernel

Thank you

Nattapong

ラベル(1)
タグ(1)
0 件の賞賛
8 返答(返信)

1,490件の閲覧回数
nattapongsungch
Contributor III

Right now , I'm using kernel ITB format for boot up.

Thank you

0 件の賞賛

1,490件の閲覧回数
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for SDK installing under Ubuntu 14.04 and Ubuntu 16.04:

 

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. install SDK cache:
  2. install SDK source
  3. cd <sdk-install-dir>.
  4. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. bitbake fsl-image-minimal


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

1,490件の閲覧回数
nattapongsungch
Contributor III

Dear Pavel Chubako

Thank you for your answer,

I tried follow your step but still doesn't have uImage at /tmp/deploy/image/.  

just 

Image -> Image--4.1-r0-ls1012ardb-20160906020608.bin

Thank you

Nattapong

0 件の賞賛

1,489件の閲覧回数
Pavel
NXP Employee
NXP Employee

Look at attached file.

Do you have similar uImage file?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

1,489件の閲覧回数
nattapongsungch
Contributor III

Yes , I also attached files.

list.png

Thank you

Nattapong

0 件の賞賛

1,489件の閲覧回数
Pavel
NXP Employee
NXP Employee

Use uImage*.bin file for your task.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

1,489件の閲覧回数
nattapongsungch
Contributor III

You mean I can use Imag*.bin for boot instead of uImage  ? .

Because , In my folder doesn't image named uImage.

Thank you

Nattapong.

0 件の賞賛

1,489件の閲覧回数
nattapongsungch
Contributor III

Update 

I had try to change KERNEL_IMAGETYPE = "Image" to "uImage" at  LS1012A-SDK-20160810-yocto/sources/meta-freescale/conf/machine/include/qoriq-arm64.inc 

and then 

$ bitbake fsl-image-core

then ERROR 

/LS1012A-SDK-20160810-yocto/build_ls1012ardb/tmp/sysroots/ls1012ardb LOADADDR=20008000
| GEN ./Makefile
| scripts/kconfig/conf --silentoldconfig Kconfig
| make[2]: *** No rule to make target `uImage'. Stop.
| make[1]: *** [sub-make] Error 2
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/chonburi/Desktop/LS1012A-SDK-20160810-yocto/build_ls1012ardb/tmp/work/ls1012ardb-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_compile.6238)

Thank you

0 件の賞賛