**** BEGIN LOGGING AT Fri Aug 19 02:59:58 2016 Aug 19 08:48:16 funny thing to consider in bbb vs rpi2 comparison -> https://community.arm.com/thread/8274 Aug 19 12:15:18 Could anybody have a look at this please? https://groups.google.com/forum/#!category-topic/beagleboard/nyyq1wQtGQc Aug 19 13:34:27 laurittr: why on earth are you using an spi can controller when the beaglebone has two built-in can controllers? Aug 19 13:37:52 zmatt: I want to have two physically separated can network, one for critical operation and one where i can hook up extension boards, sensors etc. that i know will not mess up traffic. I know the can protocol has priorities but if i let other people hook up stuff i dont want it to mess with the rest of the system if it fails or they fail (like shorting the cables or something) Aug 19 13:38:06 But it is supposed to work, right? Aug 19 13:38:17 like, even if it sounds like a stupid idea? Aug 19 13:54:57 hehe Aug 19 13:55:17 you said two built-in can controllers? hhaha, what am I doing? Aug 19 13:58:34 :D Aug 19 13:58:47 https://goo.gl/Jkcg0w Aug 19 13:59:03 the orange-marked tabs are most useful to the BBB Aug 19 13:59:40 the BBB tab is in comprehensive tabular form, the P9/P8 tabs are however more useful as quickref in practice Aug 19 14:00:11 sometimes also useful is the Signals tab which lets you look up a particular signal (e.g. can 0 rx/tx) and check on which pins they're available Aug 19 14:01:59 ah you probably missed the second one because it's on the pins used for CAPE identification... otoh cape autodetection was a nice idea in theory, it's hardly a must-have Aug 19 14:12:09 mhm, probably Aug 19 14:12:18 But i kind of still want it to work Aug 19 14:13:10 I've spent so much time on it. I hate not getting stuff to work. Even though i obviously dont need it Aug 19 14:13:23 what, cape autodetection? Aug 19 14:13:59 no, the mcp2515 chip Aug 19 14:14:02 oh Aug 19 14:17:54 so, the horrid syntax of overlays makes it rather annoying to check if everything is okay Aug 19 14:18:04 my overlay-tools repo has two examples for spi Aug 19 14:19:10 for gpio irqs please write IRQ_TYPE_EDGE_FALLING instead of 0x2 ( https://github.com/mvduin/overlay-utils/blob/master/include/irq.h ) for readability Aug 19 14:22:02 the clocks node is your problem Aug 19 14:22:24 sweet! I just answered on the forum as well. I tried with IRQ_TYPE_EDGE_FALLING, but it didn't build. I guess I have to include it? Is it already on my BBB or do I have to download it? Aug 19 14:22:37 #include "irq.h" Aug 19 14:22:45 it's included in my overlay-utils repo Aug 19 14:24:19 you can make your osc just a top-level node Aug 19 14:24:30 maybe give it a bit more descriptive name Aug 19 14:24:45 the problem is that your overlay is defining it outside a fragment Aug 19 14:26:27 So i should add #include "irq.h" at the top of my overlay Aug 19 14:26:44 and put the clock inside a fragment? Aug 19 14:27:16 if you're using my overlay utils then, as seen by the examples, you don't need to manually make fragments anymore Aug 19 14:27:25 if you're not using my overlay utils then #include won't work Aug 19 14:27:33 ok, I understand Aug 19 14:27:37 Il try your tool Aug 19 14:27:54 you can just type "make" to build dtbos from the dtsis Aug 19 14:30:07 it would be more appropriate btw to make the irq gpio pinmux associated with the can controller node rather than with the spi Aug 19 14:30:23 So i need two pinmuxes= Aug 19 14:30:24 ? Aug 19 14:30:54 yeah, one for spi (which you can probably reuse unmodified from one of my two examples) and one for the irq gpio Aug 19 14:31:04 Are you the guy that answered on the forum btw? Aug 19 14:31:10 yes Aug 19 14:31:24 ok, just had to check Aug 19 14:31:31 since some of the more important points are probably useful for future reference Aug 19 14:31:47 ye! Il post the solution when/if I find it ;) Aug 19 14:31:50 anyhow, I'm distracted for a bit Aug 19 14:31:54 good luck :) Aug 19 14:31:57 thanks Aug 19 14:34:43 using connman is there a way to change the wifi settings? I want to disable 802.11b and g and force only n Aug 19 14:35:51 this is with a rt5370 in tether mode Aug 19 15:01:26 zmatt: So if i split up the can int pin I have to use pinctl-0 and pinctrl-names inside the mcp2515 scope? Aug 19 15:02:30 yes Aug 19 15:02:42 since it belongs to the mcp specifically, not the SPI bus in general Aug 19 15:03:11 Like this? http://dpaste.com/3DF8ANY Aug 19 15:03:58 does &clocks actually exist? Aug 19 15:04:47 I don't know :( could not figure what else to put there Aug 19 15:04:57 root node is fine Aug 19 15:04:59 { Aug 19 15:05:03 / { Aug 19 15:05:05 sorry Aug 19 15:05:28 (and no, there's no &clocks ) Aug 19 15:05:39 ah, so that it what that means Aug 19 15:05:48 Have been wondering about that for a while Aug 19 15:05:50 &foo references an existing label Aug 19 15:06:01 either in your overlay or in the main dts Aug 19 15:06:11 Where do I find all existing labels? Aug 19 15:07:32 I just did grep -w 'clocks:' arch/arm/boot/dts/am33* Aug 19 15:07:35 in the linux source tree Aug 19 15:07:45 Ok, that makes sense Aug 19 15:08:05 or you can check /proc/device-tree/__symbols__ Aug 19 15:08:25 Now i have compiled it and moved it to /lib/firmware but echoing to /sys/devices/platform/bone_capemgr/slots gives me an I/0 error Aug 19 15:09:06 did you disable cape-universal yet? Aug 19 15:09:19 yes Aug 19 15:09:37 (and reboot, obviously) Aug 19 15:09:51 haha, iv'e done that ;) Aug 19 15:10:23 dmesg gives me nothing except it is trying to load it Aug 19 15:10:32 I'm not actually sure whether the overlays I produce are capemgr-compatible, I've only tested with the new configfs mechanism Aug 19 15:10:37 for which overlay-utils includes utils btw Aug 19 15:10:43 bin/add-overlay blah.dtbo Aug 19 15:10:58 So I should run that? Aug 19 15:11:04 you can try Aug 19 15:11:48 I spot an error Aug 19 15:11:58 &spi { should be &spi1 { Aug 19 15:12:05 I just saw that Aug 19 15:12:10 ok Aug 19 15:12:36 in a main overlay that would produce an error, but when compiling an overlay dtc has no idea what definitions are valid or not Aug 19 15:12:47 and the kernel is not always doing a great job at reporting problems either Aug 19 15:13:31 I've personally abandoned the use of overlays entirely, they're a headache Aug 19 15:13:41 So what do you use? Aug 19 15:13:48 custom main dtb Aug 19 15:14:44 It loaded now Aug 19 15:15:02 Il hook it up and see if it works Aug 19 15:15:31 it loaded with your add-overlay script Aug 19 15:20:16 Do I need to run that script on startup or is it forever? Aug 19 15:57:22 overlays are by nature temporary Aug 19 15:58:20 I never bothered making a startup service since, really, if you want stuff to be there right from boot then it feels silly to use an overlay (even though I know there's a bit of initial barrier to using a custom dtb) Aug 19 16:59:14 I can't get bbp board to come up Aug 19 16:59:58 All 3 blue light come on for a sec then go off then turn on and off about every 30 seconds Aug 19 17:01:01 Could someone tell me what the lights mean? Aug 19 17:10:17 Stratrascal: attach to the debug UART Aug 19 17:11:11 HOw do I do that? Aug 19 17:11:20 With usb? Aug 19 17:11:24 no Aug 19 17:11:34 you need a USB serial adapter Aug 19 17:11:41 Ok I have one of those Aug 19 17:11:55 a FTDI adapter Aug 19 17:12:22 Could you point me to an article or web page for that? Aug 19 17:13:24 http://blog.tonywall.co/2013/11/beaglebone-black-serial-debug-connection/ Aug 19 17:13:29 http://dave.cheney.net/2013/09/22/two-point-five-ways-to-access-the-serial-console-on-your-beaglebone-black Aug 19 17:13:38 Thanks. Aug 19 17:13:57 I will follow those and check back if I need some more help Aug 19 17:14:16 I had this board working a few months ago but now it seems fubar Aug 19 17:15:28 abt Aug 19 17:15:55 Stratrascal: by chance, did you plug in a SD card? Aug 19 17:16:27 Yeah, it had one in it when I fired it up again Aug 19 17:17:32 But now I have downloaded an Image and burned it to an sd. That is what is in there now3 Aug 19 17:17:38 now Aug 19 17:18:32 From the instructions I found I just need to mount it and fire it up. It should load the image to the flash. Right? Aug 19 17:20:55 hm, depends on the image Aug 19 17:21:36 did you press the boot select button while powering up? Aug 19 17:21:47 I tried that Aug 19 18:22:08 zmatt: I Aug 19 18:22:37 zmatt: I'm just a student so I have nothing agains learning some more. Where do I start if I want to do that? Aug 19 18:23:56 laurittr: I think rcn may have some toolage for rebuilding a dtb... I don't even exclude the possibility it might already be installed by default on standard images Aug 19 18:25:27 or, you can grab one of his kernel build trees... they get you a compiled kernel which it can even package up as a .deb, but you can then also just change a dts file and rebuild Aug 19 18:25:39 (of course there's absolutely no need to build a kernel just for the dtb) Aug 19 18:28:23 rcn = RobertCNelson right? Aug 19 19:42:27 Hi Aug 19 19:42:31 to all Aug 19 19:42:56 I need a help to start on BB board Aug 19 19:53:44 laurittr: yes Aug 19 19:53:55 Aug 19 21:57:17 MathOnNapkins: ty Aug 19 21:57:35 shiv_ Aug 19 21:57:43 what do you want to know? **** ENDING LOGGING AT Sat Aug 20 02:59:58 2016