LinuxT2080DevKit: Difference between revisions
Backstrikes (talk | contribs) Created page with " From NXP * Software & Support * QorIQ Linux SDK * QorIQ Linux SDK v2.0 : Files = Product Download = download: QorIQ Linux SDK v2.0 PPC64E6500 Yocto Cach..." |
Backstrikes (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
* [ | * [https://www.nxp.com/support/developer-resources/run-time-software/linux-software-and-development-tools/linux-sdk-for-qoriq-processors:SDKLINUX?tab=Documentation_Tab Software & Support] | ||
* [ | * [https://www.nxp.com/docs/en/supporting-information/QORIQSDK_INFOCTR.html QorIQ Linux SDK] | ||
* QorIQ Linux SDK v2.0 : Files | * QorIQ Linux SDK v2.0 : Files | ||
| Line 10: | Line 10: | ||
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://freescale.sdlproducts.com/LiveContent/web/pub.xql?c=t&action=home&pub=QorIQ_SDK&lang=en-US QorIQ SDK v2.0-1703 Documentation] | |||
| Line 128: | Line 117: | ||
=== 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] | |||
Revision as of 15:23, 17 January 2018
From NXP
- Software & Support
- QorIQ Linux SDK
- QorIQ Linux SDK v2.0 : Files
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.
- 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:<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
Set T2080RDB to boot from SD card
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
<code>cd boot</code> 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 .
uncompress modules on sdcard root
cd <root sdcard><br> 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 <br> 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<br> bitbake -c compile -f u-boot <br> bitbake u-boot
Copy uboot for to sdcard
warning: change /dev/sdc with your sdcard dev
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