Linnaea has quit [Read error: Connection reset by peer]
Linnaea_ has joined #linux-amlogic
buzzmarshall has quit [Remote host closed the connection]
vagrantc has joined #linux-amlogic
<Necrosporus>
] <chewitt> https://github.com/dancefire/hd806-kernel-android // My device is MESON3 8726M SKT SH, and I have two working kernel binaries for it, but both have CONFIG_MACH_MESON3_STV_MBX_MC=y but by your link I can't find this config option in provided configurations
<chewitt>
I have no real opinion .. the LE 3.10 kernel codebase was always "someone else's problem"
<chewitt>
my only experience is .. they are all hacked up for a specific box, so YMMV
<Necrosporus>
Should I try to go with meson6tvc_h15_defconfig meson6tv_defconfig meson6tvd_defconfig or whatever?
<Necrosporus>
If my board is meson3?
<Necrosporus>
I just want _any_ kernel source for my device because I want to enable framebuffer console and it's disabled in the kernels
<Necrosporus>
I want to be able to use the device at least somehow without UART
<Necrosporus>
Kernel from official firmware has # CONFIG_FRAMEBUFFER_CONSOLE is not set
asdf28 has joined #linux-amlogic
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-amlogic
<chewitt_>
if one of those defconfigs builds a kernel that boots .. start adding things that you need
chewitt_ is now known as chewitt
cmeerw has joined #linux-amlogic
<Necrosporus>
So you suggest to build stuff for another SoC and try it?
<chewitt>
there are normally a set of amlogic defconfigs, then the one(s) for the vendor who hacked their board into the bsp
<chewitt>
I have nothing to suggest other than "experiment"
vagrantc has quit [Quit: leaving]
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
random_yanek has quit [Ping timeout: 260 seconds]
random_yanek has joined #linux-amlogic
<Necrosporus>
Uh, is it possible to find vendor sources for my particular board? Hm...
<chewitt>
first problem will be figuring out who made the board
<chewitt>
most tvbox devices have no-name branding
<chewitt>
and even if it has 'name' branding there's no guarantee it was made by that manufacturer
<chewitt>
any good design gets stolen and cloned pretty quickly.. sometimes with a slightly different mix of components on the board
<chewitt>
but, the guesswork has to start somewhere
<chewitt>
one challenge you'll have is that GitHub became a thing about 10-years ago
<chewitt>
so you're less likely to find nicely indexed sources for old stuff
<Necrosporus>
except that my board is also about 10 years ago, not super old
<chewitt>
10 years is prehistoric for Amlogic kernels :)
kaspter has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 256 seconds]
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-amlogic
chewitt_ is now known as chewitt
asdf28 has quit [Ping timeout: 256 seconds]
asdf28 has joined #linux-amlogic
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-amlogic
asdf28 has quit [Ping timeout: 260 seconds]
Necrosporus has quit [Read error: Connection reset by peer]
Necrosporus has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
asdf28 has joined #linux-amlogic
kaspter has quit [Quit: kaspter]
_whitelogger has joined #linux-amlogic
<asdf28>
i'm trying to get bluetooth working on my s905x p212 board
<asdf28>
it should have a "bcm43438-bt" broadcom bluetooth adapter, but mine has a realtek rtl8723bs chip (wifi/bluetooth combined)
<asdf28>
and the firmware i found for this patch ( https://github.com/lwfinger/rtl8723bs_bt ) says it needs to connect to a serial device that apparently does not exist on my machine
<asdf28>
the patch removed a line "serial1 = &uart_A;" from the device tree file, could this be the reason?
<asdf28>
i have no idea if all p212 boards are exactly the same and have the same bluetooth chips
<asdf28>
could this be because this broadcom chip does not actually exist on my board?
<asdf28>
i'm going to try with the older dts file now, see if that changes anything
drieschel has joined #linux-amlogic
<xdarklight>
asdf28: you probably have "some board" that happens to be mostly compatible with the p212 reference design but at least wifi and Bluetooth are different. minimalist example (based on the link you sent) for RTL8723BS: https://pastebin.com/2mCM9Djk
ChanServ has quit [shutting down]
ChanServ has joined #linux-amlogic
<asdf28>
oh
<asdf28>
thanks xdarklight, that's awesome
<asdf28>
i'm gonna try this now
<asdf28>
i tried to remove the bluetooth node entirely (mimicking the legacy android dts) and add the serial device, this time the driver appeared to do something, but had a connection timeout
<asdf28>
i don't understand the magic behind this, but the old system appears to work without the bluetooth node
<asdf28>
but as far as i understand, the 8723bs driver that comes with the kernel does not support the bluetooth part of this chip
<asdf28>
and that probably doesn't even make use of the device tree node
<asdf28>
so it might not even matter what's in there
<asdf28>
adding the bluetooth node didn't make it work yet (probably something else needed by the driver), but this made the broadcom error message disappear so that's nice
<asdf28>
i'll try to find some examples of a working setup with this
<asdf28>
anyway, thanks again xdarklight for the code you sent me, i added it!
drieschel has quit [Quit: drieschel]
<xdarklight>
asdf28: the Bluetooth "driver" for the Bluetooth part of RTL8723BS lives in drivers/bluetooth/hci_h5.c in the mainline kernel
<xdarklight>
the downstream (lwfinger) driver has opposite requirements than the mainline driver: upstream requires the "bluetooth" node to be present so the kernel managed the serial connection and no /dev/tty* is created. the downstream driver on the other hand relies on /dev/tty* being missing, which means that there must not be any bluetooth node in the .dts(i) - serial connection is then managed in userspace
<xdarklight>
you can find one more example in Documentation/devicetree/bindings/net/realtek-bluetooth.yaml - the GPIOs are based on an Allwinner (IIRC) board though. host-wake-gpios is optional, and depending on the wifi/Bluetooth combo module device-wake-gpios can be optional as well
<xdarklight>
with the information you're giving it's a hard to say what's going wrong on your board. if you can provide the .dts (or .dtb) for the Android kernel on your board as well as kernel log (dmesg) and the patch you have come up with it'll be easier for me to help :)
<asdf28>
oh, wow. i didn't know that the kernel already has a driver
<asdf28>
thanks for the insight
<asdf28>
yes i couldn't provide a lot of info, i wasn't sure if the proprietary driver even works with a mainline kernel
<asdf28>
dmesg said nothing specific about the driver
sputnik_ has joined #linux-amlogic
<asdf28>
i have already powered my dev machine off, i was getting too tired
<asdf28>
but your insight is much appreciated, this was helpful
<asdf28>
i have the android dts, i'll upload it tomorrow
<asdf28>
i'm pretty sure it uses the old driver with the serial connection
<asdf28>
i'll also try to compare the firmware blob that it's using
<xdarklight>
sure, come back whenever works best for you. I'll have limited time during the week but still try to get back to you when I can
<xdarklight>
from my experience the firmware blob which is in the upstream linux-firmware repo works fine (just in case you find any difference)
<asdf28>
thanks. good night!
buzzmarshall has quit [Remote host closed the connection]