ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
vagrantc has quit [Quit: leaving]
diego71_ has quit [Ping timeout: 480 seconds]
diego71 has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
ndufresne has quit [Quit: Ping timeout (120 seconds)]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
smaeul_ has joined #linux-sunxi
smaeul has quit [Ping timeout: 480 seconds]
ndufresne has joined #linux-sunxi
smaeul_ has quit []
smaeul has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<MasterR3C0RD> Finally got eMMC working; the original DTS has 1.8V modes set up but the vqmmc was wrong. Turns out it's using the same regulator (ALDO1) for VCC_PC and VCC_PL
<MasterR3C0RD> Has the side effect of making the LED on the ethernet port dim a bit, but I found that thing annoying anyways
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit []
hipboi has joined #linux-sunxi
hipboi has quit []
hipboi has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
apritzel has joined #linux-sunxi
KREYREN_oftc has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> parthiban, apritzel: I've updated allwinner-a100-v2 and allwinner-a100 with the latest patches; I added the fix for DVFS and the removal of CLK_NO_REPARENT from the MMC nodes
hipboi has joined #linux-sunxi
Jookia has joined #linux-sunxi
<Jookia> o/
hipboi has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> Found the boot0 for the "A133 Plus" device I was planning to pick up; as I thought it's just a bin above the A133
<MasterR3C0RD> Same compatible (sun50iw10p1), different OPP table
Schimsalabim has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> Has entries that go up to 2GHz with 1.25V
Schimsalabim has joined #linux-sunxi
junari has joined #linux-sunxi
junari has quit []
hipboi has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<MasterR3C0RD> Sent them a short email asking for BSP sources; we'll see if they start making excuses LOL
hipboi has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
hipboi has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
apritzel has joined #linux-sunxi
bauen1 has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
bauen1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
JohnDoe_71Rus has joined #linux-sunxi
hipboi has joined #linux-sunxi
bauen1 has joined #linux-sunxi
KREYREN_oftc has quit [Ping timeout: 480 seconds]
KREYREN_oftc has joined #linux-sunxi
KREYREN_oftc has quit [Ping timeout: 480 seconds]
hipboi has quit [Quit: hipboi]
parthiban has quit [Ping timeout: 480 seconds]
parthiban has joined #linux-sunxi
KREYREN_oftc has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
KREYREN_oftc has quit [Ping timeout: 480 seconds]
<parthiban> MasterR3C0RD: Took your v2 and tried testing the SD card. Card detection is ok, but when I try mounting the ext4, it just hangs. No response in the console.
warpme has quit []
<apritzel> parthiban: ah, good (or not, actually), but that's the same thing I see: better than with NOREPARENT, but still not working. I managed to mount a FAT partition successfully, but then "ls" hang
<parthiban> I have ext4 in my end
<parthiban> Also FAT mount fails as well.
Daanct12 has quit [Quit: WeeChat 4.4.3]
warpme has joined #linux-sunxi
<parthiban> "gpioset -c 1 205=1" I tried turning ON an LED. That hangs, which is strange.
<parthiban> I remember this was working when I was trying with 6.10 couple of months ago. Anyways, I may be missing something in end my end.
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
<MasterR3C0RD> apritzel: Shoot, I had thought I should remove the ack from Rob , but missed it when I was preparing the patches to send out . Do you think I should submit a V3 without his ack?
<apritzel> no, that's fine, in the worst case he might complain, but either wens will fix it, or he will give his ACK on the new patch
<apritzel> MasterR3C0RD: you can reply on the list, if you like
<MasterR3C0RD> Yes, I was planning to either way at the very least to apologize for the error
<apritzel> MasterR3C0RD: were those first emails some test? I got 1,2,4,9, about an hour before the series
<apritzel> I guess you forgot --suppress-cc=all ?
<MasterR3C0RD> apritzel: Yep, that's it, forgot to suppress
JohnDoe_71Rus has joined #linux-sunxi
warpme has quit []
<parthiban> MasterR3C0RD: USB works in peripheral mode?
dsimic is now known as Guest8055
dsimic has joined #linux-sunxi
<MasterR3C0RD> parthiban: I didn't get a chance to test it under Linux before submitting; I probably wouldn't be able to get it working since there's no VBus detect/ID detect on my device (it's a USB-A to A, after all)
Guest8055 has quit [Ping timeout: 480 seconds]
<apritzel> you can force this, with: dr_mode = "peripheral";
<MasterR3C0RD> apritzel: Yeah, that's how I got it working under U-Boot, but I'm not sure if that would work under the kernel, as every time I unplugged the cable I had to reset the USB controller
<parthiban> I did the changes in the dts and testing it. But it's not enumerated in the host side still.
<apritzel> MasterR3C0RD: well, it would be a hack, but maybe it's enough for testing? My tablet has a USB-C port, and working OTG detect (PH8), but I didn't try this yet
<apritzel> I am still missing the USB VBUS power switch, so host mode is not operational, because there is no 5V on the pins
<MasterR3C0RD> I was able to confirm host mode worked on USB0 and USB1 on my device, where USB0 didn't work under U-Boot
<apritzel> oh also, since you mentioned that the other day: forget about MUSB host mode, that's not used. The SoC has an extra EHCI/OHCI pair for port0, this gets muxed to the USB0 pins when enabled
<apritzel> the sun4i phy driver takes care of that
<MasterR3C0RD> Ah I see, there must be something else going on then since I could never get USB enumerating on port 0
<apritzel> typically that's missing VBUS power
<MasterR3C0RD> I'm quite certain VBUS is working; it took me a few hours to figure it out but it had been working for me
<MasterR3C0RD> Perhaps it was because I was mistaken about MUSB though, I'll take a look later
<MasterR3C0RD> parthiban: If you replace the MUSB A33 compatible with the H3 compatible, does OTG start working?
<apritzel> any tips on how I can become root easily on this tablet? I can write to the eMMC, but the only ext4 partition mounted directly has the nosuid flag set, the rest seems to be from some dm-x mount, so probably encrypted?
<parthiban> Am doing the network booting the RFS in my end
<apritzel> parthiban: with an USB-to-Ethernet adapter or using gadget mode?
<parthiban> usb to ethernet adapter.
<parthiban> emac isn't functional yet
<apritzel> that's what I used on the T527 as well, quite neat and useful
<MasterR3C0RD> apritzel: Hmm, do you have access to fastboot or recovery? You might be able to flash Magisk the old fashioned way
Jookia has left #linux-sunxi [#linux-sunxi]
<apritzel> well, I was hoping I could avoid to wade through those sketchy forums, downloading some TWRP binary from somewhere. Since I have write access to the eMMC, thanks to your DRAM code!
<MasterR3C0RD> Hmm, well if it's encrypted they could be using the SID or crypto engine, which I presume count as a secure peripheral you won't be able to gain access to
<MasterR3C0RD> Might be useful to download Termux to it in Android and see if you can dig around there
<apritzel> well, I have a shell on the serial, but it's some unprivileged user only, and I don't get very far
<apritzel> debugfs is root only, but maybe I find something useful in /sys
<MasterR3C0RD> What about mount, does that fail?
<MasterR3C0RD> As in enumerating mounts
<apritzel> mounting something from the Android shell? Need to be root for that. I can mount some partitions from mainline, but none of them honours the SUID bit, when mounted on the Android side
<MasterR3C0RD> I meant just running `mount` without parameters to list the current mountpoints
<apritzel> yes, did that, and it showed a bunch of dm mounts
<MasterR3C0RD> Apparently system is mounted nosuid for zygote subprocesses since Android 4.3, which would be the only place I'd think you'd be able to drop a binary
<apritzel> yes, that's what I figured yesterday :-(
<MasterR3C0RD> Also, I presume it's Android 10? You might be further blocked by dm-verity, so you wouldn't be able to get far in that regard either
<apritzel> yeah, it seems a bit nailed down, but I was hoping for some Allwinner root exploit, since it's some ancient 4.19.170 kernel
<MasterR3C0RD> Maybe you can try something like this? https://github.com/liamg/traitor
warpme has joined #linux-sunxi
<apritzel> ah, good one, thanks, will give it a try
<MasterR3C0RD> If that doesn't work, Magisk may be the simplest solution. It *is* open source, you just feed it the boot image and it'll do the dirty work of patching the boot image. Though then again, if they were smart and have it actively secured all the way down, you might not have much luck
<parthiban> MasterR3C0RD: with "allwinner,sun8i-h3-musb" same result
<MasterR3C0RD> Unrelated, but ordered the A133 Plus TrimUI Smart Pro. Should help with figuring out the next steps for setting up the higher OPP tables
<MasterR3C0RD> parthiban: Gah, there must be something weird going on then
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<MasterR3C0RD> Maybe something's going on with the pin configurations
<MasterR3C0RD> Wait, no, that doesn't make sense, those aren't GPIOs
<MasterR3C0RD> So USB OTG works but host doesn't under U-Boot, and host works but USB doesn't under Linux
wingrime1 has quit [Remote host closed the connection]
wingrime-ww has joined #linux-sunxi
warpme has quit []
<MasterR3C0RD> Probing around sysfs, MUSB seems to think it's not connected
<MasterR3C0RD> No signs of anything wrong in dmesg though, even at log_level 7
<apritzel> MasterR3C0RD: are you using dr_mode="otg"? I think that's somewhat broken in mainline in general
<apritzel> dr_mode="peripheral" should work, though
<MasterR3C0RD> No, it's dr_mode = "peripheral"
<MasterR3C0RD> By not connected, I do mean that there's no USB cable plugged in. I'll try disabling the ehci0/ohci0 just as a test and see if that changes anything
<MasterR3C0RD> That worked!
<MasterR3C0RD> [912599.975629] usb 1-2.3: New USB device found, idVendor=1b67, idProduct=400c, bcdDevice= 6.12
<MasterR3C0RD> (using parthiban's commands for simplicity)
bauen1 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
pi1 has joined #linux-sunxi
pi1 has left #linux-sunxi [#linux-sunxi]
pvl1 has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit []
<apritzel> mmh, I think that's the effect of the broken dynamic OTG code, but I thought forcing to peripheral in the DT would fix that?
warpme has joined #linux-sunxi
<apritzel> IIRC, it's basically both the MUSB and the HCI driver claiming the PHY, and as it is in the code, HCI always wins
<MasterR3C0RD> Apparently not in this case; ah well, it's not that bad to work around
<MasterR3C0RD> At least at this point in time
mripard has quit [Quit: WeeChat 4.4.2]
<apritzel> yes, this problem is independent from the A133 DT/driver bits
<apritzel> so if you get some USB peripheral to work, even with this hack, then your patches are correct
ungeskriptet is now known as Guest8075
ungeskriptet has joined #linux-sunxi
Guest8075 has quit [Ping timeout: 480 seconds]
jason123onirc has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
jason123onirc has joined #linux-sunxi
bauen1 has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
ity has quit [Quit: WeeChat 4.4.2]
warpme has quit []
<MasterR3C0RD> Would anyone know if Yangtao Li (one of the Allwinner cpufreq/thermal driver maintainers) is the same Yangtao/Frank Lee who (judging from the bounced emails) formerly worked for Allwinner and provided these patches?
digetx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
digetx has joined #linux-sunxi
ity has joined #linux-sunxi
apritzel has joined #linux-sunxi
KREYREN_oftc has joined #linux-sunxi
bauen1 has quit [Quit: leaving]
bauen1 has joined #linux-sunxi
<MasterR3C0RD> The COM in MCTL_COM stands for common... suddenly that name makes a lot more sense
<apritzel> MasterR3C0RD: ah yes, 1.8V eMMC is always nice to have ;-) though I guess an 8GB module is limited by the flash speed anyway
<MasterR3C0RD> apritzel: True, but I'm a bit of a nerd for trying to pick up any tiny bits of performance that's left on the table, even if it comes with side effects
<apritzel> which side effects? it's very common these days to drive portC to 1.8V, for eMMC
<apritzel> does anyone speak "Android root/Magisk"? Is "boot.img" simply an image of some boot partition? Probably the one containing the Android boot image, so kernel&initrd packaged up?
<MasterR3C0RD> apritzel: The ethernet LED gets a lot darker, which might mean thr Ethernet PHY is getting underpowered
<MasterR3C0RD> And yes, boot.img is just a boot partition image
<MasterR3C0RD> Android bootimg