LinuxT2080DevKit: Difference between revisions

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
Line 100: Line 100:
''Change kernel configuration''
''Change kernel configuration''
   
   
<pre>First time:<br>
<pre>First time:
bitbake -c cleansstate virtual/kernel
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel
bitbake -c patch virtual/kernel
<br>
 
Update configuration:
Update configuration:
bitbake -c menuconfig virtual/kernel
bitbake -c menuconfig virtual/kernel
<br>
 
bitbake -c compile -f virtual/kernel
bitbake -c compile -f virtual/kernel
bitbake virtual/kernel
bitbake virtual/kernel

Revision as of 21:27, 9 July 2018

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