2021-02-12
00:06linkmauve has joined #asahi
00:11raster has joined #asahi
00:11qyousef has quit [Ping timeout: 260 seconds]
00:36maor26 has quit [Ping timeout: 240 seconds]
00:37danilonc has quit [Quit: Connection closed for inactivity]
01:09raster has quit [Quit: Gettin' stinky!]
01:44qyousef has joined #asahi
01:51ys0seri0us has joined #asahi
02:46amw has quit [Ping timeout: 246 seconds]
02:54amw has joined #asahi
03:14ys0seri0us has quit [Ping timeout: 240 seconds]
03:18phiologe has quit [Ping timeout: 260 seconds]
03:18PhilippvK has joined #asahi
03:44Tokamak has quit [Ping timeout: 272 seconds]
03:46Tokamak has joined #asahi
03:46amw has quit [Ping timeout: 246 seconds]
03:50Tokamak has quit [Client Quit]
04:01Tokamak has joined #asahi
04:01amw has joined #asahi
04:58marvin24 has quit [Ping timeout: 260 seconds]
04:59marvin24 has joined #asahi
05:36ky0ko has joined #asahi
06:54VinDuv has joined #asahi
06:57mndza has joined #asahi
07:05maor26 has joined #asahi
07:25Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:28VinDuv has quit [Quit: Leaving.]
07:30lovesegfault has quit [Quit: WeeChat 3.0]
08:09robinp has quit [Ping timeout: 260 seconds]
08:09robinp has joined #asahi
08:27_jannau_ has joined #asahi
08:28amw has quit [Ping timeout: 265 seconds]
08:43amw has joined #asahi
08:53Swant has quit [Quit: gone to IKEA]
08:55Swant has joined #asahi
08:59jamadazi has joined #asahi
09:00smist08[m] has quit [Quit: Idle for 30+ days]
09:00bakk[m] has quit [Quit: Idle for 30+ days]
09:00ronyrus[m] has quit [Quit: Idle for 30+ days]
09:08raster has joined #asahi
09:24amw has quit [Ping timeout: 272 seconds]
09:27ephe_meral has joined #asahi
10:19arndit would be nice to get efifb earlycon working to hand over console from uboot to the kernel in place of simplefb
10:19Bublik has quit [Ping timeout: 272 seconds]
10:25agrafarnd: his screenshot was showing u-boot fb access, and that should automatically populate a GOP object to feed efifb unless explicitly deactivated :)
10:26agrafkeyboard is a different story though, I haven't seen anything that points towards that working
10:30bakk[m] has joined #asahi
10:43arndmaz: there are two options at the moment: using a second mac with macvdmtool to turn the type-c port on both ends into a uart into a uart, or building a custom cable to drive the usb-pd pins, see https://github.com/AsahiLinux/docs/wiki/HW%3AUSB-PD
10:45mazarnd: I know about this. Started ordering the various bits to put together a UBS-C dongle as described, but bits are slow to trickle in (and my M1 lands on Monday...).
10:45mazarnd: framebuffer isn't really an option for me, as the box will live in the rack with the rest of the zoo, where there isn't any display available.
10:47arndmaz: in the modern world we live in, a 4K HDMI-to-USB screengrabber is actually cheaper than a 1.2V usb-serial cable, but I get your point ;-)
10:49kettenisso one issue with my u-boot work is that up until now it uses the device tree bindings invented by corellium
10:49mazarnd: I have one of those, but then the next obstacle is keyboard input. Not to mention that logging kernel messages and grepping through them becomes interesting with video capture... ;-)
10:55jhol has joined #asahi
10:56jholif you are making this change, does it have any bearing on this errata?: https://linux-sunxi.org/H6#Errata
10:58marcanI think that was me talking about the old idea of making the PCI world use something other than ioremap
11:05jamadazi has quit [Read error: Connection reset by peer]
11:06arndjhol: johill is working on an abstraction for readl/writel that he wants to use on arch/um to fake a PCI bus, the same should work on Allwinner H6
11:06jamadazi has joined #asahi
11:07arndwe also have something in arch/arm/mach-ixp4xx/ that does it in a less portable way, and I'm hoping to fold that in there as well
11:07mndza has quit [Read error: Connection reset by peer]
11:07mndza has joined #asahi
11:19marcanthey can do 1080p30 almost pixel perfect (you lose a column or two of pixels at the edges), with only color subsampling and a bit of banding due to mediocre processing, but otherwise no compression
11:21marcanspent some time reverse engineering the registers of the video processor: https://github.com/maximus64/vxis-capture-fw-mod/wiki/VS9989-Registers
11:24marcanI hope some day we can write custom firmware for them and experiment a bit more; it would be nice to get them to do true RGB, not subsampled YUV
11:26jholmarcan: I bought some from a link you tweeted out, and the quality is dreadful out of the box - didn't know you had a fix
11:31marcanI use something like brightness=145 contrast=131 saturation=128 plus that firmware, which turns off some kind of black point processing and sharpening and fixes the chroma siting config
11:33marcanhttps://marcan.st/transf/Screenshot_20210125_044508.png <- looped screen capture into ffmpeg
11:34jholyeah I have quite a few cheapo HDMI capture devices in my posession from streaming, remote Video for emebedded work, and video capture, and using my camera as a webcam - and so far none of them gives me the kind of quality I'm really happy with
11:35amw has joined #asahi
11:35marcanbut if you want bit-perfect capture this isn't it (yet? there might be a way to coax it to do that...)
11:37ephe_meral has quit [Ping timeout: 272 seconds]
11:37jholthe thing is you can buy "proffessional" capture devices, but it's not like they're made of fundamentally different stuff, which makes it annoying paying serious money for them
11:37marcanthe "real" professonal ones are the really expensive ones that might do bit perfect properly
11:38marcane.g. I think the avermedia ones are just an HDMI-CSI bridge in front of a USB3 camera chip
11:39marcanoh, by the way, the cheap PCIe capture boards from china are the same as that USB one I linked, plus an xHCI chip, on a PCIe card :-)
11:40amw has quit [Ping timeout: 265 seconds]
11:46jholyeah - I spend a bunch of time reverse engineering the IT9070 and IT9910 media processors for HDMI capture. got quite far along with it - I think they'd make a great platform for open source video processing projects.. the problem is you can't get these ITE parts in the west - all you can get is a random selection of products which might feature the processor for a year or two, and then they disappear, so it's hard to justify putting time into building
11:56amw has joined #asahi
12:05amw has quit [Ping timeout: 240 seconds]
12:13arndmarcan: if you have a custom firmware for that device, do you think it also act as a software programmable i2c slave on the DDC? That might be enough to either fake up an HID keyboard over i2c, or something that can work as a text console, given a little code on each end of it.
12:23stemnic has quit [Ping timeout: 264 seconds]
12:23marcangoddammit, everyone is annoying me asking me to implement big.LITTLE penguins and the annoying thing is I figured out *how* to do it without making it too ugly
12:24marcanmaz: how much would you hate me for doing that? :) (not as part of that patchset, mind you)
12:45ephe_meral has joined #asahi
12:56opticronre HDMI capture devices, maybe look at bunnie's NeTV2? https://www.crowdsupply.com/alphamax/netv2
12:57opticronit would at least give you all the knobs you could possibly want to turn, but probably also more knobs than you would ever want to turn
13:03amw has joined #asahi
13:03mazmarcan: I don't have much hate left in me, so the little I have I keep it for politicians ;-)
13:07ephe_meral has quit [Ping timeout: 246 seconds]
13:08amw has quit [Ping timeout: 240 seconds]
13:09ephe_meral has joined #asahi
13:10jamadazi has quit [Read error: Connection reset by peer]
13:11jamadazi has joined #asahi
13:17vimal has joined #asahi
13:46davidrysk[m]marcan: you ever messed with the conexant cx2388x pci (not pcie) cards? someone figured out how to do raw adc capture with them (which might be in the pcie ones but no one has figured that out yet)... those are analog cards though, not useful for hdmi-in
14:08balrog has quit [Ping timeout: 240 seconds]
14:09balrog has joined #asahi
14:23stemnic has joined #asahi
14:30raster has quit [Quit: Gettin' stinky!]
14:56raster has joined #asahi
15:06ephe_meral has quit [Ping timeout: 272 seconds]
15:09ephe_meral has joined #asahi
15:17mndza has quit [Read error: Connection reset by peer]
15:18mndza has joined #asahi
15:29jamadazi has quit [Ping timeout: 272 seconds]
15:30thestr4ng3r has quit [Read error: Connection reset by peer]
15:32thestr4ng3r has joined #asahi
15:38GlanzmannThis was one hacker news: https://eclecticlight.co/2021/02/10/external-boot-disks-still-dont-work-properly-with-m1-macs/ Does it mean that you can boot from some external disks or does it use a quirk that boots from internal disks and than dispatches to an external disk?
15:42NecrosporusExternal disks do not work with M1 at all
15:42NecrosporusGlanzmann, the trick which is used to boot from external disk relies on copying kernel file from the disk to internal medium
15:44davidrysk[m]Glanzmann: I expect Apple to fix more of this with future versions
15:48GlanzmannI think I did something stupid. I installed m1n1.macho but instead of rebooting I ran sithglan@air macvdmtool % sudo ./macvdmtool reboot serial which worked, but now it says custom kernel fialed to boot. And I can't revert from the 1tr so probably I need to reinstall.
15:49mpssorry to ask here, but, on M1 pro with updated os to 11.2 in 1TR mode kmutil can't still add corellium linux.macho to boot. anyone have hint or solution
16:00tarik02[m] has quit [Quit: Idle for 30+ days]
16:00skillfulman23[m] has quit [Quit: Idle for 30+ days]
16:13marcanyeah, but upon failed boot it automaticallly goes into the associated recovery or something
16:13GlanzmannSO i power off the device, I power it on and keep it pressed, than I go tooptions ant than I run utilities > Terminal. Is this the wrong way?
16:23Glanzmannmarcan: Funny thing. I just reinstalled macos using 1tr. And guess what, it doesn't boot afterwards: https://ab34.de/u/IMG_20210212_172254291.jpg
16:25GlanzmannI try to get the mac mini to boot into m1n1. So the steps are: Build it, boot into 1tr, run the commands and reboot and it should show the asahi linux logo and wait for commands on serial?
16:33jamadazi has joined #asahi
16:58VinDuv has joined #asahi
17:04mpsmarcan: hmm, looks like holding Option key when power on is pressed and hold boot something different when not holding this key. but I don't know much about these things
17:18Glanzmann marcan: I just loaded my first kernel using m1n1: http://pbot.rmdir.de/07eNPK_buCTOSfP5dxgCQw
17:29marcananyway, that aside, it looks like your serial port isn't working. that's probably that stupid bug I fixed the other day.
17:30ephe_meral has quit [Ping timeout: 246 seconds]
17:31marcanif you get duplicated logs at the end you can get rid of the keep_bootcon; it means the normal console works
17:46GlanzmannBtw. is it possible to type using the serial console as of now? https://pbot.rmdir.de/oUED4DcEO9fAZk909Qn8IA
17:47marcanthe tty_mode() thing in proxy.py needs to be extended to do bidirectional forwarding, feel free to hack at it if you feel like it
17:51Tokamak has joined #asahi
17:55marcanI'm actually kind of surprised it does, given there's no real getty going on here (`can't access tty; job control turned off`)
17:57marcanyou can fix that by messing with spawning a getty or whatever, this is all standard linux on embedded system stuff
17:57marcanI never really intended for this initramfs to be used for anything but trivial tests so I didn't bother with that
18:02marcanmaz: I actually think I can implement the big.LITTLE penguins entirely in the generic fb logo code, since all that is plumbed into scheduler APIs these days, so you're safe from that patch :)
18:03zkrx has quit [Ping timeout: 265 seconds]
18:08zkrx has joined #asahi
18:08macc24 has quit [Ping timeout: 260 seconds]
18:09macc24 has joined #asahi
18:13Tokamak has quit [Ping timeout: 256 seconds]
18:15Tokamak has joined #asahi
18:27zkrx has quit [Ping timeout: 264 seconds]
18:34zkrx has joined #asahi
18:44PendulumSwinger has joined #asahi
18:55jholmarcan: it's so weird - I have 2x of those Wiistar devices, and no matter how I connect them, I can't get them to go beyond High Speed. The board is the exact same as in vxis-capture-fw-mod
18:55jholhowever, I have 2x like this: https://www.aliexpress.com/item/32953349845.html?spm=a2g0o.productlist.0.0.15227450C4gv40&algo_pvid=3499e19c-1533-4379-99ba-380234c422b3&algo_expid=3499e19c-1533-4379-99ba-380234c422b3-7&btsid=0b0a187916131560348782641eb928&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
18:57zkrx has quit [Ping timeout: 240 seconds]
18:58maximus64jhol: did you try to flip the USB-C cable? it only work in superspeed in one orientation
19:03maximus64I have some Wiistar capture card that look very similar but used the MacroSilicon chip that is only USB2.0 but look like you already open it up and check the board so that can't be it
19:03zkrx has joined #asahi
19:04mats has joined #asahi
19:04maximus64this is the one that used the MacroSilicon one: https://www.aliexpress.com/item/4001166117007.html
19:05jholyeah - so I don't know how serious you are about the vxis-capture-fw-mod project, but it's good to know that the device architecture is somewhat common
19:06mndza has quit [Ping timeout: 272 seconds]
19:07maximus64heh it still siting on my desk. I started to RE and try to write custom firmware for it. At the moment I only got serial port working :p
19:22maximus64for the Wiistar card that you got, does it respond to i2c_vs9989 tool? it should respond even if it in USB2 mode
19:37zkrx has quit [Quit: zkrx]
19:39zkrx has joined #asahi
20:15raster has quit [Quit: Gettin' stinky!]
20:47jamadazi has quit [Ping timeout: 265 seconds]
21:26VinDuv has quit [Quit: Leaving.]
21:33roxfan has quit [Remote host closed the connection]
21:38roxfan has joined #asahi
21:57acelogic has quit [Ping timeout: 272 seconds]
22:58raster has joined #asahi
23:01n1v has joined #asahi
23:04n1v is now known as niv
23:12qyousef1 has joined #asahi
23:14qyousef has quit [Ping timeout: 240 seconds]
23:36jamadazi has joined #asahi
23:42Bublik__ has joined #asahi
23:46Bublik__ has quit [Client Quit]
23:46Bublik has joined #asahi