**** BEGIN LOGGING AT Sun Jun 07 02:59:58 2015 Jun 07 06:28:54 hey on the bbb, for the 63K accessible memory at address 402f0400 ("public ram") is that memory physically on the ddr3 chip on the board or internal on the processor? Jun 07 06:30:10 eg. if you desoldered the ddr3 chip and read out the memory on it, would the 63K of data at 402f0400 be present? Jun 07 06:33:47 that is the so called internal SRAM correct? Jun 07 10:22:18 Can anyone tell me why trying to load g_mass_storage, with or without parameters, returns this error?: Jun 07 10:22:24 ERROR: could not insert 'g_mass_storage': No such device Jun 07 10:23:07 Both of these commands do it, so I don't think that it's a problem with the actual parameters: Jun 07 10:23:18 modprobe --first-time g_mass_storage removable=1 ro=1 cdrom=1 file=/home/debian/GNU+Linux\ ISOs/nixos-graphical-15.06pre62649.f93a8ee-x86_64-linux.iso Jun 07 10:23:30 modprobe --first-time g_mass_storage Jun 07 10:24:54 The same happens for various other combinations of parameters that I tried. Jun 07 10:25:32 And this happens regardless of whether or not the USB connection is plugged-in to a host. Jun 07 10:26:05 I'm not sure what “device” it can't find. Jun 07 10:26:17 Any ideas? Jun 07 12:05:16 Hello? Jun 07 12:06:23 Is it normally this quiet here? It's pretty quiet for 271 nicks. Jun 07 12:06:49 It's generally pretty quiet, yes Jun 07 12:07:09 Hi SpeedEvil! Jun 07 12:07:35 I noticed you were in this channel. Jun 07 12:07:40 ^and I have no clue about the above Jun 07 12:07:53 Nice to see you, so to speak. :-) Jun 07 12:08:02 Okay. Jun 07 12:08:08 I thought g_mass_storage was the mass storage gadget Jun 07 12:08:15 Yes. Jun 07 12:08:22 Oh - I misread Jun 07 12:08:26 But I can't get it to load. Jun 07 12:08:28 ah Jun 07 12:08:46 Is there perhaps a required step to set the port to OTG/host-mode first? Jun 07 12:09:51 Hmm, well I read somewhere that the device port is a direct device-only port and not OTG, but if I'm wrong on that then probably yes, that would be a missing step. Jun 07 12:15:10 There: https://en.wikipedia.org/wiki/BeagleBoard#Specifications_2 Jun 07 12:15:30 “1 x Standard A host port (direct). Jun 07 12:15:33 1x mini B device port (direct)” Jun 07 12:16:56 In contrast to the original BeagleBoard and BeagleBoard-xM which say OTG. Jun 07 12:33:06 After trying to insert, dmesg output contains: Jun 07 12:34:05 [...] CAUTION: musb: Babble Interrupt Occurred Jun 07 12:34:18 (same again) Jun 07 12:35:12 [...] gadget: high-speed config #1: Multifunction with RNDIS Jun 07 12:35:24 where abouts are the modules like usb_f_mass_storage/g_muti loaded in the beagle image? i'm not seeing anything in /etc/modules or modules-load.d Jun 07 12:36:32 [...] musb_stage0_irq 525: bogus peripheral RESUME (a_idle) Jun 07 12:36:35 (same again) Jun 07 12:37:05 So those 5 entries per try I think. Jun 07 12:37:21 (I copytyped them.) Jun 07 12:41:20 Actually no, it doesn't happen everytime (I can't seem to make any new entries appear right now), and even so, it's just the first 3 that repeat, not the latter 2. I.e.: Jun 07 12:41:24 [...] CAUTION: musb: Babble Interrupt Occurred Jun 07 12:41:25 [...] CAUTION: musb: Babble Interrupt Occurred Jun 07 12:41:29 [...] gadget: high-speed config #1: Multifunction with RNDIS Jun 07 12:44:36 The times between the first and last of each triple of entries are about 0.2s, so they are definitely related, whereas the other things aren't so close. Jun 07 12:47:13 But dmesg isn't showing anything new now, no matter what variation of the module parameters I do. Jun 07 12:52:42 Aaah, when I unplug from my laptop I get this 1: Jun 07 12:53:04 [...] musb_stage0_irq 790: bogus peripheral RESUME (a_idle) Jun 07 12:53:20 (Actually 525 is 790 here.) Jun 07 12:53:49 And when I reïnsert I get the triple. Jun 07 12:53:54 Everytime. Jun 07 12:55:24 Oops, sorry, the 790 wasn't the only difference: Jun 07 12:56:05 [...] musb_stage0_irq 790: unhandled DISCONNECT transition (a_idle) Jun 07 13:01:05 But further back, the triple isn't accompanied by the musb_stage0_irq 790 error, or any other (they are just repeated consequetively), so that suggests that something other than connecting the USB cable can cause that because it can't keep being connected without alternating with an unplug. Jun 07 13:05:20 Okay, the musb_stage0_irq 525 error occurs on its own when resuming my laptop after suspend (remaining plugged-in). Nothing happens on the suspend; only on the resume. Jun 07 13:07:51 Hi, anybody has ever noticed a quality difference between BBB from Circuitco and Element14/Embest? I care mainly about long term reliability and MTBF as I am deploying some unattended servers. Jun 07 13:08:11 But I've just noticed that my Network Manager applet actually shows a CDC connection named “Circuitco BeagleBoneBlack”, which suggests that I failed to disable the existing setup properly. Jun 07 13:09:56 (I noticed because the icon was connected before I'd reënabled USB tethering on my phone, which annoyingly disables everytime the USB is unplugged or my laptop suspends.) Jun 07 13:10:58 Hmm, there's also already a block device connected, but not the one I wanted. I though disabling g_multi was supposed to disable all of this. Jun 07 13:12:15 GParted shows it as a 96.00MiB FAT16 filesystem. Jun 07 13:14:57 SpeedEvil, tbr: Oh, I probably should have checked this. Blacklisting g_multi didn't work; it's currently loaded in the kernel! Jun 07 13:15:33 But I can't remove it either. Jun 07 13:17:42 Even when unplugged from my laptop, ‘sudo modprobe --first-time -r g_multi’ says: Jun 07 13:18:01 FATAL: Module g_multi is in use. Jun 07 13:18:44 How do I /really/ blacklist this? Jun 07 13:19:30 My workaround for not being able to unload it was to blacklist it and reboot, but that clearly didn't work. Jun 07 13:21:14 Hmmm… Alternatively, I could work with it; maybe there's a way of using g_multi to do what I want. That way I'd be able to keep the USB CDC Ethernet connection, which is something that I'll want. Jun 07 13:28:26 jsolano: I plan to eventually run my website and several other services from a BBB and I don't think long-term reliability is even a consideration here. It has no moving parts (fanless, diskless, etc.) and as long as you don't have excessively many write cycles to flash storage, that won't be an issue either. Jun 07 13:29:12 jsolano: I've never heard of people concerned about the long-term hardware reliabilty before, but maybe there are concerns, I don't know. Jun 07 13:30:41 jsolano: But I'm planning to use them in a number of unattended situations too. Jun 07 13:33:19 jsolano: As well as my self-hosted home server, I'm also going to have 1 for failover or load-balancing at my parents' house, which will be largely unattended. Jun 07 13:38:04 As g_multi's already in the kernel, and I can't unload it and blacklisting doesn't seem to work – how do I see what parameters it was loaded with? Jun 07 13:39:55 Specifically I want to know whether it was the removable=1 parameter because apparently that allows control of insertion or removal of emulated devices using sysfs or something like that. Jun 07 13:40:45 Hi Jun 07 13:41:04 Anyone out there? Jun 07 13:42:03 ?? Jun 07 13:47:08 Wow. Jun 07 13:47:24 Such lack of patience! Jun 07 13:48:11 I've been waiting for over a day on this issue; 5 minutes isn't going to get anywhere. Jun 07 13:50:07 No wait, “Ping timeout: 246 seconds” means it was more like 2 minutes, and couldn't even be bothered to quit cleanly before disconnecting. Jun 07 13:53:14 Hmm, this question is just what I'm looking for and would be really useful: https://stackoverflow.com/questions/29439727/how-do-i-hot-swap-a-mass-storage-lun-backing-file-in-the-linux-composite-usb-gad Jun 07 13:53:31 …if only it had an answer! Jun 07 14:00:44 Actually, it's ‘rndis_host’ that shows in Network Manager, whereas I've been saying CDC. I'm not sure what the difference is. Jun 07 14:02:13 * JamesJRH is currently reading: https://kernel.org/doc/Documentation/usb/gadget_multi.txt Jun 07 14:04:27 JamesJRH: i'd look at how the specific bbb distro you are using is configured/set up Jun 07 14:05:26 JamesJRH: I'd expect it either to be in /etc or a systemd or udev thing. grep should get you to it. or just reading up about how the image is being created Jun 07 14:06:53 iirc the usb gadget ethernet is somewhere strange .. def. not /etc Jun 07 14:14:35 veremit: hi there Jun 07 14:15:00 so, I seem to have packaged hostapd for rtl8188 to a deb file Jun 07 14:15:22 so common users can install it fast with no need to build it Jun 07 14:15:22 Hey! Jun 07 14:16:05 so now I need to convince rcn to add it to this repo Jun 07 14:16:34 and then, I will also support this usb wifi stick with my awesome cwvw Jun 07 14:17:10 so a common person, can buy a BBB, install two deb files, then config the wifi connction from his phone. Jun 07 14:17:19 tbr: I've just decided to look in sysfs and see if I find anything. The parameters are all exposed at: /sys/module/g_multi/parameters/ Jun 07 14:17:29 by the way can anyone suggest a better name then cwvw? Jun 07 14:18:08 tbr: And I should bare this in-mind in future; /sys/module/ has a list of loaded modules in it! Jun 07 14:19:14 And ‘cat /sys/module/g_multi/parameters/removable’ gives ‘Y’, so I'm on-track! Jun 07 14:19:55 citylight2 .. sounds awesome .. how easy was it to package as a deb? Jun 07 14:20:19 easy Jun 07 14:20:24 tbr: All I need to do now is play around with file, cdrom, and ro, and I should be good! I'll let you know in a few minutes... Jun 07 14:20:55 and cwvw is ... lol not an ideal name :) Jun 07 14:20:56 took the debian official debian files, and edited them. GPL-2 is really handy Jun 07 14:21:04 :) Jun 07 14:21:27 well either eca, yet intel choose that name.... Jun 07 14:21:46 presumable it'll block standard debian hostapd or will it co-exist (though can't imagine why .. yes, i can... lol) Jun 07 14:21:47 config_wifi_access_point ? Jun 07 14:23:09 beaglebone realtek access point ? Jun 07 14:23:16 bbrtap :D Jun 07 14:23:27 or bbb even Jun 07 14:23:31 but I originally wrote it for atheros Jun 07 14:23:45 and I prefer atheros Jun 07 14:23:47 oh lol Jun 07 14:24:13 Hmm, I don't seem to have permission to write to any of these sysfs files (with sudo). Jun 07 14:24:21 I think atheros chips are more standard in OTS a/p's Jun 07 14:24:33 sysfs isn't a config interface :P Jun 07 14:24:44 cuase realtek refused to write a nl compilant driver Jun 07 14:24:50 cause Jun 07 14:24:55 ah Jun 07 14:25:24 although I think you can configure cpu frequency scaling through sysfs Jun 07 14:25:32 but .. not statically Jun 07 14:25:38 But cat'ing file tells me that the default backing storage is: /dev/mmcblk1p1 Jun 07 14:25:52 Which is at least interesting to know. Jun 07 14:25:56 citylight2 .. yeah I don't think the community has nailed that yet Jun 07 14:26:24 14:24:33 < veremit> sysfs isn't a config interface :P ← Yes, it is; I've written to files in /sys/ before. Jun 07 14:26:29 citylight2 .. I've got a rt chip on a allwinner board that I've had to build RT-custom drivers for :/ Jun 07 14:26:33 (Not on the BBB.) Jun 07 14:26:55 14:25:24 < veremit> although I think you can configure cpu frequency scaling through sysfs ← Yep, this is 1 thing I've done. Jun 07 14:27:13 JamesJRH .. haven't seen it possible in the same way inrecent kernels though Jun 07 14:27:45 unless the scaling drivers have changed .. Jun 07 14:27:56 When searching around, I see ‘configfs’ being mentioned here and there. I think that that's new. Jun 07 14:28:55 I've no idea how systemd does things .. openrc and udev for me Jun 07 14:28:56 But Wikipedia says that this is “in fact different and complementary” to sysfs: https://en.wikipedia.org/wiki/Configfs Jun 07 14:29:59 What has it to do with SystemD; I haven't seen it mentioned in respect to configfs, though I've only just become aware of configfs. Jun 07 14:31:29 JamesJRH: yes, grep for files that mention mmcblk1p1 and you'll get there Jun 07 14:31:41 Normally one does something like: echo | sudo tee /sys/... Jun 07 14:31:51 Indeed. Jun 07 14:32:24 something points me to suggest lookin in the /usr tree .. thought dun ask me where Jun 07 14:32:31 -t Jun 07 15:14:46 more hints in https://aur.archlinux.org/packages/ho/hostapd-8188eu/PKGBUILD Jun 07 15:15:05 archlinux offer this package.... Jun 07 15:22:22 interesting Jun 07 15:35:36 hey veremit Jun 07 15:35:45 did you see the video I posted here yesterday? Jun 07 15:38:03 no? Jun 07 15:38:09 ewll .. I mighta seen a link Jun 07 15:38:13 well* Jun 07 15:38:33 too busy blardy workin y/day Jun 07 15:48:02 here it is veremit :D https://www.youtube.com/watch?v=Pf2xG8N6iuA Jun 07 16:21:46 tbr, veremit: So I grep'd for ‘/dev/mmcblk1p1’ in /boot/, /etc/, /usr/, and /var/, but it didn't return anything that I see is useful. Jun 07 16:23:54 In /etc/ there's only an XML line in /etc/blkid.tab (and blkid.tab.old), but I don't think it relates to g_multi. Jun 07 16:24:17 /boot/ and /usr/ returned nothing. Jun 07 16:24:42 https://raw.githubusercontent.com/RobertCNelson/tools/master/scripts/beaglebone-black-g-ether-load.sh Jun 07 16:24:52 /var/ returned only lines from files in /var/log/. Jun 07 16:25:19 * JamesJRH follows the link... Jun 07 16:29:31 tbr ... where's That run/loaded? Jun 07 16:29:47 I wonder where this script is located in the filesystem. I've just tried grep'ing /bin/ and /sbin/ too, but nothing. Jun 07 16:29:48 veremit: nfc, left as an exercise to the interested party Jun 07 16:30:02 veremit: suspect a .service Jun 07 16:30:15 nothin in bin I should think Jun 07 16:31:37 *cough* .. https://groups.google.com/forum/#!msg/beagleboard/9yXZ8GUAqEY/OfN_c9kD3q8J Jun 07 16:31:42 veremit: There was no harm in trying; I've seen scripts in bin directories before, without the .sh. Jun 07 16:34:19 Why does Google have to steal my keyboard and not let me type /g_multi without it going into their search box. >:-( Jun 07 16:34:25 Ctrl-F works though. Jun 07 16:34:53 but I don't have a 'standard' release beagle image to play with .. mine's debian minimal from RN ;D Jun 07 16:35:08 I must buy another .. Jun 07 16:35:55 brb Jun 07 16:36:49 JamesJRH: thanks, my use case is some BBB being deployed for a client who will reboot them every now and then, so I am trying to minimize issues as I have heard of some BBB not rebooting due to some noise on UART Jun 07 16:36:51 /usr/bin/g-ether-load.sh? Then why didn't grep find it?... Jun 07 16:38:32 Hmm, because no script starting in ‘g-’ is in there. Strange. Jun 07 16:39:14 jsolano_: Oh. Okay. I don't know about that noise issue. Jun 07 16:40:16 Ping timeout is annoying. It would be better if people /quit before disconnecting. Jun 07 16:40:56 Wait, that's an alternate. Jun 07 16:41:11 jsolano_ is still here. :-) Jun 07 16:41:46 don't rely on grep .. find would be a better bet Jun 07 16:43:02 But the file isn't where that thread suggests anyway. Jun 07 16:45:42 systemctl doesn't recognise g-ether-load as valid. Maybe my system does it differently. Jun 07 16:46:05 But it's the stock Debian-based distro that came with it. Jun 07 16:46:31 It's an Element 14 Rev. C. Jun 07 16:47:44 hmm seems things moved around more recently Jun 07 16:47:54 does the file exist in /etc/udhcp.xxx Jun 07 16:48:07 what does lsmod show for g_ module(s) ? Jun 07 16:50:10 I don't see a .d directory for a file to exist in if that's what you're thinking; I only see /etc/udhcp.conf. Jun 07 16:50:16 Let me see. Jun 07 16:51:59 JamesJRH .. look also for am335x_evm.sh Jun 07 16:52:17 I wouldn't trust the e14 default image anyway Jun 07 16:52:26 it had strange modifications Jun 07 16:52:29 veremit: Only g_multi, but the libcomposite line also says g_multi. I can't remember whether that means g_multi depends on libcomposite or vice versa. Jun 07 16:52:43 yeah one of. Jun 07 16:53:39 hmm I'm stabbing in the dark without a working image .. so I'ma leave you to it :) Jun 07 16:54:55 tbr: I'm going to replace it with NixOS, but for now I'm just trying to understand a couple of things about the BBB from a working system specifically configured for it. When I get NixOS going, many things that I don't know about may be broken initially. Jun 07 16:55:57 But then I'll work through those with some people from #nixos, as these will be more NixOS-specific problems, I guess. Jun 07 16:58:05 I hate the way everything for the beagle config-wise changes completely every few months .. so any documentation (sparse as it is) is immediately out-of-date .. its like there's some conspiracy against normal users actually figuring it out and using it :/ Jun 07 16:58:20 ./end rant :P Jun 07 17:04:45 veremit: Okay, I'm glad it's not just me. This is taking me a lot longer than normal compared to similar looking tasks that I face. Usually I don't even need to ask online; I just work it out from offline documentation (manpages, Nix manual, and such), project wikis, or searches. On the other hand I'm not glad that it is harder than it needs to be for anyone really. Jun 07 17:06:21 JamesJRH .. I see a lot of people asking relatively basic questions. Yes, plenty are linux n00bs or they've got over-ambitious ideas .. but really .. the documentation for 'hacking' with the beagle is lacking horrifically behind the equivalent for (bad example) that nasty Raspberry Pi thingy .. Jun 07 17:06:39 /opt/! Jun 07 17:06:54 veremit: It's in opt! Jun 07 17:07:04 ah it IS in opt Jun 07 17:07:11 my opt is emply .. but there is /opt/scripts Jun 07 17:07:34 Yep, in there. Jun 07 17:07:47 /opt/scripts/boot/am335x_evm.sh Jun 07 17:08:01 cool :) Jun 07 17:10:51 With grep, I was avoiding simply searching everything in ‘/’ because it was taking too long, but I missed trying /opt/. I know that /opt/ is good candidate because I've used it myself in the past, I think when I was using GNU Stow for something. Jun 07 17:11:13 Or maybe it was MacPorts on a friend's Macbook. Jun 07 17:13:26 veremit: Also, when documentation is bad, the community can be like an under-seeded BitTorrent network – people who are happy to pass on that information (like me) simply don't know it in the first place. Jun 07 17:14:00 likewise. Hence why I need a new beagle :p Jun 07 17:14:07 that and something to apply it to Jun 07 17:14:28 I kinda want to try some nodejs stuff .. looks interesting Jun 07 17:15:27 veremit: I will write-up about my BBB project when it's finished and publish it on my website-to-be. This website, however, will be running from the BBB (it's part of the whole project) running NixOS. That's the plan. Jun 07 17:15:45 if anyone's interested, fyi answered my own question re:where abouts are the modules like usb_f_mass_storage/g_muti loaded in the beagle image? i'm not seeing anything in /etc/modules or modules-load.d Jun 07 17:16:13 there's a script in the fat32 partition (BOOT), ./scripts/setup-ubuntu-armhf-3.8.13-bone30.sh, which creates the file that does it all Jun 07 17:16:16 So until I get past all of these things, I won't be publishing articles, but when I do, that should really help people. Jun 07 17:22:17 markovh .. well done :) another documentation deficiency Jun 07 17:25:22 veremit: Okay, I've backed-up and tinkered with /opt/scripts/boot/am335x_evm.sh. I'm now rebooting it – fingers crossed! :-) Jun 07 17:27:04 The first thing that I should see is a different manufacturer in my Network Manager applet... Jun 07 17:27:34 Oh, plugging-in would help... :-] Jun 07 17:27:43 Yay! Jun 07 17:28:41 “Ethernet Network (JRHaigh BeagleBone Black)” :-) Jun 07 17:30:05 It shouldn't have said Circuitco anyway, since this 1's Element 14. But this demonstrates that I now have control of the g_multi configuration. Jun 07 17:34:25 Brilliant! I also now see /dev/cdrom, when plugged-in. I'm going to reboot my laptop and see if this actually allows me to live-boot from the ISO file that I've made the BBB present to the laptop host over USB. Jun 07 17:35:32 veremit, tbr: Thank you very much for all of your help! I'll be detached for a while. See you later... Jun 07 17:42:53 hehe cool beans Jun 08 02:42:07 join server irc.deadchildren.info join channel #HELLNET Jun 08 02:42:07 join server irc.deadchildren.info join channel #HELLNET Jun 08 02:42:08 join server irc.deadchildren.info join channel #HELLNET Jun 08 02:42:08 join server irc.deadchildren.info join channel #HELLNET Jun 08 02:42:09 join server irc.deadchildren.info join channel #HELLNET Jun 08 02:42:10 join server irc.deadchildren.info join channel #HELLNET **** ENDING LOGGING AT Mon Jun 08 02:59:59 2015