**** BEGIN LOGGING AT Sun Oct 15 03:00:01 2017 Oct 15 03:00:38 Or... Oct 15 03:00:42 set_: That's possible. However, I had an older version of Debian booting from the same SD card a couple of days ago, and I got one of the Angstrom test images to boot from it yesterday. Oct 15 03:01:12 You can try the easy way. I have done this before with etcher and just pluggin' in the SD Card. Oct 15 03:02:11 Let me read more about what you typed. Please hold. Oct 15 03:02:35 set_: I can try Etcher, but I don't think that Debian 8.4 tarball I used contains a ready-to-go image; that's why the script is there. Holding. :) Oct 15 03:03:11 Oh. Oct 15 03:03:42 Hey, did you try to use 7-zip to compress the file and then use etcher to write the file to the SD Card? Oct 15 03:04:17 eupeptic: If not, I will find another way. I have this book. Oct 15 03:05:20 set_: I uncompressed the debian-8.4-lxqt-4gb-armhf-2016-05-13.tar.xz file with xz. When I do that, though, I don't get anything that looks like an SD card image. Oct 15 03:05:39 Oh and if anyone is listening, I am having a complication on installing debootstrap. Any ideas? Oct 15 03:05:59 Oh. Let me keep reading this book on it. Oct 15 03:06:02 Please hold. Oct 15 03:06:06 set_: I *do* get a collection of files and a script called "setup_sdcard.sh". That script partitions the SD card and copies files from the package to the SD card in hopefully the right places. Oct 15 03:09:14 Where did you get your .img file from? Oct 15 03:09:53 sorry. Tarball file. Where did you get this file? Oct 15 03:10:12 set_: I got it from https://debian.beagleboard.org/images/ . All the way at the bottom of the list. Oct 15 03:10:48 Oh. Oct 15 03:11:03 Dang. Let me check it quickly. Oct 15 03:11:19 OK. Oct 15 03:11:31 Hey, can you try their site instead? Oct 15 03:11:58 bbb.io or https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Checking_The_Debian_Image_Version Oct 15 03:14:32 ... Oct 15 03:14:36 * eupeptic checks Oct 15 03:14:52 I am on the wiki.debian.org/ArmHardFloatTodo page online. Oct 15 03:14:54 ... Oct 15 03:15:04 ID.txt is BeagleBoard.org Debian Image 2016-05-13 Oct 15 03:15:07 (checked from PC) Oct 15 03:15:08 BUT! Oct 15 03:15:22 I am looking for issues pertaining to debootstrap. Oct 15 03:15:23 ... Oct 15 03:15:31 I forgot that the script *also* forgets to populate the FAT partition sometimes (ID.txt, MLO, u-boot.img). Trying that now. Oct 15 03:15:35 I am trying to install it. Oct 15 03:15:36 ... Oct 15 03:15:51 Okay. You seem better at this than me. Oct 15 03:16:12 eupeptic: Do you cross-compile at all? Oct 15 03:16:34 set_: I have before, but I haven't done it for this particular attempt Oct 15 03:17:54 Okay. I was wondering b/c I am currently cross-compiling from a amd64 to armhf device (BBB)! Oct 15 03:17:57 set_: okay, I populated the FAT partition myself, but it still hangs after "Loading Ramdisk." Oct 15 03:18:15 Sounds oddly difficult to figure out. Oct 15 03:18:26 Are you connected via 5v or by USB? Oct 15 03:18:57 Power to the Beagleboard is via a regulated +5 V DC power supply to the +5 V coaxial plug on the Beagleboard. Oct 15 03:19:19 Oh. Oct 15 03:19:46 Okay...I am out of ideas. I need to read more on this subject from this book. Linux has answers! Oct 15 03:20:32 Hey... Oct 15 03:20:33 ... Oct 15 03:20:52 Did you ever get a fresh image from https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Checking_The_Debian_Image_Version? Oct 15 03:21:29 not yet! Oct 15 03:21:38 but I haven't found that page before, and it seems to have actual images Oct 15 03:21:42 I will pick one and download it Oct 15 03:22:20 Oh. Oct 15 03:22:21 Sorry. Oct 15 03:22:46 I guess we are not two-peas-in-a-pod. I accept images, still. Oct 15 03:23:07 They don't seem to have an image that matches my hardware Oct 15 03:23:16 I have an original Beagleboard, rev C3 Oct 15 03:23:36 those images are for Beaglebone, Beagleboard-X15, and Beagleboard xM Oct 15 03:23:48 Oh. Oct 15 03:24:20 Sorry. I do not know anything about that speific board. Actually, nope. Not at all. My mistake. I am very sorry. Oct 15 03:24:34 Be patient. Oct 15 03:24:41 Someone may show up. Oct 15 03:24:56 It's OK. Thanks. :) I'll stay around. Oct 15 03:25:41 Cool...see you later. Oct 15 03:41:07 Forget about debootstrap. I finally got it. Oct 15 03:41:47 Good! Oct 15 03:46:16 Hey eupeptic: are you still having issues? Oct 15 03:49:10 Hey...can I move on, i.e. even if I cannot install module-init-tools for the BBB in cross-compilation? Oct 15 03:50:00 Depends on if the next step needs someting from module-init-tools Oct 15 03:50:13 You can try it... probably the worst that will happen is that the next step will fail Oct 15 03:50:32 You are right. The bbb probably needs it but it is not available, i.e. neither is ar. Oct 15 03:50:33 Yep. Oct 15 03:55:16 I am retrying. Oct 15 04:01:28 From what I can tell, this is one of the most needed pieces of this compilation. Oct 15 04:30:16 ... Oct 15 04:30:40 Do you think that kldutils could take the place of module-init-tools? Oct 15 04:38:42 I don't know. Oct 15 04:47:12 I do not know either. I tried it anyway. The system could not find it. Oct 15 04:47:13 Boo! Oct 15 10:32:03 hi i want to know which dts file (..ie am57xx-beagle-x15.dts or am57xx-evm.dts) is present in the beagleboard-x15 board Oct 15 12:55:09 Hello! Oct 15 12:56:30 GenTooMan: I found that Bosch stuff and some APIs online for controlling the BMP180 w/ the BBG. Oct 15 12:58:29 ... Oct 15 12:59:13 I am currently trying to cross-compile sid onto the BBB from a VMware Debian Distro... Oct 15 12:59:15 ... Oct 15 13:00:14 I came across some issues so far. module-init-tools are not covered in the Distro yet. Boo! Oct 15 13:20:29 uhm what? Oct 15 13:20:32 eupeptic: use wget and then unxz and then use sudo dd if = bone-debian-7.7-lxde-4gb-armhf-2014-11-11-4gb.img \ of =/ dev/ sdb bs = 8M Oct 15 13:20:34 ... Oct 15 13:20:43 eupeptic: Does this help? Oct 15 13:21:09 module-init-tools? Which decade is this? Oct 15 13:21:28 What is the updated version? Oct 15 13:22:54 set_: see https://packages.debian.org/search?keywords=module-init-tools Oct 15 13:23:00 so most of us do use kmod Oct 15 13:23:08 kmod. Thank you. Oct 15 13:23:14 I read about that but I was not sure. Oct 15 13:23:20 ... Oct 15 13:23:26 I am following along in a book. Oct 15 13:23:38 <<<< first attempt! Oct 15 13:24:37 Humpelstilzchen: Thank you. I am off to read on kmod. Oct 15 13:26:26 You rule. I just found that it replaces the older, outdated module-init-tools. Oct 15 13:43:23 Humpelstilzchen: It is working. The older package was holding me back. Oct 15 14:26:52 welcome to the world of open stuff where yesterdays tools get replaced by yesterdays toys :D Oct 15 14:48:57 hi Oct 15 14:50:27 Salutations, ganesh. Oct 15 14:50:33 Cross-compilation? Oct 15 16:35:27 Hi all Oct 15 16:35:46 I am facing a problem in associating i2c driver with i2c device. Oct 15 16:36:01 can anyone help? Oct 15 16:59:08 mrigendra: declaring the right "compatible" property in DT should do the trick Oct 15 16:59:25 or, for testing, you should be able to manually bind a driver to the device via sysfs Oct 15 17:18:27 I tried this Oct 15 17:18:58 echo adxl345_i2c 0x53 > /sys/bus/i2c/devices/i2c-2/new_device Oct 15 17:20:28 and there is an entry in /devices/platform/ocp/4819c000.i2c/i2c-2/2-0053 Oct 15 17:20:35 here if I do cat name Oct 15 17:20:58 I can see adxl345_i2c Oct 15 17:21:13 so now the driver should be able to associate, isn't it? Oct 15 17:24:45 I am not doing device tree stuff right now Oct 15 17:25:11 I just need a way for my driver and device to get connected, based on that I can understand more. Oct 15 17:27:30 that sounds like the driver did in fact associate Oct 15 17:28:09 why i suspect it didn't is because I have put a print in probe function. Oct 15 17:28:15 that print was not in dmesg Oct 15 17:29:09 after echo command Oct 15 17:29:12 is there a symlink named 'driver' in i2c-2/2-0053 Oct 15 17:29:14 dmesg have this print only. Oct 15 17:29:15 i2c i2c-2: new_device: Instantiated device adxl345_i2c at 0x53 Oct 15 17:29:25 ohhh Oct 15 17:29:37 is maybe that first argument its name, not its driver? Oct 15 17:29:47 * zmatt has never used new_device Oct 15 17:30:07 no driver folder is not there Oct 15 17:31:00 modalias, name, power, subsystem,uevent are there Oct 15 17:31:24 either that first argument to new_device isn't used to indicate the driver, or "adxl345_i2c" isn't what the driver matches on Oct 15 17:32:11 locate your driver in /sys/bus/i2c/drivers Oct 15 17:32:48 echo 2-0053 >/sys/bus/i2c/drivers/$DRIVER/bind Oct 15 17:32:56 (where $DRIVER is the name of the driver) Oct 15 17:33:20 yes that is there Oct 15 17:35:41 no such device Oct 15 17:35:44 I tried this too Oct 15 17:35:46 echo /sys/devices/platform/ocp/4819c000.i2c/i2c-2/2-0053 >/sys/bus/i2c/drivers/adxl345_i2c/bind Oct 15 17:36:00 nono, not a path, just '2-0053' Oct 15 17:36:10 yes I tried that first. Oct 15 17:36:15 what is bind here? Oct 15 17:36:15 nothing in kernel log? Oct 15 17:36:27 manually attaches the driver to a device Oct 15 17:37:17 no print from probe function. Oct 15 17:39:19 hmm, apparently the first argument to new_device should actually select the driver Oct 15 17:39:42 https://unix.stackexchange.com/questions/318062/binding-an-i2c-device-driver Oct 15 17:39:50 this might be my problem too. Oct 15 17:40:27 have a link to the driver source code? Oct 15 17:40:35 yes. Oct 15 17:40:37 I can give. Oct 15 17:41:49 https://pastebin.com/raw/9JeEzYgW Oct 15 17:41:53 this is core driver. Oct 15 17:42:47 https://pastebin.com/raw/GugA5djM Oct 15 17:43:21 this is the i2c driver for device. Oct 15 17:44:51 the id this driver declares is "adxl345", not "adxl345_i2c" Oct 15 17:49:20 name = "adxl345_i2c", Oct 15 17:50:20 tch tch that is driver name, device name should be adxl345 maybe Oct 15 17:50:56 so, the reason those are separate is because a single driver can support multiple ids (e.g. minor variations of a device) Oct 15 17:51:59 yes I got that, I will delete adxl345_i2c device and try with adxl345 Oct 15 17:52:34 you know that the proper way to do this is through Device Tree right? Oct 15 17:52:52 it worked right away. Oct 15 17:53:07 I know in bits and pieces but haven't tried that. Oct 15 17:53:08 yay :) Oct 15 17:53:29 that was a basic driver and device glitch that I made. Oct 15 17:53:32 thanks a ton. Oct 15 17:53:58 well in this case binding it at runtime works too I guess. fortunately it seems this driver doesn't require any platform data, since then you would definitely need to do this through DT Oct 15 17:54:37 I just took a leap from old board file way to do it this way. Oct 15 17:54:51 now the bigger problem I need to face to make it work through device tree. Oct 15 17:55:53 https://github.com/mvduin/overlay-utils/blob/master/i2c1-mcp7940x.dtsi an example of how to declare an i2c device in DT Oct 15 17:56:33 and my overlay-utils project has a makefile that can build an overlay .dtbo from this :) Oct 15 17:57:41 note that "compatible" is yet another identifier... look for "of_match" in the driver Oct 15 17:57:52 so, it would be "adi,adxl345" in this case Oct 15 17:58:44 thanks a lot. Yes that name only I looked in driver file and realized my mistake. Oct 15 17:59:07 I will try with your overlay file for next experiment, I need to document all of this. Oct 15 17:59:13 for future. Oct 15 18:01:03 it can definitely be confusing as hell with all these subtly different identifiers for one thing Oct 15 18:02:15 yes it is, thats why I was doing this manual thing first. Oct 15 18:02:34 Now suppose I have an overlay file for my device. Oct 15 18:02:58 I just need to compile it and then put it in firmware and then export it. Oct 15 18:03:07 I think in this way it works. Oct 15 18:03:49 if you want to use the snippet I've shown, you should use the makefile from that project to build the .dtbo Oct 15 18:05:52 the actual syntax for overlays isn't the same as for normal device tree fragment. imho this is annoying as hell, which is why I made a perl script that converts the syntax to what dtc wants Oct 15 18:07:39 you can of course also insert (or #include) the fragment into a customized main device tree source file, but I think that customizing your main DT is generally considered to be a bit more intimidating than using an overlay :) Oct 15 18:12:33 yes thats why I couldn't make up my mind till now as what to do further. Oct 15 18:12:51 what is more industry specific or standard specific way to do this. Oct 15 18:13:33 only advantage I see in this is that even learning this is annoying, but it will be there for long. Oct 15 18:13:52 so I am trying to see as many ways to do this as I can. Oct 15 18:14:02 I personally don't use overlays at all Oct 15 18:14:13 you already have figured out a way, and I am going to learn from that. Oct 15 18:16:58 thanks for the help. Oct 15 18:17:14 well, it doesn't really matter *how* it ends up in the kernel's DT, at long as it does :) overlays are runtime patches to the kernel's DT representation, thus allowing DT to be modified after boot Oct 15 18:18:09 the beaglebone has traditionally used it to apply the necessary DT changes for auto-detected CAPEs Oct 15 18:20:26 it's obviously safer than modifying your main DT (which is loaded by u-boot and handed over to the kernel when it's executed), since making a mistake in the main DT can render the system unbootable (although if you were smart enough to keep a copy of the original dtb around it's not hard to recover from this via u-boot) Oct 15 18:22:18 on the other hand, overlays are sometimes buggy (not all parts of the kernel appreciate runtime changes to DT), they a fair number of limitations, and their diagnostics suck Oct 15 18:22:59 oh, and they use horrible syntax, but that problem is remedied by my overlay-utils project ;) Oct 15 18:23:10 and... you left, probably a while back already Oct 15 18:23:13 -.- Oct 15 18:23:52 well, another monologue for the irclogs... may future mankind benefit from it somehow Oct 15 18:34:47 I always log this channel you never know when something is answered I don't know I need yet. Oct 15 18:50:22 hi all, i've change the /etc/network/interface file to static ip, but it always get assiged by DHCP after reboot Oct 15 18:50:39 is there any service or something that i'm missing that is automatically turns the DHCP back on? Oct 15 18:50:50 i'm using BeagleBone Black Oct 15 19:17:09 that file is probably not even being used Oct 15 19:18:14 connman is the network manager installed on beaglebones by default, so you should do your network config there (or replace it by a different network manager of your choice) Oct 15 19:27:48 hi all, i'm using BBB , and i can't set static IP address , i've seen the issue here : https://ubuntuforums.org/showthread.php?t=2288300 , can anyone came up with a better solution than suggestion there? (i don't want to disable the USB) Oct 15 19:52:27 okay, i got it, it is releated to connman Oct 15 19:52:28 crap Oct 15 20:28:15 cyberugy: 21:18 < zmatt> connman is the network manager installed on beaglebones by default, so you should do your network config there (or replace it by a different network manager of your choice) Oct 15 20:51:51 Hello! Oct 15 20:52:30 This cross-comp stuff is complicated for some reason. I cannot get Eclipse on the Debian distro with C++ development. Oct 15 20:53:50 Well, I have Eclipse (circa 1901) but I need to update the release. Oct 15 20:54:00 Debian is beating me again. Oct 15 20:55:29 Does anyone know how to mess with Eclipse and Java for cross-comp on a amd to armhf? Oct 15 20:55:50 BBB! Oct 15 21:18:50 Only older models work w/ Debian, ECLIPSE! Oct 15 21:21:16 ... Oct 15 21:21:59 W/out starting from SCRATCH in Ubuntu, how can I transfer my Debian info. into Ubuntu on VMware? Send rations! Oct 15 21:22:40 <<<< off to VMware dot com. Boo! Oct 15 21:57:25 No Oct 15 21:58:03 you need to read the ARM information about eclipse so you can understand how it integrates as a cross compiler. Oct 15 21:58:22 ARM inc controls the GCC port to put it simply. Oct 15 22:00:56 It does work it's just not as straight forward as compiling natively on the machine. Oct 15 22:03:19 Oh. Oct 15 22:03:35 I am actually following out of an outdated book. Oct 15 22:09:27 i also found that Java is not supposed, well JRE, work w/ Debian or at least they do not have that Distro listed on their site. Oct 15 22:17:55 Okay...off to ARM's site on eclipse. Oct 15 22:27:27 GenTooMan: I have not made it to the C++ compiler on Eclipse just yet. I have to reinvent the docs. on this text to suit Ubuntu's need. I am starting from scratch w/ Ubuntu. Oct 15 22:27:38 ... Oct 15 22:27:45 I am almost to where I was before Oct 15 23:42:16 Okay...I am still at it and falling apart. In writing new mirrors in Ubuntu under /etc/apt/sources.list, what should this "dog-gone" mirror be for this cross-compilation? This question is killing me. Boo! Oct 15 23:52:28 ... Oct 15 23:53:01 I went for us.archive.ubuntu.com/ubuntu and hated every second. Boy! Oct 16 00:14:29 Forget it. It was us.ports.ubuntu.com/ubuntu-ports. Oct 16 00:14:34 ... Oct 16 00:22:10 Cross-compilation is harder than once thought. Geaux BBB! Oct 16 00:29:53 I am almost to the point where "I have no name!" Oct 16 00:29:56 ... Oct 16 00:58:36 Does anyone know of the keyring issue on Ubuntu w/ cross-compilation? I am asking because the Debian keyring is debian-archive-keyring but on Ubuntu, the obvious, does not work. Oct 16 00:58:37 ... Oct 16 00:58:40 Any ideas? Oct 16 01:04:56 Use debian instead of Ubuntu. To be blunt. Oct 16 01:06:54 Also there is considerable documentation on running Eclipse for cross compilation. However it is likely better to do so from the command line (cross compilation). Here is some useful hints https://eewiki.net/display/linuxonarm Oct 16 01:08:12 Okay. Oct 16 01:08:39 The include the BBB under there listings pander board (yes mischievously spelled) all the beagle boards. Oct 16 01:09:01 Okay. Oct 16 01:15:32 GenTooMan: I will try what you stated after I eat my keyboard. No offense. I just want to keep trying rewriting this book w/ notes and updated info. No offense. In all fairness, I will try what you have described but only after I totally give up. Oct 16 01:15:34 ... Oct 16 01:15:40 Sorry for the long sentence. Oct 16 01:19:08 Well Fyodor Dostoyevsky you are not, but I digress, you can do cross compilation in Eclipse however it's not as simple as you might think. Actually it requires more work than doing so from the command line. Oct 16 01:21:51 Thank you. I have found that you are right, so far. I have had some issues but I am working through them (as we speak). Oct 16 01:22:55 ...I typed so far just in case I catch you in the knowlege dept. Ha! Just playin'. Oct 16 01:24:52 Unless you are programming an application with FreeRTOS (IE no linux) it's not worth it. Eclipse is better for an RTOS then an OS when it comes to ARM developement. I do know that much :D Oct 16 01:25:16 Oh. Oct 16 01:32:54 If you want to use Linux based developement things get more convoluted. You might wish to do native developement on the BBB instead of cross compilation. Oct 16 01:33:25 Hold...I found the keyring. I was confused. I did find it. Oct 16 01:33:46 "the key ring to undo the all! Oct 16 01:33:54 Yes! Oct 16 01:39:38 Tested and tested again. I will configure it and stay up to date (most likely). Oct 16 02:25:33 Well GenTooMan: I will try your way. **** ENDING LOGGING AT Mon Oct 16 03:00:01 2017