zjason has joined #beagle
tacokoneko has joined #beagle
thinkfat_ has joined #beagle
thinkfat has quit [Ping timeout: 256 seconds]
vagrantc has quit [Quit: leaving]
<tacokoneko> on BeagleBone Black, with the new monthly Debian 10 console snapshot https://forum.beagleboard.org/t/debian-10-x-buster-monthly-snapshots/31203, /sys/devices/platform/ocp/56000000.sgx is present by default, but why does that disappear if its default 4.19 kernel is replaced with any kernel listed here https://forum.beagleboard.org/t/debian-10-x-11-x-kernel-updates/30928 that is not the 4.19 kernel? is it a device tree problem? I
<tacokoneko> tried to find what source code is producing the "56000000" to follow it through step by step to investigate, but while I see it in some sources for the other kernel versions, I do not see it in the sources for 4.19, either here https://github.com/RobertCNelson/bb-kernel/tree/am33x-v4.19/patches/drivers/ti or here https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/am33xx.dtsi?h=v4.19.71. Is the
<tacokoneko> presence of /sys/devices/platform/ocp/56000000.sgx a hard requirement for SGX530 to function, and if so, what causes it to appear?
<zmatt> tacokoneko: the sgx driver is packaged separately, so if you install a different kernel be sure to also install the package for the kernel module
<zmatt> also, beware that the sgx userspace libs needs to match the version of the sgx kernel driver, so your ability to mix and match things will be limited
<zmatt> the sgx kernel driver package is named ti-sgx-ti335x-modules-VERSION where VERSION is the kernel version
<zmatt> though actually, sgx should appear in sysfs regardless of whether the driver is present
<zmatt> e.g. I have /sys/bus/platform/devices/56000000.sgx even though I don't have the driver
<zmatt> the path may however not be /sys/devices/platform/ocp/56000000.sgx though, that may vary depending on kernel version
<zmatt> (but that has no relevance to whether sgx works or not)
<zmatt> tacokoneko: e.g. in 5.10-ti its symlink in /sys/bus/platform/devices/ is named 56000000.gpu instead of 56000000.sgx, and its canonical path (to which the symlink resolves) is /sys/devices/platform/ocp/5600fe00.target-module/56000000.gpu
<zmatt> but that's just an implementation detail, it's not relevant
<zmatt> in general, sysfs paths are not stable
buzzmarshall has quit [Quit: Konversation terminated!]
<tacokoneko> thanks that's a good explanation, I was confused because I didn't see "56000000.sgx on minor 1" from pvrsrvkm in kernel log with newer kernels but now I see you are right and it has changed to "56000000.gpu"
vigneshr has joined #beagle
Raajeshwar has joined #beagle
rob_w has joined #beagle
<tacokoneko> with that confusion over the platform device resolved, I now have SGX530 fully working (kmscube) with the 1.17 driver and kernel 5.10 on RobertCNelson's new Debian 11 image :) this will allow me to fully update my workflow
Guest23 has joined #beagle
<Guest23> Hello
<Guest23> i brought BeagleBone black AI
<Guest23> i need technical specification how to interact with 2 core
<Guest23> how can i dedicate one core for specific task
Shadyman has quit [Remote host closed the connection]
Guest23 has quit [Quit: Client closed]
<Raajeshwar> Hi, Hours ago I was discussing about wrong IP assigned to one of my device sometimes after reboot. Connman log reads as follows:
<Raajeshwar> Nov 03 17:16:43 ddsdevice kernel: cpsw 4a100000.ethernet: Detected MACID = c8:df:84:d5:d4:f5
<Raajeshwar> Nov 03 17:16:43 ddsdevice kernel: cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
<Raajeshwar> Nov 03 17:16:43 ddsdevice kernel: cpsw 4a100000.ethernet: ALE Table size 1024
<Raajeshwar> Nov 03 17:16:43 ddsdevice kernel: cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
<Raajeshwar> Nov 03 17:16:43 ddsdevice kernel: cpuidle: enable-method property 'ti,am3352' found operations
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_0_mac: [C8:DF:84:D5:D4:F5]
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_1_mac: [C8:DF:84:D5:D4:F7]
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_2_mac: [C8:DF:84:D5:D4:F6]
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_3_mac: [C8:DF:84:D5:D4:F8]
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_4_mac: [C8:DF:84:D5:D4:F9]
<Raajeshwar> Nov 03 17:16:51 ddsdevice sh[968]: am335x_evm: cpsw_5_mac: [C8:DF:84:D5:D4:FA]
<Raajeshwar> Nov 03 17:16:52 ddsdevice unknown: chkphy:eth0 good
<Raajeshwar> Nov 03 17:16:53 ddsdevice connmand[1162]: Connection Manager version 1.35
<Raajeshwar> Nov 03 17:16:54 ddsdevice kernel: using random self ethernet address
<Raajeshwar> Nov 03 17:16:54 ddsdevice kernel: using random host ethernet address
<Raajeshwar> Nov 03 17:16:54 ddsdevice kernel: using random self ethernet address
<Raajeshwar> Nov 03 17:16:54 ddsdevice kernel: using random host ethernet address
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Ignoring interface usb0 (filtered)
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Adding interface usb0 [ gadget ]
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: eth0 {update} flags 36867 <UP>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: eth0 {newlink} index 4 address C8:DF:84:D5:D4:F5 mtu 1500
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: eth0 {newlink} index 4 operstate 2 <DOWN>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb0 {newlink} index 5 address C8:DF:84:D5:D4:F7 mtu 1500
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb0 {newlink} index 5 operstate 2 <DOWN>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Ignoring interface usb0 (filtered)
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {create} index 6 type 1 <ETHER>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {update} flags 4098 <DOWN>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {newlink} index 6 address 00:00:00:00:00:00 mtu 1500
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {newlink} index 6 operstate 2 <DOWN>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Ignoring interface usb1 (filtered)
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Adding interface usb1 [ gadget ]
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {newlink} index 6 address C8:DF:84:D5:D4:FA mtu 1500
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: usb1 {newlink} index 6 operstate 2 <DOWN>
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: Ignoring interface usb1 (filtered)
<Raajeshwar> Nov 03 17:16:56 ddsdevice connmand[1162]: The name net.connman.vpn was not provided by any .service files
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {update} flags 69699 <UP,RUNNING,LOWER_UP>
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {newlink} index 6 address C8:DF:84:D5:D4:FA mtu 1500
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {newlink} index 6 operstate 6 <UP>
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: Ignoring interface usb1 (filtered)
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {add} route 192.168.6.0 gw 0.0.0.0 scope 253 <LINK>
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {add} route fe80:: gw :: scope 0 <UNIVERSE>
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {del} address 192.168.6.2/24 label usb1
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {del} route 192.168.6.0 gw 0.0.0.0 scope 253 <LINK>
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {add} address 192.168.6.2/30 label usb1 family 2
<Raajeshwar> Nov 03 17:16:58 ddsdevice connmand[1162]: usb1 {add} route 192.168.6.0 gw 0.0.0.0 scope 253 <LINK>
<Raajeshwar> Nov 03 17:17:44 ddsdevice connmand[1162]: eth0 {add} address 169.254.242.141/16 label eth0 family 2
<Raajeshwar> Nov 03 17:17:44 ddsdevice connmand[1162]: eth0 {add} route 169.254.0.0 gw 0.0.0.0 scope 253 <LINK>
<Raajeshwar> Nov 03 17:17:44 ddsdevice connmand[1162]: eth0 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
ikarso has joined #beagle
florian has joined #beagle
otisolsen70 has joined #beagle
<zmatt> Raajeshwar: do NOT EVER paste a giant blob of text like that into chat
<zmatt> use a paste service like pastebin.com
<Raajeshwar> Sorry
<Raajeshwar> Is there a way to remove it?
<zmatt> no
<Raajeshwar> I won't do it again. Sorry about that.
<zmatt> I'm not very familiar with connman, I don't use it myself, but the 45 second delay before connman adds the link-local address (169.254.242.141) suggests to me it timed out trying to obtain an IP address via DHCP
<zmatt> "chkphy:eth0 good" is that from that article you linked earlier? (about the phy issue) because I would not recommend keeping that installed, as that workaround is potentially hazardous for the hardware
<zmatt> (and clearly not relevant for your problem anyway)
<Raajeshwar> Yes it is from that installed from that link.
<Raajeshwar> I get link-local address 1/7 times on rebooting. Don't know why DHCP couldn't obtain IP.
<zmatt> what about when you disconnect ethernet and plug it back in?
<zmatt> if you can reproduce the problem that way, you can try logging in via usb and using a packet sniffer to see what's happening when you plug in ethernet
<zmatt> e.g. (after installing tcpdump with apt): sudo tcpdump -e -i eth0 -p -n -U '(outbound && udp dst port bootps) || (inbound && udp src port bootps)'
<zmatt> optionally add the -v option to get a lot of details (spammy!)
<Raajeshwar> Ok
<zmatt> actually, adding -v is highly recommended, without it doesn't really show much info
<Raajeshwar> Ok. I will try.
Guest2379 has joined #beagle
Guest2379 has quit [Client Quit]
<zmatt> the sequence you normally expect to see is: beaglebone broadcasts "Discover", dhcp server replies with "Offer", beaglebone broadcasts "Request", dhcp server responds with "ACK": https://pastebin.com/raw/xVY8tEp5 (lots of verbiage trimmed)
<Raajeshwar> Disconnecting and Reconnecting ethernet didn't help. systemctl restart networking didn't help. Now I am installing tcpdump to test what you have suggested.
<zmatt> what do you mean by "didn't help" ?
<Raajeshwar> Means, didn't get proper IP
<zmatt> the question was whether it reproduces the problem (i.e. if it behaves similar to reboot)
<zmatt> if it reproduces the problem, that's the desirable outcome since it allows you to debug the issue
<zmatt> (since you can't really run a packet sniffer during boot obviously)
<Raajeshwar> Yes. It reproduces the problem.
otisolsen70 has quit [Quit: Leaving]
<zmatt> also the "networking" service (ifupdown) is irrelevant (and honestly shouldn't even be installed) since you're using connman
<Raajeshwar> Oh. Ok.
<zmatt> and good, then try to see if you can use tcpdump to capture what's going on after you plug in ethernet
<Raajeshwar> Yes. I will get back after checking that.
<zmatt> (i.e. unplug ethernet, start tcpdump (via usb), plug ethernet in, see what output you get)
otisolsen70 has joined #beagle
rob_w has quit [Remote host closed the connection]
buzzmarshall has joined #beagle
dkulp has joined #beagle
dkulp has quit [Client Quit]
dkulp has joined #beagle
renrelkha has quit [Quit: bye]
dkulp is now known as dkulp_away
dkulp_away is now known as dkulp
renrelkha has joined #beagle
<johanhenselmans> Anybody experience with hooking 5GHz USB-Wifi dongles to a beaglebone? I needed the extra channels as lots of Beaglebones are at the same location.
<johanhenselmans> And they all need to function as separate accesspoints.
<zmatt> what? why all as access points/
Raajeshwar has quit [Quit: Client closed]
starblue has quit [Ping timeout: 240 seconds]
florian has quit [Quit: Ex-Chat]
russ has quit [Ping timeout: 240 seconds]
russ has joined #beagle
buckket has quit [Quit: buckket]
buckket has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 268 seconds]
otisolsen70_ has quit [Remote host closed the connection]
ikarso has joined #beagle
dkulp has quit [Changing host]
dkulp has joined #beagle
Shadyman has joined #beagle
buzzmarshall has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
dkulp has quit [Quit: dkulp]
balrog has quit [Quit: Bye]
balrog has joined #beagle
buzzmarshall has joined #beagle
noahm has quit [Ping timeout: 256 seconds]
bldr has quit [Ping timeout: 256 seconds]
denix has quit [Ping timeout: 256 seconds]
denix has joined #beagle
bldr has joined #beagle
noahm has joined #beagle
SJFriedl has joined #beagle
Steve_ has quit [Ping timeout: 272 seconds]