**** BEGIN LOGGING AT Thu Apr 06 03:00:03 2017 Apr 06 04:35:06 lol, I just tested whether the omap-sham driver (for the md5/sha1/sha256 hw accelerator) is useful at all, by comparing: regular sha256sum vs the in-kernel sha256-neon (sw) and omap-sha256 (hw) implementations (the latter two via AF_ALG) Apr 06 04:35:10 https://pastebin.com/raw/tBfz84V8 Apr 06 04:35:30 it's slower *and* produces the wrong answer Apr 06 04:35:32 nicely done Apr 06 06:12:00 zmatt: don't be so harsh. as we all know, its only essential that the generated hashes are unique ;-) Apr 06 06:28:38 zmatts the worst person to work with Apr 06 06:28:43 someone who knows what hes talking about XD Apr 06 06:43:38 gm Apr 06 09:22:30 hello. There's any wxWidgets 3.1.x library compiled for the BBB Jessie? I can't find any, and i failed to compile the sources... Apr 06 09:23:29 hi,i am smallhorse Apr 06 09:25:53 i have some problem about the beaglebone black wireless with 4DCAPE-43T LCD Apr 06 09:26:11 just only backlight and nothing display Apr 06 09:28:00 anyperson can give me help? thank you Apr 06 10:42:03 ooooh Apr 06 10:42:10 sorry smallhorse i wish i could help you Apr 06 10:42:20 i love the bbb and i love lcd capes! Apr 06 10:42:34 but its hard to help without any further information Apr 06 10:47:21 ayjay_t: He left about a minute after asking Apr 06 10:47:40 i hate that Apr 06 10:47:45 kids these days Apr 06 10:47:57 gone like the wind, before they even let their fart settle. Apr 06 10:48:24 does anyone know of plans for a dual/quad core beaglebone updated hardware? Apr 06 10:48:51 everyone is bringing out these wifi enabled ones, which is great (i'm using the BB green wireless from Seeedstudio currently for a big project) but I really need more guts in the processor Apr 06 10:49:05 kyranf: there is V Apr 06 10:49:06 https://beagleboard.org/x15 Apr 06 10:49:15 nothing else in the rumours. Apr 06 10:49:17 i'm crunching opencv solvePnP algorithms and trying to run multi-threaded applications with some form of reasonable speed Apr 06 10:49:52 i need the same form-factor (or smaller) as the beaglebone black/green/blue Apr 06 10:50:07 the X15 looks neat though Apr 06 10:50:10 well then probalby no beagle for you. Apr 06 10:50:26 i'm thinking to transition to the Odroid offerings Apr 06 10:50:31 small, crazy quad-cores Apr 06 10:51:03 engineering rule #1 use what fits the problem. Apr 06 10:51:37 actually #0 supercedes that, as long as it's a grey area, which is "use what you know to get shit done fastest" Apr 06 10:52:41 it turns out, after benchmarking, that the 1Ghz single core AM335x just isn't quite fast enough for me.. :( It will do, but I was hoping there was a more powerful version in the works from the beaglebone community Apr 06 10:54:32 kyranf: you certainly don't want the beagle for its cpu power ;) Apr 06 10:54:56 kyranf: its main point for it are the PRUs Apr 06 10:55:00 no, i wanted it for the GPIO, I2C, wireless (from the green wireless version) and small formfactor Apr 06 10:55:05 kyranf: if you don't need PRUs, something different is probably better Apr 06 10:55:19 kyranf: check out the 96boards Apr 06 10:55:21 there was a possibility of using the PRUs for interfacing with my FPGA Apr 06 10:55:37 but I ended up using an ARM cortex m4 as the interface between the BB and the FPGA Apr 06 10:56:33 interfacing with the FPGA like a massive shift register using the PRU and 16-bit parallel data bus would have been neat, in hindsight Apr 06 10:56:41 and it could just be buffered straight into shared RAM with the ARM core Apr 06 10:57:07 kyranf: yeah, the 16-bit shift should work well if you have an FPGA on the other side Apr 06 10:57:15 kyranf: or does it? hmm Apr 06 10:57:21 I really like the PRU and i've used it before, like 5 years ago on the original BB white Apr 06 10:57:35 kyranf: well, depends on how you design your protocol, but since you have control over everything it might just work :) Apr 06 10:57:38 i have a low-end FPGA, Lattice ICE40 Apr 06 10:57:48 and yeah, it is already fully custom Apr 06 10:58:07 well currently it's over SPI at 24Mhz but the packets are all custom (of course) Apr 06 10:58:29 kyranf: if you can use proper hard ip blocks, you're even better off, true Apr 06 10:58:52 no, i had to scavenge soft SPI IP blocks for this particular FPGA :( . anywho, i don't fully regret using the BB Apr 06 10:59:03 kyranf: so again, if all you need are just reasonably good CPUs and a small form factor plus wifi, even the original hikey wouldn't be too bad Apr 06 10:59:25 the intel edison on a carrier board might have been a good match too Apr 06 11:00:22 jesus christ the hikey is insane Apr 06 11:01:07 :) Apr 06 11:01:21 an octo- 1.2Hz!? Apr 06 11:01:26 gHz* Apr 06 11:01:50 yep Apr 06 11:01:57 kyranf: if you need more power, the x20 also has A72s Apr 06 11:01:58 if i could get opencv to compile on that beast, and if it has an external I2C bus and a couple of GPIO this would be epic Apr 06 11:02:38 kyranf: opencv should theoretically run on the GPU even, no? Apr 06 11:02:48 only if the GPU is supported Apr 06 11:02:52 by opencv Apr 06 11:02:56 when it's compiled Apr 06 11:03:21 the BB is meant to have GPU acceleration for openCV but i'm not sure if it is working or not Apr 06 11:03:53 i see Apr 06 11:04:09 well, then you may want to look at the qcom chip - it has an open source gpu stack now Apr 06 11:04:30 "dragonboard" Apr 06 11:04:42 i haven't played with that one yet though Apr 06 11:05:07 but if opencv is your main use case, you may want to explore something with a usable gpu for it Apr 06 11:05:21 either way, use the beagle for things the beagle is great at :) Apr 06 11:05:43 indeed Apr 06 11:05:55 well thanks for the chat agraf, I appreciate it Apr 06 11:14:29 actually relating to performance on the beaglebone, with the latest linux kernels, have you guys had any luck with changing p-thread priorities and the scheduler to round-robin in C++ ?? Apr 06 11:14:47 all the examples I find are either out-dated, or fail silently (they appear to work, but don't) Apr 06 11:15:16 as in, i can set the scheduler and priority without any errors thrown/perror set, but when i read the thread priority back it hasn't changed. :( Apr 06 11:17:33 grove do you keep join/parts on? Apr 06 11:29:57 ayjay_t: Yes Apr 06 11:59:04 ugh so gross Apr 06 13:13:18 hmm i'm trying to execute a NOP in SRAM but I get an exception each time meh Apr 06 13:33:26 ayjay_t: not properly mapped? Apr 06 13:34:34 no i think its fine Apr 06 13:34:39 the address is correct Apr 06 13:34:46 http://xomf.com/sgynl Apr 06 13:34:51 as soon as i type "si" though it will break Apr 06 13:35:08 http://i.xomf.com/sgynl.png is better Apr 06 13:35:33 you can see its a nop at 0x1ffff000 which is the correct ram address Apr 06 13:56:51 ayjay_t: what's your jtag backend, openocd? Apr 06 13:58:38 thats right Apr 06 13:59:13 ayjay_t: and working on a frdm board with a kl43z Apr 06 14:00:20 fuck yah thinkfat lol why Apr 06 14:00:40 i'm actually working on a custom board now but i hooked it up to the FRDM board just to see why RAM was crashing Apr 06 14:00:43 TOLD ME NOTHING Apr 06 14:02:10 ayjay_t: no, just making sure you're not on a bbb trying to execute something in sram Apr 06 14:04:13 LOLEF Apr 06 14:04:50 maybe i'll throw all those esoteric memory barrier commands and flushes and stuff at it Apr 06 14:04:55 lets see how that does Apr 06 14:06:09 should not matter, no external observers Apr 06 14:06:21 I mean there's just one single cortex-m core Apr 06 14:07:15 I'm not really familiar with cortex-m, does it have an instruction and data cache? Apr 06 14:08:51 no clue Apr 06 14:08:58 don't understand how microcontrollers work on a fundemental level yet Apr 06 14:09:11 and you're right it didn't matter Apr 06 14:12:51 bah Apr 06 14:14:13 ayjay_t: on a cortex-a system I would be sure you'd have to invalidate the d- and i-cache after copying the code to sram Apr 06 14:14:31 ayjay_t: on cortex-m I'm not sure if such thing exists Apr 06 14:22:05 there's a one-word write-buffer :P Apr 06 14:23:44 and some amount of instruction prefetch... so if you'd make self-modifying code you will need dsb;isb after writing code before executing it I think Apr 06 14:25:24 i mean i ran dmb; dsb; isb; bx r0; Apr 06 14:25:26 then it goes to ram Apr 06 14:25:29 and it breaks on nop Apr 06 14:25:50 and htis is a resident function in ram Apr 06 14:26:09 so its put there by the boot script Apr 06 14:26:24 hmm, 0x1ffff000 .. that's in dcode/icode space Apr 06 14:26:51 are you sure dcode and icode actually point to the same thing on this target? :P Apr 06 14:27:14 were at the point where i google things you say and nothing turns up Apr 06 14:27:15 what not Apr 06 14:27:21 s/not/now/ Apr 06 14:27:38 which cortex-m is this? Apr 06 14:27:43 0+ Apr 06 14:28:30 ah nm, it doesn't have split buses Apr 06 14:28:54 :-( Apr 06 14:29:30 on the m3, the range 0x0 - 0x1fffffff can be different for data access and for code execution Apr 06 14:30:09 (although it's not common to actually hook it up like that) Apr 06 14:31:21 so maybe i should just try putting this somewhere else? Apr 06 14:31:26 like a different range of ram Apr 06 14:31:32 shots in the dark Apr 06 14:31:42 ayjay_t: what type of exception? Apr 06 14:31:44 i'm /s/SRAM the trm right now to see if there are any hints Apr 06 14:32:00 i actually don't know to tell the execption lol Apr 06 14:32:11 xpsr Apr 06 14:32:14 it goes oh okay Apr 06 14:32:49 and openocd should tell you something, too Apr 06 14:33:09 which mcu are you using? Apr 06 14:33:38 oh gosh actually now that i've looked at open ocd it might be telling me a lot Apr 06 14:33:48 its a freescale/nxp kl43 128kb Apr 06 14:36:24 its a hardfault Apr 06 14:37:17 probably because you don't have fault handlers, which means any fault escalates to hard fault. presumably the m0+ has registers which give more details about the cause Apr 06 14:38:03 i haven't set up any fault handlers Apr 06 14:38:28 that's normally not a problem Apr 06 14:39:56 i'm looking for a tbale to describe registers during a hardfault now in the trm Apr 06 14:40:31 how much sram? Apr 06 14:40:40 16 KB Apr 06 14:40:41 16kb Apr 06 14:40:42 yeah Apr 06 14:40:54 and you load your code where? Apr 06 14:40:56 i might just try and move it.. i mean what could be the worst that happens Apr 06 14:40:59 into the vurry bottom Apr 06 14:41:03 0x1FFF0000 Apr 06 14:41:10 that's invalid Apr 06 14:41:12 indeed Apr 06 14:41:27 typo Apr 06 14:41:30 four f's Apr 06 14:41:31 three 0's Apr 06 14:41:42 only 1/4th of sram is available below 0x20000000 Apr 06 14:41:45 right Apr 06 14:41:55 which is 0x1000 Apr 06 14:42:01 indeed Apr 06 14:42:02 yes Apr 06 14:42:07 strange memory map Apr 06 14:42:08 so 0x1FFFF000 is where i load it Apr 06 14:44:04 trm doesn't have anything to say about sram Apr 06 14:44:15 nope Apr 06 14:44:34 apparently writes to peripherals are posted... that's not important right now but it's good to know Apr 06 14:45:29 ayjay_t: can you telnet to the openocd console while your debug session is on? Apr 06 14:45:51 and then type "arm disassemble 0x1ffff000 4 thumb" Apr 06 14:45:51 i.e. if you write to a peripheral and need to be sure the write has landed there, you need to follow it by a read from the same peripheral Apr 06 14:46:00 (same as on the am335x) Apr 06 14:46:26 yeah i saw that read-write-serial it called it Apr 06 14:46:43 okay so first i'm trying to load it into 0x20000000 and see if the ram there makes any difference Apr 06 14:47:05 so in my startup copy function i should just perform a ldr after every str to ram? Apr 06 14:47:14 and then i'm going to google telnet Apr 06 14:47:15 no Apr 06 14:47:27 this is about peripherals specifically Apr 06 14:47:43 you're saying sram isn't a peripheral Apr 06 14:47:49 i'm a lottle confused Apr 06 14:47:53 at what you're getting at Apr 06 14:48:48 it isn't, and even if it used posted writes it wouldn't matter since writes to memory have no side-effects Apr 06 14:49:04 thinkfat: is that different than runnig the command from GDB with the "monitor" prefix? because i can "mon mdh 0x1ffff000" Apr 06 14:49:09 hence I said "not important right now" Apr 06 14:49:28 ohhh i didn't see what you wrote above thinkfat Apr 06 14:52:01 i mean it reads at 46c0 which i'm sure is nop Apr 06 14:52:50 oh that... that did something different Apr 06 14:52:51 (btw apparently it *is* possible for an m0+ to be coupled to a cache, since the armv6-M architecture reference manual shows that the code space (below 0x20000000) is write-through while the "sram space" (0x20000000 - 0x3fffffff) is marked as write-back write-allocate. I haven't seen any mention of a cache yet so I doubt it's used, though even if it is it wouldn't matter) Apr 06 14:53:02 that address range behaved differently wow Apr 06 14:53:09 hmm? Apr 06 14:53:31 but... hmm Apr 06 14:53:44 it looks like it didn't let me step through the hardfault ROM exception handler Apr 06 14:53:51 and it just restarted and went to a breakpoint Apr 06 14:53:54 lemme try again Apr 06 14:55:18 sigh Apr 06 14:57:12 ayjay_t: yeah you can use "mon" in gdb instead of telnet to openocd Apr 06 14:57:37 * zmatt is afk Apr 06 14:57:45 yeah its turning up the right opcodes i think but Apr 06 14:59:04 ayjay_t: how do you get gdb to jump into sram? Apr 06 14:59:37 ayjay_t: or do you put a breakpoint there and just let it run? Apr 06 14:59:42 i'm using si Apr 06 15:00:02 but from where? Apr 06 15:00:10 flash Apr 06 15:00:16 i'm stepping from the branch into ram Apr 06 15:00:21 ah ok Apr 06 15:00:34 what version of openocd? Apr 06 15:01:10 0.10.0-dv Apr 06 15:01:10 just collecting data Apr 06 15:01:12 haha Apr 06 15:01:23 -dv is what? not official release I guess Apr 06 15:01:40 sorry -dev Apr 06 15:01:46 i didn't know if i should include that Apr 06 15:01:49 i think i compiled this myself Apr 06 15:02:00 so stepping works but Apr 06 15:02:02 breakpoints dont Apr 06 15:02:22 oh that is weird Apr 06 15:02:34 hmm Apr 06 15:03:05 your openocd config, does it configure a work area, and where is it? Apr 06 15:03:09 oh god Apr 06 15:03:28 i should know this because you know, i had to modify the cfg file but Apr 06 15:03:40 just pastebin the file Apr 06 15:03:40 i mean doesn't it only use that work area for programming? Apr 06 15:03:57 no Apr 06 15:04:47 okay well i'm going to test it on a different board using SPI over uart so we'll know if it works lol Apr 06 15:04:50 but yeah i'm getting that cfg Apr 06 15:05:18 ah fuck it's at 0x20000000 @ 0x1000 Apr 06 15:05:22 the second number being the size Apr 06 15:06:39 iirc the work area is also used to fastpath the register retrieval on debug entry Apr 06 15:06:47 so it will corrupt SRAM at that address Apr 06 15:07:13 doesn't explain though why SRAM_L behaves strangely Apr 06 15:07:20 i mean but all my reads are turning up correctly ahh Apr 06 15:07:28 no i'm gonna end up calling nxp Apr 06 15:08:26 it doesn't work even with isp Apr 06 15:08:32 so it's probably not that workarea isue Apr 06 15:13:40 oh my god Apr 06 15:17:00 hello. Apr 06 15:17:41 there's a wxwidget 3.1.x compiled library for the BBB jessie? i can't fin any and i failed to compile it from the sources Apr 06 15:23:28 hey thinkfat do you know about the +1 rule with bx Apr 06 15:24:15 i just want to really sincerely thank thinkfat and zmatt for trying so hard to help me Apr 06 15:24:38 and i wanna deeply apologize for being somewhat mentally disabled Apr 06 15:24:46 and i mean that sincerely Apr 06 15:25:01 the bx instruction wasn't working properly because the last bit of any address has to be 1 Apr 06 15:26:05 so until my replacement beaglebone black comes in today. how can i flash a beaglebone black that will boot up to the point of uboot showing c's. Is there an easy way to flash the emmc as I believe the microsd card reader is not working Apr 06 15:29:09 were you holding down the boot button? Apr 06 15:31:35 dude im way pass stuff like that Apr 06 15:31:46 like i said i am trying to flash through uboot Apr 06 15:32:23 yeah but the boot button causes a hardware branch from the rom bootloader Apr 06 15:32:24 through the microusb cable Apr 06 15:32:25 thats pre-uboot Apr 06 15:33:00 i'm glad your past it tho ha Apr 06 15:33:54 smh Apr 06 15:34:51 ayjay_t: hum, arm-thumb interworking? yes Apr 06 15:35:14 ayjay_t: but I didn't think it applies to cortex-m as well since it only executes thumb Apr 06 15:35:43 https://github.com/ungureanuvladvictor/BBBlfs is this still a viable method of flashing a different image to the beaglebone black? Apr 06 15:36:15 thinkfat: well its works now aaaaaaaaaaaaaafff Apr 06 15:36:44 NTQ: did that work ? Apr 06 15:36:54 you'd think the assembler took care of that automatically Apr 06 15:36:56 stupid toolk Apr 06 15:37:57 ah, but because you load r0 with the function address and not use bx directly it doesn't know... Apr 06 15:37:58 zeekhuge: I did not quite understand how to use the compiled kernel module, the ko file. But today I can not work on the project. I don't have the beaglebone here. Apr 06 15:39:02 yeah thats right i'm doing everything myself Apr 06 15:40:15 NTQ: https://github.com/ZeekHuge/BeagleScope#how-to-use-releases Apr 06 15:58:54 NTQ: oh ! Sorry ! I didn't read that "not" there .. Apr 06 16:59:29 hello! is there any multicore beaglebone around? Apr 06 17:34:02 hi guys i need some help trying to recover my beaglebone black. when i attempt to boot it this is the output i am given: https://pastebin.com/8B14D3gp Apr 06 19:27:39 mistawright: uboot is failing to find a primary partition as the first partitin on MMC1 (eMMC=onboard flash). is any there? holding the boot switch (S2) should make it attempt MMC0 (microSD) if you got a sd-card with anything bootable. Apr 06 22:07:19 nextloop: technically it is multicore :P one cortex-a8, two pru cores, and a cortex-m3 for power management Apr 06 22:09:16 thinkfat: yeah cortex-m does require bit 0 set in code addresses, to keep compatibility with cortex-a/r Apr 06 22:09:26 otherwise you get a UsageFault Apr 06 22:10:02 ayjay_t: quite often the assembler does know about this though Apr 06 22:10:19 or there was something to inform it, or something Apr 06 22:11:37 e.g. in my start.S I have an entrypoint in ARM mode containing: ldr pc, = _start where _start is my entrypoint in thumb mode Apr 06 22:12:11 since this works, the assembler clearly knows that _start is a function symbol in thumb mode, hence needs to have bit 0 set Apr 06 23:56:43 sup. attempting to use the beaglebone black screwdriver for coreboot/etc dev. apparently the root param isn't set right or something. what would be the proper way within the bbb ecosystem to set this up? Apr 07 00:40:50 zmatt: is start declared as a function? Apr 07 00:41:05 zmatt with the psuedo-op .function Apr 07 00:42:56 ayjay_t: I have macros that deal with the annoying boilerplate... see link to include file at top of https://liktaanjeneus.nl/start.S.html Apr 07 00:49:11 yeah i mean, i think it might have to do with the psuedo-op Apr 07 00:50:10 ooh look at all those macros Apr 07 00:50:14 and also, the color scheme wow Apr 07 00:50:35 +1 +1 +1 Apr 07 00:50:49 .thumb_func Apr 07 00:50:59 that sounds like it might be the trick Apr 07 01:06:55 i will get to the bottom of this... Apr 07 02:02:37 ayjay_t: actually I'm quite certain that .thumb_func is what's needed to make the linker treat the symbol as being a thumb function Apr 07 02:03:10 why it doesn't suffice to simply mark the symbol as being a function, while in .thumb mode, is a mystery to me Apr 07 02:07:07 i have .thumb_func there tho Apr 07 02:07:14 although its after the label so maybe thats why Apr 07 02:55:22 "This directive specifies that the following symbol is the name of a Thumb encoded function." Apr 07 02:55:52 "This directive is not neccessary when generating EABI objects." ... hah Apr 07 02:56:21 that's probably someone's wishful thinking **** ENDING LOGGING AT Fri Apr 07 03:00:00 2017