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
ftg has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
mehdix has quit []
mehdix has joined #linux-sunxi
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
<LordKalma> dd if=X6100-sdcard-20220219.img of=uboot_sdcard.bin bs=1024 skip=8 count=512 seek=0
<LordKalma> This is the extraction from the firmware update file
bauen1 has quit [Quit: leaving]
<apritzel> LordKalma: OK, thanks,downloading ...
ftg has joined #linux-sunxi
<apritzel> LordKalma: ok, try (or delegate) the following (in a mainline U-Boot tree): copy configs/Bananapi_m2m_defconfig to configs/x6100_defconfig
<apritzel> remove the CONFIG_USB0_ID_DET line in there, set CONFIG_MMC0_CD_PIN to an empty string (""), and change your DT name
<apritzel> then copy your .dts file to arch/arm/dts
<apritzel> I reckon that's the safest config. If DRAM init doesn't work, try to lower CONFIG_DRAM_CLK, for instance to 456
<apritzel> I will try to rev-eng the frequency from their SPL, but no promises ...
<apritzel> is Xiegu a Swedish company? Or is that just the distributor/point of contact in Europe?
<apritzel> LordKalma: can you run "md.l 0x01c20020 1" on the vendor U-Boot prompt? That should dump the PLL_DDR0_CTRL_REG, to learn the DRAM frequency
bauen1 has joined #linux-sunxi
<apritzel> LordKalma: wow, they seem to use 384 MHz only, judging by the SPL disassembly, so try that