**** BEGIN LOGGING AT Tue Oct 09 02:59:59 2018 Oct 09 03:26:18 Hi, can i ask about beagleboard X15 in this chat? Oct 09 03:28:05 You could try Oct 09 03:32:19 i use kernel 4.14.71-ti-rt-r78 and debian 9.5 2018, now i want use can bus and uart Where should I fix it? Oct 09 03:33:54 i created image cross compiler follow this blog https://www.digikey.com/eewiki/display/linuxonarm/BeagleBoard-X15 Oct 09 04:02:28 you should -download- the cross-compiler [linaro toolchain] then run the other commands to generate an image .. is the process not straight-forward enough? I've used it several times before Oct 09 04:15:54 many blog in beagleboard forum fix it about CAN SPI UART from edit dts file in ti-linux-kernel-dev/KERNEL/arch/arm/boot/dts/am57xx-beagle-x15-revc.dts, Can someone recommend me? Oct 09 09:02:09 Arima: be sure to also do the pinmux/iodelay setup in u-boot Oct 09 13:35:05 Okay, what beaglebone docs refer to as spi0, the linux kernel refers to as spi1, right? I'm trying to get an additional can channel up and running on an MCP2515 on spi0 (again on a custom board), and despite the d0 pin being muxed correctly, I see no output whatsoever. I see activity on CLK, D1, and CS though, so ... ? Oct 09 13:38:55 dmesg shows the driver loading Oct 09 13:51:01 n8vi: whether linux calls it spi0 or spi1 depends on kernel version and DT Oct 09 13:52:14 and d0 is not an output but an input, i.e. if you're not seeing activity there then that simply means your device is not responding Oct 09 13:56:33 I thought it was configurable as either Oct 09 13:56:38 * n8vi rechecks Oct 09 13:59:41 it is, but normally d0 is used as input and d1 is used as output Oct 09 14:00:08 we have it the other way around, but I guess we could try swapping it Oct 09 14:00:12 * n8vi gets sucked into a meeting Oct 09 14:01:02 beware that some bootmodes (e.g. when powering on the beaglebone with the S2 button held down), bootrom will attempt to access an spi flash on spi0 cs0 with d1 as output and d0 as input Oct 09 14:01:16 *in some bootmodes Oct 09 14:24:15 if you use a 4.14 kernel, spi0 will be called spi0 as long as the correct entries are in /aliases in the DT. Oct 09 14:24:25 e.g., wrong: https://github.com/RobertCNelson/dtb-rebuilder/blob/4.14-ti/src/arm/am33xx.dtsi#L39-L40 Oct 09 14:24:28 right: https://github.com/RobertCNelson/dtb-rebuilder/blob/4.14.x/src/arm/am33xx.dtsi#L39-L40 Oct 09 14:25:06 rcn unfortunately had to use the wrong aliases in 4.14-ti for bugwards compatibility reasons Oct 09 14:35:02 hmm Oct 09 14:36:43 (kernel 4.9 will ignore /aliases by default, but this is easy to fix with a patch: https://github.com/dutchanddutch/bb-kernel/blob/am33x-v4.9/patches/drivers/ti/spi/0001-spi-omap2-mcspi-leave-bus_num-allocation-to-spi-core.patch ) Oct 09 14:44:12 m Oct 09 15:28:40 zmatt: that only affects what the kernel calls the bus though, right? spi0 vs spi1, or whatever? Oct 09 15:29:01 yes, hence also the numbering of spidev devices Oct 09 15:29:40 I was only asking about that because we have our chip plugged into the am335x spi0, the kernel is probing it on spi1 , and I just wanted to be sure something weird wasn't happening Oct 09 15:30:10 yeah it's just confusing log entries in your case, but nothing is going wrong there Oct 09 15:30:21 That's what I thought Oct 09 19:29:59 Hello I am running trisquel off of a live usb on an hp computer. I am trying to ssh into my beaglebone black but it just hangs. Is there anything that I am doing wrong? Any help is greatly appreciated! Oct 09 19:30:15 the command I typed after connecting my beaglebone black via usb to my laptop is "ssh debian@192.168.7.2" Oct 09 19:30:28 I installed the the script called "mkudevrule.sh" before trying the above Oct 09 19:30:42 I am connected to the internet via a wifi dongle and can ensure with the ping command that It is connected Oct 09 19:30:50 n.b. I am connected to the internet only via the laptop with the dongle Oct 09 19:30:51 no udev rule is required Oct 09 19:31:03 http://dpaste.com/3CC1WRR Oct 09 19:31:04 your internet connection is not important Oct 09 19:31:17 here is the output of dmesg while trying the above Oct 09 19:31:36 The main error that might be relevant from the above dmesg output is "[ 1843.311175] FAT-fs (sdc1): unable to read boot sector to mark fs as dirty" Oct 09 19:32:11 that's irrelevant Oct 09 19:32:28 zmatt: does it matter that I ran the udev rule? Or is it irrelevant to my issue? Oct 09 19:32:36 ok Oct 09 19:32:39 I have no idea what it does but it's probably irrelevant Oct 09 19:32:55 can you show the output of 'ip addr' ? Oct 09 19:34:21 Hmmm, funny thing is I was trying to help a friend with his bbb over wire (wire.com). I don't have access to his laptop anymore. Oct 09 19:34:31 Or his bbb Oct 09 19:34:58 I'll have him ask and troubleshoot on irc later Oct 09 19:35:47 it's not useful to ask for help here if you don't have access to the bbb for troubleshooting Oct 09 19:36:02 (or the computer you're trying to the bbb) Oct 09 19:36:09 zmatt: is connecting via ssh via usb from a laptop just a matter of plugging in the beaglebone to the laptop and running "ssh debian@192.168.7.2"? Oct 09 19:36:20 normally yes Oct 09 19:36:48 what are potential problems that you have seen arise? Or is this too broad a question? Oct 09 19:36:59 it is Oct 09 19:37:05 He just ordered the bbb rev. c off of amazon Oct 09 19:37:18 maybe a good idea to reflash it with the latest image Oct 09 19:37:18 so it is running the stock kernel from the factory Oct 09 19:37:28 zmatt: yes I thought of that Oct 09 19:37:35 we are going to try that next Oct 09 19:37:42 also, it may be 192.168.6.2 Oct 09 19:37:47 see also https://beagleboard.org/getting-started Oct 09 19:37:59 zmatt: yes I saw that Oct 09 19:38:27 why would it be ".6" instead of ".7" by default? Oct 09 19:38:38 in the ip you just mentioned Oct 09 19:39:00 well actually both probably work on linux host if the beaglebone is running a recent image Oct 09 19:39:34 zmatt: ok well I am just going to get him to flash the latest debian image from beagleboard.org and try again Oct 09 19:39:39 they have an rndis interface with ip 192.168.7.2 and a CDC-EDC interface with ip 192.168.6.2 Oct 09 19:40:15 zmatt: This is a question I've had in my mind and I haven't been able to find the answer to: Oct 09 19:40:46 Is it possible to do ethernet via usb with a laptop? (i.e. without an ethernet cable, just the wifi dongle) Oct 09 19:41:03 I don't understand the question Oct 09 19:41:17 or is the ethernet cable a must for internet over usb? Oct 09 19:41:24 ???? Oct 09 19:41:37 do I need a direct connection via cable to reverse tether the internet Oct 09 19:41:42 you seem to be confusing a lot of things Oct 09 19:42:03 or can I reverse tether the internet connection via a wifi dongle from the laptop to the bbb? Oct 09 19:42:04 you mean you want to provide the beaglebone with internet access? Oct 09 19:42:08 yes Oct 09 19:42:22 from the laptop via the laptop's wifi dongle Oct 09 19:42:58 he doesn't have access to a router with an ethernet cable where he is at Oct 09 19:43:41 or would it be easier to just to use connman when we flash the new debian image? Oct 09 19:43:43 you should be able to do internet sharing via usb Oct 09 19:44:03 zmatt: thank you for your help by the way Oct 09 19:44:38 I don't know the details on how to get the beaglebone configured in the right way (I don't use connman myself), but someone here recently said it's really straightforward ;) Oct 09 19:46:19 I tried it and it worked easily with my new debian 9.5 upgrade Oct 09 19:47:13 Is there any guide that could show me how to set up spidev on debian 9.5 for using flashrom ina similar setting to this guide? https://libreboot.org/docs/install/bbb_setup.html Oct 09 19:47:42 you only need to configure the pins using the 'config-pin' utility Oct 09 19:47:44 I know that 9.5 doesn't use overlays anymore Oct 09 19:48:28 you can still use overlays, but there's usually no reason to mess with them anymore Oct 09 19:48:49 zmatt: so there's no need to modify uEnv.txt as specified in the old libreboot docs? Oct 09 19:48:54 no Oct 09 19:49:00 those libreboot docs* Oct 09 19:49:02 ok Oct 09 19:50:43 zmatt: so my steps would be use config-pin utility to set up 17,18,21,22 and then just proceed with the hardware side of things? Oct 09 19:51:07 for pin in P9.{17,18,21,22}; do config-pin $pin spi; done Oct 09 19:51:09 or something Oct 09 19:51:22 note: does not persist across reboot Oct 09 19:51:25 do I use spidev 1.0? Oct 09 19:51:51 or another version of spidev? Oct 09 19:51:54 yeah regrettably the off-by-one in spi bus numbering has been retained out of bugwards compatibility, so spi0 cs0 is called spidev1.0 Oct 09 19:53:06 zmatt: so all I have to do is run the above bash one liner and proceed with testing spidev 1.0 and flashrom etc... with the hardware? Oct 09 19:53:24 there is no other software side configuration I need to figure out? Oct 09 19:53:34 that should be all Oct 09 19:53:39 that's cool Oct 09 19:53:48 much easier than how it used to be! Oct 09 19:54:18 It would be great if someone updates the libreboot docs for using debian 9.5 :) Oct 09 19:54:40 tell someone from the libreboot project? Oct 09 19:54:58 zmatt: do you know of any good free online resources that retells what you just showed me? Oct 09 19:55:17 there might be an irc log of this channel online ;) Oct 09 19:55:24 zmatt: yes definitely. I will! Oct 09 19:55:26 lol Oct 09 19:55:57 I am looking for published things from a wiki or blog that you might know of or a book that has been published? Oct 09 19:56:08 no idea Oct 09 19:56:26 is there a bbb rev c man page that discusses spi on 9.5? Oct 09 19:56:36 I mean, there are probably a fair number of books, all of them outdated (as tech books usually are) Oct 09 19:56:37 spi setup that is Oct 09 19:56:59 it's just been a little frustrating trying to find this information Oct 09 19:57:00 there's no special about "spi setup", you just configure the pins to spi function Oct 09 19:57:06 *nothing special Oct 09 19:57:17 yeah I agree docs are kinda lacking Oct 09 19:58:13 so on after debian 9.5 it's just a matter of turning them on as stated above Oct 09 19:58:14 ok Oct 09 19:58:43 zmatt: have you tried flashing libreboot with the bbb before? Oct 09 19:58:53 no Oct 09 19:59:37 have you tried flashing libreboot with another flasher? Oct 09 20:00:22 I know libreboot exists and is some coreboot derivative, that's about it Oct 09 20:02:29 zmatt: Ohh ok, just curious. Well thank you again for your help! Oct 09 20:02:43 it has clarified alot! Oct 09 20:28:45 I first thought, why would you need a library to reboot, and then it dawned on me ;) Oct 09 20:28:58 my brain just cannot parse that. Oct 09 20:29:16 same for libreoffice. Oct 09 20:29:39 yeah, I feel ya. any name that starts with "libre" sucks Oct 09 20:30:49 (where that part is to be read as "libre" rather than "lib-re") Oct 09 20:34:04 Hello, I m new to using BeagleBoard Black. If i m connection 23 BB units in a shelf that is to be enclosed. Could someone please advice me on how I can ground them. Oct 09 20:34:21 o.O Oct 09 20:36:30 how are you powering them? if you use some beefy 5V busbar for the whole shelf then its ground terminal would also be the ground of each beaglebone. (you can power the beaglebone via the P9 header if that happens to be more convenient) Oct 09 20:38:59 Hi i am new here..I need your help. Oct 09 20:39:31 mendon: in general, there are lots of ways of grounding the beaglebone. e.g. the mounting holes are also grounded Oct 09 20:39:54 i want to set pwm on all 8 channel Oct 09 20:40:15 how is it possible. Oct 09 20:41:27 i am using Beaglebone black with debian 9.4 and kernel 4.14 Oct 09 20:42:42 Masood: in general you configure a pin to pwm function using "config-pin $pin pwm" where $pin is e.g. P9_22 Oct 09 20:45:07 to use P9.28 for pwm you need to disable audio by uncommenting (removing the "#" in front of) the line "disable_uboot_overlay_audio=1 Oct 09 20:45:13 in /boot/uEnv.txt Oct 09 20:47:11 thankz zmatt Oct 09 20:47:39 i will try now once again. could you send me a link Oct 09 20:47:52 a link? to what? Oct 09 20:48:09 for guide Oct 09 20:48:35 uh, no idea? Oct 09 20:49:28 i also want to set P9.29 and P9.31 pins as pwm Oct 09 20:50:55 the pwmfunctionality of those pins is also available on P9.21 and P9.22, but if you prefer to use P9.29 and P9.31 instead then you can do that too after disabling audio as mentioned above Oct 09 20:51:08 (using P9.21/22 instead does not require disabling audio) Oct 09 20:51:49 ok thankz **** ENDING LOGGING AT Wed Oct 10 02:59:59 2018