**** BEGIN LOGGING AT Sat Apr 23 02:59:58 2016 Apr 23 03:00:15 Beaglebone Black Dev C by Debian Apr 23 03:01:15 the connection can expire, it's better to use the ethernet port Apr 23 03:01:28 can you have windows 'fix' the network connection to the BBB? Apr 23 03:01:45 i actually have never tried this on windows Apr 23 03:02:08 if that doesn't work, what happens if you reboot the BBB? Apr 23 03:02:56 I have no problem to reboot.. How can I do this? Apr 23 03:03:36 unplug the usb cable and put it back in Apr 23 03:04:02 there is a reset switch too but it does about the same thing Apr 23 03:04:34 i'm concerned that he said that the LEDs are solid lights. if you didn't turn the heartbeat off, you shoudl see a heartbeat Apr 23 03:05:14 doesn't work dsockwell =( Apr 23 03:05:29 ayjay.. yes.. D0 and D1 are solid lights Apr 23 03:05:43 are you booting from an sd card or the internal flash? Apr 23 03:05:44 D2 and D3 are off Apr 23 03:06:04 did you flash the image urself? Apr 23 03:07:06 try writing an sd card, following the guide carefully Apr 23 03:07:09 and boot from that Apr 23 03:07:14 dsockwell: I've never tried to boot.. Now I was preparing a SD card to install Ubuntu into the BBB, but I needed access to tightVNC Apr 23 03:07:54 like partitioning and formatting? Apr 23 03:08:01 maybe you have erased something important Apr 23 03:08:33 the onboard flash looks a lot like an sd card to linux Apr 23 03:08:58 But I never work into BBB.. I've prepared the SD card un a Virtual machine Apr 23 03:09:01 oh Apr 23 03:09:17 when I was getting started with the BBB, I had to reflash the BBB 10X Apr 23 03:09:21 i kept on breaking the kernel Apr 23 03:09:31 and i always i needed to reflash the image Apr 23 03:09:38 http://beagleboard.org/latest-images Apr 23 03:09:46 eventually I just learned to work with one of these Apr 23 03:09:58 because I had the same problem Apr 23 03:10:02 haha it's inevitable Apr 23 03:10:22 and frankly the BBB should ship with an SD card Apr 23 03:10:28 ayjay: I wouldn't call it a lib just yet... http://pastebin.com/2HFPreTT Apr 23 03:10:43 Can I boot the BBB withouth a LCD? I dont have HDMI wire Apr 23 03:10:45 the BBB should ship with just enough marbles to download an image and flash it to an sd card Apr 23 03:10:49 yes Apr 23 03:10:51 SD card? I've almost never used that slot Apr 23 03:10:53 it can boot with only power Apr 23 03:11:05 I generally flash via usb Apr 23 03:11:17 zmatt: i was just looking for a tutorial on that Apr 23 03:11:25 this one said that you need a USB harddrive Apr 23 03:11:28 http://pastebin.com/x5QzB18E Apr 23 03:11:35 this makes the BBB appear as mass storage device Apr 23 03:11:49 the entire flash drive? Apr 23 03:12:02 chip* Apr 23 03:12:24 that is a cool trick but i think the sd card method is more accessible Apr 23 03:12:26 http://gerbil.xs4all.nl/flash-images.html <-- transcript where I discuss it in more detail Apr 23 03:12:38 dsockwell: yes, usb flashing needs to be made more user-friendly Apr 23 03:13:22 dsockwell: how can I flashing by Sd Card? I have a Sd card with Ubuntu Image Apr 23 03:13:33 https://beagleboard.org/getting-started#update Apr 23 03:13:46 those are the instructions for windows Apr 23 03:13:49 on linux i would use dd Apr 23 03:14:22 dsockwell, thanks :) Apr 23 03:14:36 veremit: it works! Apr 23 03:15:49 I will try now Apr 23 03:19:38 dsockwell: Apr 23 03:20:00 yes? Apr 23 03:20:10 dsockwell: I have a sd card with a Ubuntu.. Can I use this Sd Card without a LCD screen? Apr 23 03:20:38 To flashing by ubuntu Apr 23 03:20:40 you don't need any extra hardware besides maybe the sd card Apr 23 03:21:11 but there is no ubuntu image, the ones you should be using first are Debian. Apr 23 03:21:18 wait, is there an Ubuntu image? Apr 23 03:22:21 EverKdaver: I have only used the Debian images from http://beagleboard.org/latest-images and those are what you should use, too. Apr 23 03:22:32 Download one and copy it to the sd card. Apr 23 03:23:40 Maybe I did not know how to explain. I want to install Ubuntu Trusty. I have the image created on a sd card. I can boot directly from the SD card without an LCD screen? I read that you have to enter a password. Apr 23 03:24:11 It simply does not work that way. Apr 23 03:24:19 What file did you write to the sd card? Apr 23 03:25:14 http://www.armhf.com/boards/beaglebone-black/#wheezy Apr 23 03:25:32 dsockwell: Check this.. There are Ubuntu Trusty Apr 23 03:25:42 oh Apr 23 03:25:54 If it is like the Debian images, you should be able to access it by ssh Apr 23 03:28:01 I can't connect to BBB IP.. I need to repair this first jajaja Apr 23 03:28:01 If you don't have a windows ssh client, mobaxterm is pretty good Apr 23 03:28:02 dsockwell: I think EverKdaver should probably stick with the debian link you provided Apr 23 03:28:10 that's a great idea Apr 23 03:28:34 dsockwell: that will give them a good starting point to learn about the BBB and they'll probably understand themselves why what they're trying to do wont work Apr 23 03:28:49 EverKdaver: the images provided by the beaglebone company are setup specifically for network over USB Apr 23 03:28:58 EverKdaver: I can help you more after you write this file to your SD card: https://debian.beagleboard.org/images/bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img.xz Apr 23 03:29:22 EverKdaver: i would assume that the image you are trying to load is not configured for that and you'll need to use a serial connection Apr 23 03:29:33 really, though, I am going to sleep and ayjay will have to help you Apr 23 03:29:38 good night Apr 23 03:29:43 hahaha i think we've done verything we can do! Apr 23 03:30:07 Good night dsockwell Apr 23 03:30:10 Thanks for all Apr 23 03:31:16 EverKdaver: you shoudl use the debian image Apr 23 03:31:30 EverKdaver: it will make your life easier Apr 23 03:32:39 ayjay I'm downloading this Apr 23 03:32:40 :D Apr 23 03:33:19 so you need to unzip it first, then you should write the .img to a sd card, and then boot from it Apr 23 03:33:44 until you are comfortable with the BBB i would keep that sd card with that img, because I had to do this many times Apr 23 03:33:49 i kept on breaking linux Apr 23 03:34:35 jajaja Apr 23 03:34:37 I see that Apr 23 03:34:40 thanks Apr 23 03:36:25 still downloading =( Apr 23 03:37:03 ayjay Apr 23 03:37:05 no it's not a quick process.. download....write....write again Apr 23 03:37:26 thats why you should keep it on the card once you have it Apr 23 03:37:45 yes Apr 23 03:37:49 I will do Apr 23 03:37:56 you can tell it works good because it takes so long Apr 23 03:38:20 :) Apr 23 03:38:51 haha i thought you were asleep? Apr 23 03:39:13 that would be too simple Apr 23 03:39:29 I have a Beaglebone Black Dev B and Dev C, and also I have a 4,3" LCD cape, but this works only un BBB Dev B Apr 23 03:39:31 =( Apr 23 03:40:19 dsockwell: you're back Apr 23 03:41:01 wow two bbb Apr 23 03:41:58 but why the LCD cape only works in BBB Dev B? Apr 23 03:42:45 sorry I can't help you with that Apr 23 03:42:49 it's because you didn't use the debian image Apr 23 03:43:47 and dsockwell drops the mic Apr 23 03:43:53 dsockwell: well.. Dev B have Angstrom and Dev C Debian Apr 23 03:44:34 EverKdaver what is your native language? Apr 23 03:45:28 ayjay Spanish.. Sorry.. I'm learning English :D Apr 23 03:46:04 ohhh yo estudie espanol en la antigua guatemala Apr 23 03:46:46 pero me keyboard no tiene accents hahaha Apr 23 03:47:01 wow that was bad Apr 23 03:47:04 i need to refresh Apr 23 03:47:15 have tres annos... Apr 23 03:47:16 hace* Apr 23 03:48:12 jajajajaja Apr 23 03:48:33 ayjay.. you tried Apr 23 03:48:59 latin or castillo? Apr 23 03:49:15 i mean latin or spain spanish Apr 23 03:49:28 latin Apr 23 03:50:18 es mejor.... Apr 23 03:50:57 now i'm excited Apr 23 03:50:59 jajaja where u from? Apr 23 03:51:02 connecticut usa Apr 23 03:51:20 ooh great Apr 23 03:54:41 es mas dificil para usar BBB si usted ? aprendido ingles porque los documentos son en ingles Apr 23 03:55:02 but if you can tolerate my broken spanish i will help you with your BBB Apr 23 03:55:57 ayjay, no problem to talk in english.. I need to learn this lenguage Apr 23 03:56:54 and yes.. Are few the documents that are written in spanish Apr 23 03:57:06 Even the documents in English are scattered Apr 23 03:57:26 jajaja Apr 23 03:57:37 but i want to speak in spanish sometimes, because i love it Apr 23 03:57:44 it makes me really happy Apr 23 03:58:12 I found a excellent book mmm Mastering Beaglebone Robotics Apr 23 03:58:21 if you want we talk in spanish Apr 23 03:59:46 has been finished the written process in the sd card.. I hope this works Apr 23 04:01:27 do you want me to help your english? Apr 23 04:03:54 good :) Apr 23 04:04:08 ey!! How to know when the process is finished? Apr 23 04:05:01 everything is lit- nothing is blinking Apr 23 04:05:45 now the lights are "dancing" Apr 23 04:06:16 but I think that this process will take 30 minutes more or less Apr 23 04:06:38 yes or no? Apr 23 04:06:40 :D Apr 23 04:07:10 that is correct Apr 23 04:07:16 but it's a good sign Apr 23 04:10:01 sorry but what do you mean "lit - nothing"? It's mean lights off? Apr 23 04:10:14 oooh yes Apr 23 04:10:21 I understood Apr 23 04:13:27 if its not dancing its done Apr 23 04:13:57 gracias =) Apr 23 04:42:49 =P Apr 23 05:12:54 what happened EverKdaver Apr 23 05:42:43 http://pastebin.com/yfARyTZx ... the uio wrapper is starting to get user friendlier Apr 23 05:45:10 though I guess I'll need to make some metaclass to be able to declare peripherals in some genuinely nice way Apr 23 05:46:31 holy shit i need comments Apr 23 05:46:49 hey, I actually added *some* Apr 23 05:47:07 UIO SHIZZLE Apr 23 05:47:11 besides, I have no idea what I'm doing either, I'm a python n00b Apr 23 05:47:34 like, the way I format the output on line 64... christ there's gotto be a better way Apr 23 05:48:05 UioMap vs Uio? Apr 23 05:48:40 the former is only used internally in the Uio class Apr 23 05:48:54 the map is the atomic unit Apr 23 05:49:02 an uio device can define zero or more memory mapped ranges Apr 23 05:49:16 in my test case it defines two of 'em Apr 23 05:49:18 oh so you cna manage a logic unit with multiple mappings Apr 23 05:51:53 http://pastebin.com/nf8gffh1 corresponding device tree fragment Apr 23 05:52:14 holy crap i'm trying to digest this because it's fun and useful but python... Apr 23 05:52:41 I usually use C++, but apparently python is generally considered less scary :P Apr 23 05:52:57 hence my idea to do this in python to make it more accessible Apr 23 05:53:16 give me some credit- the more languages the better Apr 23 05:53:21 of course the Uio class needs to be swept into some file where people don't need to look at it Apr 23 05:53:54 does the uio class use the uio driver? Apr 23 05:54:27 yes, uio_pdrv_genirq Apr 23 05:55:11 http://pastebin.com/GrHwgYiR <-- this shows all ingredients for making a peripheral appear as uio device Apr 23 05:55:44 you've actually shown me this before Apr 23 05:55:54 i was trying to mmap adc registers and was getting bus errors Apr 23 05:56:06 and you were like "no no, uio is the way" Apr 23 05:56:18 you tried via /dev/mem you mean? Apr 23 05:56:25 ewwwwwwwwwwwwwww Apr 23 05:56:27 write a proper driver Apr 23 05:56:35 stop trying to circumvent the kernel Apr 23 05:56:47 yes thats write zmatt Apr 23 05:56:52 shh ds2 you'll understand Apr 23 05:57:02 ds2: why would I write the same code in a more hostile environment where bugs can take down the whole system instead of just 1 process Apr 23 05:57:27 ayjay: you probably got a bus error because the adc wasn't enabled Apr 23 05:57:34 zmatt nope Apr 23 05:57:37 zmatt: hmmm I'd see it entirely the opposite Apr 23 05:57:48 if that's the, no point in using Linux Apr 23 05:57:50 zmatt i was just not using the device tree properly Apr 23 05:57:54 ds2: we've been through this before, let's agree to disagree Apr 23 05:57:58 zmatt: :D Apr 23 05:58:00 zmatt okay that could be the same thign Apr 23 05:58:34 ds2 you mean you want to restrict access of high level programmers to the registers Apr 23 05:58:37 ds2 and physical memory Apr 23 05:59:15 the whole point of using an OS is so things are properly isolated Apr 23 05:59:21 direct access is wrong Apr 23 05:59:23 ds2: yeah I mean what good is linxu anyway, apart from getting a filesystem, virtual memory, preemptive multitasking, a networking stack, and a programming environment in which my colleages can write their nodejs crap Apr 23 05:59:36 :) Apr 23 05:59:59 ds2: exactly, which is why I want this in a process which has isolated access rather than the kernel which can fuck with anything and everything Apr 23 06:00:21 zmatt: let's stick to HW topics Apr 23 06:00:49 the kernel is the TCB, less code there is better Apr 23 06:01:27 can i propose that what zmatt is doing is important from an educational perspective? Apr 23 06:01:35 though unlike the typical argument in favor of a microkernel, in this specific case moving code out of the kernel actually also improves performance Apr 23 06:02:06 faster + easier to write + less chance of crashing the system = triple win Apr 23 06:03:14 ayjay: anyhow, back to topic... since I had no idea what would happen if I'd try to use python for this I chose the most hostile register space I know of as testing ground Apr 23 06:03:34 zmatt: can you move over to git? Apr 23 06:03:39 i'd like to contribute Apr 23 06:03:51 it doesn't have any entry in the default DT yet, hence I needed to add it ( http://pastebin.com/nf8gffh1 ) Apr 23 06:04:04 and the test worked :D Apr 23 06:05:39 doing m[0:4] on the mmap object itself actually worked directly, but the mmap object doesn't directly support writeable slices, hence I made a memoryview of it Apr 23 06:06:44 memoryviews however I noticed do need to be cast to an u32 array (that's the .cast('I')), otherwise it'll do byte access Apr 23 06:07:15 and eh, yeah I guess I can make a git repo Apr 23 06:07:22 whats a word Apr 23 06:07:25 i mean in this context Apr 23 06:07:37 sorry i'm catching up, i lost track of this during the semester Apr 23 06:07:51 "word" on ARM, PowerPC, and pretty much any modern processor without x86-heritage means 32-bit Apr 23 06:08:06 oh so the memoryview is matched thats nice Apr 23 06:09:07 yeah I can actually just safely print(list(fc_top)) to dump all registers of that thing, though in decimal which isn't very readable Apr 23 06:11:01 true Apr 23 06:11:12 easily solvable Apr 23 06:11:28 esp. in python Apr 23 06:12:40 of course it would be nicer to be able to declare the fields and then access them by name... Apr 23 06:13:15 zmatt you and i have the same mind Apr 23 06:14:03 BUT i want to help students explore the processor via a gui and use UIO to manipulate it and understand how it works Apr 23 06:16:29 yeah there are quite a few peripherals which are perfectly safe to play with Apr 23 06:17:30 perfectly safe is a tall older Apr 23 06:17:32 order* Apr 23 06:17:45 are there any peripherals that can brick the board? Apr 23 06:18:21 because if a student needs to re-flash their board, thats a valuable learning experience Apr 23 06:18:34 control module, but it ignores unprivileged writes anyway Apr 23 06:18:47 heh, that's not a plausible scenario though Apr 23 06:18:48 ayjay its no result =( Apr 23 06:19:03 EverKdaver: did you the image flash go as expected? Apr 23 06:19:35 zmatt: it's okay, these are engineering students, so they are responsible for following instructions Apr 23 06:19:58 basically you have "nothing can go wrong" peripherals, "might need to press reset button if it gets confused" peripherals, and "hardware damage if you make a mistake" peripherals Apr 23 06:20:18 it's the third group that needs to be inpspected Apr 23 06:20:31 yeah, control module is one of them but it ignores unprivileged writes anyway Apr 23 06:20:45 i figured the power logical might propose an issue Apr 23 06:21:39 ayjay: how long can the process take? It's been two hours and still not end Apr 23 06:21:45 i2c0 is also something to stay away from since the PMIC lives there, it's in use by the kernel anyhow Apr 23 06:21:54 EverKdaver: 10-20 minutes Apr 23 06:22:08 EverKdaver: what are the leds doing? Apr 23 06:22:41 ayjay: prcm also has a few creepy registers Apr 23 06:23:01 D0 and D1 are blinking Apr 23 06:23:07 I'll disconnect and start again Apr 23 06:23:15 you're running a system, not a flasher Apr 23 06:23:18 did you flash the correct image? Apr 23 06:23:41 ohh zmatt do you think you need to go into boot.txt or w/e and uncomment the correct line? Apr 23 06:23:46 ayjay: instalé la imagen que me pasaste Apr 23 06:23:55 ayjay: no, not if you got a flasher image Apr 23 06:24:03 ayjay: I installed the image that you passed me Apr 23 06:24:09 no i understood Apr 23 06:24:21 but i didn't paste it- sorry, it was dsockwell Apr 23 06:24:36 ooh true sorry Apr 23 06:24:45 it looked like the correct link but it might have need to have a single line uncommented? Apr 23 06:24:49 flasher images are easily recognized since they have "BBB-eMMC-flasher" in the name Apr 23 06:25:16 it was https://debian.beagleboard.org/images/bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img.xz Apr 23 06:25:24 that's not a flasher Apr 23 06:25:27 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot_lxqt Apr 23 06:25:33 you can find flashers there Apr 23 06:25:35 you're right Apr 23 06:25:47 sorry everKdaver I feel bad Apr 23 06:26:03 =( Apr 23 06:26:05 some images are preconfigured to flash and overwrite the drive and some are just OS's Apr 23 06:26:06 you can also turn a normal image into a flasher by uncommenting that line apparently, though I never tried it Apr 23 06:26:13 zmatt is right though Apr 23 06:26:31 you have to access the image (what program on windows 10?) and go to the boot text file Apr 23 06:26:34 and uncomment one line Apr 23 06:27:06 :O ? Apr 23 06:27:14 I don't think I've ever seen anything for windows that can modify ext4 filesystems Apr 23 06:28:06 I have a virtual machine with linux Apr 23 06:28:16 ext2fsd? Apr 23 06:28:27 okay well if you can go into the file system on the sd card Apr 23 06:28:39 go to /boot/uEnv.txt Apr 23 06:28:51 I started the process again and D0 is blinking Apr 23 06:29:14 and remove the # in '#cmdline=init=/opt/scripts/tools/eMMC-flasher... etc Apr 23 06:29:35 ayjay let's me a moment to connect to the virtual machine Apr 23 06:29:49 ayjay: Can I stop the flashing process? Apr 23 06:29:49 i'm sorry didn't you say the LED's were "dancing" though? Apr 23 06:30:15 ie. in sequence 1 2 3 4 3 2 1 2 3 4 3 2 1? Apr 23 06:30:32 I started the process again and the led D0 is blinking.. Just that Apr 23 06:31:00 ayjay: No, just D0 =/ Apr 23 06:31:17 EverKdaver: but what did you mean then, "dancing" Apr 23 06:31:54 dancing = blinking jajaja Apr 23 06:32:15 i thought you meant they were moving like 1 2 3 4 3 2 1 2 3 4... Apr 23 06:32:24 no :( Apr 23 06:32:46 then what can we do? Can I desconect the power wire? Apr 23 06:32:49 zmatt: when you start a repo, send me the link Apr 23 06:33:02 that's not a problem but you need to edit the image so that it flashes the chip Apr 23 06:33:22 https://github.com/mvduin/py-uio ... still need to commit and push anything though Apr 23 06:33:58 I'm still confused.. Sorry -_- Apr 23 06:35:21 the image is on the SD, the BBB will boot the image, but it will not write the image to it's own memory unless you uncomment (remove the '#') one line in /boot/uEnv.txt Apr 23 06:35:46 ok.. I'll erase this line Apr 23 06:36:06 ! not the whole line! Apr 23 06:36:14 just '#'! Apr 23 06:37:07 yes Apr 23 06:39:14 wait.. This file is in the BBB memory? Apr 23 06:39:22 SD card. Apr 23 06:39:25 or in the sd card Apr 23 06:39:38 mmm I don't found it Apr 23 06:39:59 zmatt: your code isn't up Apr 23 06:40:09 when I put cd /boot/ this appear Apr 23 06:40:46 EverKdaver: if you just do /boot/ you will see the VM boot! not SD boot! Apr 23 06:41:11 ayjay you're right Apr 23 06:44:21 I'm so dumb.. Can you help me to access to sd card uEnv file? Apr 23 06:44:40 please =( Apr 23 06:44:40 EverKdaver: can you access sd card on VM ? Apr 23 06:44:49 yes Apr 23 06:44:57 so cd /...??? Apr 23 06:44:59 its appear like /dev/sdb Apr 23 06:45:13 cd don't works Apr 23 06:45:47 mount mkdir /mnt/test Apr 23 06:45:53 sry just mkdir /mnt/test Apr 23 06:46:09 mount /dev/sdb1 /mnt/test Apr 23 06:47:49 ok.. Ready Apr 23 06:48:11 cd /mnt/test && ls Apr 23 06:48:46 ready Apr 23 06:48:55 output? Apr 23 06:49:32 here is uEnv Apr 23 06:50:43 ;-) Apr 23 06:53:36 all the lines are uncomment Apr 23 06:53:47 it's so bad Apr 23 06:55:01 :-( Apr 23 06:56:20 =( Apr 23 06:57:34 ayjay: pushed Apr 23 06:58:09 jajaja Apr 23 06:58:15 EverKdaver: http://pastebin.com/ Apr 23 06:58:40 ayjay? Apr 23 06:58:51 ur uEnv file Apr 23 06:59:43 ooh ok but i can't copy text by the Virtual Box Apr 23 07:00:36 is it maybe not just faster to download a flasher image? Apr 23 07:00:48 zmatt: at this point, probably Apr 23 07:00:56 let me repair virtual box Apr 23 07:01:34 ayjay: I've put the uio code in a separate file, added untested support for receiving irqs, a few comments here and there Apr 23 07:01:51 and the necessary etc files, and two DT snippets Apr 23 07:02:08 maybe they should be converted to overlay format for convenience... I don't use overlays myself though Apr 23 07:02:44 i *do* use overlays so i can make it that format Apr 23 07:02:59 which i think is just changing the file extension Apr 23 07:03:05 no Apr 23 07:03:15 sadly, no Apr 23 07:03:20 it's okay Apr 23 07:03:39 i am going to go to bed, and tomorrow, after i finish soldering a prototype for a project, i will do it Apr 23 07:03:49 I once started on patching dtc to accept the normal format of a device tree fragment to make into an overlay Apr 23 07:03:58 but since I don't use overlays I kinda stopped caring Apr 23 07:04:55 EverKdaver: if you cannot edit the uEnv.txt, then download a flasher image like https://debian.beagleboard.org/images/BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz Apr 23 07:05:10 that is already setup Apr 23 07:05:16 goodnight! Apr 23 07:05:19 &target { CONTENT }; Apr 23 07:05:21 becomes Apr 23 07:05:34 i'm here... Apr 23 07:05:43 /dts-v1/; /plugin/; / { fragment@0 { target = <&target>; __overlay__ { CONTENT }; }; }; Apr 23 07:05:50 ;) Apr 23 07:06:03 horrid Apr 23 07:06:12 zmatt which peripheral are we testing? Apr 23 07:06:38 well my current test targets the l3 service network Apr 23 07:06:51 to verify python uses correct access size Apr 23 07:07:06 ayjay how it is used? eMMC? Apr 23 07:07:28 EverKdaver: use SD, then use the boot button Apr 23 07:08:29 ooh okay Apr 23 07:08:32 thanks Apr 23 07:08:36 the l3 service network can be used to collect errors from l3 targets, such as those caused by mistakes in other attempts to do I/O from userspace ;) Apr 23 07:08:49 I need more sd cards jajaja Apr 23 07:09:12 lol Apr 23 07:10:10 zmatt: status registers? Apr 23 07:10:36 errors log registers yeah Apr 23 07:11:45 though currently I just show the fault irq bits... but I'd still need to enable the fault irqs in the target agents before you'd see any irq bit set to 1 Apr 23 07:13:33 zmatt what peripherals should we develop access for? Apr 23 07:13:47 don't answer that now- but that's the big question Apr 23 07:14:08 adc is a useful target Apr 23 07:14:15 eCAP and eQEP modules also Apr 23 07:14:34 most peripherals have at least one "gotcha" though it seems :P Apr 23 07:15:03 personally i'd like to look at the ADC Apr 23 07:15:14 the crypto accelerators are also interesting Apr 23 07:15:21 by gotcha you mean write protected? Apr 23 07:15:27 no I mean some annoyance Apr 23 07:15:49 like the modules in PWMSS are smaller than a page so you get the whole pwmss at once Apr 23 07:16:25 and eHRPWM doesn't work until a clock enable bit has been set in the control module Apr 23 07:16:41 errata Apr 23 07:16:44 no Apr 23 07:16:59 not in the technical sense i mean from my perspective Apr 23 07:17:00 working at designed, just slightly annoying Apr 23 07:17:12 it makes class design more difficult Apr 23 07:17:12 adc is easiest probably Apr 23 07:17:14 and most useful Apr 23 07:17:31 also most relevant to beginners! Apr 23 07:17:59 the pwmss modules are a lot of fun too though... it may be possible to tweak the DT overlay to have the kernel enable the bit for us Apr 23 07:18:12 I'd need to look into that Apr 23 07:18:47 the annoyances a) need to be well documente Apr 23 07:18:51 documented* Apr 23 07:19:04 or I could use a magic hack to write to the control module anyway Apr 23 07:19:16 with proper warnings around doing so of course Apr 23 07:19:51 i like having options... Apr 23 07:19:57 but control module writes are useful for more things, like changing pinmux on the fly Apr 23 07:20:38 https://github.com/dutchanddutch/jbang/blob/master/src/privileged.h this is how I do it in C++ :) Apr 23 07:21:15 I can call process_vm_readv from python also Apr 23 07:22:18 okay its 330a so i'm going to sleep Apr 23 07:22:31 hehe, sleep, who needs that Apr 23 07:22:51 HAHA you want me to die Apr 23 07:23:22 ill update you tomorrow, goodnight Apr 23 13:17:52 hey ,i have problm im using ecap for input capture Apr 23 13:18:31 it gave me not constant values how can i filtre it Apr 23 13:22:54 im looking for filtre for the input capture any help Apr 23 14:26:49 ping zmatt ? Apr 23 15:00:10 stt_michael: https://github.com/mvduin/py-uio Apr 23 15:00:22 wuhoh .. oh no .. you didn't .. heh Apr 23 15:00:41 just a little test Apr 23 15:00:50 which works :) Apr 23 15:01:21 hehe Apr 23 15:01:30 the relevent DT fragment is dts/l3-sn.dtsi, I couldn't be bothered to overlayify it Apr 23 15:01:30 ok right. Now. Food .. Apr 23 15:01:31 and Tea. Apr 23 15:01:34 tea++ Apr 23 15:01:38 mhmm Apr 23 15:01:59 I didnt' over-stew it this time .. for once .. Apr 23 15:02:13 win \o/ Apr 23 15:02:16 ;) Apr 23 15:06:55 absolutely .. stewed tea is quite unpleasant I'm finding Apr 23 15:16:28 the code may currently rely on python 3.5 features... that's something that might need to be trimmed to gain wider audience, but I didn't care for a proof-of-concept Apr 23 15:16:48 fair enough Apr 23 15:17:15 it turns out slicing the mmap object directly works correctly if the slice boundaries are word-aligned Apr 23 15:17:29 cool :) Apr 23 15:17:33 but I wrapped it in a memoryview to be able to create subviews for individual components Apr 23 15:17:40 that by default failed with a bus error Apr 23 15:17:53 hrm! Apr 23 15:18:02 but doing .cast('I') on the memoryview to turn it into an array of u32 fixed the problem Apr 23 15:19:21 so that gives two options: for most peripherals using the mmap object directly may suffice (especially if wrapped in sugar that hides the ugly slicing), if you want to use memoryviews you need to ensure the right type is used Apr 23 15:20:08 I still wanted to see if I can make ctypes.Structure that points to an existing piece of memory, that would allow accessing the registers by name and with the correct type Apr 23 15:20:21 which, needless to say, would be a lot nicer Apr 23 15:23:59 and/or allow peripherals to be declared using a nice metaclass that hides the low-level memory access entire from the user Apr 23 15:24:41 but I got other things to do unfortunately... ayjay seemed interested to take this thing from here though, and maybe others may be inspired as well Apr 23 15:25:17 its a starting point. Python is popular and uio is useful Apr 23 15:25:46 yeah, it also doesn't help I'm kinda a python n00b Apr 23 15:39:43 there, added a remark on the access size issue Apr 23 15:40:14 zmatt, no biggie .. its top of my new languages-to-learn list with ruby Apr 23 17:22:01 thanks ayjay.. My BBB works Apr 23 23:16:58 Hello. All. May I ask a question regarding BBB. I bought one about 2 years ago and it is BBB. How it is still BBB. Has this single board computer been upgraded since? Please advise. Apr 23 23:17:49 I am hoping someone can advise me a newer version of BBB out there other then the Beagle bone green which is slower. Apr 23 23:29:21 x15 will be out This Year (tm) Apr 23 23:29:38 but it'll be more like $200 than $50 Apr 23 23:31:11 what's X15 let me google it. Apr 23 23:35:32 what is x15 I cannot find it. Apr 24 01:34:33 hi this is M.sriramdhivakar from india Apr 24 01:35:30 when will Beaglebone-X15 release in india\ Apr 24 01:36:13 How can i buy Beaglebone-X15 **** ENDING LOGGING AT Sun Apr 24 02:59:58 2016