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