**** BEGIN LOGGING AT Fri Nov 04 02:59:56 2022 **** BEGIN LOGGING AT Fri Nov 04 06:03:09 2022 Nov 04 07:51:06 set_: note that this 5v output is just the sys_5v output from the beaglebone Nov 04 11:55:07 Hi Everyone, I've been trying to cross compile for beaglebone green and this is the article that I'm referring to https://forum.digikey.com/t/debian-getting-started-with-the-seeedstudio-beaglebone-green-gateway/12971 Nov 04 11:56:01 Unfortunately, I don't see any IP address associated to beaglebone when I run `ip addr` Nov 04 11:57:54 Following are the logs that I see on the host platform Nov 04 11:57:54 ``` Nov 04 11:57:55 [177416.888422] rndis_host 1-4.1:1.0 enxc8fd19e854a5: renamed from eth0 Nov 04 11:57:55 [177416.933948] cdc_ncm 1-4.1:1.3 enxc8fd19e854a7: renamed from eth1 Nov 04 11:57:56 [177416.999526] cdc_ncm 1-4.1:1.3 enxc8fd19e854a7: 425 mbit/s downlink 425 mbit/s uplink Nov 04 11:57:56 [177417.063686] IPv6: ADDRCONF(NETDEV_CHANGE): enxc8fd19e854a7: link becomes ready Nov 04 11:57:57 [177417.822350] scsi 0:0:0:0: Direct-Access Linux File-Stor Gadget 0510 PQ: 0 ANSI: 2 Nov 04 11:57:57 [177417.823029] sd 0:0:0:0: Attached scsi generic sg0 type 0 Nov 04 11:57:58 [177417.823344] sd 0:0:0:0: Power-on or device reset occurred Nov 04 11:57:58 [177417.823770] sd 0:0:0:0: [sda] 36864 512-byte logical blocks: (18.9 MB/18.0 MiB) Nov 04 11:57:59 [177417.824095] sd 0:0:0:0: [sda] Write Protect is on Nov 04 11:57:59 [177417.824099] sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00 Nov 04 11:58:00 [177417.824328] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Nov 04 11:58:00 [177417.864584] sda: sda1 Nov 04 11:58:01 [177417.907311] sd 0:0:0:0: [sda] Attached SCSI removable disk Nov 04 11:58:01 [177441.736480] usb 1-4.1: USB disconnect, device number 53 Nov 04 11:58:02 [177441.736624] rndis_host 1-4.1:1.0 enxc8fd19e854a5: unregister 'rndis_host' usb-0000:00:14.0-4.1, RNDIS device Nov 04 11:58:02 [177441.873912] cdc_ncm 1-4.1:1.3 enxc8fd19e854a7: unregister 'cdc_ncm' usb-0000:00:14.0-4.1, CDC NCM Nov 04 11:59:54 I'm not sure what exactly is wrong here, anyone face this before? Or have any pointer to a better guide for BBG cross compiling setup? Nov 04 12:22:53 nope, these logs are from emmc instead of sd card. It looks like I don't get any logs when I try to boot from SD card. Nov 04 12:23:32 shree_ya: in the future please don't copy-paste multi-line stuff such as logs into chat... share it using a paste service such as pastebin.com Nov 04 12:23:33 Hi Nov 04 12:24:05 that's what i was gonna say, there's a few sites just post the link to a pastebin pls Nov 04 12:24:41 shree_ya: any particular reason why you're trying to cross-build a custom image rather than using the standard debian image? Nov 04 12:24:53 zmatt jfsimon1981_b sorry about it. I'll take care of it next time. Nov 04 12:25:12 makes it easier to ready anyway Nov 04 12:25:13 shree_ya: also, beaglebone green, or beaglebone green gateway? Nov 04 12:25:17 those are very different boards Nov 04 12:26:13 zmatt I'd like to work on adt7316 driver. I have an evaluation board for the same which I'll be connecting to BBG. Nov 04 12:26:55 Also I'm assuming process for cross compiling is kind of same for BBG Gateway and BBG Nov 04 12:27:44 shree_ya: for developing a kernel driver I'd still be inclined to just start with a normal image (probably a bullseye minimal image) and then use rcn's kernel build tool to build a custom kernel Nov 04 12:28:57 But don't I need to transfer the contents like zImage, dtbs etc after building the custom kernel? Nov 04 12:29:51 shree_ya: and yeah I'd expect the process to be similar, though beware that the BBGG differs significantly from the BBG... the BBG uses the built-in ethernet of the beaglebone (like every other beaglebone that has ethernet except the BBGG) while the BBGG uses an usb ethernet chip Nov 04 12:30:22 shree_ya: rcn's kernel build tool produces a debian package (.dpkg) containing the zimage, modules, and dtbs Nov 04 12:31:16 so that makes it really easy to install Nov 04 12:32:02 nevertheless, it's a good question why you're having trouble with these instructions, it does look to me like they should work Nov 04 12:33:56 zmatt are you saying I should run rcn's kernel build tool from inside the BBG? Nov 04 12:34:43 beware that if you're trying to boot from sd card while there's a system on eMMC that's substantially older or different from the one you're trying to boot from sd, then you may need to bypass the bootloader on eMMC by powering on with the S2 button held down (you can let go once the power led turns on) or just wiping eMMC using sudo blkdiscard /dev/mmcblk1 Nov 04 12:34:48 no! Nov 04 12:35:46 I'm suggesting you use rcn's kernel build tool ( https://github.com/RobertCNelson/ti-linux-kernel-dev ) on your development system, then transfer the .dpkg file to the bbb and install it with sudo dpkg -i linux-image-whatever.dpkg Nov 04 12:36:15 my notes on building kernels: https://pastebin.com/eLhrp1Hg Nov 04 12:36:25 hmm okay, I'll take a look at it. Nov 04 12:36:37 regardless, you'll want a working system first Nov 04 12:37:20 I currently have 5.10 kernel running on BBG Nov 04 12:37:29 ok Nov 04 12:37:54 But that is running through emmc. Not sure why but I've never been able to boot using sd card Nov 04 12:38:42 even if you flash an official image to sd card using Etcher ? Nov 04 12:38:53 yes Nov 04 12:38:59 It has never worked Nov 04 12:39:13 I do press s2 button to bypass the emmc as well. Nov 04 12:39:24 does it detect the sd card if you insert it after booting from eMMC ? Nov 04 12:39:45 (based on the kernel log) Nov 04 12:41:23 btw it looks like the ADT7316 already has a kernel driver? or do you mean "work on" in the sense of improve it? Nov 04 12:41:37 yes, improve it. Nov 04 12:41:40 ah Nov 04 12:42:15 anyway, I'm at work and should probably resume my focus on doing work stuff Nov 04 12:43:17 I don't know if it detects the sd card or not. I'm not able to ssh when I have sd card inserted while I boot from emmc. Nov 04 12:43:38 ehh Nov 04 12:43:52 I mean insert the sd card after you've already fully booted Nov 04 12:44:04 No, it doesn't detect sd card Nov 04 12:44:35 but... this sounds really weird since if it doesn't detect the sd card then it shouldn't matter at all whether the sd card is inserted or not Nov 04 12:44:41 at boot I mean Nov 04 12:45:38 anyway, I really need to go, I'll be around again later Nov 04 12:46:59 Sorry my bad, it does detect the sd card. Not sure why it didn't when I checked it last time. See you later Nov 04 13:38:16 I've been beating my head against CAN on BBB - 2GB version .  Using SN65HVD230 CAN Bus Transceiver Breakout and the can1 interface on the BBBs.   I believe I have it wired up correctly, DCAN1 TX (pin 24) to the CTX on the breakout, pin26 to CRX, the CANH and CANL between the breakouts hooked together, and GND and 3.3V from the BBB pins 1 + 3. Nov 04 13:38:16 I've brought up the interfaces in /etc/network/interfaces and have `can1: mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000`  But using cangen on one BBB shows nothing in candump on the other.  Any ideas or resources?  Using the latest minimal debian install from this forum post: Nov 04 13:38:17 https://forum.beagleboard.org/t/debian-11-x-bullseye-monthly-snapshots/31280 Nov 04 13:39:30 was going off this post for general instructions: https://www.beyondlogic.org/adding-can-to-the-beaglebone-black/ Nov 04 14:01:17 Well, found an article that says I have to enable the pins to be can and not default: https://www.thomas-wedemeyer.de/de/electronic/arm/beaglebone/canbus-python/ and now it's working.  Now to figure out how to do this in the dtc overlays as I figure that's the way it's supposed to be done, not using a manually build service like this one says Nov 04 14:18:58 Guest47: you can use either runtime pin configuration (config-pin) or an overlay indeed Nov 04 14:19:06 I'm pretty sure there are standard overlays for can... Nov 04 14:19:36 yeah, /lib/firmware/BB-CAN1-00A0.dtbo Nov 04 14:19:36 I was fooled into thinking the overlays were already applied because ip link showed them active Nov 04 14:20:09 when i checked the pin config it said default but i wasn't sure if default meant can Nov 04 14:20:30 yeah that's a side-effect of cape-universal enabling everything and the kitchen sink to be able to use them simply by muxing the pins... the peripherals themselves are unaware of runtime pin configuration Nov 04 14:20:44 for almost all pins the default mode is gpio Nov 04 14:20:55 you can view pinmux in more detail using my show-pins utility: https://github.com/mvduin/bbb-pin-utils/#show-pins Nov 04 14:22:03 if you want the pins enabled at boot without having to use config-pin, configure /lib/firmware/BB-CAN1-00A0.dtbo into one of the uboot_overlay_addr4..7 variables in /boot/uEnv.txt Nov 04 14:23:24 awesome, that's the road I was heading down to enable them but was running into conflicting instructions.  and good on the pinmux link, that's handy Nov 04 14:24:13 now I just have to deal with the fact that with the 2GB model, I have barely any room to do things.  Keep having to clear out log files to save things Nov 04 14:24:39 Hey, thanks for the help Nov 04 14:24:44 hmm, surely with the minimal install there should be enough free space? Nov 04 14:25:22 and typically you can do further cleanup of the minimal install too, since it'll have packages e.g. for wifi-enabled boards that may not matter to you Nov 04 14:35:26 Guest47: you can try freeing up space using: sudo apt-get purge firmware-{iwlwifi,misc-nonfree,atheros,libertas,brcm80211} rtl8723bu-modules-$(uname -r) Nov 04 14:57:59 or a more thorough purge of wifi-related stuff would be: sudo apt-get purge {bb-bbai,bb-wl18xx,sancloud}-firmware firmware-{atheros,brcm80211,iwlwifi,libertas,misc-nonfree,realtek,ti-connectivity,zd1211} {qcacld-2.0,rtl8723{b,d}u,rtl8821cu}-modules-$(uname -r) hostapd iw bb-wlan0-defaults wpasupplicant Nov 04 15:04:44 @zmatt: I saw what you typed last when directing it at me. Okay about the 5v output being sys_5v from the BBB. Thank you. Nov 04 15:47:29 Hello I am new to Beagle world - I am unable to connect BB AI 64 via usb using Windows 10,then I installed the drivers by using overriding mode (as the driver are not certified my Microsoft). Still I find the driver is not compatible with the hardware. Please help to solve this issue - Thank in advance Nov 04 15:50:57 the dumb thing is that no driver installation should be needed, it uses RNDIS which is microsoft's own usb networking protocol which uses microsoft's own driver which is integrated into windows Nov 04 15:51:07 but somehow microsoft periodically breaks it anyway Nov 04 15:56:34 (and the bbb also supports the usb standard networking protocol CDC-NCM but microsoft doesn't bother implementing standards) Nov 04 15:56:57 the beaglebone images I mean, hardware variant shouldn't matter Nov 04 16:07:29 Zmatt i understand that, but how to connect / over this issue Nov 04 16:07:58 *Over come this issue Nov 04 16:09:17 I don't know, my understanding was that it should currently just work fine plug and play Nov 04 16:09:39 I don't use Windows myself Nov 04 16:10:30 Thank you Zmatt Nov 04 16:10:55 you're not able to browse to http://192.168.7.2/ ? Nov 04 16:11:29 (or ssh to debian@192.168.7.2 ) Nov 04 16:11:55 yes Nov 04 16:12:25 but ping's well via 192.168.7.2 Nov 04 16:12:49 if you can ping it then the network interface is working and you should be able to log in on the beaglebone Nov 04 16:14:22 In device manager I see and error - that looks like drive error or non compatible drive Nov 04 16:15:43 my guess would that's the usb standard network interface (CDC-NCM), which isn't supported by microsoft, but that's why there's also a microsoft-proprietary network interface (RNDIS), which is clearly working fine for you if you can ping it Nov 04 16:16:38 so I wouldn't worry about that Nov 04 16:18:16 Thank how to connect? Nov 04 16:18:49 typically via ssh... I would normally also expect there to be a web interface though I personally don't use that Nov 04 16:19:36 Ok Nov 04 22:31:10 Well, I got back to the BBBlue and "flying." Nov 04 22:31:39 Notta so far! But...I will keep trying this time. I can feel a wind a brewing. Zoom! Nov 04 22:52:46 GenTooMan: Hello. How are the am335x boards treating you these days? Nov 04 23:16:05 bbl! Nov 05 00:12:40 @zmatt: good advice on the apt-get purge there, that freed up almost 300MB, much better now.  Ty Nov 05 00:14:14 yw Nov 05 00:15:16 set_, haven't touched them in a while mind keeps going blank when I do ... I guess that is to be expected :D Nov 05 01:38:52 Oh. Nov 05 01:39:26 I keep reading. I get ideas here and there but nothing compounded. Nov 05 01:39:39 No summaries yet...blah. Nov 05 01:40:30 It seems BBBlue and arducopter beat me again. I even broke something else this time (AGAIN). Nov 05 01:41:24 It is like an endless loop of not working correctly and yet people are flying around their BBBlues w/ arducopter? Aw! Nov 05 01:42:10 Anyway, Friday Funday turned out to be a bugger in the milk. Nov 05 01:42:27 No one wants tarnished silver. Nov 05 01:44:44 Ha. **** ENDING LOGGING AT Sat Nov 05 02:59:57 2022