er... please just post a question instead of "help"
nancy
sorry sir
net not so good , had a doubt regarding last year's work , The run length encoding adopted
sir was looking at the scripts and didnt understand , what we wanted , we have to code it upto 3 level deep!
And sir for the image size conversion-padding/cropping : python script which imports PIL library and than we integrate it with the existing HDMI Litex firmware
nancy_ joined the channel
nancy_ has quit
nancy_ joined the channel
nancy_
Sir for Image size conversion , a script importing PIL library and than , integrating with existing Litex Firmware ( In case the message has been missed)
nancy has quit
is it in right direction . correct me sir
CarlFK
nancy_: I don't think you can import PIL in the micro python environment
also, that isn't what I was thinking.
nancy_: I recommend staring with the most simple case: same input resolution as output, what we have now, but instead of transferring the whole frame, loop over it and transfer one row at a time
nancy_
ok sir , we cant either do it with ffmpeg ?
CarlFK
nancy_: what cpu would run ffmpeg?
nancy_
sir as far as i know the CPU will affect the speed of the process.
CarlFK
what CPU?
nancy_
sir that i didnt check
I found it : hardware requirements are basically any cpu
only speed will vary according to hardware
CarlFK
nancy_: did you think the fpga would run ffmpeg?
paddatrapper
nancy_: there is no traditional cpu to work with here...
You do have the softcpu though
nancy_
ok sir
CarlFK
nancy_: can you find me the code that copies the input frame?
nancy joined the channel
nancy_ has quit
paddatrapper
<+CarlFK> nancy_: can you find me the code that copies the input frame?
Hi everybody! I'm trying to flash the HDMI2USB firmware onto a nexys video. Flashing the gateware (via python flash.py --mode=gateware) works fine, but the firmware throws an "AssertionError: File is too big! -32768 file does not fit in 67992 space".
Title: HDMI2USB-litex-firmware/flash.py at master · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com)
felix[m]1
Hmm, if `address_start = platform.gateware_size + make.BIOS_SIZE` and `address_end = platform.gateware_size` and finally `file_end = address_start+file_size`, the assertion `file_end < address_end` can't possibly hold, can it?
CarlFK
felix[m]1: stand by....
felix[m]1
Sure! Please let me know if there's anything I can try. I'd have thought that the additions for address_start and address_end were swapped, but that's where the bios is supposed to go, right?
CarlFK
felix[m]1: -32768 is ... I think 111 111 111 111 signed 2 byte int ?
felix[m]1
Hmm, that seems a bit too high a value?
CarlFK
not so much high, just unlikely that it is a meaningful number
it is the result of address_end - address_start - right?
Yes, that's what I was thinking (sorry for causing confusion)
But adding the value of make.BIOS_SIZE to address_end instead of address_start would overwrite the bios, right?
So BIOS_SIZE should be added to both, plus an additional offset for the size of the firmware?
CarlFK
um.. something like that
felix[m]1
(which is only added to address_end)
Or, more generally, since this route (via flash.py) can't possibly work, how do you flash your board? There must be another way, right?
CarlFK
my guess (never even considered this before) is the bios goes from 0 to bios_size, and then the gateware? from bios_size+1 to.. how ever much it needs
I use mode-switch to flash Atlys and Opsis
those are the only 2 boars I have
felix[m]1
Ok, I'll open an issue for this, and try mode-switch. Thanks a lot!
And sorry for being obtuse -- I should be heading to bed. I'm super-thankful for your helping me confirming this, I was starting to question my sanity, not to mention my basic math capabilities :-)
CarlFK
felix[m]1: no problem - happy to help, even if I am not sure whats going on either
Title: Flashing Firmware · timvideos/HDMI2USB Wiki · GitHub (at github.com)
felix[m]1
Ah, awesome, thanks! I was trying to reverse-engineer the `make flash` command. I've been digging through the mode-switch code, looks like it only supports the opsys and altys, though
I'll search the wiki more thoroughly, chances are I've missed something.