Monday, 2020-11-16

*** tpb has joined #litex00:00
*** lf has quit IRC00:35
*** lf_ has joined #litex00:35
*** midnight has quit IRC01:22
*** Dolu has quit IRC01:26
*** lf has joined #litex02:07
*** lf_ has quit IRC02:08
*** Degi has quit IRC02:11
*** AndroUser has joined #litex02:12
*** Degi has joined #litex02:13
*** midnight has joined #litex03:25
*** cjearls has joined #litex06:33
*** chantheman1288 has quit IRC06:33
*** indy has quit IRC08:31
*** indy has joined #litex08:32
*** miek has quit IRC09:16
keesjback on doing some litex stuff (sdcard). you guys never stop working and improving stuff and I feel like I need to start learning from scratch again!09:26
*** miek has joined #litex09:29
*** Dolu has joined #litex09:29
_florent_keesj: Hi, :) things should be easier now but if you have troubles please ask.09:42
_florent_for an example of SDCard integration, you can look at the litex-boards09:42
_florent_ex for the Genesys2: the IOs definition: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/genesys2.py#L69-L8409:43
_florent_(depending your use case, you can use SPI-mode SDCard or native-mode SDCard)09:43
_florent_adding the sdcard can be done with add_spi_sdcard or add_sdcard methods: https://github.com/enjoy-digital/litex/blob/master/litex/soc/integration/soc.py#L1392-L144109:45
_florent_this will probides you new sdcard commands in the BIOS and will also allow you to boot binaries from it09:46
_florent_https://github.com/enjoy-digital/litex/wiki/Load-Application-Code-To-CPU#sdcardsata-boot09:47
keesjI will be trying to solder some wires on an existing emmc (over the solder wires) and read out the eMMC that way. I was hoping to resuse this code https://github.com/keesj/litesdcard/blob/master/examples/arty.py10:00
keesjmore this actually https://github.com/keesj/litesdcard/blob/master/test/test_sdcard.py10:00
keesje.g. possibly have the FPGA fabric have no core and interact with the arty board over uart wishbone to send command (at slow rate)10:01
keesjthe eMMC is quite recent and I think it does not support SPI mode any more . but furst.. I need to go back to square one and .. blink some leds10:19
_florent_keesj: i refactored LiteSDCard to simplify it and to ease integration in LiteX, so your old test scripts won't probably work with upstream LiteSDCard, but you should still be able to integrate the old LiteSDCard with upstream LiteX11:00
keesjI don't mind doing a little work. see if the same can be done with a more recent sdcard implementation11:14
keesjfor now I need to grow the rom partition of the arty board as building with --with-sdcard won't fit in the rom any more .11:14
keesjFound out about --integrated-rom size11:23
*** CarlFK has quit IRC14:12
*** CarlFK has joined #litex14:15
AndroUserSo if I wanted to swap in the newer dev version of litesdcard to have access to the filesystem, I would need to go into my liteX install directory, replace the litesdcard directory with the newer git branch, rebuild the Linux kernel to support the new hardware, then run make.py --build, right? Am I missing anything in there?14:23
AndroUserAlso, if I want to make changes or add plugins to VexRiscv for use with Linux on LiteX on VexRiscv, where do I go to make those changes?14:24
*** CarlFK has quit IRC14:30
*** Claude has quit IRC14:31
*** Claude has joined #litex14:45
_florent_AndroUser: You only need to rebuild  the Linux kernel to have access to the filesystem with LiteSDCard, no need to rebuild the gateware.15:05
_florent_AndroUser: with VexRiscv SMP, the CPU is automatically re-generated when not already present, we are planning to switch LiteX on VexRiscv to the SMP version, so this should simplify things15:07
_florent_AndroUser: with the current version, you need to re-generate VexRiscv with the scripts in: https://github.com/litex-hub/pythondata-cpu-vexriscv15:08
AndroUserOh, great, thanks15:29
cjearls_florent_: I'm working on rebuilding the kernel now. Once it's done, do I just copy over the buildroot folder and the emulator/emulator.bin to the SD card just like before?16:01
cjearlsI was on my phone earlier, and it defaulted my name to AndroUser, sorry for the confusion16:02
cjearlsI'm new to IRC16:02
_florent_cjearls: no problem, yes you just have to recopy the new binaries to the SD card16:02
cjearlsGreat, thanks16:04
*** AndroUser has quit IRC16:06
cjearls_florent_: I've finished compilation of the kernel you linked earlier. How do I get the necessary binaries from it? I see that there are instructions for gloneing and making the buildroot, but I am not sure how to cause this to build with the kernel that I compiled16:39
cjearlsAre there default buildroot settings that I should be using to make it work with LiteX and VexRiscV, or are the configuration options all things I need to set myself? I have some experience with kernel development and building, but I am concerned I might miss an important option16:45
daveshahcjearls: https://github.com/litex-hub/linux-on-litex-vexriscv/tree/master/buildroot16:46
daveshahThe defconfig is https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/buildroot/configs/litex_vexriscv_defconfig16:47
cjearlsI see. So I can copy that  config to the buildroot git repo that I cloned, then build with that config and everything should work properly?16:47
daveshahNot sure, I haven't used the LiteX buildroot stuff for a little while and it looks like it has changed a bit over time16:50
cjearlsOk. Any idea how I can set the buildroot build to use the linux kernel that I just compiled in a different directory? Do I need to pass an argument to link to that directory, or copy files from that directory into buildroot, or something like that?16:51
_florent_cjearls: sorry i also not have tested it yet, but you can probably just compile the buildroot image the regular way and when copying files on the sdcard, just use the kernel image you compiled externally17:17
*** scientes has quit IRC19:12
*** scientes has joined #litex19:18
*** scientes has quit IRC19:19
*** scientes has joined #litex19:19
*** scientes has quit IRC19:21
*** scientes has joined #litex19:21
*** scientes has quit IRC19:24
*** scientes has joined #litex19:24
*** CarlFK has joined #litex19:33
*** cjearls_mobile has joined #litex21:04
*** sorear has quit IRC21:13
*** sorear has joined #litex21:13
*** cjearls_mobile has quit IRC21:24
*** indy has quit IRC22:07
*** indy has joined #litex22:10
*** cjearls_mobile has joined #litex22:58
*** cjearls_mobile has quit IRC23:05
*** Dolu has quit IRC23:06

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