*** tpb has joined #litex | 00:00 | |
*** lf has quit IRC | 00:35 | |
*** lf_ has joined #litex | 00:35 | |
*** midnight has quit IRC | 01:22 | |
*** Dolu has quit IRC | 01:26 | |
*** lf has joined #litex | 02:07 | |
*** lf_ has quit IRC | 02:08 | |
*** Degi has quit IRC | 02:11 | |
*** AndroUser has joined #litex | 02:12 | |
*** Degi has joined #litex | 02:13 | |
*** midnight has joined #litex | 03:25 | |
*** cjearls has joined #litex | 06:33 | |
*** chantheman1288 has quit IRC | 06:33 | |
*** indy has quit IRC | 08:31 | |
*** indy has joined #litex | 08:32 | |
*** miek has quit IRC | 09:16 | |
keesj | back 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 #litex | 09:29 | |
*** Dolu has joined #litex | 09: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-boards | 09:42 |
_florent_ | ex for the Genesys2: the IOs definition: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/genesys2.py#L69-L84 | 09: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-L1441 | 09:45 |
_florent_ | this will probides you new sdcard commands in the BIOS and will also allow you to boot binaries from it | 09:46 |
_florent_ | https://github.com/enjoy-digital/litex/wiki/Load-Application-Code-To-CPU#sdcardsata-boot | 09:47 |
keesj | I 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.py | 10:00 |
keesj | more this actually https://github.com/keesj/litesdcard/blob/master/test/test_sdcard.py | 10:00 |
keesj | e.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 |
keesj | the 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 leds | 10: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 LiteX | 11:00 |
keesj | I don't mind doing a little work. see if the same can be done with a more recent sdcard implementation | 11:14 |
keesj | for 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 |
keesj | Found out about --integrated-rom size | 11:23 |
*** CarlFK has quit IRC | 14:12 | |
*** CarlFK has joined #litex | 14:15 | |
AndroUser | So 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 |
AndroUser | Also, 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 IRC | 14:30 | |
*** Claude has quit IRC | 14:31 | |
*** Claude has joined #litex | 14: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 things | 15:07 |
_florent_ | AndroUser: with the current version, you need to re-generate VexRiscv with the scripts in: https://github.com/litex-hub/pythondata-cpu-vexriscv | 15:08 |
AndroUser | Oh, great, thanks | 15: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 |
cjearls | I was on my phone earlier, and it defaulted my name to AndroUser, sorry for the confusion | 16:02 |
cjearls | I'm new to IRC | 16:02 |
_florent_ | cjearls: no problem, yes you just have to recopy the new binaries to the SD card | 16:02 |
cjearls | Great, thanks | 16:04 |
*** AndroUser has quit IRC | 16: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 compiled | 16:39 |
cjearls | Are 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 option | 16:45 |
daveshah | cjearls: https://github.com/litex-hub/linux-on-litex-vexriscv/tree/master/buildroot | 16:46 |
daveshah | The defconfig is https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/buildroot/configs/litex_vexriscv_defconfig | 16:47 |
cjearls | I 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 |
daveshah | Not sure, I haven't used the LiteX buildroot stuff for a little while and it looks like it has changed a bit over time | 16:50 |
cjearls | Ok. 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 externally | 17:17 |
*** scientes has quit IRC | 19:12 | |
*** scientes has joined #litex | 19:18 | |
*** scientes has quit IRC | 19:19 | |
*** scientes has joined #litex | 19:19 | |
*** scientes has quit IRC | 19:21 | |
*** scientes has joined #litex | 19:21 | |
*** scientes has quit IRC | 19:24 | |
*** scientes has joined #litex | 19:24 | |
*** CarlFK has joined #litex | 19:33 | |
*** cjearls_mobile has joined #litex | 21:04 | |
*** sorear has quit IRC | 21:13 | |
*** sorear has joined #litex | 21:13 | |
*** cjearls_mobile has quit IRC | 21:24 | |
*** indy has quit IRC | 22:07 | |
*** indy has joined #litex | 22:10 | |
*** cjearls_mobile has joined #litex | 22:58 | |
*** cjearls_mobile has quit IRC | 23:05 | |
*** Dolu has quit IRC | 23:06 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!