*** tpb has joined #litex | 00:00 | |
*** lf has quit IRC | 00:18 | |
*** lf has joined #litex | 00:18 | |
*** rj has quit IRC | 00:32 | |
*** rj has joined #litex | 00:34 | |
*** _whitelogger has quit IRC | 00:51 | |
*** _whitelogger has joined #litex | 00:53 | |
*** TMM has quit IRC | 01:21 | |
*** TMM has joined #litex | 01:22 | |
*** CarlFK has quit IRC | 01:29 | |
*** keesj has joined #litex | 02:58 | |
*** alanvgreen_ has joined #litex | 02:59 | |
*** feldim2425_ has joined #litex | 02:59 | |
*** keesj_ has quit IRC | 02:59 | |
*** feldim2425 has quit IRC | 02:59 | |
*** alanvgreen has quit IRC | 02:59 | |
*** alanvgreen_ is now known as alanvgreen | 02:59 | |
*** feldim2425_ is now known as feldim2425 | 02:59 | |
*** levi has quit IRC | 02:59 | |
*** dkozel has quit IRC | 02:59 | |
*** levi has joined #litex | 03:00 | |
*** dkozel has joined #litex | 03:01 | |
*** lkcl has quit IRC | 03:30 | |
*** Degi_ has joined #litex | 03:41 | |
*** Degi has quit IRC | 03:43 | |
*** Degi_ is now known as Degi | 03:43 | |
*** lkcl has joined #litex | 03:44 | |
*** lkcl has quit IRC | 05:39 | |
*** lkcl has joined #litex | 05:52 | |
*** kgugala_ has joined #litex | 06:40 | |
*** kgugala has quit IRC | 06:40 | |
*** futarisIRCcloud has quit IRC | 06:42 | |
*** Melkhior has joined #litex | 07:46 | |
Melkhior | Hello, I was checking the SoC size in my FPGA, and it seems that the default is much bigger now (using master HEAD for VexRiscv, not the default files in pythondata for the current test) than it was when I started. I had a note at 5400 LUT and now it is 8142. Pure curiosity not an issue, I am just wondering why. Is it because the new SoC has SMP | 07:49 |
---|---|---|
Melkhior | capability by default ? (I'm still using just one core in those tests). TIA | 07:49 |
*** G33KatWork has joined #litex | 09:02 | |
*** _whitelogger has quit IRC | 09:04 | |
*** _whitelogger has joined #litex | 09:07 | |
_florent_ | Melkhior: Hi, Dolu really tried to minimize the impact of SMP in the single core configuration, but it's still probably a bit bigger. This is also using the native LiteDRAM interface, if you want something very close to the previous configuration, you can try to use the Wishbone interface by adding: https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/make.py#L211 | 09:13 |
Melkhior | _florent_ Thanks ; what's the difference between 'native LiteDRAM' and wishbone - bigger/smaller, bandwidth, latency ? (again just curious ; I was just checking the impact of my new stuff and the baseline has moved hence my curiosity :-) | 09:16 |
_florent_ | Melkhior: VexRiscv SMP can be directly interfaced to LiteDRAM for better performance/efficiency instead of using the common bus of the SoC that is shared with all the peripherals. | 10:09 |
Melkhior | _florent_ so this direct connection is better/faster ? Then I'm going to stick with it :-) | 10:42 |
Melkhior | I'm adding a lot more overhead with my extra instructions anyway:-) | 10:43 |
Melkhior | thanks | 10:43 |
*** mikeK_de1soc has joined #litex | 12:45 | |
cr1901_modern | _florent_: >VexRiscv SMP can be directly interfaced to LiteDRAM | 12:49 |
cr1901_modern | How does that separate bus work? Is there a block diagram? | 12:49 |
mikeK_de1soc | _florent_: I just wanted to apologize for my behaviour yesterday, I guess I am a little excited to get the VGA working on my board. Take the time you need to work on the VGA portion. Whenever you publish your work, I will definitively use it! Thanks. MikeK. | 12:50 |
_florent_ | Melkhior: yes direct connection has better performance: less latency, increased data-width and burst support | 12:54 |
_florent_ | Melkhior: BTW, I also ordered a Arrow Deca board | 12:56 |
_florent_ | cr1901_modern: here is a block diagram: https://user-images.githubusercontent.com/1450143/88380620-29a1f800-cda5-11ea-87fc-af41b0813253.png | 12:57 |
cr1901_modern | Thanks. Hmmm... so there's muxes to swap between litedram bus and I/O bus. Does this increase performance in any case besides "one core is accessing the I/O bus and another core is accessing the litedram bus"? | 13:00 |
_florent_ | mikeK_de1soc: I haven't noticed an inappropriate behavior yesterday, getting Video working is indeed very nice since very visual and I can understand you can be excited. It will just be easier for me to have a closer look an maybe do some simplification to support more configurations since current support is a bit experimental. I should work on this very soon. | 13:01 |
Melkhior | _florent_ Cool for the Deca, will got one, don't know how much help I will be though beyond testing... | 13:03 |
_florent_ | cr1901_modern: that fact that it supports bursts, has an increased data-width and lower latency reduce the bottleneck between the CPU and memory | 13:05 |
cr1901_modern | Oh it's possible to mux two wishbone buses where one supports burst and the other doesn't, and get the burst performance? | 13:06 |
* cr1901_modern will have to take a look when he has time | 13:06 | |
mikeK_de1soc | _florent_: Thanks! :) | 13:10 |
_florent_ | cr1901_modern: not yet in LiteX main SoC but BMB on VexRiscv'sice and the Native LiteDRAM interface support bursting | 13:11 |
cr1901_modern | Cool | 13:40 |
cr1901_modern | _florent_: Last q for now :P >> | 13:40 |
cr1901_modern | If I have an external core written in nmigen that I want to include in a litex design, is there a canonical way in litex to generate the verilog so it goes in the build dir | 13:40 |
mikeK_de1soc | I second that! I also have a Verilog file that I have created. how can we include the design into litex! | 13:46 |
mikeK_de1soc | But my design is connected to the GPIO pins. MAybe we can use the same.. | 13:47 |
mikeK_de1soc | same method... | 13:47 |
cr1901_modern | the minerva core has to already do this, but I think it's special-cased via a pythondata package that mithro made | 13:48 |
mikeK_de1soc | where is the minerva core? My goal is to connect a High speed ADC board that I have for my DE1-SoC. The THDB-ADA. 150 Msps ADC and Dac. They have example verilog code I believe. | 13:53 |
cr1901_modern | litex/soc/cores/cpu/minerva | 13:54 |
mikeK_de1soc | ah ok.. it's a cpu core.. is this the same core that Linux-on-litex-vexriscV? I am still learning the in's and out of this stuff.. | 13:55 |
mikeK_de1soc | From my understanding no... | 13:55 |
cr1901_modern | No, it's a different core | 13:57 |
mikeK_de1soc | of the 2 cores, which one is more feature rich? I am suspecting the Linux-on-litex-VexriscV. | 14:02 |
cr1901_modern | Most ppl for most situations have converged on vexriscv | 14:04 |
_florent_ | cr1901_modern: in fact pythondata is just a way to package the sources and get them during the build. The nMigen to verilog elaboration is done during the build here: | 15:06 |
_florent_ | https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/minerva/core.py#L96-L111 | 15:06 |
_florent_ | https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/minerva/core.py#L116-L121 | 15:07 |
_florent_ | so you could use a similar approach | 15:07 |
_florent_ | for Minerva, we are also relying on cli.py from Minerva: https://github.com/lambdaconcept/minerva/blob/master/cli.py | 15:08 |
_florent_ | that already provides a way to configure the nMigen sources and generate a verilog file for the CPU | 15:08 |
_florent_ | but the approach is in fact very similar with SpinalHDL/VeRiscv where we can generate during the build configurations that are not included in the pre-generated configurations. | 15:10 |
cr1901_modern | Ahh okay thanks | 15:11 |
Melkhior | Dumb question; as VexRiscv is an expandable core so well integrated with LiteX for RV32, how much effort would it be to have 'VexRiscv64' that would be pretty much the same but 64-bits ? (i.e. RV64I[M][A][C]) | 15:46 |
Melkhior | Work on extensions could probably use an easily-extensible RV64 core similar to VexRiscv for RV32 :-) | 15:46 |
_florent_ | Melkhior: that would be a question for Dolu | 15:50 |
Melkhior | _florent_ yes probably. LiteX would only see the wider memory request I suppose. Though the BIOS/bootloader/kernel would be affected to some extent... probably not a trivial exercise | 15:51 |
Melkhior | Litex already work with Rocket, so I guess most of that would be fine by default | 15:52 |
_florent_ | Melkhior: gsomlo already did the BIOS adaptation for Rocket indeed, so there shouldn't be that much work on the LiteX side. | 15:53 |
Melkhior | using the integrated 'boot.bin' as @somlo does for Rocket (I tried porting opensbi, but coudl'nt make it work) | 15:53 |
Melkhior | seems it's tough adding instructions in RV64 cores, while I did Zks (for chinese crypto) in Vexriscv in less than two hours as I had the test SW from Krypto :-) | 15:55 |
Melkhior | VexRiscv is really nice for that kind of work - and with Litex it's just another linux box so SW is easy as well ! | 15:56 |
Melkhior | kudos again :-) | 15:56 |
somlo | Melkhior: integrated boot.bin is b/c I wanted to reuse BBL (from riscv-pk) as the "emulator" | 16:11 |
somlo | I guess opensbi is theoretically possible, and "a simple matter of programming" :P | 16:12 |
somlo | Melkhior: It's lower on my list of priorities because I'm still scarred by the experience of dealing with edk2 a few years ago :D And I really badly want opensbi to be less of a dumpster fire, and I hope it is, but I'm afraid that if I look at it it'll turn out to be just as horrible | 16:15 |
somlo | It's PTSD, basically :D | 16:15 |
*** futarisIRCcloud has joined #litex | 16:18 | |
Melkhior | @somlo opensbi wasn't too bad, I rebuild it in RV64 after fixing what I thought were the relevant bits (constants, mostly) ... and then it compiled but didn't work and I had no idea what to do :-) | 16:22 |
somlo | oh, good to know, thanks! I know Fedora-rv64 switched to opensbi (from BBL) at some point around 29..31 | 16:26 |
somlo | so if I ever get sdcard (or sata) to the point where something like systemd can boot from without timing out, I/we will have to deal with it | 16:28 |
Melkhior | it works fine with linux-on-litex-vexriscv now, that's the default bootloader now I think (anyway that's the one I always use) | 16:29 |
mikeK_de1soc | I have a question about the boot-loader if that's ok. I am in the process of compiling the linux-on-litex-vexriscv for the DE1-soc. Once i get it working, I want to load the bootloader. From my understanding, i would need a separate serial connection to the de1-soc separate from the jtag port? they mention GPIO pin 0 - 1 for TX and RX. this is for | 16:35 |
mikeK_de1soc | the linux boot loading?? or can I use the same Jtag port, but it reroutes the serial connection inside? still puzzled. | 16:35 |
*** kgugala has joined #litex | 16:58 | |
*** kgugala has quit IRC | 16:58 | |
*** kgugala has joined #litex | 16:59 | |
*** kgugala_ has quit IRC | 16:59 | |
mikeK_de1soc | OH man, I am so CLOSE!!! | 17:33 |
mikeK_de1soc | I get the Litex Prompt, but i think my serial connection is not good.. | 17:34 |
mikeK_de1soc | ARggg.... | 17:34 |
mikeK_de1soc | where can i change the speed in the litex code, I want to use 115K... :0 | 17:35 |
Melkhior | mikeK_de1soc in linux-on-litex-vexriscv, the default speed is set in soc_linux.py | 17:38 |
Melkhior | def __init__(self, cpu_variant="linux", uart_baudrate=1e6, **kwargs): | 17:38 |
mikeK_de1soc | ok thanks.. | 17:38 |
Melkhior | I think | 17:38 |
Melkhior | also | 17:38 |
mikeK_de1soc | yes yes i see it | 17:39 |
Melkhior | if you have corrupted data, you can use checksummin in lxterm | 17:39 |
Melkhior | my mbit serial link is unreliable, but it's faster like that + checksumming than going down to 115.2k | 17:39 |
mikeK_de1soc | but if you change the baud rate here, does the FPGA follow suit? or am i talk out my ass.. | 17:39 |
mikeK_de1soc | how do you enable checksum? | 17:40 |
Melkhior | dont use --on-crc | 17:41 |
Melkhior | no-crc | 17:41 |
Melkhior | when you change in soc_linux.py, you need to regenerate the bitstream | 17:42 |
Melkhior | to change the FPGA default value | 17:42 |
mikeK_de1soc | ah ok... | 17:42 |
Melkhior | then you just need to match in lxterm or minicom or whatever serial terminal you use | 17:42 |
mikeK_de1soc | yes yes | 17:42 |
mikeK_de1soc | but it's says it's 1152 by default... | 17:42 |
mikeK_de1soc | https://github.com/enjoy-digital/litex/blob/master/litex/tools/litex_term.py#L529 | 17:43 |
mikeK_de1soc | so i have to set it to 115-2 in soc_linux? | 17:43 |
mikeK_de1soc | i am assuming... | 17:43 |
Melkhior | that's a trick:-) it's 115.2 by default in litex, but linux-on-litex-vexrisc override the default in the SoC in the python definition | 17:43 |
Melkhior | at least that's my understanding of it | 17:44 |
Melkhior | when using Linux you need a fast serial port if you use that to upload the BIOS/kernel/rootfs | 17:44 |
Melkhior | even at high speed, it still takes forever | 17:44 |
mikeK_de1soc | yeah i get that part... I just want SOMTHING to work... | 17:45 |
mikeK_de1soc | ANYTHING!!! | 17:45 |
Melkhior | if your board has a supported micro-sdcard slot, use that for those files, and use 115.2 (or lower) for the console, you will save yourself a lot of waiting ... | 17:45 |
Melkhior | but beware - micro-sd can be even more temperamental than serial ! | 17:45 |
mikeK_de1soc | yes... but the de1-soc, the SD card slot is connected to HPS... | 17:45 |
mikeK_de1soc | i think... | 17:45 |
mikeK_de1soc | is this correct... def __init__(self, cpu_variant="linux", uart_baudrate=115.2e6 **kwargs): | 17:46 |
Melkhior | no! that would be 115.2 mbit/s:-) because of the e6 | 17:46 |
Melkhior | it's scientific notation | 17:46 |
mikeK_de1soc | yes yes yes | 17:46 |
mikeK_de1soc | sorry i meant 3 | 17:46 |
Melkhior | uart_baudrate=115200 will do | 17:46 |
mikeK_de1soc | yes yes | 17:46 |
mikeK_de1soc | o kgreat | 17:46 |
Melkhior | hopefully I remember this correctly, went through the same questions/issues when I started LiteX some months ago :-) | 17:47 |
mikeK_de1soc | Pay it Forward!!! Thanks buddy!!! beers on the way... :) | 17:47 |
Melkhior | exactly :-) | 17:48 |
Melkhior | good luck | 17:48 |
mikeK_de1soc | yup.. Tanks! | 17:48 |
mikeK_de1soc | it's working!!!!! :) | 17:59 |
mikeK_de1soc | but melkhior no here... :( | 18:00 |
mikeK_de1soc | ok i have the litex Prompt!!!! how do i load up the linux image? | 18:00 |
Melkhior | back, cool if it works :-) | 18:00 |
Melkhior | type 'help' :-) | 18:01 |
mikeK_de1soc | help | 18:01 |
mikeK_de1soc | oops wrong window | 18:01 |
mikeK_de1soc | :) | 18:01 |
Melkhior | :-) :-) | 18:01 |
mikeK_de1soc | LiteX BIOS, available commands: | 18:01 |
mikeK_de1soc | leds - Set Leds value | 18:01 |
mikeK_de1soc | flush_l2_cache - Flush L2 cache | 18:01 |
mikeK_de1soc | flush_cpu_dcache - Flush CPU data cache | 18:01 |
mikeK_de1soc | crc - Compute CRC32 of a part of the address space | 18:01 |
mikeK_de1soc | ident - Identifier of the system | 18:01 |
mikeK_de1soc | help - Print this help | 18:01 |
mikeK_de1soc | serialboot - Boot from Serial (SFL) | 18:01 |
mikeK_de1soc | reboot - Reboot | 18:01 |
mikeK_de1soc | mem_speed - Test memory speed | 18:01 |
mikeK_de1soc | mem_test - Test memory access | 18:01 |
mikeK_de1soc | mem_copy - Copy address space | 18:01 |
mikeK_de1soc | mem_write - Write address space | 18:01 |
mikeK_de1soc | mem_read - Read address space | 18:01 |
mikeK_de1soc | mem_list - List available memory regions | 18:01 |
mikeK_de1soc | sdram_test - Test SDRAM | 18:01 |
Melkhior | for VexRiscv, you will normally need a 'boot.json', which describe where to put which files, normally DTS, kernel, bootloader & rootfs | 18:01 |
mikeK_de1soc | yes i have that.. but i can;t find it... | 18:02 |
mikeK_de1soc | itex> serialboot | 18:02 |
mikeK_de1soc | Booting from serial... | 18:02 |
mikeK_de1soc | Press Q or ESC to abort boot completely. | 18:02 |
mikeK_de1soc | sL5DdSMmkekro | 18:02 |
mikeK_de1soc | [LXTERM] Received firmware download request from the device. | 18:02 |
mikeK_de1soc | Exception in thread Thread-1: | 18:02 |
mikeK_de1soc | Traceback (most recent call last): | 18:02 |
mikeK_de1soc | File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner | 18:02 |
mikeK_de1soc | self.run() | 18:02 |
Melkhior | you pass it to lxterm as --serial-boot or something like that (test system down ATM) | 18:02 |
mikeK_de1soc | File "/usr/lib/python3.8/threading.py", line 870, in run | 18:02 |
mikeK_de1soc | self._target(*self._args, **self._kwargs) | 18:02 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 462, in reader | 18:02 |
mikeK_de1soc | self.answer_magic() | 18:02 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 448, in answer_magic | 18:02 |
mikeK_de1soc | self.upload(filename, int(base, 16)) | 18:02 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 358, in upload | 18:02 |
mikeK_de1soc | f = open(filename, "rb") | 18:02 |
mikeK_de1soc | yes it's there, should have worked.. | 18:03 |
Melkhior | for serialboot it needs to be on lxterm command line | 18:03 |
mikeK_de1soc | oh... | 18:03 |
Melkhior | so that lxterm knows which boot.json to use | 18:03 |
mikeK_de1soc | hold on fpga locked up.. | 18:03 |
Melkhior | then normally, it's all automatic | 18:03 |
mikeK_de1soc | this is my current command line.. lxterm --images=images/boot.json /dev/ttyUSB0 --speed=115.2e3 | 18:04 |
mikeK_de1soc | so i need to add the serialboot in the command line??? or with i have the litex prompt?? | 18:04 |
Melkhior | normally that looks good* | 18:05 |
Melkhior | the serial-boot is for automatic | 18:06 |
Melkhior | did you see the memory initialize at start-up ? | 18:07 |
mikeK_de1soc | well yes and no.. i type reboot and this is what i got.. | 18:07 |
Melkhior | if not try the sdram_test to make sure the memory is OK | 18:07 |
mikeK_de1soc | sorry for the irc.. should i be using pasetbin or somthing... I am VERY new to all this.. | 18:08 |
mikeK_de1soc | itex> reboot | 18:08 |
mikeK_de1soc | __ _ __ _ __ | 18:08 |
mikeK_de1soc | / / (_) /____ | |/_/ | 18:08 |
mikeK_de1soc | / /__/ / __/ -_)> < | 18:08 |
mikeK_de1soc | /____/_/\__/\__/_/|_| | 18:08 |
mikeK_de1soc | Build your hardware, easily! | 18:08 |
mikeK_de1soc | (c) Copyright 2012-2020 Enjoy-Digital | 18:08 |
mikeK_de1soc | (c) Copyright 2007-2015 M-Labs | 18:08 |
mikeK_de1soc | BIOS built on Feb 18 2021 12:50:00 | 18:08 |
mikeK_de1soc | BIOS CRC passed (b9f40d07) | 18:08 |
mikeK_de1soc | Migen git sha1: 7014bdc | 18:08 |
mikeK_de1soc | LiteX git sha1: 5291a646 | 18:08 |
mikeK_de1soc | --=============== SoC ==================-- | 18:08 |
mikeK_de1soc | CPU: VexRiscv SMP-LINUX @ 50MHz | 18:08 |
mikeK_de1soc | BUS: WISHBONE 32-bit @ 4GiB | 18:08 |
mikeK_de1soc | CSR: 32-bit data | 18:08 |
mikeK_de1soc | ROM: 64KiB | 18:08 |
mikeK_de1soc | SRAM: 8KiB | 18:08 |
mikeK_de1soc | self.run() | 18:08 |
mikeK_de1soc | File "/usr/lib/python3.8/threading.py", line 870, in run | 18:08 |
mikeK_de1soc | self._target(*self._args, **self._kwargs) | 18:08 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 462, in reader | 18:08 |
mikeK_de1soc | self.answer_magic() | 18:08 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 448, in answer_magic | 18:08 |
mikeK_de1soc | self.upload(filename, int(base, 16)) | 18:08 |
mikeK_de1soc | File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 358, in upload | 18:08 |
mikeK_de1soc | f = open(filename, "rb") | 18:08 |
mikeK_de1soc | FileNotFoundError: [Errno 2] No such file or directory: 'images/Image' | 18:08 |
mikeK_de1soc | mikek@mike-AERO-17:~/Documents/Cyclone5_SOC/Litex_directory/linux-on-litex-vexriscv$ | 18:08 |
tcal | Sometimes after you connect with lxterm, if you just have the litex prompt, type "serialboot" there to kick things off (sometimes it's automatic, sometimes not). If you don't have the litex prompt but the litex bitstream is loaded, it will reboot if you hit the "reset" button (this is common on Arty boards; I didn't catch which board you were using). | 18:08 |
Melkhior | some stuff got cut | 18:09 |
mikeK_de1soc | the DE1-Soc.. | 18:09 |
mikeK_de1soc | i got it work manually... | 18:09 |
Melkhior | I suggest moving all the files in the current directory and just have filename (no path) in the boot.json, just to make sure it's not a weirdness in the paths | 18:09 |
Melkhior | seems it can find the kernel image in images/Image, but relative to what ... | 18:10 |
tcal | Looks like a problem on the lxterm side? Yes, good suggestion by Melkhior. | 18:10 |
mikeK_de1soc | ok so move the boot and rv32 to the previous directory.. ok doing that... | 18:11 |
Melkhior | and check for typo :-) | 18:11 |
Melkhior | been there, done that :-) | 18:11 |
mikeK_de1soc | humm. interesting differnt error... File "/home/mikek/Documents/Cyclone5_SOC/Litex_directory/litex/litex/tools/litex_term.py", line 358, in upload | 18:12 |
mikeK_de1soc | f = open(filename, "rb") | 18:12 |
mikeK_de1soc | FileNotFoundError: [Errno 2] No such file or directory: 'Image' | 18:12 |
mikeK_de1soc | which directory should you be running this in??? | 18:12 |
mikeK_de1soc | in the build directory? | 18:13 |
Melkhior | it worked for me when eveything was in the same directory, and I started lxterm from there as the working directory ... | 18:13 |
Melkhior | 'Image' is the linux kernel, is it there with the right name ? plural & caps are killers :-) | 18:14 |
mikeK_de1soc | that's just it I don;t see the Image file at all?? | 18:14 |
Melkhior | oh it's normal then :-) | 18:14 |
Melkhior | you need to copy it over from the buildroot | 18:14 |
Melkhior | along with rootfs | 18:14 |
mikeK_de1soc | AH....... ok...... | 18:15 |
mikeK_de1soc | yes, i still have to do the buildroot stuff...... | 18:15 |
Melkhior | hehe :-) | 18:15 |
Melkhior | yes you do | 18:15 |
mikeK_de1soc | i was just getting the DE1-Soc up and running... look like I succeeded! | 18:16 |
Melkhior | you need 4 files in there for the json | 18:16 |
mikeK_de1soc | ok so where do i follow next in the instructions.. | 18:16 |
mikeK_de1soc | BTW.. the memory test worked!!!! | 18:16 |
mikeK_de1soc | :) | 18:16 |
mikeK_de1soc | the SD ram!! | 18:16 |
mikeK_de1soc | ok i only have 2 files... boot.json and rv32.dtb | 18:17 |
mikeK_de1soc | HAppy HAppy Joy Joy!!!! | 18:17 |
Melkhior | the DTB which is from the DTS generated - i think - by linux-on-litex-vexriscv (you may need to compile the DTS to DTB using dtc) | 18:18 |
Melkhior | the bootloader, which is likely OpenSBI (can be something else, OpenSBI is probably best), there's an opensbi repo for it for LiteX | 18:18 |
Melkhior | the kernel & rootfs, which you get from buildroot (Image and rootf.cpiuo respectively) | 18:18 |
Melkhior | and then the boot.json tells where to put those 4 in memory | 18:18 |
Melkhior | great :-) | 18:18 |
Melkhior | good luck with the buildroot! | 18:18 |
Melkhior | got to go | 18:18 |
Melkhior | bye | 18:18 |
mikeK_de1soc | thanks man!!!! | 18:18 |
Melkhior | 4 + boot.json | 18:18 |
Melkhior | really bye :-) | 18:18 |
mikeK_de1soc | :) | 18:19 |
*** alex83 has joined #litex | 18:19 | |
*** alex83 has quit IRC | 18:21 | |
mikeK_de1soc | YES SIR!!! | 18:41 |
mikeK_de1soc | WORKING!!!! | 18:41 |
mikeK_de1soc | Yup it's slow!!!! | 18:41 |
*** sorear has quit IRC | 19:15 | |
*** davidlattimore has quit IRC | 19:15 | |
*** _florent_ has quit IRC | 19:15 | |
*** _florent_ has joined #litex | 19:49 | |
*** sorear has joined #litex | 19:51 | |
*** davidlattimore has joined #litex | 20:02 | |
*** Bertl is now known as Bertl_oO | 20:12 | |
*** FFY00 has quit IRC | 20:13 | |
*** FFY00 has joined #litex | 20:14 | |
*** davidlattimore has quit IRC | 21:05 | |
*** sorear has quit IRC | 21:05 | |
*** _florent_ has quit IRC | 21:05 | |
*** _florent_ has joined #litex | 21:13 | |
*** sorear has joined #litex | 21:16 | |
shorne_ | somlo: so I read up a bit more on the MMC kernel layers, what do you think will happen with litex_mmc is issued a multiblock transfer? it seems the request() code path will be the same, just the size of the buffer will be bigger sent to LITEX_MMC_SDBLK2MEM_LEN_OFF will be bigger. Then would we expect the hardware to handle the multi block protocol? | 21:19 |
*** davidlattimore has joined #litex | 21:31 | |
shorne_ | somlo: that is what it looks like, I put in a debug statement for write and did some simple test | 21:44 |
shorne_ | dd if=/dev/zero of=/mnt/test1 bs=512 count=1 | 21:44 |
shorne_ | litex-mmc e0005800.mmc: mmc write is_multi:0 length:512 | 21:44 |
shorne_ | that is ok | 21:44 |
shorne_ | then | 21:44 |
shorne_ | dd if=/dev/zero of=/mnt/test1 bs=512 count=20 | 21:45 |
shorne_ | litex-mmc e0005800.mmc: mmc write is_multi:1 length:8192 | 21:45 |
shorne_ | Command (cmd 25) failed, status 2 | 21:45 |
shorne_ | Command (cmd 13) failed, status 2 | 21:45 |
somlo | shorne_: yeah, we just allocate buffers that correspond to the larger max_req_size, and it all "should" work out when the core mmc layer decides it's time to use cmd18 for reads instead of cmd17 | 21:45 |
shorne_ | etc. it seems all commands after we try the multi block transfer fail | 21:46 |
*** shorne_ is now known as shorne | 21:46 | |
somlo | right, it seems the card itself and/or the LiteSDCard FSMs somehow take a "wrong turn" somewhere and get stuck | 21:47 |
somlo | I'm trying to find a slightly more detailed spec of the SDCard PHY layer than what's available at https://sdcard.org/downloads/pls/ | 21:48 |
shorne | alight, so the driver is a bit sub optimal but it seems we should be doing the "right" thing | 21:48 |
tpb | Title: Simplified Specifications | SD Association (at sdcard.org) | 21:48 |
shorne | Yeah, I have been looking for a good spec too | 21:49 |
shorne | this is not good enough http://elm-chan.org/docs/mmc/mmc_e.html | 21:49 |
tpb | Title: How to Use MMC/SDC (at elm-chan.org) | 21:49 |
shorne | Anyway, got to go | 21:50 |
somlo | ok, later! and thanks for double-checking. | 21:50 |
*** TMM has quit IRC | 21:57 | |
*** TMM has joined #litex | 21:58 | |
*** mikeK_de1soc has quit IRC | 21:59 | |
*** mikeK_de1soc has joined #litex | 22:05 | |
*** mikeK_de1soc has quit IRC | 23:47 | |
*** mikeK_de1soc has joined #litex | 23:47 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!