#asahi · 2022-10-15 14:07
marcanyou can also read 1852 after every test and see if it's still 1#asahi · 2022-10-15 14:07
marcanand then I guess both combinations again but having set 1849 to 1#asahi · 2022-10-15 14:06
marcanif that doesn't work, try output again but writing 1#asahi · 2022-10-15 14:06
marcantry resetting it (0 on 1851), 1850 to input, then unreset (1 on 1851)#asahi · 2022-10-15 14:06
boriskwrite 1 to both see what happens?#asahi · 2022-10-15 14:04
borisk(I've written 1 back to 1851 and got the hub back, BTW)#asahi · 2022-10-15 14:04
borisk1849: out/0#asahi · 2022-10-15 14:03
borisk1850: out/0#asahi · 2022-10-15 14:02
boriskyes, writing 0 to 1851 I get "USB disconnected"#asahi · 2022-10-15 14:01
marcanand 1849 for good measure#asahi · 2022-10-15 14:01
marcantry exporting 1850, should be out, see what value it has#asahi · 2022-10-15 14:00
marcanthat would probably kill the hub#asahi · 2022-10-15 14:00
boriskmaybe set 1851 back to 0?#asahi · 2022-10-15 13:59
marcanwell, I don't have any good ideas now, I looked through the ADT and I can't see anything that looks like a power control GPIO...#asahi · 2022-10-15 13:59
marcanthat looks right...#asahi · 2022-10-15 13:58
boriskdirection in, value 1#asahi · 2022-10-15 13:57
marcancan you export 1852 (it should be direction=in) and check the value?#asahi · 2022-10-15 13:54
boriskyes, I think the "no power" theory could be correct: when I plug into these ports, the led on the device does not come on (I've tried two different)#asahi · 2022-10-15 13:54
marcanhm, wait#asahi · 2022-10-15 13:53
marcanor maybe something else turns power on to the ports?#asahi · 2022-10-15 13:53
marcanunless it failed to load the firmware due to some other GPIO being wrong?#asahi · 2022-10-15 13:52
marcanokay, that's weird now...#asahi · 2022-10-15 13:52
boriskmarcan: but the ports are still dead, both front and back#asahi · 2022-10-15 13:51
Tramtristthat was incredibly rewarding to watch live#asahi · 2022-10-15 13:49
marcanputs it on the list for m1n1#asahi · 2022-10-15 13:49
marcanyour USB ports should work now#asahi · 2022-10-15 13:49
marcanthere you go :)#asahi · 2022-10-15 13:49
boriskyes, doing that I get a bunch of kernel messages about new USB3.1 Hub (Manufacturer: GenesysLogic)#asahi · 2022-10-15 13:47
marcantry echo 1 > value#asahi · 2022-10-15 13:45
boriskvalue: 0#asahi · 2022-10-15 13:45
boriskdirection: out#asahi · 2022-10-15 13:43
boriskyes, cold boot helps, trying gpio stuff now#asahi · 2022-10-15 13:42
marcan(and I don't know how to reset it to fix that)#asahi · 2022-10-15 13:42
marcanbooting without the firmware update tends to wedge the controller#asahi · 2022-10-15 13:41
marcanhard shut down and reboot#asahi · 2022-10-15 13:40
borisk(that's before messing with gpio)#asahi · 2022-10-15 13:40
boriskuh, strange, now I am getting "Firmware version is too old after upload"#asahi · 2022-10-15 13:35
marcanthe host controller will bork badly without firmware, even if linux doesn't think it's dead enough to warrant not showing the usb bus#asahi · 2022-10-15 13:35
boriskjannau: the lsusb output is the same with and without asmedia firmware loaded#asahi · 2022-10-15 13:34
boriskok, sec, let me re-enable the firmware loading#asahi · 2022-10-15 13:33
marcanthen check the direction and value attributes in gpio1851#asahi · 2022-10-15 13:33
marcanecho 1851 > export#asahi · 2022-10-15 13:32
borisk1620#asahi · 2022-10-15 13:32
marcanright, what gpiochip is it?#asahi · 2022-10-15 13:32
boriskyes, I have this symlink#asahi · 2022-10-15 13:31
marcanls -al /sys/class/gpio | grep 39b028000#asahi · 2022-10-15 13:30
boriskmarcan: yes, I do#asahi · 2022-10-15 13:29
marcan(this is a deprecated API but it's convenient)#asahi · 2022-10-15 13:29
marcando you have /sys/class/gpio/export?#asahi · 2022-10-15 13:29
marcanactually if you're on linux, it's probably easiest to poke around the sysfs interface if you have it