Closed SanadaShinken closed 2 years ago
Looks like the console driver use the wrong endianness, thus reverting the order of each block of 4 pixels. Which platform is this? Is it big or little endian?
Dear Geertu :
Thank you very much. I'll check the kernel option. the test platform is our own FPGA board, based on XC7A100T / XC7A200T.
If I test the configuration in litex-boards, the terminal output is very well. If using linux-on-litex-vexriscv, the display is shown as the photo.
The boot up linux image which I used is found in the following issue. https://github.com/litex-hub/linux-on-litex-vexriscv/issues/164, which is the prebuild images.
BR, Sanada
Hi,
The symptom looks very similar to what is happening with the video frame buffer for colorlight_i5 target, though the cause may be different. For litex-boards/litex_boards/targets/colorlight_i5.py, I've found that changing l2_cache_reverse, which is an argument of addsdram() call in __init_\ of BaseSoc, from True to False is a workaround.
Regards,
kaz
Hi @kazkojima :
Wow oh! this may be the key. I'll try it to check the display is right or not.
Thank You very much!!
BR, Sanada
@SanadaShinken: This is probably indeed related to the l2_cache reverse parameter as pointed by @kazkojima, I also had to do this change on a hardware I was testing recently: https://github.com/litex-hub/litex-boards/commit/f7ee3fa4543db681f87e9afab8da8a81e07f1f82#diff-f92168101f80ffd8f588e3e8baad110cc75cae6138c5bedbf61811ba2572a1ceR94. We could try to simplify this in the future.
Hi @kazkojima , @enjoy-digital :
Many Thanks. change L2 size to zero or add l2_cache reverse as "Fasle" all make the output correct.
BR, Sanada
By default,l2_cache reverse
is now set to False
, so the issue will no longer be present.
Dear Sir:
the photo is taken by using the latest litex code. and the output order seems differ to normal order. it is a little funny. where do I have to check?
BR, Sanada