sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
<chewitt>
gavlee: it would also be good to know which wireless chipset is in the box?
<gavlee>
I am on it :)
<gavlee>
will post info as soon as i can get it. the meson-sm1-sei610 don't work with any network from what I can see, I tried ssh into the box with the ethernet plugged in but no interface. am about to try getting the dts you sent into it and trying that
<gavlee>
hm, that reminds me to order usb adapter...
<chewitt>
hmm.. no ethernet
<chewitt>
try the x96-air dtb that I created
<chewitt>
this is where the uart cable is handy
<chewitt>
the other SM1 dtb to try are VIM3L and C4
<gavlee>
yeah i have one but it's got a serial port on the end don't really want to cut it :)
<chewitt>
you'll also prob. find there are no soldered pins on the board
<gavlee>
haven't even looked inside it yet to be honest
<gavlee>
adapter useful for other boards I have anyway
<chewitt>
if there's no wifi working it might have a realtek chip, which prob. won't be supported
<gavlee>
ok not fussed about wifi more the ethernet works
<chewitt>
I use wifi a lot during dev as it reduced the rats nest of cables needed
<gavlee>
I didn't know where the dtb was and couldn't see, have cloned your tree anyway because I guess I will need it :D
<chewitt>
has a revised x96-air dtb based on the sei610 but with external phy ethernet, so might work
<gavlee>
trying the other dtb, VIM3L didn't work
<gavlee>
boots but then monitor says cable disconnected
<gavlee>
without the boot log can't know what's going on :/
psydruid has joined #linux-amlogic
<chewitt>
the sei610 uses internal phy (rmii) ethernet, so if that doesn't work it prob. means the box is using external (rgmii)
<gavlee>
i'm glad the libreelec images are light because my connection is poor, will try again. thanks
<chewitt>
should be able to drop another 10MB from them soon, we're close to having working foss graphics (instead of mali blobs)
<gavlee>
sweet
<chewitt>
already done with older boards, but bifrost (as in your box) still needs blobs
<gavlee>
my rockchip tablet is mali I think but only got as far as booting the kernel, makes me want too look at it again
la-s has joined #linux-amlogic
<chewitt>
should be supported with lima/panfrost by now then
<gavlee>
sorry am I being thick which dtb am I supposed to be using in the uEnv.ini? from the first partition dtb/ right?
<chewitt>
use meson-g12a-x96-max.dtb
<chewitt>
path should be /dtb/meson-g12a-x96-max.dtb
<chewitt>
btw, if ethernet still doesn't come up
<chewitt>
remove "quiet" from the boot params in uEnv.ini
<chewitt>
then record a video of boot using a phone with slow-mo options
<chewitt>
removing quiet will dump output on-screen
<gavlee>
i didn't even look at that to think about it totally forgot
<chewitt>
and slow-mo mode allows the video to be slowed down so you can see what scrolls past
<chewitt>
I only remembered when looking at a uEnv.ini just now
<chewitt>
you can also add "textmode" to boot params and it will boot to a local console (no Kodi)
<gavlee>
yes i've done that in the past with phone :)
<chewitt>
connect a USB keyboard, and as long as the usb bits of device-tree work, you can poke around
<chewitt>
I should have remembered that earlier .. but it's 7am here and I'm still only half-awake
<gavlee>
sorry 4am here too
<gavlee>
gonna keep trying, really appreciate all your help
return0e[m] has joined #linux-amlogic
<gavlee>
i boot meson-g12a-x96-max.dtb, filesystem resized. got into kodi welcome screen, the colours are blue, clicknetwork config and it got a link local adress then kodi seemed to crash. I wasn't aware i was supposed to try the meson-g12a-x96-max.dtb before i was trying the meson-sm1-sei610, and that's where the networking didn't appear..
<gavlee>
will keep trying with the different dtb and let you know how it goes
gavlee has quit [Excess Flood]
gavlee has joined #linux-amlogic
<gavlee>
yeah textmode is what I was looking for , didin't even think to do something like init=/bin/bash either
<gavlee>
case just fell apart off the sd card reader haha
<chewitt>
quality stuff
<chewitt>
if you still have the previous image, try that x96max-air dtb too, it was based on C4
<gavlee>
it was my proxy i needed to whilelist the static domain for dropbox
<gavlee>
I can read the text now after putting u-boot.ext there. much improved that was killing my eyes
<chewitt>
looks like BT requires both files
<chewitt>
I will add to the kernel-firmware pick list
<chewitt>
the WiFi module will use rtw88 driver eventually, but it's still pcie only at the moment
<chewitt>
sdio support is being worked on
<gavlee>
i'm getting a link local address on ethernet so I can't ping yet
<chewitt>
hmm
<chewitt>
bad cable?
<chewitt>
the dmesg looked like it was good
<chewitt>
[ 9.325657] meson8b-dwmac ff3f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
<gavlee>
let me plug into pi.. and test
<gavlee>
seems ok there, plugged back in the air and rebooted same
<gavlee>
don't see anything in dhcp leases
<chewitt>
sec, I have an idea
<gavlee>
rebooted without text mode, libreelec welcome screen, the following networks available wired... stays at "config" for a good few seconds then gets link local address
<chewitt>
I think it needs some more bits in device-tree
<chewitt>
I'm picking them from the x96-max dts
<chewitt>
will give you a new dtb in a min
<gavlee>
alrighty. coffee and jig about the room for a bit
<gavlee>
keep knocking the ethernet plug out of this box pluggin the sd in and out .. I suppose it's good news the pulse eight cec adapter shows but no ethernet
<chewitt>
can you share dmesg again
<chewitt>
with the lastest dtb
<gavlee>
yep back to textmode and having a look
<gavlee>
this sd card reader has really seen better days now hahaha
<gavlee>
i better put that in the basket with usb adapter
<Xogium>
re: xorg/wayland, a shame, but blind peeps are still stuck on xorg. Wayland is lacking things that would otherwise make it be usable for screen readers, mainly mouse simulation via keyboard can't be performed so far
<chewitt>
and would be useful to check the remote works
<gavlee>
not sure if this is normal but after loading rtl8822cs_config.bin there is next line "invalid config magic"
<gavlee>
i'll reboot again in gui in a sec not sure if it's supposed to work in the terminal or not but it doesn't
random_yanek has joined #linux-amlogic
<gavlee>
using usb keyboard/mouse combo as can probably tell from the dmesg
<chewitt>
no idea about the config.bin message
<chewitt>
I've never seen this chip in-person
<chewitt>
and this is the first time I add support for it in a dts
<gavlee>
amazing
<chewitt>
the amazing bits were coded by others, i'm just a glorified cut-n-paste expert :)
<gavlee>
hah!
<chewitt>
switching between broadcom bt and realtek bt is a one-line change, so right up my street
<gavlee>
I didn't expect to get anything working to be honest
<gavlee>
and I learn a lot in the process doing this so thanks
<chewitt>
np :)
<gavlee>
power nap. can't read any more. have a great day
<xdarklight>
chewitt: so Ethernet does not work? then I suggest to: 1) enable these dev_dbg prints: https://elixir.bootlin.com/linux/v5.7/source/drivers/net/phy/realtek.c#L176 2) temporarily remove the reset-gpios from the PHY node in .dts 3) boot the result and see if the RX delay is enabled by the bootloader 4) if it is: switch to phy-mode = "rgmii-id";
<chewitt>
did the rgmii-id changes go into 5.7?
<xdarklight>
chewitt: the dwmac-meson8b patches that go into v5.8-rc1 may or may not also help if some weird configuration is used (for example: if that board unexpectedly enables the RX delay in the MAC / PRG_ETH0 registers)
<chewitt>
or do I need to pick them from 5.8?
<xdarklight>
chewitt: if u-boot enables the RX delay on the PHY side switching to phy-mode = "rgmii-id" will work, but v5.7 cannot clear the RX delay on the MAC side (you'll need 5.8 for that)
<chewitt>
so you'd need to manually correct in dts?
<chewitt>
how to "enable the dev_dbg prints" ? .. change s/dev_dbg/printf ?
<xdarklight>
so far all GXM and G12A boards that I have have the RX delay disabled in u-boot *and* the MAC. so I'm assuming that the PCB trace length adds the 2ns delay (in that case the existing phy-mode = "rgmii" with amlogic,tx-delay-ns = <2> is working fine - changing it would be cosmetics only)
<chewitt>
and we'll see if there's anything extra in dmesg
sputnik_ has quit [Ping timeout: 265 seconds]
yann has quit [Ping timeout: 272 seconds]
Barada has quit [Quit: Barada]
buzzmarshall has joined #linux-amlogic
damex_ has joined #linux-amlogic
damex has quit [Ping timeout: 258 seconds]
yann has joined #linux-amlogic
<gavlee>
chewitt: cool :) I checked the remote navigating around LE and seems to work good, not checked numbers yet . latest dmesg from last image with bluetooth and the u-boot.ext http://dpaste.com/0EQS2VA
damex has joined #linux-amlogic
damex_ has quit [Ping timeout: 246 seconds]
<la-s>
Xogium: mouse emulation via keyboard is something you can easily do within the compositor. Sway supports moving the mouse with its IPC FYI
<la-s>
As for other compositors, I don't know of any ways, since I don't use them. You might be able to do something at the level "above" the compositor, if you understand what I mean. Something like https://github.com/ItayGarin/ktrl but for mice
yann has quit [Ping timeout: 265 seconds]
<chewitt>
xdarklight: with the logging change:
<chewitt>
[ 6.915791] RTL8211F Gigabit Ethernet 0.0:00: Disabling 2ns TX delay (and changing the value from pin-strapping RXD1 or the bootloader)
<chewitt>
[ 6.916734] RTL8211F Gigabit Ethernet 0.0:00: Disabling 2ns RX delay (and changing the value from pin-strapping RXD0 or the bootloader)
<chewitt>
gavlee: can you run "bluetoothctl show" .. does it show the card details
<chewitt>
the "invalid config magic" log might be something harmless
<gavlee>
chewitt: I ran bluetoothctl before seeing your message and the air is sitting there apparently frozen. couldn't type in terminal for a while but it's come back I think... had that with wifi too
<gavlee>
"No default controller available"
<gavlee>
not wifi, i meant when ethernet was trying to get address something went funny in the LE gui not sure what really happened
<gavlee>
in the other images i tried not this one
<gavlee>
it was something like, getting address, freeze, some gui strangeness, freeze. got link local address.. I wish I could give more specific info :S
<la-s>
is there a way to increase the amount of memory available to the GPU?
<xdarklight>
chewitt: that means the RX delay was enabled by the bootloader. so I suggest to try phy-mode = "rgmii-id" next and see if Ethernet works fine (in both directions, using iperf3 for example)
<chewitt>
xdarklight: do I need to remove the "amlogic,tx-delay-ns = <2>;" line?
<chewitt>
or that's nulled by the rgmii-id change?
<xdarklight>
chewitt: please do as it's not relevant anymore, but the driver will also take care of it (and it ignore it)
<xdarklight>
I'll remove myself from any electronic device for a few more hours and enjoy the weather. see you later! :)
<chewitt>
I just got back from the beach, enjoy!
vagrantc has joined #linux-amlogic
yann has joined #linux-amlogic
<gavlee>
> I'll remove myself from any electronic device for a few more hours and enjoy the weather. see you later! :) - sometimes that just needs to be done :)
<gavlee>
chewitt: thanks. didn't see link local address this time, no ip assigned haven't looked around much posting dmesg and going back http://dpaste.com/1CVRJCE
<gavlee>
link local this time.. uhhh
<gavlee>
going for walkies and do some chores. bbl
return0e[m] has quit [Ping timeout: 240 seconds]
psydruid has quit [Ping timeout: 260 seconds]
la-s has quit [Ping timeout: 256 seconds]
return0e[m] has joined #linux-amlogic
la-s has joined #linux-amlogic
psydruid has joined #linux-amlogic
afaerber has quit [Ping timeout: 260 seconds]
sputnik_ has joined #linux-amlogic
afaerber has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]