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

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

install Yocto 

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

sudo mount -o loop QorIQ-SDK-V1.3-PPC64E5500-20121023-yocto.iso /mnt/cdrom 
sudo mount -o loop QorIQ-SDK-V1.3-SOURCE-20121023-yocto.iso /mnt/cdrom 

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

2).=============== source ./fsl-setup-poky –m <board> -j bitbake_jobs –t make_threads -l
for examole:
source ./fsl-setup-poky –m p4080ds –j 12 –t 12 [12?]
source ./fsl-setup-poky -m p5020ds -j 2 -t 2
source ./fsl-setup-poky -m mpc8572ds -j 2 -t 2
source ./fsl-setup-poky –m p1020rdb
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 -c compile -f virtual/kernel  to find it in the source code.
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.

maybe need:*******:change:meta/recipes-devtools/qemu   vi qemu.inc  add curl (in depends)]
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$
sudo tar xjf /home/hanhan/toolchain/fsl-eglibc-x86_64-ppce500v2-toolchain-1.2.tar.bz2 
/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

vim ../meta-fsl-ppc/conf/machine/mpc8572ds.conf 

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=================
 ~/sdk1.3_rc1_E5500_ISO/QorIQ-SDK-V1.3-20121023-yocto/build_p5040ds_release/tmp/work/p5040ds-fsl-linux/linux-qoriq-sdk-3.0.34-r4/git$ vi arch/powerpc/boot/dts/
login the follow website in local linux:
git clone git://git.am.freescale.net/gitolite/users/b28495/flash-image-tool.git
阅读更多
文章标签: yocto
个人分类: yocto
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭