<clever>
samueldr: i see a dedicated hardware block for jpeg, but nothing that looks 3d related, though i have observed that the 4 byte id code isnt visible if a block is powered down
<clever>
one of the pages that was scrapped from patents claims `The GPU can hardware decode H264, MPEG1/2/4, VC1, AVS, MJPG at 1080p30`
<clever>
As far as I'm aware the 2 cores are identical. There is only 1 vector register file, so all vector code uses mutexes in the default firmware.
<clever>
samueldr: ahh, so there is no point in trying to do vector stuff on both cores
<clever>
ahh, each core has its own 64x64 reg file, but they share the vector unit that does the actual operation
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11 has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos-aarch64
<andi->
samueldr: is there support for the nexus 5x on nixos-mobile? I just inherited two of those devices from family members.. I experiment with them / ship them somewhere if you think that is valuable (and not just wasting your time ;))
sigtrm_ has joined #nixos-aarch64
Willi_Butz has joined #nixos-aarch64
orivej has joined #nixos-aarch64
WilliButz has quit [Ping timeout: 265 seconds]
sigtrm has quit [Ping timeout: 265 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11 has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
zupo has joined #nixos-aarch64
ris has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
Willi_Butz is now known as WilliButz
orivej has joined #nixos-aarch64
<samueldr>
andi-: not currently, but they should work fine, as they are aarch64
<samueldr>
they are limited in RAM (2GB), but still in the acceptable range I think
<andi->
I'll try to get them running tonight. Hopefully won't be that much of a disaster.
<samueldr>
andi-: there may be disaster in the docs department to get you started :)
<clever>
samueldr: basically, you can use api's on the rpi to spawn an instance of those components, and then link the ports of matching color between them
<andi->
samueldr: ha, there is code! No need for docs.
<samueldr>
andi-: if only that was true :D
<clever>
samueldr: so you could spawn a read_media, video_decode, video_render, audio_decode, and audio_render, wire them all up, and shove a raw .mkv file into the input
<samueldr>
andi-: the issue is the configuration, not the code
<clever>
samueldr: and boom, you have a fully working hw accellerated video player
<samueldr>
clever: that explains the OMX stuff in software
<andi->
samueldr: worst case I'll bug you until it works :p
<clever>
samueldr: yep, thats the other name, forgot it till now
<samueldr>
though you may need to also run a fastboot command to enable the UART
<clever>
samueldr: the links between each component are formed by an array of fixed size buffers, with a list of empty buffers, and a fifo of buffers of data
<samueldr>
basically, the nexus and pixel family are great for that reason, they do have UART accesss
<clever>
samueldr: and you can also create compatible components in userland on the arm side, such as a file source, that emits data from a .mkv file
<clever>
samueldr: the thing on more fuzzy on, and is probably getting into NDA territory, is how much of those things is handled in hardware, and how much is just vector ops in the VC4
<clever>
s/on/i'm/
<samueldr>
andi-: you will also have to make a choice of which kernel to port, mainline or OEM, in the end both should be ported, mainline to continue its improvement, and OEM to have everything work
<clever>
samueldr: there are also modules like camera, which strangely has 2 output ports, and an enable flag for each
<samueldr>
clever: that way you can do funky stuff I guess?
<clever>
samueldr: one is meant for video preview, while the other for capture
<samueldr>
yeah, makes sense
<clever>
samueldr: but it also has a video splitter module, that could have done the same thing
<samueldr>
unless the preview/capture has differences
<samueldr>
like how on android previews are of lesser quality
<clever>
`Due to limitations in the current underlying layers, it is not currently possible to emit the same frame at multiple resolutions. This means that to obtain both preview and video capture images simultaneously, the two ports must be at the same resolution and of the same image format.`
<samueldr>
haha, looks like the intention was ther
<clever>
yeah, lol
<clever>
it also has a 3rd port for still images
<clever>
which produces the raw image, before debayer filters are applied
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
now that there are cheap~ish FPGAs, like 5$ FPGAs, I wonder what is the minimum requirements to have one simulating an SD card while doing some magic on the other side to talk to a computer
<clever>
samueldr: 100mbit needs a 200mhz clock to tx data, and maybe a bit faster for rx
<samueldr>
the FPGA I linked to has a 24Mhz clock
<clever>
gigabit generally has a deser on the mii
<samueldr>
so it's not fast enough for Default Speed SD
<clever>
so it doesnt need as extreme of a clock
<clever>
oh, lol
<samueldr>
though, that's like the cheapest thing
<samueldr>
so I figure that something a bit more upmarket could handle it
<clever>
the old mojo i linked, can go up to 1080mhz i think
<samueldr>
and looks like SD is nice enough to support both 3.3V and 1.8V
<samueldr>
neat, 50Mhz could be fast enough with DDR50, if I read correctly somewhere else, it means that we provide data in parallel using multiple pins
<clever>
also, the rpi has 2 mmc controllers
<clever>
a slower and a faster one
<clever>
the bootrom and bootcode.bin use the slower one, because it has a much simpler api
<samueldr>
forget about the raspberry pi :)
<clever>
you must implement both, if you want the pi to boot from this device
<samueldr>
while it is one of the targets, I'd like the idea to work anywhere an SD card works
<clever>
compatability with both
<samueldr>
hmmm, I'm wrong, SDR vs. DDR is something else
<clever>
ah, dang, the spi clock must be just under half the system clock
<clever>
so 10mhz if you arent seriously overclocking stuff
<clever>
When the SPI is configured as Slave, the SPI is only guaranteed to work at fosc/4
<clever>
or lower
<clever>
or worse!
<clever>
SPI bus mode: Serial Peripheral Interface Bus is primarily used by embedded microcontrollers. This bus type supports only a 3.3-volt interface. This is the only bus type that does not require a host license.[citation needed]
<clever>
samueldr: you may need to pay a fee if you want to go any faster, lol
<clever>
spi mode only uses 4 pins, chip-select, in, out, clock
<clever>
the 4bit mode, has 4 data pins, clock, and a control pin, 6 total
<samueldr>
clever: "host" license :)
<samueldr>
what if you're making an emulator?
<samueldr>
or you could do as the chinese do, call it TF
<clever>
TF?
<clever>
`Until determining the card's capabilities, the host device should not use a clock speed faster than 400 kHz. `
<clever>
sounds like the card can report an upper limit on speed, and the host must respect that
<samueldr>
>> The microSD removable miniaturized Secure Digital flash memory cards were originally named T-Flash or TF, abbreviations of TransFlash. TransFlash and microSD cards are functionally identical allowing either to operate in devices made for the other
<samueldr>
looks like that ramdisk is not overstepping on top of fdt, so likely not that
<samueldr>
(anyways gets loaded after the ramdisk)
zupo has joined #nixos-aarch64
zupo has quit [Ping timeout: 245 seconds]
FRidh has quit [Quit: Konversation terminated!]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<craige>
THanks for all those notes, clever, samueldr - I'll expect to have >= ~2 hours a week to apply to this, so it;s going to be really slow going now I'm back home (which is why I put in so many hours whilst in Brno). I flashed the blueline to LineageOS jsut to successfully get another OS running :-) Tried a couple more kernel builds but still didn't get FB love but the kernel wasn't crashing,
<craige>
which was something. Hoping to avoid the serial cable but may have to go down that road :-)
<samueldr>
craige: by the 7th I should be able to tell you it works or not
<samueldr>
and if it works, it's literally plug and play
<samueldr>
not even soldering
<craige>
:-D
<clever>
samueldr: something i wonder, which is easyer to get working, framebuffer or usb gadget?
<samueldr>
without a way to know why gadget fails, gadget will be amazingly hard to fix
<samueldr>
which is why serial is important to me
<samueldr>
once I get gadget going on pixel 2, I believe pixel 3 should fall squarely in place
<samueldr>
framebuffer, no idea
<clever>
mainly thinking, if the usb controller is one that worked before
<samueldr>
literally none
<clever>
you could just blindly enable it, and see what happens
<samueldr>
yes
<samueldr>
it crashes the device
<samueldr>
for pixel 2 :)
<clever>
then you can get serial over usb gadget
<clever>
or full network
<samueldr>
I know
<samueldr>
that's how I access the device
<samueldr>
via network
<samueldr>
when it works
<samueldr>
so yeah
<samueldr>
plug and play as in this kind of serial device