#
…

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:02Glanzmannkettenis: Nice.
07:03GlanzmannIs it already possible to to m1n1 > uboot > kernel > initramfs?
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:17arndkettenis: does it already work with framebuffer and keyboard instead of the uart cable?
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:28j`eythey said they had keyboard working via usb
10:29arndah nice, I'm starting to run out of excuses for not trying it on my hardware now
10:30bakk[m] has joined #asahi
10:31arndkettenis: have you managed to boot with "earlycon=efifb console=efifb"?
10:32arndnot sure how efifb interacts with simplefb when both are built into the kernel
10:33Glanzmannmy serial port just arrived, now I have to search for a usb c cable.
10:34bastilianGood Luck! :D
10:35bastilianThe keyword is "SuperSpeed" USB-C cables apparently.
10:36mazGlanzmann: is that an off-the-shelf serial port, or something built for you?
10:37kettenisarnd: not tried booting a Linux kernel yet; only OpenBSD
10:37Hakonwait openbsd on M1?
10:37bastilianWith m1n1?
10:38bastilianor the corellium preloader?
10:38arndkettenis: ok, makes sense
10:38kettenisstill with the corellium preloader
10:38kettenisbut EFI GOP is there so it should work with Linux as well
10:39kettenisand I have USB support as well so a USB keyboard works
10:39jixmaz: IIRC Glanzmann mentioned buying another m1 mac as serial port
10:40mazjix: ah! a bit over the top for me! :D
10:40kettenisOpenBSD doesn't actually run yet since we don't have working interrupts yet
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:44arndmaz: ardb suggested that efifb earlycon should work as well
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:49arndI'm still trying to figure out if there is some way to pretend to be a keyboard remotely
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:50kettenisso I can't really upstream things very well until we have "official" bindings
10:51kettenisbut I'll adjust things as those come along
10:55jhol has joined #asahi
10:56jholmarcan: just watching the Chicken Bits stream (- great stuff by the way!)
10:56jholbut you were talking about a PCIe mapping overhaul
10:56jholif you are making this change, does it have any bearing on this errata?: https://linux-sunxi.org/H6#Errata
10:57jhol- I guess this is about PCIe access, rather than the method of mapping?
10:57marcanI'm not sure what context you're referring to, but that errata seems unrelated
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:06Glanzmannjix: correct.
11:06jamadazi has joined #asahi
11:06jholarnd: oh interesting!
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:07arndearly ixp4xx have the almost the same exact problem as H6
11:07mndza has joined #asahi
11:12jholGlanzmann: now that is a cool project!
11:15mazGlanzmann: darn.
11:16marcanah I remember that
11:16marcangood source of info for HDMI capture too :)
11:19marcanwe have firmware for those to turn off a lot of the hideous video processing
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:19marcanit's what I use for my streams and for the M1 Mini
11:19marcan(maximus64 was working on that)
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:31marcanask maximus64 for the firmware hack
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:31marcanwith that you get pretty close to 1:1, modulo some banding
11:33marcanI think maximus64 improved the green? but either way, at one iteration it's not terrible
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:34jholi.e. straight HDMI capture
11:35jholand poking settings and having guvcview randomly lock up is no fun at all
11:35amw has joined #asahi
11:35marcanyeah, the good thing about these is they are *cheap* for what they can do
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:36jholwell there's a big gap between bit-perfect and shot-to-hell
11:36jholso far it's been too much of the latter
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:37marcanbut all the gamer stuff is just variations on this theme
11:38marcane.g. I think the avermedia ones are just an HDMI-CSI bridge in front of a USB3 camera chip
11:38jholBlackMagic used to do it with an FPGA
11:38jholbut they had disasterous kernel drivers
11:38marcanthat's the other issue, these days you want UVC...
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:39marcanI actually used to run the "PCIe" firmware on my USB one
11:39marcanworked fine
11:39jholhah! - beautiful
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:46jhola proper open SDK, or open firmware around these devices when they vanish so quickly
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:24svenin <15 minutes :P
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:56marcanI have one of those actually, haven't really messed with it yet though
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:04mazmarcan: plus, I can't see penguins over a serial console (please, don't... ;-)
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
13:47marcannot those, but I remember people doing SDR with the *audio* ADC on bt878 cards...
13:47marcanI had one of those
13:47marcanthat thing could do almost 900kSPS, for some reason
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:42GlanzmannI see, I thought so.
15:42GlanzmannBecause marcan said, it will never work without a firmware update from apple.
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
15:49Glanzmannmps, if you want I can talk you through it.
15:49Glanzmannbut we have to switch channels, otherwise marcan will kickban me.
15:50GlanzmannLets move to asahi-offtopic
15:50mpsthat's what I had fear of
16:00tarik02[m] has quit [Quit: Idle for 30+ days]
16:00skillfulman23[m] has quit [Quit: Idle for 30+ days]
16:11marcanGlanzmann: you did not boot into 1tr
16:11marcanyou booted into recovery
16:11marcanit looks like 1TR but isn't 1TR
16:11marcanyou need to actually go into 1TR properly with the button
16:11marcanyou cannot use kmutil from normal recovery
16:13GlanzmannStrange, I always did it that way.
16:13marcanyeah, but upon failed boot it automaticallly goes into the associated recovery or something
16:13marcanI've had that happen before
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:13marcanshut down normally, then boot again
16:13GlanzmannDamn it, thank you, But I already reinstalling.
16:14Glanzmann22 minutes remaining.
16:14marcanif kmutil says something about "AP mode" you aren't in 1TR
16:14GlanzmannThank you.
16:17mpsdoes the 'Alt' key to be pressed when power on is pressed
16:17mpsI mean, to enter in 1TR
16:17GlanzmannI at least never did it that way.
16:18GlanzmannI power it off, turn it on and keep the power button pressed until I see the options.
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:28svenyeah, that's why I did on my Mac mini and it worked
16:29GlanzmannPerfect. Now it works. This time I typed in 'reboot' instead of using macvdmutil.
16:30GlanzmannNow, I have to try to boot a kernel.
16:33jamadazi has joined #asahi
16:40mpsGlanzmann: it boots from usb
16:55marcaniBoot only understands holding down the power button
16:55marcanthere is no looking at keyboard keys
16:56GlanzmannYou mentioned that once, I remember. It doesn't have a keyboard driver.
16:58VinDuv has joined #asahi
17:00Glanzmannmarcan: Could you please upload me your initrd? browser https://ab34.de/u/
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:05marcanmps: yes, *when you are already holding the power button*
17:05Glanzmannmarcan: Thank you.
17:05marcanthat's 1TR doing things in the boot picker
17:06marcanif you do not hold down the power button, the keyboard does nothing
17:08mpsnice thing is I got alpine linux boot on M1
17:08jn__yay, alpine
17:09mpsand simply copied my current rootfs from acer R13 chromebook
17:18Glanzmann marcan: I just loaded my first kernel using m1n1: http://pbot.rmdir.de/07eNPK_buCTOSfP5dxgCQw
17:18GlanzmannI used python3 of macports which worked fine.
17:19Glanzmannpython39 that is and py-pip39 and installed the missing python modules.
17:25marcanGlanzmann: cool!
17:26marcanwait, 1413867 initramfs bytes?
17:26marcanahahaha sorry
17:26marcanthat is the wrong initramfs
17:27marcanthat was.... a PS4 initramfs.
17:27svenlol :D
17:27marcanGlanzmann: re-download from the same URL
17:28Glanzmanndone. Booting now.
17:28Glanzmannmarcan: That explains it.
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:29marcanwhich kernel branch is this? main?
17:29GlanzmannSame output as befoer.
17:29GlanzmannYes, this is main.
17:30GlanzmannBut wait. I build it many days ago. Rebuilding now
17:30marcantry upstream-bringup-v2-wip
17:30ephe_meral has quit [Ping timeout: 246 seconds]
17:30marcanand use apple-j274.dtb from the kernel build tree, not m1n1
17:30marcanthere's some mismatch right now for that branch
17:30GlanzmannWill do so.
17:30marcanalso, use -b 'earlycon console=ttySAC0,1500000 console=tty0 debug keep_bootcon'
17:31marcanif you get duplicated logs at the end you can get rid of the keep_bootcon; it means the normal console works
17:31marcanbut until that point it helps debug
17:32GlanzmannOkay, will do so.
17:32GlanzmannCompiling now.
17:40Glanzmannhave to check the initramfs.
17:40marcanthat's still the old initramfs
17:41GlanzmannYes, just noted that. Pull it in again check
17:41marcanthe file is updated at the URL, I checked
17:42marcanyou can get rid of keep_bootcon, obviously serial works
17:44GlanzmannYes, it works. Rebooting now. I already saw the ash prompt.
17:46GlanzmannBtw. is it possible to type using the serial console as of now? https://pbot.rmdir.de/oUED4DcEO9fAZk909Qn8IA
17:46marcanyes, but you need to quite linux.py and use some normal terminal emulator
17:46marcanlike picocom or something
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:47jannaumarcan: did you miss this
17:47marcanoh I missed that, lol
17:47marcan15 hours ago, cut me some slack :)
17:47marcanhaven't cleared my inbox today yet!
17:48jannauno problem
17:50Glanzmannpulled, works. thank you.
17:51Glanzmannis there a magic to kill linux.py
17:51Tokamak has joined #asahi
17:51marcanit tells you
17:52marcanprint('--- TTY mode | Quit: CTRL+] | Menu: CTRL+T ---')
17:52GlanzmannOkay, okay.
17:54Glanzmannctrl-c works in the serial console. :-)
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:56GlanzmannOkay, maybe it does not and it is just forwarded or grepped, testing now.
17:56marcanlike if you run `cat` I would expect ^D to work but not ^C
17:56GlanzmannYes, just tried that. And ctrl-c does not work.
17:56GlanzmannCtrl-d does.
17:57marcanas expected then
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
17:57GlanzmannYep, got it. :-)
17:59marcanoff to sleep; v2 will be out tomorrow evening :)
18:00Glanzmannhave good night sleep, till tomorrow.
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:22mazmarcan: do the scaling according the the dmips-capacity! :D
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:56jholthese do come up in SuperSpeed, and they respond to the incantations with ./i2c_vs9989
18:56jholso it's not perfect quality - but still far better than I've ever had from them before
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
18:58jhol yup - both directions!
18:59jholvery peculiar
19:00maximus64hmm that is weird. maybe it not USB-C 3.0 cable ?
19:01jholyeah - I tried two cables, and multiple ports
19:01jholcould be bad luck - stranger things have been known to happen
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:10jholit would be cool if the config wasn't supid in the default state, certainly
19:10maximus64ah I have a patched Firmware that fix that. I can share it if you interested
19:11jholoh yes - that would be great!
19:15maximus64check your PM :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
…