[yocto] About how port yocto to a customized MIPS cpu

张健 jackzhang1992 at t.shu.edu.cn
Sun Jan 31 08:33:03 PST 2016


About image files, i guess there are various types of it, like .img, .vdi,..etc (https://en.wikibooks.org/wiki/QEMU/Images),but I wish to find a type that is machine code of the target machine so that it could be booted directly.


About bootloader, do you you mean yocto project doesn't include bootloader tools like uboot? For now, I realize the YP is a tool chain for generating linux distributions. So it builds the source code,and  converts it to linux image files, doesn't it? So in the future, I should focus on how to use uboot to boot the linux images (generated by YP) to my my own "tiny" cpu, right?


Thank you and Best wishes.  
 
------------------ Original ------------------
From:  "Khem Raj"<raj.khem at gmail.com>;
Date:  Thu, Jan 28, 2016 03:10 AM
To:  "JackZhang"<jackzhang1992 at t.shu.edu.cn>; 
Cc:  "yocto"<yocto at yoctoproject.org>; 
Subject:  Re: [yocto] About how port yocto to a customized MIPS cpu

 

On Tue, Jan 26, 2016 at 7:09 PM, 张健 <jackzhang1992 at t.shu.edu.cn> wrote:
But I have no idea what's inside the .img files, and how to let my fpga board to understand the .img files. 


So this  is reason why I'm here to ask you guys for some help.


And wish to know if it is possible to port the "yocto" to my own project.





​image files are generated in several formats. There is option to generate tarballs. You can always take the tarball and untar it and look what inside
secondly, for your FPGA to understand this, you probably will need tools to download the binary to memory which is visitible to FPGA if I assume FPGA
is sitting along with a application processor which can then help you to flash it to relevant memory parts. 


if your application processor has a bootloader e.g. uboot which can use SD cards as boot media then you can use wic tool to generate SD card
images directly from yocto. wic is documented in dev manual so please look there on how to set it up. Or you can look at some other BSPs like
beaglebone ( angstrom ) or raspberrypi or freescale layer for scripts to generate the SD card images and model your using those.​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160201/7d92e5a8/attachment.html>


More information about the yocto mailing list