½¨ÒéPCÖ÷»ú»·¾³²ÉÓÃubuntu18.04°æ±¾£¬°²×°ÏÂÃæµÄÈí¼þ£º | |
sudo apt-get build-dep qemu | |
sudo apt-get remove oss4-dev | |
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential | |
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils | |
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 | |
xterm python3-subunit mesa-common-dev | |
sudo apt-get install make python3-pip | |
sudo pip3 install sphinx sphinx_rtd_theme pyyaml | |
ÔÚ°²×°Èí¼þ°üµÄʱºò£¬ÓеÄÈí¼þÈçqemu¡¢pyyaml»á±¨´í£¬¼ÌÐø°²×°£¬ÔÚyocto°æ±¾½øÐÐÑéÖ¤¡£ | |
±àÒë²½ÖèÈçÏ£º | |
1¡¢±àÒë°æ±¾ÐÅÏ¢ÅäÖã¬Ö§³Ö·¢²¼ÐÅÏ¢DISTRO, °å×ÓÐÅÏ¢MACHINE¡¢°æ±¾Æô¶¯·½Ê½BOOT_MODE(normal/recovery) | |
ÊÇ·ñ²ÉÓÃSDK°æ±¾µÈÐÅÏ¢µÄÅäÖÃ.ĬÈÏÅäÖÃ: DISTRO=cpe MACHINE=zx298501 BOOT_MODE=normal SDK=no | |
Ö÷ÒªÖ§³ÖÈýÖÖ²úÆ·ÐÎ̬cpe¡¢v2x¡¢mdl£¬Ö÷ÒªÅäÖòîÒìÔÚmeta-zxic-custom\conf\distro·¾¶ÏÂ,½¨Òé¿Í»§ | |
¿ª·¢ÔÚ meta-zxic-custom layer»òÕß´´½¨×Ô¼ºµÄlayer½øÐпª·¢¡£ | |
cpe¿ª·¢Ö´ÐÐÏÂÃæµÄÃüÁ | |
±àÒëÔ´Â룺ÒÔcpeΪÀý¡£ | |
DISTRO=cpe MACHINE=zx298501 SDK=no source zxic-setup-release.sh -b build-cpe | |
»òÕßDISTRO=cpe MACHINE=zx298501 source zxic-setup-release.sh -b build-cpe | |
·â¿â£ºÒÔv2xΪÀý¡£ | |
DISTRO=v2x MACHINE=zx298501 SDK=yes source zxic-setup-release.sh -b build-v2x | |
132µÄ°å×Ó°´ÕÕÏÂÃæµÄ·½Ê½±àÒ룬ÒÔv2xΪÀý¡£ | |
DISTRO=v2x MACHINE=zx279132 source zxic-setup-release.sh -b build-v2x | |
DISTRO=v2x MACHINE=zx279132 BOOT_CTL=recovery source zxic-setup-release.sh -b build-v2x | |
2¡¢ bitbake zxic-image ±àÒëÕû¸ö°æ±¾£¬ | |
3¡¢ ¿ÉÒÔÖ±½Ó±àÒëÄ¿±êbitbake target È磺bitbake nvserver£¬±àÒëΪ64λӦÓ㬱àÒë32Î»Ç°Ãæ¼Ólib32- | |
bitbake lib32-nvserver //±àÒënvserver | |
bitbake -ccleansstate lib32-nvserver //Çåµônvserver | |
bitbake -s | grep lib32-nvserver //²éÕÒlib32-nvserver×é¼þ | |
ÆäËüÃüÁî¿ÉÒÔͨ¹ýbitbake --help ²éѯ | |
yoctoûÓÐÈ«²¿Çå³ýµÄÃüÁ¿ÉÒÔʹÓÃrm -fr ɾµôbuildĿ¼ÏµijýÁËconfÎļþ¼ÐµÄËùÓÐÎļþ¼Ð¡£ | |
ÈôÐÞ¸ÄÁËtmp/sstate-cacheÎļþ¼ÐµÄ·¾¶£¬É¾µô¶ÔӦ·¾¶µÄÎļþ¼Ð¡£ | |