**** BEGIN LOGGING AT Mon Apr 08 02:59:57 2019 Apr 08 03:00:41 So...I got apache2 to work but it is not allowing me to show my web address. Only the IP is coming through. Apr 08 03:00:45 Dang! Apr 08 06:55:24 Hi there, I am newbie here Apr 08 06:58:09 i am trying to write a python3 scripts to do by pass the certificate/ssh to download the linux image through python3 scripts. Understood beagleboard having the issue of NTP update if the board turn off and turn on again Apr 08 06:58:14 please advice Apr 08 07:06:42 salty_: you're not making sense. what is the *big* picture of what you're trying to do? Apr 08 07:15:35 sorry Apr 08 07:16:07 i am trying to download url https. but it gives an error Apr 08 07:17:31 what is the exact error? Apr 08 07:18:30 please hold on.. i am rerun it now to get the error Apr 08 07:20:16 btw, which board are you using and which image are you running on it? Apr 08 07:21:14 if you don't have fully working internet access (i.e. the board cannot reach public NTP servers) then you'll need to configure a local ntp server in /etc/systemd/timesyncd.conf Apr 08 07:21:52 requests.exceptions.SSLError: HTTPSConnectionPool(host='cdn.download.clearlinux.org', port=443): Max retries exceeded with url: /latest (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)'),)) Apr 08 07:21:52 (if you're on a corporate network that has a Windows domain, I think you can fill in the IP of any Domain Server there) Apr 08 07:22:02 beagleboardx15 Apr 08 07:22:16 (hostname or IP) Apr 08 07:23:00 I'm assuming the system date is wrong? (as reported by 'date') Apr 08 07:23:02 I'm sure Intel can afford an NTP server or two. ;-) Apr 08 07:23:10 tbr: ? Apr 08 07:23:28 10.221.183.52 192.168.7.2 Apr 08 07:23:41 beagleboard-x15.png.intel.com Apr 08 07:23:41 tbr: ah I see Apr 08 07:23:53 :) Apr 08 07:24:06 yes. system date wrong, but can i by pass it? Apr 08 07:24:21 you should not. You should make sure it gets a correct date. Apr 08 07:24:26 ^ Apr 08 07:24:31 shell scripts can be by pass it but not python Apr 08 07:24:44 salty_: like tbr said, just fix the problem instead of trying to bypass it Apr 08 07:25:15 ask Intel IT for addresses of internal NTP servers that you should use Apr 08 07:25:55 indeed, most networks have a local NTP server, indeed most servers probably run one Apr 08 07:25:58 and routers Apr 08 07:26:41 so just ask a network guy for which hostname or IP to use as local NTP server, and configure that into the NTP field of /etc/systemd/timesyncd.conf Apr 08 07:27:34 then do 'sudo systemctl restart systemd-timesyncd' or reboot and the system date should be set automatically Apr 08 07:27:45 understood Apr 08 07:28:12 what if i just need for temporary as workaround like this shell scripts: VER=$(curl -k https://cdn.download.clearlinux.org/latest) Apr 08 07:28:12 and then your certificate validation errors are presumably also fixed Apr 08 07:29:14 stop wasting your time on workarounds when the underlying problem is so easy to fix Apr 08 07:29:28 ok ok.. got it zmatt Apr 08 07:29:35 if your manager finds out you are bypassing security, you'll be in hot water Apr 08 07:29:37 if you can't find a network guy, try the IP of your router Apr 08 07:29:39 let me try to fix it Apr 08 07:29:48 or the IP of any linux machine probably even Apr 08 07:29:56 ok. appreciate your advice. :p Apr 08 07:30:01 thanks Apr 08 07:30:52 (but asking a network guy is probably a better idea than trying random IPs, on a corporate network) Apr 08 07:31:25 ok. are you from Intel too? Apr 08 07:31:28 no Apr 08 07:31:33 lol Apr 08 07:31:35 ok Apr 08 07:31:46 why would you think I am? Apr 08 07:32:13 sound like Apr 08 07:32:45 ok. i'll try now and submit ticket to IT guys about NTP server issue Apr 08 07:32:51 thanks again! Apr 08 07:33:22 and like I said, if your network uses Windows Domain servers, you can use those Apr 08 07:33:34 (every windows domain server is an NTP server) Apr 08 07:34:22 i am using Debian actually Apr 08 07:34:36 that's not what he meant Apr 08 07:34:38 on beagle board x15 Apr 08 07:34:55 ok Apr 08 07:35:49 on a corporate network such as Intel, there are Windows ActiveDirectory Domain servers. Those are running NTP in addition to allowing you to log in to your corporate issue Windows machine (and linux machines too, possibly) Apr 08 07:36:14 noted Apr 08 07:40:43 exactly. so sometimes network guys that only use Windows might not be familiar with "NTP", they'll just know it as "Windows Time Service" :P Apr 08 07:41:07 ah, when I said "domain server" I meant "domain controller" .. I forgot the terminology for a moment Apr 08 17:16:27 m Apr 08 19:48:49 CAN Interface. Sorry, I cannot locate the previous responses. I need to connect BBB to CAN. What is the best option? Is it sufficient to use SN65HVD231 CAN Bus Tranceiver? Or maybe I need to get a special cape? Thanks! Apr 08 19:52:34 dreamhiker: http://logs.nslu2-linux.org/livelogs/beagle/beagle.20190406.txt Apr 08 19:56:42 there is no "best" option, just a heap of perfectly adequate ones. the simplest solution is to use one of the existing capes that have CAN (or the beaglebone blue, which has CAN integrated), or you can assemble your own custom setup with a proto board, CAN transceiver, and whatever supporting components it needs Apr 08 21:11:58 I have a question one of my beaglebone related blog post. Apr 08 21:11:58 Here it is "my emmc is full. i mounted the sd card and it is been indicated that it is attached. but i dont know how i should route my downloads to that sd card" Apr 08 21:11:58 I am not really sure about it's answer. Is this possible? Apr 08 21:14:27 by pointing the download destination to where the sd card is mounted. Apr 08 21:15:26 shreeya_: what downloads are you referring to? Apr 08 21:15:33 this is an odd question. what user interface are you using? Apr 08 21:16:09 if your eMMC is full, you should probably free up some space. lots of things typically start to break when you're completely out of space Apr 08 21:18:06 if you don't understand how your eMMC managed to get full, and never reflashed your beaglebone since you received it (or unintentionally reflashed it to the "lxqt" image), consider reflashing to the "iot" image (after making a backup of any important files), which contains much less unnecessary crap and therefore leaves more free space Apr 08 21:34:19 @zmatt: I think the person wanted to download something from Internet and he might be getting an error of storage is full Apr 08 21:36:35 shreeya_: wait, you're just trying to relay a vague question that someone else asked? that's just going to waste everyone's time, since we can't ask the person who has the actual question what he means Apr 08 21:37:29 Yes actually, as I mentioned someone had asked this on one of my beaglebone related blog post Apr 08 21:38:26 their question sounds like an x-y problem to me ( http://xyproblem.info/ ). most commonly people who run out of eMMC space are using the lxqt image shipped by default on the beaglebone, which includes a full desktop environment and leaves very little free space as a result Apr 08 21:38:50 the solution is almost always to just reflash to the latest iot image, which leaves much more free space Apr 08 21:39:07 Okay got it 👍 Apr 08 21:39:22 Thanks @zmatt Apr 08 21:39:31 after reflashing you can free up more space by removing some packages which are not useful on the beaglebone, using: Apr 08 21:39:34 sudo apt-get purge vpdma-dra7xx-installer ipumm-dra7xx-installer firmware-iwlwifi ti-opencl firmware-am57xx-opencl-monitor && sudo apt-get --purge autoremove Apr 08 21:40:14 I will suggest him this solution Apr 08 21:40:16 (this removes packages specific to the beagleboard-x15/beaglebone-AI and some large but unnecessary firmware files) Apr 08 21:42:18 Just for my knowledge, I would like to know that if I am booting from emmc then can I extend the memory using sd card in this case? Apr 08 21:43:35 4 GB of eMMC space is typically more than enough to work with. if they somehow really need more than that (which seems unlikely and odd to me), I'd suggest just booting from sd card and erasing eMMC using "sudo blkdiscard /dev/mmcblk1" (erasing eMMC is not always necessary when booting from SD card but very highly recommended to avoid problems) Apr 08 21:44:14 and obviously use an SD card large enough to suit one's needs, and make sure to expand the partition and filesystem to match the card size, using the script /opt/scripts/tools/grow_partition.sh Apr 08 21:44:53 Hmmm okay Apr 08 21:45:53 using a mix of eMMC and SD for storing your files is of course possible, but falls under the topic of "advanced linux system administration" as far as I'm concerned Apr 08 21:46:10 i.e. if you have to ask how, you probably shouldn't Apr 08 21:47:42 Got my answer Apr 08 21:47:51 Thanks Apr 08 21:48:08 but really the core problem when running out of eMMC space is typically "too much crap is installed". the solution to that is not having so much crap installed. starting with the iot image instead of the lxqt image is a good start Apr 08 21:51:31 I will suggest this answer to him. Apr 08 22:06:09 zmatt: if you have to divide an installation up between emmc and sd, I can see that might get complicated. And also a bit pointless : if you've got to have an SD card you might as well just use one big enough. Apr 08 22:07:18 But it seems to me likely that having your whole working system on emmc and putting some specific item, like media files or some particular class of program on SD is fairly likely and probably not very complicated Apr 08 22:07:22 Is that true ? Apr 08 22:08:41 not very complicated => true (though still requires a bit of care to ensure it's automounted but doesn't render the system unbootable if sd card cannot be mounted), "fairly likely" => not really? Apr 08 22:09:14 I think in every case I've seen, people run into eMMC errors while trying to apt-get install stuff or such Apr 08 22:09:30 it's not very likely you're handling big media files on a beaglebone Apr 08 22:09:53 'fairly likely' in that media files are a common reason to need a significant chunk of storage. But good point on the booting, that could rtequire some care and understanding Apr 08 22:10:12 no the common reason is simply installing some packages Apr 08 22:11:17 i think you might be handling big audio files, perhaps less likely video./ But then they're nowhere near as big. Apr 08 22:11:39 both because the default image of the beaglebone is the lxqt image, which leaves very little free space, and because handling big media files on a beaglebone is an unusual thing to be doing Apr 08 22:13:49 I certainly agree that just overflowing the boundary is likely to be just installing packages. But for a more planned installation I'd hope not. Maybe media files was a bad choice : i agree it's not an obvious candidate for a media handler. But I think there are a reasonable number of use-cases for something that has a fixed installation side but some need for project-dependent data files Apr 08 22:14:55 anyway, you've answered my main question :the boot process is where care might be needed. Apr 08 22:15:27 the same installation where those optional files where on a usb stick would be easier to build Apr 08 22:18:23 in my case i've got only a few meg of audio files so space isn't an issue. But I would like to be able to rewrite them over a web interface, and i'd also like to be able to make the system boot from emmc mounted RO, to protect it from unexpected shutdown. Apr 08 22:18:28 https://pastebin.com/raw/AUgVW0ma Apr 08 22:19:03 eMMC mounted RO would need an overlayfs I think, too much shit would break otherwise Apr 08 22:20:20 I don't know about bb, but I've had success on a pi with that. Itr was very easy and nothing seemed to break. I'm sure there's a possibility of it but most things seem to be fine. Apr 08 22:21:12 are there any other recommendations for a system that doesn't need any care in shutdown ? Apr 08 22:21:16 maybe my assumption that stuff will break is unfounded... I guess it'll depend on what "stuff" is running :P Apr 08 22:21:30 absolutely :) Apr 08 22:21:39 we reconfigure the eMMC into SLC mode with "reliable writes" enabled Apr 08 22:22:25 any notes on that ? Apr 08 22:24:03 I made a branch of mmc-utils with a custom command for it, since the manual steps are tricky, error-prone, and involve one-time-programmable configuration (which is not a great combination) Apr 08 22:24:07 https://github.com/dutchanddutch/mmc-utils/commit/d550d3e2 Apr 08 22:24:19 there are some things that do break, but they're unimportant. Things like bash history, and 'here' documents (which could be a problem if scripting relies on it) Apr 08 22:24:43 I'd fully assume scripts to use here-docs freely yes Apr 08 22:25:06 so it's just luck whether or not stuff breaks, it depends on what you have installed/enabled Apr 08 22:25:18 i guess, yes Apr 09 01:47:06 Hi all Apr 09 01:47:44 What is the linux command to find Beagleboard-X15 CPU temperature? Apr 09 01:50:22 there are probably higher-level tools, but at the very least you can just inspect the temperature attributes directly in sysfs: Apr 09 01:50:34 for i in /sys/class/thermal/thermal_zone*; do echo $(cat $i/temp $i/type); done Apr 09 01:51:09 (e.g. 53800 would mean 53.8 degrees celsius) Apr 09 01:52:01 is this one line command? Apr 09 01:52:48 yeah, it loops over all the temperature sensors and prints their temperature and type Apr 09 01:53:51 if you only want the cpu_thermal, then assuming it's consistently thermal_zone0 (I don't know if that's safe to assume) you can just do cat /sys/class/thermal/thermal_zone0/temp ... again, there are undoubtedly higher-level tools that present a friendlier interface Apr 09 01:54:54 i tried lm_sensors, it says there is no sensors detected Apr 09 01:57:05 hm, that's pretty silly Apr 09 01:57:46 your command doesn t work for me Apr 09 01:57:55 did you copy-paste it exactly? Apr 09 01:58:04 no Apr 09 01:58:32 ... Apr 09 01:58:52 i typed from for ...to done Apr 09 01:59:28 that's the entire command Apr 09 01:59:38 ok Apr 09 02:03:39 ehm, so have you double-checked it? or better yet, copy-paste it instead of typing it over to prevent typos Apr 09 02:04:01 the command works, I just tested it Apr 09 02:05:14 it loops over all folder then it says Not a directory Apr 09 02:05:28 ehh what Apr 09 02:05:45 can you check "ls /sys/class/thermal/" ? Apr 09 02:06:19 for example: cat: /sys/class/thermal_zone5/temp/: Not a directory Apr 09 02:06:41 in other words, you didn't copy what I said correctly Apr 09 02:06:51 since there's no slash after "temp" in my command Apr 09 02:08:01 it works Apr 09 02:08:06 thank you Apr 09 02:08:42 i cant copy paste because i m using my pc and the x15 is alone Apr 09 02:09:27 you can't connect the x15 to your pc via ethernet or usb ? Apr 09 02:10:09 yes i can Apr 09 02:11:14 so there are cpu, gpu, core, dspeve, iva and board thermal sensors in X15 Apr 09 02:11:30 i thought there is only cpu sensor Apr 09 02:11:36 yeah, the first five are internal to the SoC, the last one is external on the board Apr 09 02:13:32 thank you very much. Apr 09 02:13:46 still trying to figure out why lm-sensors isn't working... as far as I can tell, it should Apr 09 02:14:05 will try later Apr 09 02:14:41 also do u know the command to deactivate all gpios in linux command? Apr 09 02:15:12 "deactivate all gpios" ? Apr 09 02:15:26 yes Apr 09 02:15:32 what do you mean? Apr 09 02:15:36 to put on "0" Apr 09 02:15:59 which gpios? and "put on 0" does not sound like "deactivate" to me Apr 09 02:16:10 all Apr 09 02:17:04 that doesn't make any sense. many gpios are used as inputs or to control important functionality Apr 09 02:17:22 maybe you mean all expansion header pins? but many of those aren't configured as gpios by default Apr 09 02:17:41 yes all expansion header pins Apr 09 02:18:05 some are configured as gpios Apr 09 02:18:38 unfortunately pin configuration on the beagleboard-x15 is a bit of a headache. officially you're supposed to use a custom u-boot in addition to a custom device tree Apr 09 02:18:49 i see Apr 09 02:19:12 another question: the X15 is open-source card right? Apr 09 02:19:13 I do have an u-boot branch patched to at least disable the default pinmux (which is for the lcd expansion board of the am572x-evm) Apr 09 02:20:09 can we design the card as we want? to put all expansion port on one side or in separate board? Apr 09 02:20:36 I mean, if you make a custom board you can design it any way you want Apr 09 02:20:57 and yeah the schematics and other design files are available on github **** ENDING LOGGING AT Tue Apr 09 03:00:03 2019