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
<DC-IRC> [Discord] <stalkeruser_42750> how to explain this screen, why my image does no boot with a custom device tree
<DC-IRC> [Discord] <tomurlings> those are the "preloaders" that run before U-Boot starts. your custom DT is not even loaded at this point i reckon?
<DC-IRC> [Discord] <stalkeruser_42750> seems yes, but not sure, still learning this
<DC-IRC> [Discord] <stalkeruser_42750> just need to understand where I went wrong and how to fix it
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC> [Discord] <stalkeruser_42750> ok I had to revert my changes
<DC-IRC> [Discord] <stalkeruser_42750> next questions is about adding support / enabling `dwmac_rockchip` for network card
<DC-IRC> [Discord] <stalkeruser_42750> I got these that I think makes it work, I did enable support for it in device tree
<DC-IRC> [Discord] <stalkeruser_42750> is there some code/flag I need to turn on to have the `dwmac_rockchip` module available ?
<DC-IRC> [Discord] <stalkeruser_42750> ```
<DC-IRC> [Discord] <stalkeruser_42750> root@rock-5b-plus:~# modprobe dwmac_rockchip
<DC-IRC> [Discord] <stalkeruser_42750> modprobe: FATAL: Module dwmac_rockchip not found in directory /lib/modules/6.14.5-edge-rockchip64
<DC-IRC> [Discord] <stalkeruser_42750> ```
<DC-IRC> [Discord] <stalkeruser_42750> I got these that I think makes it work, I did enable support for it in device tree (I think but not sure it has everything)
<DC-IRC> [Discord] <Werner> CONFIG_DWMAC_ROCKCHIP=y
<DC-IRC> [Discord] <Werner> If built in no module is generated.
<DC-IRC> [Discord] <stalkeruser_42750> `rk_gmac-dwmac fe1c0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0`
<DC-IRC> [Discord] <stalkeruser_42750> I see the above now in the dmesg, I also see a `eth0` internface but it won't autoconfig with dhcp
<DC-IRC> [Discord] <stalkeruser_42750> `rk_gmac-dwmac fe1c0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0`
<DC-IRC> [Discord] <stalkeruser_42750> I see the above now in the dmesg, I also see a `eth0` internface but it won't autoconfig with dhcp
<DC-IRC> [Discord] <stalkeruser_42750> am I missing something ?
<DC-IRC> [Discord] <stalkeruser_42750> I think my driver is `rtl8211fs` how do I enable that in the kernel config + anything else that will allow it to build and work
<DC-IRC> [Discord] <bugzbanger> Hmm i still can't update the edge kernel, I keep getting
<DC-IRC> [Discord] <bugzbanger> Errors were encountered while processing:
<DC-IRC> [Discord] <bugzbanger> linux-image-edge-rockchip64
<DC-IRC> [Discord] <bugzbanger> Error: Sub-process /usr/bin/dpkg returned an error code (1)
<DC-IRC> [Discord] <stalkeruser_42750> here is how things look like but it won't configure to get an IP, any ideas ?
<DC-IRC> [Discord] <random_anon_cesar> what happens if you goto
<DC-IRC> [Discord] <random_anon_cesar> sudo armbian-config > Network > View Network?
<DC-IRC> [Discord] <random_anon_cesar> At least for me, it's easiest to just set a static ip via armbian-config & goto my router to make a dhcp reservation for said address...
<DC-IRC> [Discord] <stalkeruser_42750> I just tried that
<DC-IRC> [Discord] <stalkeruser_42750> setup an ip manually, and seems link is down
<DC-IRC> [Discord] <stalkeruser_42750> it won't do anything
<DC-IRC> [Discord] <bugzbanger> seems the bcmdhd-sdio-dkms does not work with edge
<DC-IRC> [Discord] <stalkeruser_42750> mine is a realtek
<DC-IRC> [Discord] <random_anon_cesar> are you able to manually bring the link up?
<DC-IRC> [Discord] <random_anon_cesar> ip link show
<DC-IRC> [Discord] <random_anon_cesar> sudo ip link set <interface_name> up
<DC-IRC> [Discord] <stalkeruser_42750> does not react to this seems
<DC-IRC> [Discord] <stalkeruser_42750> `state DOWN`
<DC-IRC> [Discord] <random_anon_cesar> At least on the Rock5b, the normal operation is for the kernel to bring the interface up during initial boot.
<DC-IRC> [Discord] <random_anon_cesar> What does dmesg say about the link?
<DC-IRC> [Discord] <random_anon_cesar> sudo dmesg | grep eth0
<DC-IRC> [Discord] <random_anon_cesar> Also, what kernel are you using? I dont have any issues on
<DC-IRC> [Discord] <random_anon_cesar> 6.12.28-current-rockchip64
<DC-IRC> [Discord] <stalkeruser_42750> ```
<DC-IRC> [Discord] <stalkeruser_42750> user@rock-5b-plus:~$ sudo dmesg | grep eth0
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.154654] rk_gmac-dwmac fe1c0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.155624] rk_gmac-dwmac fe1c0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-1
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.238952] rk_gmac-dwmac fe1c0000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.251959] rk_gmac-dwmac fe1c0000.ethernet eth0: No Safety Features support found
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.251984] rk_gmac-dwmac fe1c0000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.281564] rk_gmac-dwmac fe1c0000.ethernet eth0: registered PTP clock
<DC-IRC> [Discord] <stalkeruser_42750> [ 3.306340] rk_gmac-dwmac fe1c0000.ethernet eth0: configuring for phy/rgmii link mode
<DC-IRC> [Discord] <stalkeruser_42750> ```
<DC-IRC> [Discord] <stalkeruser_42750> I'm still checking, but learning at the same time
<DC-IRC> [Discord] <stalkeruser_42750> I got the network part from this device tree https://github.com/Ken-Vamrs/kernel/blob/linux-5.10-gen-rkr3.4-zaku/arch/arm64/boot/dts/rockchip/rk3588-zaku2.dts#L131
<DC-IRC> [Discord] <stalkeruser_42750> that device tree file is the one running for current board on 5.10 kernel, I moved it to 6.14, but need the get the network working again
<DC-IRC> [Discord] <stalkeruser_42750> in theory I need the whole file, but I want to isolate the exact parts I need for the network, driver, power delivery, buses etc
<DC-IRC> [Discord] <stalkeruser_42750> I tried to drop-in the whole file, but was a bad idea, so now trying in steps
<DC-IRC> [Discord] <random_anon_cesar> Was something recently changed or did it just never work from the get-go?
<DC-IRC> [Discord] <random_anon_cesar> This is how it more or less should look when everything's working...
<DC-IRC> [Discord] <stalkeruser_42750> this is first time I'm trying to make it work, could mean that I miss the actual driver / blob ?
<DC-IRC> [Discord] <stalkeruser_42750> but the logs says this `PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)`
<DC-IRC> [Discord] <random_anon_cesar> things like ethernet drives are usually pre-applied to the kernel. If you have to manually apply drivers for something simple like ethernet, it might be better to verify the kernel you're using is actually compatible
<DC-IRC> [Discord] <random_anon_cesar> but you're saying you applied 5.10 files to a 6.14 install? If so, It sounds like a few things were overwritten with files intended for a kernel that was released years ago & arent able to properly integrate
<DC-IRC> [Discord] <stalkeruser_42750> just the network part that starts at line 131 https://github.com/Ken-Vamrs/kernel/blob/linux-5.10-gen-rkr3.4-zaku/arch/arm64/boot/dts/rockchip/rk3588-zaku2.dts#L131
<DC-IRC> [Discord] <random_anon_cesar> I dont think that's the actual firmware for the network adapter.
<DC-IRC> [Discord] <random_anon_cesar> Usually those are actual files saved in /lib/firmware
<DC-IRC> [Discord] <menu> why are you writing a custom device tree anyway?
<DC-IRC> [Discord] <random_anon_cesar> Im not an armbian dev or anything, but I think the cleanest method would be backing up any files on the board & doing a clean install of the stable 6.1 image for the Rock5bPlus
<DC-IRC> [Discord] <random_anon_cesar> 6.14 was just released, so if ethernet isnt working than the kernel might need some more time to bake haha
<DC-IRC> [Discord] <random_anon_cesar> Unrelated, but if you're planning on using the board as a desktop, pick the image labeled "MESA/VPU".
<DC-IRC> [Discord] <random_anon_cesar> Those have all of the plugins for GPU acceleration included.
<DC-IRC> [Discord] <random_anon_cesar> (Its possible to patch a non MESA/VPU install with them, but it's a pain in the butt)
<DC-IRC> [Discord] <stalkeruser_42750> no desktop, this is for a server rack with custom backplane
<DC-IRC> [Discord] <stalkeruser_42750> this is the command I use to build an image: `./compile.sh BOARD=rock-5b-plus BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=noble KERNELBRANCH='branch:v6.14.5'` how do I tell to pull in also dev tools to compile a network card driver ,
<DC-IRC> [Discord] <stalkeruser_42750> I got the driver code but because no network I can't pull in dependencies to compile the driver
<DC-IRC> [Discord] <bugzbanger> You need to figure that I believe
<DC-IRC> [Discord] <bugzbanger> You can do that interactively with ./compile.sh
javabean has quit [Ping timeout: 244 seconds]
javabean has joined #armbian-rockchip