[meta-xilinx] Add fsbl.elf in boot.bin
nathan at nathanrossi.com
Wed Oct 11 03:24:39 PDT 2017
On 11 October 2017 at 19:10, <yohan.boyer at ioterop.com> wrote:
> On 11 October 2017 at 00:52, <yohan.boyer at ioterop.com> wrote:
>>> Hello ,
>>>I'm working on zybo board, with meta-xilinx (morty) + my own layer to
>>>use my own design.
>>> I wonder to have unique MAC address on each board. There is a register
>>> with unique MAC address on each zybo. My wish is to read this address
>>> before boot in u-boot, and so have this address set in u-boot, then in kernel.
>>I assume you are referring to the I2C EEPROM attached via the PL? You will need to at least connect this to the EMIO I2C of the PS to access it.
> This part is done yes.
>>> I'm not sure to know how to do that, I think I need to read it in fsbl
>>> with fsbl_hook ?
>>U-Boot can already read and setup the MAC from an I2C device, no need to deal with FSBL.
> Very nice !
>>The config to point at the I2C device is already configured by default for the Zybo.
>>The code that does the ethaddr setup.
> Ok, where can I call this function ? I'm not sure to know exactly how is working u-boot :s
No need to call it, its already hooked up by default.
Make sure you have those config options (linked in my previous email)
setup correctly for your target, as well as having the bitstream
loaded and it should setup the mac address when u-boot probes the
>>> So I'll have a fsbl.elf, but is there an easy way to add this .elf to
>>> boot.bin set in meta-xilinx ?
>>No, not in meta-xilinx. The bootgen tool which is required for FSBL images is only available from the Xilinx tools, and only meta-xilinx-tools integrates with them.
>>> What I understood from meta-xilinx is : we include the u-boot.elf
>>> through SPL_BINARY into boot.bin ? How can I add also my fsbl.elf ?
>>In meta-xilinx the generated boot.bin only contains U-Boot SPL (full U-Boot is loaded from the boot device from the u-boot.img file).
>>> I’ve also seen this topic :
>>> But it seems it uses meta-xilinx-tools layer. Does I really need to
>>> use it, or there is an other way, I mean, other way than generated the
>>> full boot.bin from SDK (is this way correct ?) ?
>>If you need FSBL then you will need meta-xilinx-tools, or you will need to do it manually.
> Understood. So what FSBL is for ?
FSBL is supported by Xilinx, you can spam their support if you have issues :).
>>> Then, once I have this MAC address, how can I set it into uboot, then
>>> into kernel ?
>>See above regarding U-Boot loading it from I2C.
More information about the meta-xilinx