Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
wens has quit [Read error: Connection reset by peer]
wens has joined #linux-sunxi
Daaanct12 has joined #linux-sunxi
Daanct12 has quit [Read error: Connection reset by peer]
Daaanct12 is now known as Daanct12
JohnDoe_71Rus has joined #linux-sunxi
hlauer has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Remote host closed the connection]
cnxsoft has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
paulk has joined #linux-sunxi
Asara_ has joined #linux-sunxi
Asara has quit [Read error: Connection reset by peer]
apritzel has joined #linux-sunxi
bauen1_ has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Quit: Leaving]
bauen1 has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
<LordKalma>
do you prefer buildroot or yocto? or buildgear?
bauen1 has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
bauen1 has joined #linux-sunxi
rajkosto has joined #linux-sunxi
rajkosto has quit [Read error: Connection reset by peer]
Asara_ is now known as Asara
JohnDoe_71Rus has quit []
sunshavi has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
bauen1 has joined #linux-sunxi
paulk has quit [Ping timeout: 480 seconds]
<szemzoa>
I have an 'almost' working dram init c source for T113-S3, based on sun20i-d1-spl code, but with modifications (I have to look what was needed and what is unnecessary), but the DRAMC_get_dram_size() calcs 32MB RAM instead of 128MB :). Anybody with a better knowledge has an idea what can be wrong? Here is the original boot0 and my log: https://pastebin.com/0eia0tgA
paulk has joined #linux-sunxi
<MoeIcenowy>
szemzoa: 2KB page size is quite small...
<MoeIcenowy>
is the scanning of page size wrong?
<MoeIcenowy>
or is the page size macros wrong? ;-)
<MoeIcenowy>
oh the orig log is also 2KB
<MoeIcenowy>
then your result is just right
<MoeIcenowy>
maybe your formula of calculating the size missed something?
hlauer has quit [Ping timeout: 480 seconds]
<LordKalma>
We managed to narrow down the problem with the timings/clock in our device down to something that happened between 5.8.18 vs 5.9.0
<LordKalma>
so something introduced in 5.9 changed the way the clock/timings work
<bauen1>
LordKalma: so git-bisect is working, or did you manually test versions ?
ftg has quit [Ping timeout: 480 seconds]
<LordKalma>
a member has a 24c machine
<LordKalma>
he just tested versions
<LordKalma>
So 5.9 changed the CPU governor
<LordKalma>
and that's the "bug"
<LordKalma>
anything other than the performance governor breaks the system
<LordKalma>
I suspect timer driver
apritzel has quit [Ping timeout: 480 seconds]
machinehum has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel>
LordKalma: so running 5.15 with the performance governor works?
<apritzel>
and what's the firmware (U-Boot) running there?
JohnDoe_71Rus has quit []
<LordKalma>
the member that was doing the testing testes 5.9.0 and saw it it behaved weirdly, but then, and I quote "run cpupower frequency-set -g performance before starting the app and it works fine on 5.9"
<LordKalma>
we'll have news about other versions soon
<LordKalma>
about U-Boot, we're using a copy-pasted U-boot image
<LordKalma>
nobody has bothered to make (discover/RE) the U-Boot config yet
<apritzel>
LordKalma: what's the storage situation? Where is the rootfs mounted on? Raw NAND flash or eMMC (/dev/mmcblk...)?
<LordKalma>
currently we haven't touched the internal storage
<LordKalma>
but it's emmc if you're curious
<LordKalma>
we have been booting of SD card
<apritzel>
I see
<LordKalma>
yeah, we've been "zero damage" so far :p
<apritzel>
well, if it's eMMC, then a mainline U-Boot "port" is probably a five minute job
<LordKalma>
Now we know how to configure the kernel, we have the panel driver,
<LordKalma>
now I would like for us to configure uboot
<LordKalma>
I saw buildroot can also configure uboot and get a single unique .img file in the end, that would be ideal
<apritzel>
it's basically a matter of copying a "nearby" defconfig and putting the devicetree in the right folder
<LordKalma>
buildroot can make out of tree changed to u-boot, right?
<LordKalma>
the other community member helping with this has been using the BR2_EXTERNAL system
<apritzel>
bah, I don't care about those wrapper tools ..
<LordKalma>
we've been adding stuff out of tree
<LordKalma>
how do you do your embedded then?
<apritzel>
I just treat it like a computer ;-)
<apritzel>
eventually you have to break all of that down into pieces anyway, for upstreaming
<apritzel>
LordKalma: did you have the UART connected? Then you could easily build mainline U-Boot, put that at sector 16 of an SD card, and boot it
<apritzel>
LordKalma: when you say "copy-pasted U-Boot image", is that a file that you copied from the original firmware or some magic sectors on the SD card?
<apritzel>
LordKalma: to answer your "embedded" question: I either boot via UEFI, load manually by typing commands, or automate that via a script
<apritzel>
in any case I mix and match the required components (kernel/EFI app, initrd, command line, DTB), as needed
<LordKalma>
I was told mainline uboot doesn't have any suitable configuration out of the box. Still have to confirm that
<LordKalma>
The uboot is extracted with dd and written to some sector yes