Thursday, 2020-09-10

*** tpb has joined #litex00:00
*** _whitelogger has quit IRC02:03
*** _whitelogger has joined #litex02:05
*** proteusguy has quit IRC02:31
*** proteusguy has joined #litex02:43
*** mescobar has joined #litex02:44
mescobarsomlo yeah I would like the compiled app to be loaded over serial02:45
mescobarI'm assuming that including object file within the file system is the only way to go02:46
mescobarI don't think gcc is included with the linux kernel, right?02:46
*** jaseg has quit IRC02:47
*** jaseg has joined #litex02:49
*** Degi has quit IRC03:25
*** Degi has joined #litex03:28
*** CarlFK has joined #litex04:18
*** mescobar has quit IRC05:23
keesjwow.. it won't take long before the rootfs will be mounted over NFS05:44
*** _whitelogger has quit IRC06:21
*** _whitelogger has joined #litex06:23
daveshahI did actually have an NFS rootfs working with litex linux07:12
daveshahWas very useful for userspace debugging, although liteeth is pretty slow07:12
daveshahIn any case the place to put new userspace programs is in buildroot, which is where rootfs.cpio comes from07:13
*** CarlFK has quit IRC07:26
keesjI done such setup many times but every time it is a bit of work (again) also (when having a u-boot bootloader) Downloading linux/rootfs over tftp can also be nice08:05
*** CarlFK has joined #litex09:01
*** _whitelogger has quit IRC09:33
*** _whitelogger has joined #litex09:35
*** _whitelogger has quit IRC09:48
*** _whitelogger has joined #litex09:50
somlomescobar: ok, so there are a number of steps on the path between CSRs and linux userspace (i.e. stuff running from a linux rootfs)10:53
somlofirst, you probably want to build a full litex SoC including the bios (bare-metal software included in the bitstream that runs as soon as the soft CPU "wakes up")10:54
somloa description of the CSRs MMIO addresses is typically generated under "build/<boardname>/software/include/generated/csr.h"10:54
somloand used to compile the bios binary, which is then added as "rom" to the gateware/bitstream10:55
somlomescobar: this stuff runs when you program the bitstream to your board, and it's smart enough to load a bunch of other things via either tftp or from an sdcard10:56
somlothat's where you want things like a DTB blob, linux kernel, initrd, etc.10:56
somloyou use the DT blob to tell e.g. linux what CSRs live at what addresses (more or less mirroring the generated csr.h)10:57
somloand it's linux (or whatever kernel) that's expected to have drivers for the hardware, and tickle the CSRs, not so much userspace code10:58
somlocheck out https://github.com/litex-hub/linux/tree/litex-rocket-rebase for a few examples of linux device drivers interacting with LiteX CSRs10:59
tpbTitle: GitHub - litex-hub/linux at litex-rocket-rebase (at github.com)10:59
*** awe00 has joined #litex11:54
*** awe00 has quit IRC11:58
*** _whitelogger has quit IRC12:09
*** _whitelogger has joined #litex12:11
*** awe00 has joined #litex12:28
*** awe00 has quit IRC15:30
*** awe00 has joined #litex15:34
*** nrossi has left #litex16:00
*** nrossi has quit IRC16:00
*** awe001 has joined #litex16:18
*** awe00 has quit IRC16:22
*** awe002 has joined #litex18:01
*** awe001 has quit IRC18:04
*** SpaceCoaster has quit IRC19:12
*** SpaceCoaster has joined #litex19:12
*** jaseg has quit IRC20:04
*** jaseg has joined #litex20:05
*** peeps is now known as peepsalot22:26
*** jaseg has quit IRC23:37
*** awe002 has quit IRC23:37
*** lf_ has quit IRC23:38
*** lf has joined #litex23:38
*** awe002 has joined #litex23:38
*** jaseg has joined #litex23:48

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!