LinuxT2080DevKit: Difference between revisions

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:
   
   
= Product Download =
= Product Download =
 
download:
download:
 
QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso
QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso
 
QorIQ Linux SDK v2.0 SOURCE.iso
QorIQ Linux SDK v2.0 SOURCE.iso
 
QorIQ Linux SDK v2.0-1703.tar.bz2
QorIQ Linux SDK v2.0-1703.tar.bz2


QorIQ Linux SDK v2.0 PPC64E6500 IMAGE.iso
QorIQ Linux SDK v2.0 PPC64E6500 IMAGE.iso


 
 
[https://www.nxp.com/docs/en/user-guide/T2080RDBPCUG.pdf QorIQ T2080 Reference Design Board]
[https://www.nxp.com/docs/en/user-guide/T2080RDBPCUG.pdf QorIQ T2080 Reference Design Board]
[https://freescale.sdlproducts.com/LiveContent/web/pub.xql?c=t&action=home&pub=QorIQ_SDK&lang=en-US QorIQ SDK v2.0-1703 Documentation]


[https://docs.nxp.com/bundle/GUID-39A0A446-70E5-4ED7-A580-E7508B61A5F1/page/GUID-30F66DE6-BAD0-4ED6-A122-FF58A9EB3ABD.html QorIQ SDK v2.0-1703 Documentation]
 
 
 
Gettings Started-> Essential Build Instructions:
Gettings Started-> Essential Build Instructions:


 
 
 
'''-> Install SDK 2.0'''
'''-> Install SDK 2.0'''


 
 
'''Note: '''To avoid a long time build, you can install the source ISO and the cache ISO in the same installation folder.
'''Note: '''To avoid a long time build, you can install the source ISO and the cache ISO in the same installation folder.


 
 
# Mount: (On Ubuntu/Mint to mount ISO is sufficient to click on the iso file)
# Mount: (On Ubuntu/Mint to mount ISO is sufficient to click on the iso file)
 
QorIQ Linux SDK v2.0 SOURCE.iso
QorIQ Linux SDK v2.0 SOURCE.iso


 
 
QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso ( precompiled builds)
QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso ( precompiled builds)


 
 
2. As a non-root user, install Yocto Project
2. As a non-root user, install Yocto Project


 
 
run install from sdk source mounted dir
run install from sdk source mounted dir


 
 
* cd <sdk source mounted dir/
* cd <sdk source mounted dir/
* ./install
* ./install
 
run install from yocto cache mounted dir to the''' same installation dir'''
run install from yocto cache mounted dir to the''' same installation dir'''


 
 
* cd <yocto cache mounted dir>
* cd <yocto cache mounted dir>
* ./install
* ./install
 
 
'''->Install SDK V2.0-1703'''
'''->Install SDK V2.0-1703'''


 
 
Install the incremental update SDK-V2.0-1703.tar.bz2
Install the incremental update SDK-V2.0-1703.tar.bz2


 
 
Untar the file in your preferred temporary dir:
Untar the file in your preferred temporary dir:


 
 
<pre>tar -xjf /home/roby/Scaricati/QorIQ\ Linux\ SDK\ v2.0-1703.tar.bz2 cd &lt;temporary dir&gt;
<pre>tar -xjf /home/roby/Scaricati/QorIQ\ Linux\ SDK\ v2.0-1703.tar.bz2 cd &lt;temporary dir&gt;
</pre>
</pre>
 
Launch install ( when requested give the '''same installation dir''' )
Launch install ( when requested give the '''same installation dir''' )


 
 
./SDK-V2.0-1703/install
./SDK-V2.0-1703/install


 
 
 
'''-&gt;Set Up Host Environment'''
'''-&gt;Set Up Host Environment'''


 
 
With linux Mint the python default version is 2.7 as requested ( to verify your default python --version )
With linux Mint the python default version is 2.7 as requested ( to verify your default python --version )


 
 
Install needed gnu/linux packages relatad to your distro
Install needed gnu/linux packages relatad to your distro


 
 
 
'''-&gt;Set Up Poky'''
'''-&gt;Set Up Poky'''


 
 
<pre>cd &lt;installation dir&gt;  ( cd QorIQ-SDK-V2.0-20160527-yocto/ )<br>
<pre>cd &lt;installation dir&gt;  ( cd QorIQ-SDK-V2.0-20160527-yocto/ )<br>
. ./fsl-setup-env -m t2080rdb-64b
. ./fsl-setup-env -m t2080rdb-64b
</pre>
</pre>
 
 
''Update kernel source''
''Update kernel source''


 
 
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux/<br>
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux/<br>
git pull origin jethro-sdk-v2.0-ga-17.03
git pull origin jethro-sdk-v2.0-ga-17.03
</pre>
</pre>
 
 
''Change kernel configuration''
''Change kernel configuration''


<pre>First time:
''[[Docs]]''
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel
 
Update configuration:
bitbake -c menuconfig virtual/kernel


bitbake -c compile -f virtual/kernel
<pre>First time:<br>
bitbake -c cleansstate virtual/kernel<br>
bitbake -c patch virtual/kernel<br>
<br>
Update configuration:<br>
bitbake -c menuconfig virtual/kernel<br>
<br>
bitbake -c compile -f virtual/kernel<br>
bitbake virtual/kernel
bitbake virtual/kernel
</pre>
</pre>
 
 
=== Set T2080RDB to boot from SD card ===
=== Set T2080RDB to boot from SD card ===
 
[http://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf As Documented in]
[http://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf As Documented in]


 
 
in 4.4.18.3 Switch Settings
in 4.4.18.3 Switch Settings


 
 
SD Flash boot<br>
SD Flash boot<br>
SW1 [1:8] = 0010 0000<br>
SW1 [1:8] = 0010 0000<br>
Line 128: Line 147:
SW3 [1:8] = 1110 0001
SW3 [1:8] = 1110 0001


 
 
 
 
=== Working on SD card ===
=== Working on SD card ===
 
Insert an sdcard on your Ubuntu machine ( for example /dev/sdc )
Insert an sdcard on your Ubuntu machine ( for example /dev/sdc )


 
 
mount sdcard, go to the boot directory of the sdcard
mount sdcard, go to the boot directory of the sdcard


 
 
 
<code>cd boot</code>
<code>cd boot</code>


 
 
 
All custom compiled uboot,kernel images and rootfs are inside:
All custom compiled uboot,kernel images and rootfs are inside:


 
 
<pre>QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/
<pre>QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/
</pre>
</pre>
 
 
 
=== Copy kernel image to sdcard ===
=== Copy kernel image to sdcard ===
 
''Kernel image are two files .dtb and uImage''
''Kernel image are two files .dtb and uImage''


 
 
<pre>  
<pre>  
cd boot
cd boot


 
sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage-t2080rdb.dtb ./uImage.dtb   
sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage-t2080rdb.dtb ./uImage.dtb  <br>
sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage .
sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage .
</pre>
</pre>
=== uncompress modules on sdcard root ===


=== uncompress modules on sdcard root ===
<pre>cd &lt;root sdcard&gt;
<pre>cd &lt;root sdcard&gt;<br>
sudo tar zxvf QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/modules-t2080rdb-64b.tgz
sudo tar zxvf QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/modules-t2080rdb-64b.tgz
</pre>
</pre>
 
=== Modify U-boot ===
=== Modify U-boot ===
 
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b <br>
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b
cd tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs
cd tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs
</pre>
</pre>
 
modify configs files as T208xRDB.h
modify configs files as T208xRDB.h


 
=== Compile U-boot ===
=== Compile U-boot ===
 
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b<br>
<pre>cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b
bitbake -c compile -f u-boot <br>
bitbake -c compile -f u-boot  
bitbake u-boot
bitbake u-boot
</pre>
</pre>
 
=== Copy uboot for to sdcard ===
=== Copy uboot for to sdcard ===
'''warning:''' change /dev/sdc with your sdcard dev


'''warning:''' change /dev/sdc with your sdcard dev ( be careful if you put the wrong /dev you can erase your hdd )
 
 
 
<pre>sudo dd if=~/software/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/u-boot-sdcard.bin of=/dev/sdc seek=8 bs=512
<pre>sudo dd if=~/software/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/u-boot-sdcard.bin of=/dev/sdc seek=8 bs=512
</pre>
</pre>
 
=== Prepare a custom yocto images ===
=== Prepare a custom yocto images ===
 
''example: core-image-x11 for X11 packages''
''example: core-image-x11 for X11 packages''


 
<pre>cd QorIQ-SDK-V2.0-20160527-yocto . ./fsl-setup-env -m t2080rdb-64b bitbake core-image-x11
 
<pre>cd QorIQ-SDK-V2.0-20160527-yocto
. ./fsl-setup-env -m t2080rdb-64b
bitbake core-image-x11
</pre>
</pre>
 
QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b $
QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b $


 
 
cd tmp/deploy/images/t2080rdb-64b/
cd tmp/deploy/images/t2080rdb-64b/


 
 
you find a *.rootfs.ext2.gz.u-boot file
you find a *.rootfs.ext2.gz.u-boot file


 
 
 
'''From rootfs .u-boot file to extracted in sdcard'''
'''From rootfs .u-boot file to extracted in sdcard'''


 
 
 
Transform rootfs.ext2.gz.u-boot file to .gz
Transform rootfs.ext2.gz.u-boot file to .gz


 
 
 
<code>if=core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.gz.u-boot of=core-image-x11-t2080rdb-64b.rootfs.ext2.gz bs=64 skip=1</code>
<code>if=core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.gz.u-boot of=core-image-x11-t2080rdb-64b.rootfs.ext2.gz bs=64 skip=1</code>


 
 
Extract .gz to .ext2
Extract .gz to .ext2


 
 
 
<code>gunzip core-image-x11-t2080rdb-64b.rootfs.ext2.gz</code>
<code>gunzip core-image-x11-t2080rdb-64b.rootfs.ext2.gz</code>


 
 
Rename .ext2 to .iso
Rename .ext2 to .iso


 
 
 
<code>mv core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2 core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.iso</code>
<code>mv core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2 core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.iso</code>


 
 
Mount .iso
Mount .iso


 
 
Romove all files on sdcard except boot folder
Romove all files on sdcard except boot folder


 
 
Copy mounted iso cotent to sdcard root
Copy mounted iso cotent to sdcard root


 
 
 
<code>cp -rp &lt;mounted iso dir&gt; to sdcard root</code>
<code>cp -rp &lt;mounted iso dir&gt; to sdcard root</code>


 
 
 
'''Create file kernel modules dependencies '''
'''Create file kernel modules dependencies '''


 
 
go to kernel module directory of the generated sdcard with Yocto
go to kernel module directory of the generated sdcard with Yocto


 
 
<pre>cd /lib/modules/4.1.35-rt41 edit /lib/modules/4.1.35-rt41/modules.dep
<pre>cd /lib/modules/4.1.35-rt41 edit /lib/modules/4.1.35-rt41/modules.dep
</pre>
</pre>
 
with :
with :


 
 
<pre>kernel/fs/exportfs/exportfs.ko: kernel/fs/nfsd/nfsd.ko: kernel/fs/exportfs/exportfs.ko extra/cryptodev.ko: kernel/drivers/video/fbdev/aty/radeonfb.ko: kernel/drivers/video/fbdev/core/fb.ko kernel/drivers/video/fbdev/core/fb_ddc.ko kernel/drivers/video/fbdev/core/cfbcopyarea.ko kernel/drivers/video/fbdev/core/cfbfillrect.ko kernel/drivers/video/fbdev/core/cfbimgblt.ko kernel/drivers/i2c/algos/i2c-algo-bit.ko kernel/drivers/video/backlight/backlight.ko
<pre>kernel/fs/exportfs/exportfs.ko: kernel/fs/nfsd/nfsd.ko: kernel/fs/exportfs/exportfs.ko extra/cryptodev.ko: kernel/drivers/video/fbdev/aty/radeonfb.ko: kernel/drivers/video/fbdev/core/fb.ko kernel/drivers/video/fbdev/core/fb_ddc.ko kernel/drivers/video/fbdev/core/cfbcopyarea.ko kernel/drivers/video/fbdev/core/cfbfillrect.ko kernel/drivers/video/fbdev/core/cfbimgblt.ko kernel/drivers/i2c/algos/i2c-algo-bit.ko kernel/drivers/video/backlight/backlight.ko
</pre>
</pre>

Latest revision as of 14:56, 30 October 2021

From NXP


Product Download

download:

QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso

QorIQ Linux SDK v2.0 SOURCE.iso

QorIQ Linux SDK v2.0-1703.tar.bz2

QorIQ Linux SDK v2.0 PPC64E6500 IMAGE.iso


QorIQ T2080 Reference Design Board

QorIQ SDK v2.0-1703 Documentation


Gettings Started-> Essential Build Instructions:


-> Install SDK 2.0


Note: To avoid a long time build, you can install the source ISO and the cache ISO in the same installation folder.


  1. Mount: (On Ubuntu/Mint to mount ISO is sufficient to click on the iso file)

QorIQ Linux SDK v2.0 SOURCE.iso


QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cache.iso ( precompiled builds)


2. As a non-root user, install Yocto Project


run install from sdk source mounted dir


  • cd <sdk source mounted dir/
  • ./install

run install from yocto cache mounted dir to the same installation dir


  • cd <yocto cache mounted dir>
  • ./install

->Install SDK V2.0-1703


Install the incremental update SDK-V2.0-1703.tar.bz2


Untar the file in your preferred temporary dir:


tar -xjf /home/roby/Scaricati/QorIQ\ Linux\ SDK\ v2.0-1703.tar.bz2 cd <temporary dir>

Launch install ( when requested give the same installation dir )


./SDK-V2.0-1703/install


->Set Up Host Environment


With linux Mint the python default version is 2.7 as requested ( to verify your default python --version )


Install needed gnu/linux packages relatad to your distro


->Set Up Poky


cd <installation dir>  ( cd QorIQ-SDK-V2.0-20160527-yocto/ )<br>
. ./fsl-setup-env -m t2080rdb-64b

Update kernel source


cd QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux/<br>
git pull origin jethro-sdk-v2.0-ga-17.03

Change kernel configuration

First time:
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel

Update configuration:
bitbake -c menuconfig virtual/kernel

bitbake -c compile -f virtual/kernel
bitbake virtual/kernel


Set T2080RDB to boot from SD card

As Documented in


in 4.4.18.3 Switch Settings


SD Flash boot
SW1 [1:8] = 0010 0000
SW2 [1:8] = 0011 1111
SW3 [1:8] = 1110 0001



Working on SD card

Insert an sdcard on your Ubuntu machine ( for example /dev/sdc )


mount sdcard, go to the boot directory of the sdcard



cd boot


All custom compiled uboot,kernel images and rootfs are inside:


QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/


Copy kernel image to sdcard

Kernel image are two files .dtb and uImage


 
cd boot

sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage-t2080rdb.dtb ./uImage.dtb  
sudo cp QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/uImage .

uncompress modules on sdcard root

cd <root sdcard>
sudo tar zxvf QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/modules-t2080rdb-64b.tgz

Modify U-boot

cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b
cd tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs

modify configs files as T208xRDB.h

Compile U-boot

cd QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b
bitbake -c compile -f u-boot 
bitbake u-boot

Copy uboot for to sdcard

warning: change /dev/sdc with your sdcard dev ( be careful if you put the wrong /dev you can erase your hdd )


sudo dd if=~/software/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/deploy/images/t2080rdb-64b/u-boot-sdcard.bin of=/dev/sdc seek=8 bs=512

Prepare a custom yocto images

example: core-image-x11 for X11 packages


cd QorIQ-SDK-V2.0-20160527-yocto
. ./fsl-setup-env -m t2080rdb-64b
 bitbake core-image-x11

QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b $


cd tmp/deploy/images/t2080rdb-64b/


you find a *.rootfs.ext2.gz.u-boot file


From rootfs .u-boot file to extracted in sdcard


Transform rootfs.ext2.gz.u-boot file to .gz



if=core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.gz.u-boot of=core-image-x11-t2080rdb-64b.rootfs.ext2.gz bs=64 skip=1


Extract .gz to .ext2



gunzip core-image-x11-t2080rdb-64b.rootfs.ext2.gz


Rename .ext2 to .iso



mv core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2 core-image-x11-t2080rdb-64b-20170715152753.rootfs.ext2.iso


Mount .iso


Romove all files on sdcard except boot folder


Copy mounted iso cotent to sdcard root



cp -rp <mounted iso dir> to sdcard root


Create file kernel modules dependencies


go to kernel module directory of the generated sdcard with Yocto


cd /lib/modules/4.1.35-rt41 edit /lib/modules/4.1.35-rt41/modules.dep

with :


kernel/fs/exportfs/exportfs.ko: kernel/fs/nfsd/nfsd.ko: kernel/fs/exportfs/exportfs.ko extra/cryptodev.ko: kernel/drivers/video/fbdev/aty/radeonfb.ko: kernel/drivers/video/fbdev/core/fb.ko kernel/drivers/video/fbdev/core/fb_ddc.ko kernel/drivers/video/fbdev/core/cfbcopyarea.ko kernel/drivers/video/fbdev/core/cfbfillrect.ko kernel/drivers/video/fbdev/core/cfbimgblt.ko kernel/drivers/i2c/algos/i2c-algo-bit.ko kernel/drivers/video/backlight/backlight.ko