**** BEGIN LOGGING AT Sun Jan 14 03:00:03 2018 Jan 14 11:49:36 how do i tweak u-boot device tree to change am335x clock to 600Mhz (instead of 1Ghz)? Jan 14 14:44:32 cyberguy: device tree isn't the problem Jan 14 14:45:41 cyberguy: the problem is that u-boot configures the clock speed very early on, and for most boards it will auto-detect the correct speed based on am335x efuses, but for the beaglebone black it hardcodes 1 GHz because some early beaglebone blacks had some early am335x parts with incorrectly programmed efuses Jan 14 14:46:19 since I noticed the kernel mentioned there's no board identification EEPROM, I'm guessing you patched u-boot to think it's a beaglebone black Jan 14 14:46:34 ? Jan 14 17:17:00 Hi friends. Hoping someone can help. I am trying to read from uart PIN P9_11 (UART4) and writing o n to P9_24(UART1). Jan 14 17:17:39 I am getting following error. Kernel does not include CapeMgr module Jan 14 17:18:00 let me guess: you're booting a recent image from SD card (not flashed to eMMC) Jan 14 17:19:04 I was using SD card until recently but I have flashed it to eMMC and running from there. Jan 14 17:19:27 hmm, which image are you running? (cat /etc/dogtag) Jan 14 17:20:04 Debian Image 2017-10-10 Jan 14 17:20:30 yeah I think that may be recent enough for u-boot overlays.... are they mentioned in /boot/uEnv.txt ? Jan 14 17:20:47 let me check..thanks Jan 14 17:23:02 I am sorry..I am just trying with BBB for last one week. While I have some good exp with Unix side I am newbee to BBB. Jan 14 17:23:16 What should I look for uEnv.txt ? Jan 14 17:23:30 whether enable_uboot_overlays=1 Jan 14 17:23:32 is in there Jan 14 17:24:04 or just pastebin your /boot/uEnv.txt Jan 14 17:24:40 yes it is there and uncommented Jan 14 17:25:11 does /proc/cmdline include the kernel parameter "bone_capemgr.uboot_capemgr_enabled=1" ? Jan 14 17:26:04 oh suddenly I realize your problem has nothing to do with cape-universal Jan 14 17:26:33 you're using some archaic adafruit stuff probably for the uarts? Jan 14 17:27:46 yes bone_capemgr.uboot_capemge_enable-1 option is there in /proc/cmdline Jan 14 17:28:07 okay, your system is fine, the issue is with the code you're using Jan 14 17:28:26 (most likely) Jan 14 17:29:39 var b = require('bonescript'); var rdport = '/dev/ttyO4'; var rdoptions = { baudrate: 115200 }; var wrport = '/dev/ttyO1'; var wroptions = { baudrate: 115200 }; var inData = 'Test Data'; console.log(inData); b.serialOpen(rdport, rdoptions, onSerial); b.serialWrite(wrport,"Test Data"); console.log('After write'); function onSerial(x) { if (x.err) { console.log('***ERROR*** ' + JSON.stringify(x)); } Jan 14 17:29:49 bonescript, hmm Jan 14 17:30:04 Not sure if there is better way to paste code.. Jan 14 17:30:08 also, please don't paste multiline stuff directly into chat, use a paste service like pastebin.com Jan 14 17:30:23 ok..thanks..will do Jan 14 17:30:47 if your bbb has internet access, you can also use the utility "pastebinit" to turn a file or the output of a command into a pastelet Jan 14 17:31:17 I know very little about bonescript Jan 14 17:31:57 the error sounds like it is still trying to load an overlay for the uarts, which is not appropriate Jan 14 17:32:12 I'm assuming /dev/ttyS1 and /dev/ttyS4 do actually exist? Jan 14 17:32:25 https://pastebin.com/PjSVmcRu Jan 14 17:33:50 Yes they exist. I could see /dev/ttyO1 to ttyO4 symbolic linked to /dev/ttyS1 and /dev/ttyS4 Jan 14 17:34:03 yeah ttyO* are backward-compat symlinks Jan 14 17:36:34 thanks a lot matt :-) certainly learnt new things. Jan 14 17:36:40 might just be a bug in bonescript Jan 14 17:38:14 yeah, based on a superficial look at the code, it looks like it wants to load an overlay for uarts even if cape-universal is being used Jan 14 17:38:17 which fails Jan 14 17:38:26 I read in some message chain.. For the 4.1 kernel, you need the beta version of BoneScript to use the pinmux helpers it understands. I believe the package is: apt-get install bonescript-beta Jan 14 17:38:54 well I'm looking at bonescript fresh from git Jan 14 17:39:02 oh ok Jan 14 17:40:05 my suggestion would be: use the config-pin command to configure the two pins you need to uart mode, and just use the serial ports using any generic code for serial ports on linux Jan 14 17:41:50 ok. I did config-pin P9.11 uart config-pin P9.26 uart Jan 14 17:42:24 can you pl throw some light on 'generic code for serial ports on linux' ? Jan 14 17:42:54 bonescript uses the 'serialport' package for nodejs Jan 14 17:43:09 juse use that package directly Jan 14 17:43:26 https://www.npmjs.com/package/serialport#usage Jan 14 17:44:29 ok. let me check. thank you Jan 14 17:48:25 matt thanks again for help. It is getting late in to night here. I will take a break and try.. Jan 14 19:06:16 q Jan 14 19:06:19 exit Jan 14 19:06:22 quit Jan 14 19:48:55 h Jan 14 19:48:57 hi Jan 14 19:49:28 i have a tech site with many followers. are you interested in a review? my email is francescomura00@gmail.com **** ENDING LOGGING AT Mon Jan 15 03:00:01 2018