lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
montjoie has quit [Ping timeout: 272 seconds]
montjoie has joined #armbian-rockchip
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC> <Werner> I consider Nanopi R4S Bookworm minimal image **broken** since SSH does not properly start up. https://paste.armbian.com/utafukaram
<DC-IRC> <Werner> From journalctl: `Jul 16 07:31:01 nanopi-r4s sshd[1589]: sshd: no hostkeys available -- exiting`
<DC-IRC> <Werner> However there ARE keys available (`/etc/ssh/ssh_host_*`).
<DC-IRC> <Werner> Anyway deleting them and using `dpkg-reconfigure openssh-server` creates a new set which then allows ssh to start properly.
<DC-IRC> <igorpec> i'll recreate those images
<DC-IRC> <Werner> There seems to be an issue with overlays as well
<DC-IRC> <Werner> ```
<DC-IRC> <Werner> Applying kernel provided DT overlay rockchip-rk3399-opp-2ghz.dtbo
<DC-IRC> <Werner> failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
<DC-IRC> <Werner> Error applying DT overlays, restoring original DT
<DC-IRC> <Werner> ```
<DC-IRC> <Werner> File is there, path is correct
<DC-IRC> <igorpec> i see also some problems in assembly
<DC-IRC> <igorpec> brb, must jump somewhere, will continue to debug this in an hour
<DC-IRC> <Werner> no worries. l8r
<DC-IRC> <Werner> Both ssh and overlay issue are present in trunk edge as well
<DC-IRC> <igorpec> if you build it on your own?
<DC-IRC> <Werner> Yes, that is what I did a few minutes ago. Again bookworm minimal
<DC-IRC> <igorpec> ok, then we have some issues and its no use if i push up new images
<DC-IRC> <igorpec> i found two problems and I already open a bug to Richardo, i'll also take a look a bitz
<DC-IRC> <Werner> I'll try jammy as well, maybe it is bookworm related issue
<DC-IRC> <igorpec> that is also possible, yes
<DC-IRC> <Werner> Are ssh host keys generated while building or at first boot of image?
<DC-IRC> <igorpec> first boot
<DC-IRC> <igorpec> at build time they are removed, afaik
<DC-IRC> <Werner> Hm this is odd. because I could not find anything related to host key generation at first boot. But the files are there...
<DC-IRC> <igorpec> so if this first run somehow fails to run ... or location changed or ...
<DC-IRC> <Werner> Jammy is fine
<DC-IRC> <igorpec> so something changed in bookworm and we don't handle it well
<DC-IRC> <Werner> seems like, yes
<DC-IRC> <Werner> overlay issue is present in jammy as well which was kind of expected
<DC-IRC> <igorpec> overlay is missing i would guess?
<DC-IRC> <Werner> No, the file is there. prefix and path seem to be correct as well
<DC-IRC> <Werner> ```
<DC-IRC> <Werner> overlay_prefix=rockchip
<DC-IRC> <Werner> overlays=rk3399-opp-2ghz
<DC-IRC> <Werner> /boot/dtb/rockchip/overlay/rockchip-rk3399-opp-2ghz.dtbo
<DC-IRC> <Werner> ```
<DC-IRC> <Werner> Hm...is this additional `rockchip-` in the file name too much? I think prefix defines the folder or is this actually correct as it is?
<DC-IRC> <Werner> (the 3rd line I just assembled the path to the file for comparison and is not present in the armbianenv.txt)
troglodito has quit [*.net *.split]
<DC-IRC> <c0rnelius77> I'm fairly certain that overclocking overlays have been broken for a while on 6.1 and up. It isn't just a rockchip specific thing. I stopped using them in my personal builds and moved to using turbo-mode along with a service to OC the boards.
<DC-IRC> <Tonymac32> Hmm
<DC-IRC> <Tonymac32> Turbo requires a proper opp table though as well
<DC-IRC> <c0rnelius77> yeap. just add it to the table and there is waits. ```
<DC-IRC> <c0rnelius77> diff -Naur a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
<DC-IRC> <c0rnelius77> --- a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2023-04-30 19:26:28.000000000 -0400
<DC-IRC> <c0rnelius77> +++ b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2023-05-06 13:03:38.690770356 -0400
<DC-IRC> <c0rnelius77> @@ -33,6 +33,11 @@
<DC-IRC> <c0rnelius77> opp-hz = /bits/ 64 <1416000000>;
<DC-IRC> <c0rnelius77> opp-microvolt = <1125000 1125000 1250000>;
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77> + opp06 {
<DC-IRC> <c0rnelius77> + opp-hz = /bits/ 64 <1512000000>;
<DC-IRC> <c0rnelius77> + opp-microvolt = <1200000>;
<DC-IRC> <c0rnelius77> + turbo-mode;
<DC-IRC> <c0rnelius77> + };
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77>
<DC-IRC> <c0rnelius77> cluster1_opp: opp-table-1 {
<DC-IRC> <c0rnelius77> @@ -72,6 +77,11 @@
<DC-IRC> <c0rnelius77> opp-hz = /bits/ 64 <1800000000>;
<DC-IRC> <c0rnelius77> opp-microvolt = <1200000 1200000 1250000>;
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77> + opp08 {
<DC-IRC> <c0rnelius77> + opp-hz = /bits/ 64 <2016000000>;
<DC-IRC> <c0rnelius77> + opp-microvolt = <1300000>;
<DC-IRC> <c0rnelius77> + turbo-mode;
<DC-IRC> <c0rnelius77> + };
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77>
<DC-IRC> <c0rnelius77> gpu_opp_table: opp-table-2 {
<DC-IRC> <c0rnelius77> ```
<DC-IRC> <c0rnelius77> yeap. just add it to the table and there it waits. ```
<DC-IRC> <c0rnelius77> diff -Naur a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
<DC-IRC> <c0rnelius77> --- a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2023-04-30 19:26:28.000000000 -0400
<DC-IRC> <c0rnelius77> +++ b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2023-05-06 13:03:38.690770356 -0400
<DC-IRC> <c0rnelius77> @@ -33,6 +33,11 @@
<DC-IRC> <c0rnelius77> opp-hz = /bits/ 64 <1416000000>;
<DC-IRC> <c0rnelius77> opp-microvolt = <1125000 1125000 1250000>;
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77> + opp06 {
<DC-IRC> <c0rnelius77> + opp-hz = /bits/ 64 <1512000000>;
<DC-IRC> <c0rnelius77> + opp-microvolt = <1200000>;
<DC-IRC> <c0rnelius77> + turbo-mode;
<DC-IRC> <c0rnelius77> + };
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77>
<DC-IRC> <c0rnelius77> cluster1_opp: opp-table-1 {
<DC-IRC> <c0rnelius77> @@ -72,6 +77,11 @@
<DC-IRC> <c0rnelius77> opp-hz = /bits/ 64 <1800000000>;
<DC-IRC> <c0rnelius77> opp-microvolt = <1200000 1200000 1250000>;
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77> + opp08 {
<DC-IRC> <c0rnelius77> + opp-hz = /bits/ 64 <2016000000>;
<DC-IRC> <c0rnelius77> + opp-microvolt = <1300000>;
<DC-IRC> <c0rnelius77> + turbo-mode;
<DC-IRC> <c0rnelius77> + };
<DC-IRC> <c0rnelius77> };
<DC-IRC> <c0rnelius77>
<DC-IRC> <c0rnelius77> gpu_opp_table: opp-table-2 {
<DC-IRC> <c0rnelius77> ```
<DC-IRC> <c0rnelius77> Doing it this way also doesn't require a reboot and can just be done on the fly.
<DC-IRC> <Tonymac32> Sure, I had the TB set up that way for a while, but inherently the overlays should work, something just got shifted in the dts or perhaps the max speed set by the Armbian configs is wrong thanks to adding some more dissimilar hardware to the mix and not checking the effects of the variables changed. Haven't looked