1. do_compile is not the last task for rootfs - should be do_image. Run these (the 2nd line is without command defined - the recipe will run through all of the tasks): bitbake core-image-minimal -c configure -f bitbake core-image-minimal
2a. The compiled mtd-utils programs go to: poky/build/tmp/work/<some-long-name>/mtd-utils/<mtd-utils-version>/image/usr/sbin/ 2b. If the result rootfs is *.tar.gz - check the build date then just open the archive and see if flashcp is in /usr/sbin/ On 22 July 2016 at 05:58, Cai, Chuntian (GE Transportation) < [email protected]> wrote: > How about tmp/sysroots dir ? it is used to generate rootfs? > > > > If mtd-util properly installed ,I should found flashcp here? > > > > Thanks. > > > > > > > > *From:* Oleg K Dzhimiev [mailto:[email protected]] > *Sent:* Friday, July 22, 2016 2:16 PM > *To:* Cai, Chuntian (GE Transportation) > *Cc:* Nathan Rossi; [email protected] > *Subject:* EXT: Re: [meta-xilinx] How to install mtd-utils on rootfs > > > > 1. To poky/meta/recipes-core/images/core-image-minimal.bb > <https://urldefense.proofpoint.com/v2/url?u=http-3A__core-2Dimage-2Dminimal.bb&d=CwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=lMGlFDCNiCakR9W8kBbZHK2NLyOPyjP-Y3DFkHI9-JE&s=wuhk-KkTThAj7xDj8W8iExGuKFBpAB57nWw2xMZYwno&e=> > add: > > > > IMAGE_INSTALL_append += " \ > > mtd-utils \ > > mtd-utils-misc \ > > " > > > > 2. Or create a core-image-minimal.bbappend file in the meta-xilinx layer > and put the text above there. > > > > 3. Or create your own recipe - example: core-image-elphel393.bb > <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Elphel_meta-2Delphel393_blob_master_recipes-2Dcore_images_core-2Dimage-2Delphel393.bb&d=CwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=lMGlFDCNiCakR9W8kBbZHK2NLyOPyjP-Y3DFkHI9-JE&s=ZV_lig-vczuQfDSKrlC9XjJSNVnzh-io3KDaRsWUu2Y&e=> > > > > > > On 21 July 2016 at 04:06, Cai, Chuntian (GE Transportation) < > [email protected]> wrote: > > Hi Rossi, > > I want use mtd-utils to test MTD dirver, could you tell me how to install > it when I build rootfs. > > My board is ZC706 and I use bitbake core-image-minimal make uboot,uimage > and dtb > > Thanks. > > > -----Original Message----- > From: Nathan Rossi [mailto:[email protected]] > Sent: Thursday, July 21, 2016 5:14 PM > To: Cai, Chuntian (GE Transportation) <[email protected]> > Cc: [email protected] > Subject: EXT: Re: uRamdisk.image.gz > > Hi, > > "uramdisk.image.gz" is just another name for "*.cpio.gz.u-boot" (or any > initramfs/initrd format e.g. ext. Which is gzipped and wrapped with the > u-boot image header). > > All meta-xilinx machines are setup by default to generate the > *.cpio.gz.u-boot for the images you build. You can get other formats like > ext.gz.u-boot, etc by adding them to IMAGE_FSTYPES ( > http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/tree/docs/Rootfs). > > If you want it named as "uramdisk.image.gz" renaming it to that when > writing it to the sd card/etc is sufficient. > > Regards, > Nathan > > On Thu, Jul 21, 2016 at 6:47 PM, Cai, Chuntian (GE Transportation) < > [email protected]> wrote: > > Hi Rossi, > > > > Could you tell me how to make uRamdisk.image.gz with YOCTO toolchain. > > > > Thanks. > > > > > > -----Original Message----- > > From: Nathan Rossi [mailto:[email protected]] > > Sent: Tuesday, July 12, 2016 5:22 PM > > To: Cai, Chuntian (GE Transportation) <[email protected]> > > Cc: [email protected] > > Subject: EXT: Re: [meta-xilinx] I could not download linux-xlnx.git from > YOCTO. > > > > On Tue, Jul 12, 2016 at 11:59 AM, Cai, Chuntian (GE Transportation) < > [email protected]> wrote: > >> Hi Rossi, > >> > >> I am strange, I can download all the package except for > linux-xlnx-4.4-xilinx.git package with current proxy setting. > >> > > > > Since you are using poky, I suspect you might be getting a large > percentage of your sources from the poky source mirror. This is fine, but > it means that you only need to do http downloads even for some of the > recipes that have git sources. > > > >> I can open the website > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Xilinx_linux-2Dxlnx&d=CwIFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=nq8czs_U5UXDvXM4ciXRICgPDdXYu7ElFGMISg-LHBI&s=g9Dyxs-86wE5plyauMqhKrxK8lVmDN8OaMc279mWldE&e= > from IE & firefox. > >> > >> I setted proxy setting in the ~./bashrc. > > > > I have seen issues with proxies before for kernel repos, this is due to > the large pack files that git attempts to retrieve. And the delayed time it > takes to compress the pack files on the remote which some proxies timeout > on. Sometimes using a different protocol works better that others. Try to > clone the repo outside of yocto. Also try the different protocols if one > fails. e.g. > > > > git clone > > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Xilinx > > _linux-2Dxlnx.git&d=CwIFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYW > > SI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=nq8czs_U5UXDvXM4ciX > > RICgPDdXYu7ElFGMISg-LHBI&s=x-ZWgWgfN-aaj3mudJuBFjg1KicY-DqWbbIpbJVqwhw > > &e= > > or (ssh) > > git clone [email protected]:Xilinx/linux-xlnx.git > > or (git) > > git clone git://github.com/Xilinx/linux-xlnx.git > <https://urldefense.proofpoint.com/v2/url?u=http-3A__github.com_Xilinx_linux-2Dxlnx.git&d=CwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=lMGlFDCNiCakR9W8kBbZHK2NLyOPyjP-Y3DFkHI9-JE&s=dmegXjPNi-wyYQBylhD7nRwBJvJhCgBzy3fTwImAeCE&e=> > > > > If you find that one of these protocols work, change the protocol > > value in the linux-xlnx.inc recipe to use it > > (http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/tree/recipes-ke > > rnel/linux/linux-xlnx.inc#n12), setting the "protocol" value to either > > https, ssh or git. > > > > If you have no success with that, your easiest solution is to pull down > the repo with proper access to the public internet, and bring it into your > network (if permitted). Although I have limited understanding of your > companies IT policies, so it would be in your best interest to contact your > companies IT department for assistance, as this is an issue with the > service they are maintaining for you. > > > > If you do get the repo cloned outside of yocto, you can bring the repo > in manually. The following should work assuming you replace the paths with > those appropriate to your setup. > > > > git clone --mirror <path to local linux-xlnx clone> <path to yocto > > build>/downloads/git2/github.com.Xilinx.linux-xlnx.git > > > >> > >> > >> Can I change fetch method from git download method to file download > method? And how to modify? Because I can download > linux-xlnx-4.4-xilinx.git with IE. > > > > Due to the way the recipe functions it relies on the git repository. > > So it would require some work to make it operate with just the working > tree source that you can get when downloading the zip from github. > > > > Regards, > > Nathan > > > >> > >> > >> Thanks. > >> > >> > >> -----Original Message----- > >> From: Nathan Rossi [mailto:[email protected]] > >> Sent: Monday, July 11, 2016 8:24 PM > >> To: Cai, Chuntian (GE Transportation) <[email protected]> > >> Cc: [email protected] > >> Subject: EXT: Re: [meta-xilinx] I could not download linux-xlnx.git > from YOCTO. > >> > >> Hi, > >> > >> Looks like you might be stuck inside an internal corporate network > which doesn't not allow direct access to the public internet. Which is why > you are getting a "Connection reset by peer" error from git. You will need > to figure out what setup you have for your company and then configure > access to the internet via a proxy or pre-download the sources and transfer > them to your internal machine. > >> > >> Here is a some info for configuring Yocto to handle some of the common > proxies https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy. > >> If you have already setup the proxy for http, make sure you have also > setup https, ftp, ssh and git proxy configurations. The linux-xlnx recipe > specifically relies on https access to github.com > <https://urldefense.proofpoint.com/v2/url?u=http-3A__github.com&d=CwMFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=Ei3floKgst6PhYpovUjTVlWwDEc4CVl_t-gxqM04eQY&m=lMGlFDCNiCakR9W8kBbZHK2NLyOPyjP-Y3DFkHI9-JE&s=Qf48xSX7Gqrk78sCL6xGmc-ZvCbQ0VHgPV4cbFijt1Y&e=> > . > >> > >> Regards, > >> Nathan > >> > >> On Mon, Jul 11, 2016 at 5:27 PM, Cai, Chuntian (GE Transportation) < > [email protected]> wrote: > >>> I setup YOCTO compilation system I could downloand almost package > >>> but failed wirh downloading linux-xlnx-4.4-xilinx.git. > >>> > >>> > >>> 0: linux-xlnx-4.4-xilinx+gitAUTOINC+89cc643aff-r0 do_fetch (pid > >>> 28925) > >>> > >>> when I run bitbake core-image-x11 second tims, It always wait on > >>> this action. > >>> > >>> below picture is error output when I first run bitbake > >>> core-image-x11 last friday. > >>> > >>> > >>> > >>> > >>> > >>> Xilinx Support > >>> | Xilinx Service Portal | Xilinx User Community Forums > >>> > >>> > >>> > >>> > >>> > >>> This email and any attachments are intended for the sole use of the > >>> named > >>> recipient(s) and contain(s) confidential information that may be > >>> proprietary, privileged or copyrighted under applicable law. If you > >>> are not the intended recipient, do not read, copy, or forward this > >>> email message or any attachments. Delete this email message and any > attachments immediately. > >>> > >>> > >>> > >>> This email and any attachments are intended for the sole use of the > >>> named > >>> recipient(s) and contain(s) confidential information that may be > >>> proprietary, privileged or copyrighted under applicable law. If you > >>> are not the intended recipient, do not read, copy, or forward this > >>> email message or any attachments. Delete this email message and any > attachments immediately. > >>> > >>> > >>> -- > >>> _______________________________________________ > >>> meta-xilinx mailing list > >>> [email protected] > >>> https://lists.yoctoproject.org/listinfo/meta-xilinx > >>> > -- > _______________________________________________ > meta-xilinx mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-xilinx > > > > > > -- > > Best regards, > Oleg Dzhimiev > Electronics Engineer > phone: +1 801 783 5555 x124 > Elphel, Inc. > -- Best regards, Oleg Dzhimiev Electronics Engineer phone: +1 801 783 5555 x124 Elphel, Inc.
-- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
