**** BEGIN LOGGING AT Mon Apr 25 02:59:58 2016 Apr 25 04:03:13 have we gotten the systemd/connman/wifi never gets unblocked issue yet with the Debian Jessie images? Apr 25 04:03:20 I still haven't seen rcn-ee around to ask hi Apr 25 04:03:21 m Apr 25 04:17:02 Hey, is anyone present? I just flashed Debian 8 onto my beaglebone black and am having problems using sudo. it keeps asking for a password, but never asked me to input one so i dont quite know what it is Apr 25 04:25:18 Anyone? =\ Apr 25 04:45:13 debian/temppwd are the defaults Apr 25 04:45:55 rtfm is your friend, lmgtfy is the next stage Apr 25 08:42:14 this link http://ahsoftware.de/Beaglebone_Black_Boot_explained.svg Apr 25 08:42:24 why does it not say anythin about sd Card? is this the same as serial? Apr 25 08:44:19 mmc = sdcard Apr 25 08:44:49 or rather, mmc0 Apr 25 08:45:55 oh i thought mmc was the on chip extra flash memory .. Apr 25 08:49:04 is the ddr2 sdram then mmc1 ? Apr 25 08:49:25 its the eeprom? Apr 25 09:03:07 the diagram is wrong and confusing Apr 25 09:03:18 mmc0 = μUS, mmc1 = eMMC Apr 25 09:03:39 eeprom is connected to i2c0 and is not a boot device Apr 25 09:04:00 it uses ddr3 ram, which has nothing to do with mmc interfaces Apr 25 09:04:36 (it *can* boot from spi flash, but this is not present on the bbb and would have to be connected via the expansion headers) Apr 25 09:05:39 typo, mmc0 = μSD Apr 25 09:10:42 ok thank u both Apr 25 09:11:06 would be nice if that was included in the picture and i have some paint skills but.. Apr 25 09:11:57 I don't think a diagram makes things clearer since you have two "subroutines" (two mmc boot devices) and many exit paths Apr 25 09:21:02 zmatt: well, it makes things clearer if you know them already and need a refresher Apr 25 09:21:15 zmatt: but it can confuse the hell out of n00bs Apr 25 09:21:33 but then, this whole embedded thing confuses the hell out of n00bs Apr 25 09:32:29 it is indeed confusing for me Apr 25 09:32:39 http://pastebin.com/PEZwrNui Apr 25 09:32:41 but i am trying to learn Apr 25 09:32:53 summary of am335x boot, for reference Apr 25 09:33:25 this is just the first stage of booting, i.e. when using u-boot this is about loading its "SPL" into internal SRAM and execute it Apr 25 09:34:03 SPL then loads the full u-boot (afaik it prefers to load it from the same device it came from itself, but I'm not 100% sure) Apr 25 09:34:11 yes i found somethin similar to this and TI also documents the SPL and sometimes called MLO Apr 25 09:34:33 MLO is a specific format Apr 25 09:34:40 so this uboot has jedec or SPI interface protocols internaly to communicate with these difference devices? Apr 25 09:34:53 "jedec" ? Apr 25 09:35:00 there's nothing on spi by default Apr 25 09:35:15 i think jedec is the protocol interface to the eMMC Apr 25 09:35:23 jedec is a standards organisation Apr 25 09:35:39 i am a n00b Apr 25 09:35:45 but i am searching Apr 25 09:35:51 eMMC is the protocol to eMMC Apr 25 09:36:13 and uboot already has this so it can check the mmc0 or mmc1 of the bbb? Apr 25 09:36:50 if you read my pastebin you see that in fact even the ROM bootloader can already access all of those devices Apr 25 09:37:01 SPL (which is a stripped-down) u-boot can also Apr 25 09:37:15 eh, parenthesis error Apr 25 09:37:22 SPL (which is a stripped-down u-boot) can also Apr 25 09:37:36 the full u-boot supports even more devices Apr 25 09:38:02 oh thats quite usefull Apr 25 09:38:10 thank u for ur info kind sir Apr 25 09:38:16 or bloated, depends on your point of view :P Apr 25 09:38:44 do u know perhaps some general pdfs or sources where i can gain some knowledge of this embedded platform Apr 25 09:39:07 not programming Apr 25 09:39:16 Tartarus: zmatt called u-boot bloated! Apr 25 09:39:40 languages, but like setting up linux on an ARM chip .. Apr 25 09:39:59 banana_: 1) get a _good_ understanding of linux, how it works, how it boots Apr 25 09:40:08 banana_: 2) get the "embedded linux primer" Apr 25 09:40:13 KotH: not at all... http://warnet.ws/img2/208/body/14.jpg Apr 25 09:40:42 :) Apr 25 09:41:17 zmatt: i dont know how it is where you live, but where i live, a body like this would be a serious health condition which requires treatment Apr 25 09:41:54 zmatt: also, it's not nice to call Tartarus fat Apr 25 09:42:04 oh thank u for this amazing tip, this book is exactly what i need ! Apr 25 09:42:07 I was referring to u-boot Apr 25 09:42:21 (and grabbed the first image google gave me for reference :P ) Apr 25 09:42:23 banana_: the book is not that great Apr 25 09:42:37 banana_: it's good, but lacks a lot of the details that confuse n00bs Apr 25 09:43:14 banana_: embedded linux is still a lot of black magic and craftmanship Apr 25 09:43:20 banana_: best learned by doing Apr 25 09:43:23 its a starting point Apr 25 09:43:38 also, a moving target Apr 25 09:44:05 i appriciate the help never the less Apr 25 09:45:07 banana_: btw: a good way to learn how linux works internally is to do a linux from scratch installation Apr 25 09:45:21 banana_: setting up linux on an embedded system often also requires at least *some* programming. for example some knowledge of the hardware (e.g. RAM size) is hardcoded into u-boot Apr 25 09:45:34 banana_: it's a damn lot of work, but after that you know all the components of a linux system in detail Apr 25 09:46:05 banana_: http://www.linuxfromscratch.org/ Apr 25 09:47:02 it doesn't use systemd yet? Apr 25 09:47:23 setting up systemd from scratch would need a book of its own Apr 25 09:47:41 it's at the heart of most modern linux systems though Apr 25 09:48:09 yes, the heart with serious conditions Apr 25 09:48:27 and i don't see why it would add any complexity Apr 25 09:48:28 unfortunately, it gets harder every day to run a system without systemd Apr 25 09:48:52 oh.. have you looked at all the components of systemd? Apr 25 09:49:27 are you referring to dependencies? Apr 25 09:49:30 while sysv init is just a collection of loosely couple scripts, systemd is a mess of tons of different tools that all have weird dependences Apr 25 09:50:51 that's one viewpoint... you can also call it a mess of scripts versus an integrated set of tools. see how using some subjective adjectives can make all the difference :P Apr 25 09:51:00 :-) Apr 25 09:51:26 but that doesnt change the fact that i'm right and you are not! :-P Apr 25 09:51:33 lol Apr 25 09:53:01 Meh Apr 25 09:53:22 Setting up an initrd might be the book on it's own ;P Apr 25 09:53:29 The rest is fairly simple stuff Apr 25 09:53:40 ( Oh, initramfs-tools? DIE! ) Apr 25 09:53:40 you can do without an initrd Apr 25 09:53:51 in principle Apr 25 09:53:53 Mmm Apr 25 09:54:00 yes... use knl and put everything onto a floppy Apr 25 09:54:22 I'm still amazed that LFS is around. Apr 25 09:54:40 I used to write for BLFS back in the early 2k's. Apr 25 09:54:52 KotH: what's knl? Apr 25 09:55:04 and why on earth would a floppy be involved? Apr 25 09:55:56 zmatt: a tool to set the boot parameters of a kernel in the binary Apr 25 09:56:12 as long as the drivers for your root filesystem and its block device are compiled into the kernel you don't need an initrd Apr 25 09:56:13 zmatt: actually, it's the newfangled tool for that... i cannot remember how the original tool was called Apr 25 09:56:22 boot parameters are passed by the bootloader to the kernel Apr 25 09:56:26 initrd isn't involved in that Apr 25 09:56:35 zmatt: on floppies there was no bootloader :) Apr 25 09:57:08 you have an ARM system that boots from floppies? Apr 25 09:57:09 Spidler: there were people who used lilo on floppies Apr 25 09:57:24 since that's still what this was all about in the end :P Apr 25 09:57:38 KotH: I know, you _could_ run it, but by default you didn't need one as the system would just read to the end. Apr 25 09:57:48 zmatt: That would be an awesome hack. Apr 25 10:00:11 sure, I can appreciate some retro stuff... I actually recently programmed an EPROM for someone :P Apr 25 10:01:37 zmatt: Haha. Apr 25 10:01:49 couldn't find any working sw for the ancient programmer someone dug up so I wrote a little perl script to write the data Apr 25 10:03:46 Ah Apr 25 10:05:07 "I can configure the program time from 3 ms to ms, how much does your EPROM require?" "0.1ms" "okay, 3ms it is." Apr 25 10:05:22 or us Apr 25 10:05:24 can't remember Apr 25 10:05:35 Heh Apr 25 10:05:36 us of course Apr 25 10:05:42 right? Apr 25 10:05:45 should be? Apr 25 10:05:59 EPROM was pretty fast. Just the software around it that was slow. Apr 25 10:06:16 I still have nightmares about LOGIC/4 on Windows NT Apr 25 10:06:26 well EPROM apparently was a lot slower than modern ones are :P Apr 25 10:07:30 ms Apr 25 10:07:35 Programming time: 100µs/Word Apr 25 10:07:54 ick where'd that garbage char come from Apr 25 10:08:24 still, the 1200 baud serial port of the programming was the limiting factor in the end Apr 25 10:08:29 *programmer Apr 25 10:13:00 it also used the lowest voltage supported by the programmer (12.5V)... apparently 25V used to be a common programming voltage... jeez you really needed to bang those electrons in with a hammer ;) Apr 25 10:13:10 The thing I love most about checking out some code: README file is in Japanese Apr 25 10:13:33 just google translate it and it'll be fine ;) Apr 25 10:13:41 Mmmmm Apr 25 10:14:25 Meh, my todolist for next week is annoying. Bundling kernel + initramfs + devicetree and try to get them onto partitions. Apr 25 10:14:37 Joy. Apr 25 10:14:49 "get them onto partitions" ? Apr 25 10:15:13 Mmmmm Apr 25 10:15:53 emulae mmcload Apr 25 10:15:58 emulate, even Apr 25 10:16:21 I personally think it's a bit of a step backwards. Apr 25 10:46:08 Spidler: what kind of software are you looking at? Apr 25 11:02:10 KotH: Right now? Reviwing DB monitoring tools and finding SQL injections. Apr 25 11:45:34 Spidler: nah.. the japanese readme one Apr 25 11:46:19 KotH: See above. DB monitoring tool Apr 25 11:46:44 Much of the PostgreSQL community is based in Japan, so a ton of the tools will be in japanese first Apr 25 11:59:30 Spidler: interesting.. didnt know that Apr 25 12:01:36 Compared to kernel 3.8.x, the 4.1.x kernel boot time is increased a lot. After logging i considered "Starting kernel ..." line (just after uboot finishes) takes much longer to finish compared to 3.8.x. any solution to reduce delay? Apr 25 12:02:08 Guest17033: figure out what's taking time and fix that Apr 25 12:03:30 i mentioned, "Starting kernel ..." line takes about 2 sec . i don't know whats going in background. Apr 25 12:03:58 remove the "-quite" from the kernel parameters Apr 25 12:04:13 already did Apr 25 12:04:14 it's most likely probing stuff that isnt there Apr 25 12:04:29 there are also some options to make kernel startup more verbose Apr 25 12:05:32 can it be related to bootloader? Apr 25 12:08:09 i wonder why no one complains about this huge startup delay after 3.8.x kernels Apr 25 12:15:29 Guest17033: what does `systemd-analyze time` give you? Apr 25 12:19:11 Spidler: i'm talking about time when userspace has not been started. Apr 25 12:19:49 just after bootloader starts kernel Apr 25 12:19:50 That's why I said `time` not `blame` Apr 25 12:20:09 It can tell you how long was spent inside kernel, and in firmware. Apr 25 12:20:23 And if it's the initrd or the kernel Apr 25 12:20:52 i got it . let me run it Apr 25 12:23:07 Mine is not stellar: Startup finished in 5.643s (kernel) + 3.816s (initrd) , but it gives an idea Apr 25 12:23:42 getting an embedded system to boot in <10s should be easy Apr 25 12:23:59 Should be Apr 25 12:24:01 i know of people who got their system booting and running a qt application in less than a second Apr 25 12:24:04 zmatt got it Apr 25 12:24:09 Personally, I'm not giving a fuck ;P Apr 25 12:24:17 It's not worth the dev time to optimize for it. Apr 25 12:24:31 depends on your application ;) Apr 25 12:24:41 Industrial control systems. Apr 25 12:24:43 * KotH knows a system where 1s was too long Apr 25 12:24:55 "Eh, it'll come up this afternoon, that's fast enough" Apr 25 12:25:04 Startup finished in 9.623s (kernel) + 14.659s (userspace) = 24.282s Apr 25 12:25:17 That's quite slow yeah Apr 25 12:25:21 No initrd? Apr 25 12:25:23 4.1.18-ti-r56 Apr 25 12:25:29 Mine is in 4.4 kernels Apr 25 12:25:37 So it could be a regression that's been fixed. Apr 25 12:25:46 How was 3.8 for you? Apr 25 12:25:53 so fast Apr 25 12:25:57 below 10 sec Apr 25 12:26:34 My total boot chain is > 1.2 minutes :) Apr 25 12:26:41 It does a complete roundtrip across the internet Apr 25 12:26:42 if you get a realtime log with serial kernel you will consider that even in 4.4 it will take much longer than 3.8 Apr 25 12:27:03 serial cable :) Apr 25 12:28:13 Spidler: is your kernel "ti"s ? Apr 25 12:28:34 Nop! Apr 25 12:28:44 So we're comparing apples and bulldozers Apr 25 12:29:25 by the way is your device BBB !? Apr 25 12:29:39 Yes Apr 25 12:31:08 ok, i'm a bit confused in selecting proper kernel for bbb. 3.8, 3.14, 4.1, 4.4 and *-ti . i went for 4.1 cause i read some where its stable for bbb. Apr 25 12:31:50 i mean 4.1.x-ti but when i saw boot time ... Apr 25 12:32:39 My usual rule is "Stick to as close to mainline upstream as you can" Apr 25 12:33:27 and about choosing ti and none ti ? Apr 25 12:35:39 ti contains more patches from the ti upstream, lags behind mainline, has some funky features if you need them Apr 25 12:39:28 Guest17033: why not the rcn kernel? Apr 25 12:39:37 Guest17033: this is usually the recommended one for the BBB Apr 25 12:46:01 KotH: i actually downloaded from official debian page for beaglebone black 'https://rcn-ee.com/rootfs/bb.org/testing/2016-04-10/console/BBB-eMMC-flasher-debian-8.4-console-armhf-2016-04-10-2gb.img.xz' Apr 25 12:46:28 i don't know why its ti's kernel Apr 25 12:46:50 i actually need a console image to rapidly boot to a qt program Apr 25 12:47:16 with opengl es2 support Apr 25 13:11:42 I would like to know if i can connect 2 beaglebone (1 master and 1 slave) with i2c buses Apr 25 13:20:54 somebody ? Apr 25 13:37:31 Hello everybody. I would like to know if it's possible to link 2 BBB with I2C. Thanks Apr 25 13:45:28 blärgh Apr 25 13:56:33 somebody ? Apr 25 14:11:10 dje: probably, although there probably are better ways to interconnect them Apr 25 14:19:58 tbr: thanks for your response, the probleme is i need to use this 2 BBB links with this protocole so i would like to know if i can (even if it's complicate) or if it's impossible Apr 25 14:22:22 the tricky bit is probably running a BBB as I2C slave, but I think I've heard that it's possible Apr 25 14:27:21 ok thanks, I check on web if there are some exemples of this utilisation Apr 25 14:27:37 you'll want to run a 4.x kernel Apr 25 14:27:53 as earlier kernels probably don't support i2c slave mode Apr 25 14:34:43 what the probleme ?I think the AM3358ZCZ100 could works in i2c slave mode Apr 25 14:40:17 > as earlier kernels probably don't support i2c slave mode Apr 25 14:43:47 ok I need to check that Apr 25 14:53:43 I wouldn't recommend it Apr 25 14:54:53 I would think a PRU would make any I2C mechanism pretty simple. It's not like I2c is complicated as a protocol. Apr 25 15:01:36 zmatt: why you don't recommend it ? Apr 25 15:08:35 how can I know which beagle bone I have Apr 25 15:18:40 as_: look at the board, is it black, blue, green or white? → bbb, blue steel, bbg, bbw Apr 25 17:04:26 tbr: do many people actually have blue steel borads? Apr 25 17:04:48 bradfa: I doubt it, cco, availability, supply, etc. :) Apr 25 18:01:08 Hi all Apr 25 18:34:57 Hello, I am trying to follow https://github.com/abhishek-kakkar/BeagleLogic/wiki/Build-BeagleLogic for beaglelogic . But can you please help me out how can I find in that steps ? Apr 25 18:37:03 av500: Can you please help if possible ? Apr 25 18:37:41 help Apr 25 18:37:52 Afaik BeagleLogic requires a kernel with uio_pruss, which none of the TI kernels support otb. Simplest is the older 3.8 it probably shipped with, or a rcn build. Also iirc you must download and install clpru; it's not "just there". Instructions should be on the BeagleLogic site. Apr 25 18:40:00 Ragnorok: Thanks. clpru is already installed on my bbb but I wouldn't be able to find the path where it is installed . Apr 25 18:40:20 Use "which"? Apr 25 18:41:09 ok Thanks. I got :) Apr 25 18:41:22 \o/ Apr 25 20:53:09 Ragnorok: 4.1-bone has uio_pruss afaik Apr 25 20:53:24 no need for ancient kernels Apr 25 20:53:51 zmatt: Yup. That's "a rcn build", is it not? Apr 25 20:54:36 the "-ti" kernels are also rcn builds (but derived from TI's kernel tree) Apr 25 20:55:03 I wonder how hard it would be to fix that code to use uio_pdrv_genirq instead of uio_pruss Apr 25 20:55:09 then it would work on any kernel Apr 25 20:55:31 zmatt: Ah. Roit. Apr 25 20:59:19 looks like the main deficiency of uio_pdrv_genirq would be that it doesn't offer an easy way to reserve a chunk of DDR Apr 25 21:03:29 I've been looking (though not very actively) for a good mechanism to do that, since I also use DMA from userspace Apr 25 21:03:43 for now on-chip SRAM has been sufficient though Apr 25 21:16:09 I currently have a LKM to read, but will likely change to user space code and ditch it. That Mythical Some Day. Apr 25 21:16:41 maybe I could just use a memreserve in DT Apr 25 21:17:08 not very elegant or flexible though Apr 25 21:19:28 I know there are many drivers that in some way or fashion allocate DMA memory and allow userspace mapping, e.g. in DRI and stuff... I still have hope there's already something in mainline linux that can be used to allocate DMA memory for private use Apr 25 21:20:11 but haven't had any urgent need for it, so haven't really investigated **** ENDING LOGGING AT Tue Apr 26 02:59:58 2016