基于yocto编译powerpc架构的的demo板镜像

匿名 (未验证) 提交于 2019-12-03 00:27:02

以下仅是我的个人随笔和工作记录:


Installing the BSP
1. ==============Mount the ISO image :




2. ==============As a non-root user, install the Yocto:
/mnt/cdrom/install
There is no uninstall script. To uninstall Yocto you need to remove the <yotco_install_path>/QorIQ-SDK-V1.2-<version>-
Setup Host Environment
1). cd <yocto_installation_path>/poky


for examole:

source ./fsl-setup-poky -m p5020ds -j 2 -t 2
source ./fsl-setup-poky -m mpc8572ds -j 2 -t 2

3.===============kernel configuration================:
bitbake -c menuconfig virtual/kernel

rebuild kernel: when need a new one (e.g.:last time error if no error don't exe bitbake -c cleansstate virtual/kernel )
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel
bitbake -c menuconfig virtual/kernel

bitbake virtual/kernel
dir:~/sdk1.3_E500v2_ISO1/QorIQ-SDK-V1.3-20120910-yocto/build_mpc8572ds_release/tmp/work/mpc8572ds-fsl-linux-gnuspe/linux-qoriq-sdk-3.0.34-r4/image/kernel$
4================= build fs=============:
/home/hanhan/work/QorIQ-SDK-V1.2-20120614-yocto/meta-fsl-ppc-private/images/fsl-image-full.bb(need to be changed) add or delete packet in it.


bitbake fsl-image-core
when compile dts in yocto:
dtc dir:~/work/QorIQ-SDK-V1.2-20120614-yocto/build_p4080ds_release/tmp/sysroots/x86_64-linux/usr/bin
or complie dts in the board.
5.==================rebuild u-boot:(when being error exe bitbake -c cleansstate u-boot bitbake -c patch u-boot these two step must be exited at the same time)
bitbake -c cleansstate u-boot
bitbake -c patch u-boot
bitbake u-boot
dir:hanhan@hanhan-desktop:~/sdk1.3_E500v2_ISO/QorIQ-SDK-V1.3-20120905-yocto/build_mpc8572ds_release/tmp/work/mpc8572ds-fsl-linux-gnuspe/linux-qoriq-sdk-3.0.34-r4/git/arch/powerpc/boot

(zcat /proc/config.gz | grep -i hugetlb)

6.===================build toolchain=============
bitbake fsl-toolchain
tmp/deploy/sdk/fsl-eglibc-i686-ppce500v2-toolchain-1.1.tar.bz2
other:
export ARCH=powerpc
export CROSS_COMPILE=/opt/fsl/1.1/sysroots/i686-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-bash-4.2$

/opt/fsl/1.2/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe
export ARCH=powerpc
export CROSS_COMPILE=/opt/fsl/1.1/sysroots/i686-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-bash-4.2$
. .bashrc or source bashrc to enable the setting
7.====================build busybox==================
bitbake -c menuconfig busybox
bitbake busybox



8.====================build lxc and hv-test===================:
hv-test:
hanhan@hanhan-desktop:~/sdk1.3_E500v2_ISO1/QorIQ-SDK-V1.3-20120910-yocto/build_mpc8572ds_release/tmp/work/ppce500v2-fsl-linux-gnuspe/hv-test-git-r1/image

===== for e500v2 =====
export PATH=$PATH:/opt/fsl/1.2/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe

export CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

export ARCH=powerpc

8.========================build hv-test====================
bitbake hv-test

=======================dts directory=================

login the follow website in local linux:
git clone git://git.am.freescale.net/gitolite/users/b28495/flash-image-tool.git
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!