ftg has quit [Read error: Connection reset by peer]
chuangzhu has quit [Server closed connection]
chuangzhu has joined #linux-sunxi
jernej has quit [Server closed connection]
jernej has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]
NekoMay has quit [Server closed connection]
NekoMay has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
smaeul has quit [Server closed connection]
smaeul has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Ping timeout: 480 seconds]
pmp-p is now known as Guest315
pmp-p has joined #linux-sunxi
Guest315 has quit [Ping timeout: 482 seconds]
palmer has quit [Server closed connection]
palmer has joined #linux-sunxi
lvrp16 has quit [Server closed connection]
lvrp16 has joined #linux-sunxi
diveben___ has quit [Server closed connection]
diveben___ has joined #linux-sunxi
Asara has quit [Server closed connection]
Asara has joined #linux-sunxi
pmp-p is now known as Guest323
pmp-p has joined #linux-sunxi
NishanthMenon has quit [Server closed connection]
NishanthMenon has joined #linux-sunxi
Guest323 has quit [Ping timeout: 480 seconds]
pmp-p is now known as Guest325
pmp-p has joined #linux-sunxi
Guest325 has quit [Ping timeout: 480 seconds]
benettig has quit [Server closed connection]
benettig has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
qwestion has quit [Server closed connection]
pmp-p is now known as Guest331
pmp-p has joined #linux-sunxi
Guest331 has quit [Ping timeout: 480 seconds]
Nemo_bis has quit [Server closed connection]
Nemo_bis has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
pnill has quit [Server closed connection]
pnill has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
igraltist has quit [Server closed connection]
igraltist has joined #linux-sunxi
gnarface has quit [Ping timeout: 480 seconds]
dliviu has quit [Server closed connection]
dliviu has joined #linux-sunxi
gnarface has joined #linux-sunxi
anarsoul has quit [Server closed connection]
anarsoul has joined #linux-sunxi
chuang[m] has quit [Server closed connection]
chuang[m] has joined #linux-sunxi
arnd has quit [Server closed connection]
arnd has joined #linux-sunxi
junari has joined #linux-sunxi
<junari>
Hi all. Now I'm back to running the spl on the T507 (sun50iw9). I can successfully download the helloworld program: sunxi-fel -v spl uart0-helloworld-sdboot.sunxi. But when loading the spl (sunxi-fel -v spl spl/sunxi-spl.bin), I get an error: usb_bulk_send() ERROR -7: Operation timed out. What could be the problem?
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]
<junari>
I have loaded the spl on a tvbox with H16 and everything is successful there
Daanct12 has joined #linux-sunxi
ftg has joined #linux-sunxi
Guest67 is now known as ynezz
vagrantc has joined #linux-sunxi
apritzel has joined #linux-sunxi
Daaanct12 has joined #linux-sunxi
<apritzel>
junari: do you see serial output from the board when loading the SPL?
<junari>
apritzel: nope, only when loading helloworld
<apritzel>
and that's the SPL as built for OPiZero0 or the X96 Mate?
<apritzel>
OpiZero2
<junari>
apritzel: x96 mate, yes
<junari>
or Orangepi Zero2, does not matter. This spl working on H616 tv box
<junari>
I have tried different configurations
<apritzel>
which compiler version do you use? There is some bug with recent GCCs in the H616 DRAM code
<apritzel>
but anyway you should see the SPL banner first ...
<junari>
gcc (GCC) 12.2.0
<MoeIcenowy>
junari: did you check UART output?
<junari>
Yes, with tv box I got this (U-Boot SPL 2023.01-rc2-00072-g27c415ae8b (Nov 25 2022 - 18:06:13 +0600) DRAM:This DRAM setup is currently not supported.). Its LPDDR3, I think.
<MoeIcenowy>
how about T507?
<apritzel>
MoeIcenowy: serial works with uart0-helloworld
<junari>
MoeIcenowy: UART should work, because helloworld work, and I get (Hello from Allwinner H616!Returning back to FEL.)
<apritzel>
junari: yes, I heard about LPDDR3 being used on some (cheaper?) TV boxes, we will need to add support at some point
<apritzel>
junari: do you know if your T507 board uses LPDDR3 or DDR3?
<junari>
apritzel: T507 use LPDDR4. My tvbox is most cheaper, that I can found. It Transpeed H40. I can try add support for it DRAM, but later
<apritzel>
junari: sure, just wanted to check
<apritzel>
and LPDDR4 will be a bigger hurdle anyways ...
<junari>
As I understand it, at this stage the RAM type should not matter
<apritzel>
yes, it's quite odd to see helloworld output, but no SPL banner
<apritzel>
and at this stage the T507 should really behave like a H616
<junari>
It feels like he is not trying to run the SPL at all, or breaks down at the initial stage
<apritzel>
unless there is some difference in one of the base clocks (AHB/APB), but I doubt that
<apritzel>
junari: it could be an SRAM issue: the H616 SPL is 40K, and helloworld is just 8K
<apritzel>
let me check the manual ...
<junari>
SRAM region same with H616, as I remember
<junari>
And vendor boot0_sdcard.fex is 64K
<apritzel>
it could be that something goes wrong with the swap_buffer operation in sunxi-fel, as the T507 BROM is slightly different
<apritzel>
so our clever uploading scheme overwrites either the BROM stack or some other vital memory region
junari_ has joined #linux-sunxi
<apritzel>
junari: you could try to p[ay around with the values in soc_info.c
<apritzel>
junari: or try to artificially enlarge the helloworld build, to check if there is some size when it starts to break
junari is now known as Guest355
junari_ is now known as junari
<junari>
But in this case, when writing spl to the memory card, I would get the output of messages on uart or not?
Guest355 has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
Daaanct12 has quit [Remote host closed the connection]
enick_338 has quit []
enick_338 has joined #linux-sunxi
DasChaos has joined #linux-sunxi
DasChaos is now known as Guest356
<apritzel>
loading from SD card should be different, yes, so this would be a good (and easy) experiment
enick_338 has quit []
enick_338 has joined #linux-sunxi
enick_338 is now known as DasChaos
<DasChaos>
Hey people,
<DasChaos>
I saw some of you are already tinkering with T113. What board are you using?
<apritzel>
DasChaos: most people are on the MangoPi MQ-R
<DasChaos>
Thanks for the quick answer :)
freemangordon has quit [Server closed connection]
freemangordon has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
indy has quit [Server closed connection]
<MoeIcenowy>
apritzel: oh T507 BROM is different?
<apritzel>
MoeIcenowy: I don't know, but it would explain why there is no output
indy has joined #linux-sunxi
ynezz has quit [Server closed connection]
ynezz has joined #linux-sunxi
ynezz is now known as Guest361
<junari>
apritzel: How to properly increase the size of uart0-helloworld? I declare an array of 20KB, like this - char arr[20480] = {'a'}; - The final size becomes 24576. With 21KB - char arr[21504] = {'a'}; - The final size becomes 24576 too, but board doesn't load
<MoeIcenowy>
apritzel: I don't think there could be different BROM
Daanct12 has quit [Quit: Quitting]
grming has joined #linux-sunxi
cmeerw[m] has quit [Server closed connection]
cmeerw[m] has joined #linux-sunxi
JohnDoe_71Rus has quit []
<apritzel>
junari: so does it load with 20KB? mksunxiboot does some padding (with 0s), and aligns the total size to a multiple of 8KB (purely for NAND, that would not be needed for SD card, SPI or FEL)
<apritzel>
junari: you could hack mksunxiboot to do only 512B alignment (the actual BROM requirement), if that helps you
<apritzel>
(actually mksunxiboot is deprecated, we should switch to mkimage in the sunxi-tools Makefile ...)
junari_ has joined #linux-sunxi
<apritzel>
junari: so many thanks for this experiment, that means it works with 20KB, but fails with 21KB? Need to verify this on a H616 tonight
junari has quit [Ping timeout: 480 seconds]
<apritzel>
as MoeIcenowy has a point: if the T507 is the same die as the H616, but just in a different package, it should share the same BROM bits
JohnDoe_71Rus has joined #linux-sunxi
junari_ is now known as junari
<junari>
apritzel: Reducing the block size did not give a result
<MoeIcenowy>
apritzel: maybe we can check the SP values retrieved when running `sunxi-fel spl -v` ?
<apritzel>
yeah, I need to recheck all the values we use for the H616
<junari>
H616 with 21KB fails too
<junari>
It's me should be saying thank you all for your help
hentai has quit [Server closed connection]
hentai has joined #linux-sunxi
vagrantc has joined #linux-sunxi
<MoeIcenowy>
BTW I just bought a Orange Pi Zero 02
<MoeIcenowy>
Zero 2 *
Guest356 has quit []
fcas has joined #linux-sunxi
NegaoDaPiroca has joined #linux-sunxi
NegaoDaPiroca has left #linux-sunxi [#linux-sunxi]
junari has quit [Ping timeout: 480 seconds]
upnix has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
Daanct12 has joined #linux-sunxi
Danct12 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
fcas has quit []
Daaanct12 has joined #linux-sunxi
Daanct12 has quit [Ping timeout: 480 seconds]
Daaanct12 has quit [Ping timeout: 480 seconds]
rellla has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
Danct12 has joined #linux-sunxi
rellla has joined #linux-sunxi
JohnDoe_71Rus has quit []
Danct12 has quit [Ping timeout: 480 seconds]
<upnix>
Hello - I have a device very similar to the T95H (H616-T95MAX-AXP313A-v3.0), and I'd like to get access to uboot on it. I've got a serial console going, and on boot, I get the output shown here: https://gist.github.com/upnix/94d20bd6e78e6f680dded225db006fbc
<upnix>
Despite teasing me with "Hit any key to stop autoboot: 0", I cannot do anything to interrupt the boot sequence. In fact, there's no indication the console is seeing my keystrokes (although my USB2UART adapter does blink the 'TX' light when I hit keys).
<upnix>
The little clicky "UBOOT" button on the board will prevent any console output when pressed before the board is plugged in. When pressed after the board has been plugged in no change in the boot procedure is seen.
<upnix>
I've written what I believe is the correct Android 10 firmware to a micro SD card (using dd if=... of=...), and tried various combinations of powering on the board while pressing the UBOOT button, including with the SD card in a USB adapter and plugged into a USB port. Again, no indication from the console that it notices anything is happening.
<upnix>
So now, I'm starting to wade into BROM (https://linux-sunxi.org/BROM) and hoping there's a way I can convince this board to boot from any SD card. It's at this point I figured I should try reaching out for help.
<upnix>
Can anyone point me in the right direction on this? Should there be a way to get this board to boot from a micro SD card? Are there secret connectors somewhere I can short? UBOOT button combinations to press?
apritzel has joined #linux-sunxi
<apritzel>
upnix: first: almost every Allwinner board can be booted from the SD card
<apritzel>
the "U-Boot" button has nothing to do with U-Boot, it just enters FEL mode, which allows to program the box using a USB-(OTG) cable
<apritzel>
for TV boxes with means you need a non-standard USB-A to USB-A cable
<apritzel>
and you need to press it while resetting or powering on the box
<apritzel>
upnix: but anyway, I believe the T95H has DDR3 DRAM, so you should be able to use mainline firmware and DT for the X96 Mate box (for basic functionality)
<apritzel>
upnix: as for the serial console: some of those TV boxes tend to drop a FET and resistor for the some UART pins, so you may be able to see output, but not be able to talk to the box
<apritzel>
I heard similar things from another H616 box lately
<apritzel>
upnix: try to build U-Boot for the X96 Mate board, and dd the u-boot-sunxi-with-spl.bin file to sector 16 of an SD card (dd bs=8k seek=1 ...)
<apritzel>
(sector 16 aka. 8KB is where the BROM looks for the magic "eGON" header, to load that into SRAM and start)
Danct12 has joined #linux-sunxi
paulk has joined #linux-sunxi
evgeny_boger1 has quit [Ping timeout: 480 seconds]