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 has joined #armbian-rockchip
<DC-IRC> <gambl0r> Hi guys, would anyone happen to know why rfkill or hciattach_opi would cause a kernel panic on boot? I've built kernel 6.1.30 using the armbian patches for an orange pi 4 lts. I was previously using 6.1.29 with a different wifi patch set that was working however there was serial console spam when wifi was connected, I was hoping to get rid of it.
<DC-IRC> <gambl0r> maybe it's a sleep thing
<DC-IRC> <IgorPec> something changed in .30 regarding bluetooth. that's all i know
<DC-IRC> <gambl0r> I've got that patch applied
<DC-IRC> <gambl0r> sorry, I think I know what you mean by that
<DC-IRC> <gambl0r> back to 6.1.29 I go 🙂
<DC-IRC> <Tenkawa> 6.1 has issues.. if you can get it moved forward to 6.2 I would advise it
<DC-IRC> <gambl0r> it's a dev build of home assistant operating system, not sure if I should wait for them to move to 6.2 or try it for myself
<DC-IRC> <Tenkawa> I'll see if someone I know has moved there HA setup to 6.2 yet
<DC-IRC> <gambl0r> thanks
<DC-IRC> <Tenkawa> msg sent to that group.. will let you know if anyone gives me any feedback
<DC-IRC> <Tenkawa> we have a whole group of HA users ... not sure if any moved up to 6.x kernels yet though
<DC-IRC> <gambl0r> the dev channel of haos on github is using 6.1.29 for the boards
<DC-IRC> <gambl0r> builds of each board I should say
<DC-IRC> <gambl0r> hmm, kernel panic in the same way on 6.1.29. It could be the way the wifi/bt kernel modules are being loaded via systemd instead of via kernel boot args
<DC-IRC> <Tenkawa> do you have an output of the short panoc you can pastebin?
<DC-IRC> <Tenkawa> do you have an output of the short panic you can pastebin?
<DC-IRC> <gambl0r> I can, but the output is garbled
<DC-IRC> <Tenkawa> I just need to see the first few lines
<DC-IRC> <Tenkawa> the address section showing file/header/entry point location
<DC-IRC> <gambl0r> see if you can make sense of that
<DC-IRC> <gambl0r> serial console joys
<DC-IRC> <Tenkawa> ok.. one problem I see right away is I think you have a thread being being preempted and stepped on
<DC-IRC> <Tenkawa> are you building your kernel SMP or PREEMPT_SMP
<DC-IRC> <gambl0r> good question
<DC-IRC> <Tenkawa> look for CONFIG_PREEMPT_* in your defconfig
<DC-IRC> <Tenkawa> er "CONFIG_PREEMPT_*"
<DC-IRC> <Tenkawa> uggh discord
<DC-IRC> <gambl0r> I've just started a new build, I'll take a look once it's generated it
<DC-IRC> <Tenkawa> put a _ in there
<DC-IRC> <gambl0r> as in, the .config file
<DC-IRC> <Tenkawa> it will be in .config in your kernel source dir
<DC-IRC> <gambl0r> yeah, it's nearly there 🙂
<DC-IRC> <Tenkawa> I personally unless I "need" it.. don't use preemption fot servers
<DC-IRC> <Tenkawa> I personally unless I "need" it.. don't use preemption for servers
<DC-IRC> <Tenkawa> Its more necessary for desktops and real-time
<DC-IRC> <gambl0r> It's CONFIG_SMP=yes
<DC-IRC> <Tenkawa> ok grep PREEMPT in the file
<DC-IRC> <gambl0r> I did, no returns
<DC-IRC> <gambl0r> actually, sorry
<DC-IRC> <gambl0r> `CONFIG_PREEMPT_BUILD=y
<DC-IRC> <gambl0r> # CONFIG_PREEMPT_NONE is not set
<DC-IRC> <gambl0r> # CONFIG_PREEMPT_VOLUNTARY is not set
<DC-IRC> <gambl0r> CONFIG_PREEMPT=y
<DC-IRC> <gambl0r> CONFIG_PREEMPT_COUNT=y
<DC-IRC> <gambl0r> CONFIG_PREEMPTION=y
<DC-IRC> <gambl0r> # CONFIG_PREEMPT_DYNAMIC is not set
<DC-IRC> <gambl0r> CONFIG_PREEMPT_RCU=y
<DC-IRC> <gambl0r> CONFIG_HAVE_PREEMPT_DYNAMIC=y
<DC-IRC> <gambl0r> CONFIG_HAVE_PREEMPT_DYNAMIC_KEY=y
<DC-IRC> <gambl0r> CONFIG_PREEMPT_NOTIFIERS=y
<DC-IRC> <gambl0r> # CONFIG_DEBUG_PREEMPT is not set`
<DC-IRC> <gambl0r> but no SMP_PREEMPT
<DC-IRC> <Tenkawa> its right there
<DC-IRC> <Tenkawa> SMP was a typo
<DC-IRC> <gambl0r> ahh ok
<DC-IRC> <Tenkawa> it was discord typoing the wrong string
<DC-IRC> <Tenkawa> CONFIG_PREEMPT=y
<DC-IRC> <Tenkawa> CONFIG_PREEMPT_COUNT=y
<DC-IRC> <Tenkawa> CONFIG_PREEMPTION=y
<DC-IRC> <Tenkawa> thats problematic
<DC-IRC> <Tenkawa> CONFIG_PREEMPT_BUILD=y
<DC-IRC> <Tenkawa> and that
<DC-IRC> <Tenkawa> if you go in through make menuconfig y ou can turn it all at once
<DC-IRC> <Tenkawa> through general setup
<DC-IRC> <Tenkawa> │ │ Preemption Model (Voluntary Kernel Preemption (Desktop)) ---> │ │
<DC-IRC> <Tenkawa> turn it to server
<DC-IRC> <Tenkawa> │ │ ( ) No Forced Preemption (Server) │ │
<DC-IRC> <Tenkawa> It is at least something we can debug with
<DC-IRC> <gambl0r> I'm not sure I'm able to use menuconfig with this build script but I can set config overrides
<DC-IRC> <gambl0r> thanks
<DC-IRC> <Tenkawa> oh you are using a script
<DC-IRC> <Tenkawa> armbians?
<DC-IRC> <gambl0r> no, it's something home assistant devs made over buildroot
<DC-IRC> <Tenkawa> ahhh buildroot
<DC-IRC> <Tenkawa> geheh
<DC-IRC> <Tenkawa> yeah you "can" just do a manual... go to the source... make menuconfig.. the save the config
<DC-IRC> <Tenkawa> it has a save function
<DC-IRC> <Tenkawa> then dump that config where you need it
<DC-IRC> <Tenkawa> ( I have about 100 different ways to build kernels )
<DC-IRC> <gambl0r> if those are the only config options that need changing, I'll add them to the kernel.config file for this board
<DC-IRC> <Tenkawa> They "might" have cascades so you might have to work them in some
<DC-IRC> <gambl0r> ok, wifi/bt is working again on 6.1.29 with manjaros patches. Apart from the console spam, it works very well
<DC-IRC> <Tenkawa> what files did they edit?
<DC-IRC> <Tenkawa> oh still panics
<DC-IRC> <Tenkawa> yeah that should be fixed
<DC-IRC> <Tenkawa> I imagine c0rnelius has a patch in our repo for that'
<DC-IRC> <Tenkawa> I imagine c0rnelius has a patch in our repo for that
<DC-IRC> <c0rnelius> Don't have the board and no one has ever asked me about it either.
<DC-IRC> <Tenkawa> @c0rnelius I thought CPMentor might have needed it for his HA project
<DC-IRC> <Tenkawa> I don't think this one is 3588 specific only
<DC-IRC> <Tenkawa> Analyzing the dump I think this one is going to happen on several sbcs
<DC-IRC> <c0rnelius> He got a bunch of N2+'s to use with HA
<DC-IRC> <Tenkawa> yeah Amlogics will do that a lot better
<DC-IRC> <Tenkawa> Anyone else you know still running those R5C/S setups?
<DC-IRC> <c0rnelius> Not sure really. No one has complained, which is usually the only time I hear from them. 🙂
<DC-IRC> <Tenkawa> nod
<DC-IRC> <Tenkawa> I also don't usually think of appliance devices like that needing upgraded kernels
<DC-IRC> <Tenkawa> it can run at a 5.x level just fine for the forseeable future
<DC-IRC> <Tenkawa> the RK3588 kernel from the vendor is still only at 5.10 even
<DC-IRC> <Tenkawa> this 6.x one is a "patched" up one
<DC-IRC> <c0rnelius> Yeah. I think the reason they didn't wanna use Armbian with HA was at the time it would say the build wasn't official or something like that? Not sure if that is still the case.
<DC-IRC> <Tenkawa> nod
<DC-IRC> <gambl0r> it's not the case, I'm running armbian bullseye with HA supervised and it says the system is supported
<DC-IRC> <Tenkawa> @gambl0r its "supported" but thats a "long" stpry
<DC-IRC> <Tenkawa> @gambl0r its "supported" but thats a "long" story
<DC-IRC> <Tenkawa> its still a "hacked" up kernel
<DC-IRC> <Tenkawa> its not a "vendor" or "mainline" kernel if its 6.1 on the 3588
<DC-IRC> <Tenkawa> the 3588 still only is at 5.10 by Radxa and Khadas and OrangePi as far as I know (I am not 100% sure about OrangePi)
<DC-IRC> <gambl0r> sorry, I was referring to an orange pi 4 lts, rk3399
<DC-IRC> <gambl0r> and mine is running 5.15.93
<DC-IRC> <Tenkawa> oh I thought you said 3588
<DC-IRC> <Tenkawa> oh nm.. diff post
<DC-IRC> <Tenkawa> 3399?
<DC-IRC> <Tenkawa> wow..
<DC-IRC> <Tenkawa> got 3 of that SoC
<DC-IRC> <Tenkawa> I can probably help more with that one
<DC-IRC> <Tenkawa> (no OPi.. but 3 other RK3399's)
<DC-IRC> <patrickdk> I do like my opi5 ha install, works well, didn't really change anything
<DC-IRC> <patrickdk> but my r6s has a very hacked kernel, to support the firewall and routing needs I have
<DC-IRC> <Tenkawa> @patrickdk the rk3588 bt/wifi doesn't spew dmesg panics like the 3399 does it?
<DC-IRC> <patrickdk> I wouldn't know, I have no wifi/bt
<DC-IRC> <Tenkawa> doesn't the opi5 have it builtin>
<DC-IRC> <Tenkawa> er builtin?
<DC-IRC> <patrickdk> only the opi5b
<DC-IRC> <Tenkawa> ahh
<DC-IRC> <Tenkawa> Yeah thats similar to my Odroid N2L