ftg has quit [Read error: Connection reset by peer]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
<Soupborsh>
apritzel: Thank you but unfortunately I get 'usb_bulk_send() ERROR -7: Operation timed out' after executing it with spl and in UART it outputs this: https://pastebin.com/raw/QCZqX75s
<fraolt>
anarsoul, apritzel: It's been a while with the tcon0 change on A64 and I'm really confused why it breaks things *now* on pinebook.
<fraolt>
IIRC, some time ago Shane on Conduit.rs ⚡️ and Fractal 🦀️ has reported that vanilla kernel works on Teres-I. That was after 6.5 (where the referenced patch landed).
<anarsoul>
I can also push it to my github repo if you prefer to grab it this way
<fraolt>
anarsoul: lore is fine, thanks!
wingrime1 has quit []
wingrime-ww has joined #linux-sunxi
gsz has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Ping timeout: 480 seconds]
kepstin has quit [Remote host closed the connection]
kepstin has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel>
Soupborsh: I am getting confused as to what happens exactly, can you please confirm:
<apritzel>
you can enter FEL mode via button presses upon the device starting, and then you can do your UART tricks
<apritzel>
and when you upload the original boot0, via "sunxi-fel spl ....", you get all the DRAM init output, but then it hangs somewhere and does not return to FEL
<apritzel>
but you don't get any output about DRAM init when you upload my patched version?
<Soupborsh>
It seems to jump to FEL but it succeed sometimes.
<Soupborsh>
If I get "sunxi-fel: fel_lib.c:158: aw_read_usb_response: Assertion `strcmp(buf, "AWUS") == 0' failed.
<Soupborsh>
fish: Job 1, 'sudo ./sunxi-fel readl 0x1C20508' terminated by signal SIGABRT (Abort)"
<Soupborsh>
When trying to readl or writel after spl boot0, it wont enter FEL mode.
<Soupborsh>
If I get "usb_bulk_send() ERROR -7: Operation timed out" after some time it is in DRAM initalized FEL mode.
<Soupborsh>
Also boot0 source in BSP u-boot works
<Soupborsh>
I will update in in my fork now
<Soupborsh>
I can boot extracted or built BSP U-Boot when I am lucky and get to FEL with initialized dram.
<Soupborsh>
To boot built BSP U-Boot I have to "dd if=u-boot.img of=u-boot-dtb.bin bs=1 skip=2048" to remove header IG.
<Soupborsh>
Same with exctracted U-Boot, however it does not have appended device tree.
<apritzel>
to be clear: those libusb errors you get (usb_bulk_send() ERROR) from sunxi-fel mean you are *not* in FEL mode anymore
<apritzel>
with the SPL command, sunxi-fel uses the FEL mode to upload the code, then does some memory copying to preserve the BootROM's FEL stack, then executes the uploaded code
<apritzel>
then sunxi-fel waits till that code returns
<apritzel>
if that code doesn't, because for instance it never intended to (normal boot0 code), you get those libusb errors
<apritzel>
those are basically timeouts: sunxi-fel waits for some time, and if it cannot communicate via FEL after that time again, it gives up
<apritzel>
and btw: there is no UART_VALUE_TX_MODE bit, this seems snake oil, you can just remove it. The UART hardware knows whether you are reading or writing, so doesn't need an extra bit
<apritzel>
also: your simple C runtime example papers over two things any C runtime needs to do: set up the stack and clear BSS
<apritzel>
for the stack you just keep using the BootROM FEL stack, and since you don't use any static variables, your simple code doesn't have any BSS, so you are fine
<apritzel>
also you completely skip the UART pinmux and clock setup, which just works because boot0 did that already
<apritzel>
for the full story refer to uart0-helloworld-sdboot.c in the sunxi-tools sources
gsz has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
dsimic is now known as Guest3160
dsimic has joined #linux-sunxi
Guest3160 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gsz has joined #linux-sunxi
gsz has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
digetx is now known as Guest3170
digetx has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest3170 has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
ftg has joined #linux-sunxi
gnarface has quit [Ping timeout: 480 seconds]
freemangordon has quit [Remote host closed the connection]
freemangordon has joined #linux-sunxi
gnarface has joined #linux-sunxi
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
<BroderTuck>
Well, after all this time, I managed to solve a mystery. Seems my dts tweak to activate the wifi chip on my H3 box worked after all, it was just a small error in my wpa_supplicant command that kept it from working fully
<BroderTuck>
This section: ®_usb2_vbus { gpio = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7, for the rtl8723as chip */ status = "okay"; }; and in &usbphy { this line: usb2_vbus-supply = <®_usb2_vbus>;
<BroderTuck>
Otherwise my dts is more or less a straight copy of the OrangePi PC dts
warpme has joined #linux-sunxi
<hlauer>
<apritzel> "hlix: lit by the kernel, or by U..." <- the LED is also on the V1.0 board - I saw it never lit while using mainline kernel. And the cause for the PH23 reset seems to be hidden in the axp221s difference of register 0x30 (seen at my pastebin). So ATM it look like powering through micro USB is limited to 900mA, which seems not enough to enable USB-A power
<BroderTuck>
Bah, too long since I messed with this last. In the u-boot dts I apparently did it another way, and specified the PL7 gpio as a led instead.
<hlauer>
Tried powering through the barrel plug but have to experiment more, as I got inconclusive results. i2c dev 0; i2c mw 34 30 63 if anybody has a m2ultra V1.1 and likes to experiment. Additionally mmc2 needs still to be disabled in DT
gsz has quit [Ping timeout: 480 seconds]
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gsz has joined #linux-sunxi
tokyovigilante_ has quit [Ping timeout: 480 seconds]
warpme has joined #linux-sunxi
warpme has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]