*** tpb has joined #litex | 00:00 | |
*** futarisIRCcloud has joined #litex | 00:31 | |
keesj | lo | 12:42 |
---|---|---|
*** futarisIRCcloud has quit IRC | 13:10 | |
keesj | how do I create a boot.bin ? | 13:15 |
keesj | I have setup a tftp server and perviously looked at the boot.bin image format (something about load address, crc and data) | 13:16 |
_florent_ | Hi keesj, boot.bin has nothing particular, you just need to use a linker similar to https://github.com/enjoy-digital/versa_ecp5/blob/master/firmware/linker.ld | 16:00 |
tpb | Title: versa_ecp5/linker.ld at master · enjoy-digital/versa_ecp5 · GitHub (at github.com) | 16:00 |
_florent_ | When storing binaries in flash, we use mkmscimg.py tools which adds the length and crc | 16:00 |
_florent_ | but you don't need that over tfrp | 16:01 |
keesj | I was missing the mkmscimg.py part I guess. it there not an exsiting example? | 17:49 |
_florent_ | keesj: do you want to boot from flash or tftp? | 19:17 |
_florent_ | keesj: if from tftp, you don't need to do anything special | 19:17 |
_florent_ | just put the binary on the tftp renamed to boot.bin | 19:18 |
_florent_ | if you and to execute code from flash, you can use mkmscimg.py -f firmware.bin -o firmware.fbi | 19:19 |
_florent_ | define FLASH_BOOT_ADDRESS (self.add_constant("FLASH_BOOT_ADDRESS", firmware_location) in your SoC | 19:20 |
_florent_ | and the put firmware.fbi at firmware_location in flash | 19:20 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!