mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
krei-se has quit [Ping timeout: 272 seconds]
krei-se has joined #linux-rockchip
krei-se has quit [Quit: ZNC 1.9.1 - https://znc.in]
krei-se has joined #linux-rockchip
naoki has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 248 seconds]
hexdump0815 has joined #linux-rockchip
Daanct12 has joined #linux-rockchip
_whitelogger has joined #linux-rockchip
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
raster has joined #linux-rockchip
ldevulder has joined #linux-rockchip
cbeznea_ has joined #linux-rockchip
franoosh has joined #linux-rockchip
gnuiyl__ has quit [Quit: Leaving]
gnuiyl has joined #linux-rockchip
eballetbo has joined #linux-rockchip
robmur01 has joined #linux-rockchip
naoki has quit [Quit: naoki]
<CounterPillow> qschulz: lol @ your "the cover letter" response to krzk. I feel like he never reads them, as this has happened to me before as well.
nashpa has joined #linux-rockchip
dliviu has quit [Ping timeout: 276 seconds]
<qschulz> CounterPillow: /me shrugs
<qschulz> I feel like I'm slowly entering the dead end they are putting me towards to
<qschulz> I don't understand what they are objecting to
<CounterPillow> My guess is that they don't like that the property is formulated as register contents, as opposed to a declarative way to describe what the hardware expects, they just don't know it yet ;)
<qschulz> CounterPillow: thanks for chiming in the thread, will wait tomorrow to answer so that I'm a bit less frustrated :)
<CounterPillow> okay just saw krzk's response from 12:57, looks like I am correct in my assessment
<qschulz> somewhat, they don't say if they are totally against the property or the name/description of it
<qschulz> (or I didn't understand it that way ;) )
<CounterPillow> "Don't focus on registers" :)
<qschulz> but at the same time asking me if maybe our products aren't routed properly :)
* qschulz shrugs
<CounterPillow> Yes ignore any of his complaints that the hardware must be wrong, that's just him being him
<qschulz> we shouldn't need to know that
<qschulz> because if I let my frustrated self answer there I would tell them "are you asking me to adapt the HW so it fits the DT binding" :D ?
jaganteki has joined #linux-rockchip
punit` has quit [Read error: Connection reset by peer]
punit` has joined #linux-rockchip
franoosh has quit [Read error: Connection reset by peer]
franoosh has joined #linux-rockchip
<robmur01> qschulz: FWIW I'd suggest focusing the description more on the fact that the different behaviours have different effects on the supply rails and other board-level signals
<robmur01> TBH the quote from the datasheet doesn't really provide any obvious useful information for the context, so it kinda is just "there's this thing, it has these settings, let's make it a property", without any obvious "why"
<robmur01> Also, the wording of said cover letter *could* be interpreted as using a kernel DT to work around a bootloader bug ;)
<qschulz> robmur01: that's sadly the extent of the information I have :/
<robmur01> (as opposed to "this should be in DT so everyone sets it correctly and consistently" which seems like a reasonable argument to make)
<qschulz> but fair enough for the other points, will try to pay better attention into writing meaningful commit logs/cover letters
<qschulz> to be fair, I'm planning on implementing the same thing from U-Boot too
<qschulz> waiting on the binding to be accepted first, no need to do backward compatibility with unmerged DT bindings (or if it ends up not being merged, having dead code :) )
<robmur01> yeah, in that case I'd lean well into the other direction - "RST_FUN is poorly documented, but different boards depend on these observable effects of different settings, so we want it in DT so U-Boot, Linux and everyone else can do the right thing"
<robmur01> if you squint it's perhaps a little like how the system-power-controller property selects between register-based shutdown vs. TF-A wiggling a GPIO
Daanct12 has quit [Quit: WeeChat 4.6.3]
Daanct12 has joined #linux-rockchip
Daanct12 has quit [Quit: WeeChat 4.6.3]
raster has quit [Quit: Gettin' stinky!]
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #linux-rockchip
<Dex2x> Ah man, I finally got a male fan connector, for my heatsink of my opi 5 ultra, but it doesn't have the needed female connector for the fan on the heatsink :/
ldevulder has quit [Ping timeout: 252 seconds]
<Dex2x> I am not getting my board to boot from the "linux-image-6.15-rc7-arm64" kernel, it keeps booting from the linux-image-current-rockchip-rk3588
<diederik> do you have u-boot-menu installed?
<diederik> when that runs, that updates ``/boot/extlinux/extlinux.conf`` and there you can set the default boot option ... and it should make an entry for every kernel installed
cbeznea_ has quit [Ping timeout: 245 seconds]
cbeznea has joined #linux-rockchip
tlwoerner_ has joined #linux-rockchip
tlwoerner has quit [Ping timeout: 265 seconds]
stikonas has joined #linux-rockchip
raster has joined #linux-rockchip
<Dex2x> okay didn't know about that package, added it
<Dex2x> is the u-boot just a bootload like grud?
<Dex2x> that borked it, need UART
urja has quit [Quit: WeeChat 4.2.2]
urja has joined #linux-rockchip
<CounterPillow> you're likely using some vendor u-boot that may not play well with that
<CounterPillow> u-boot is a bit more than what grub would do, since on x86 you have the whole platform initialisation before the bootloader is run
franoosh has quit [Ping timeout: 248 seconds]
<Dex2x> ah yeah Exception from a Data abort, from current exception level
<Dex2x> oh I can't boot to the old vendor kernel either
<Dex2x> I take it I need to reflash this now
<CounterPillow> or you can build and flash a mainline u-boot that will actually work
<Dex2x> I can just flash a u-boot while I can't boot? IS this to the spiflash?
<CounterPillow> where it is depends on your setup, but yes it can be flashed over the USB protocol in any case if you know how to get your board into maskrom mode. Don't really have time to walk you through that right now though
<Dex2x> Oh I know how to get it in maskrom mode
<Dex2x> I just didn't know the u-boot goes to that
raster has quit [Quit: Gettin' stinky!]
vagrantc has joined #linux-rockchip
<Dex2x> okay just need to find a working uboot :/
<CounterPillow> git clone https://source.denx.de/u-boot/u-boot.git && git clone https://github.com/rockchip-linux/rkbin/ && cd u-boot && export BL31=../rkbin/bin/rk35/rk3588_bl31_v1.48.elf && export ROCKCHIP_TPL=../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin && make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- orangepi-5-max-rk3588_defconfig && make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j"$(nproc)"
<CounterPillow> results in a u-boot-rockchip.bin you can flash to sector 64 on eMMC with rkdeveloptool, sector 64 on SD with dd. That is assuming orangepi made no u-boot relevant changes from max to ultra
<Dex2x> Let me try, I managed to boot off a SDCARd, so I can just compile this from the opi5
<Dex2x> can I write it to the emmc from the device, using dd ?
<CounterPillow> yes
<Dex2x> the last make step is failing though
<CounterPillow> dd if=u-boot-rockchip.bin of=/dev/mmcblkwhatever seek=32768B bs=4K oflag=dsync status=progress # to write u-boot to the emmc
<Dex2x> <3 you rock
<CounterPillow> to find out which of your mmcblks is the emmc, `lsblk` is handy
<CounterPillow> if you're compiling on 64-bit arm natively rather than cross-compiling, you probably want to leave out the CROSS_COMPILE=... makeflag
<Dex2x> even so,m ln: failed to create symbolic link 'arch/arm64/include/asm/arch': No such file or directory . I might be missing the needed tools
<CounterPillow> yes, look higher up in the build log, there's probably something you're missing
<Dex2x> well I see just config written with ` make ARCH=arm64 orangepi-5-max-rk3588_defconfig` where the cross compile had additional outpout
<CounterPillow> `make mrproper` to remove the config
<CounterPillow> then try generating it again without the CROSS_COMPILE
<Dex2x> aaah ! okay that looks better m but still symlink :/
cbeznea has quit [Ping timeout: 265 seconds]
<CounterPillow> never seen this one, weird
jaganteki has quit [Quit: Client closed]
jmabsd has joined #linux-rockchip
ldevulder has joined #linux-rockchip
<Dex2x> I am to amaze :p , well I am trying the armbian opi 5 max build
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
<Dex2x> hmmm okay the rc kernel is not booting for me
<Dex2x> at least not the one with the armbian for the op5 max , but not sure if that makes that much of a difference
jmabsd has quit [Ping timeout: 240 seconds]
raster has joined #linux-rockchip
naoki has joined #linux-rockchip
ldevulder has quit [Quit: Leaving]
raster has quit [Quit: Gettin' stinky!]