**** BEGIN LOGGING AT Mon Nov 02 02:59:57 2020 Nov 02 07:20:17 I am trying to use GPIO interrupts with direct c programming on beaglebobe black @debian. Able to perform R/W successfully by direct access to registers using mmap(). But when I am trying to perform interrupt functionality with mmap(...0x48200000)- Interrupt controller, it is throwing bus error. Please help me out if I am missing any other Nov 02 07:20:18 configurations. Nov 02 08:03:11 Any help please. Nov 02 08:12:44 messing with the interrupt controller would break linux completely, don't do that Nov 02 08:13:20 also, iirc it gives a bus error on unprivileged access Nov 02 08:13:37 if you want interrupts, just use the sysfs gpio mechanism Nov 02 08:17:08 (it can give a file descriptor event on rising edge, falling edge, or both, configurable per pin) Nov 02 08:58:58 Actually my project is on AM335X, but we need are using BBB as pilot project. Nov 02 08:59:34 **Actually my project is on AM335X, but we are trying to use BBB as pilot project. Nov 02 09:05:03 I mean, nothing I said is BBB-specific Nov 02 09:06:38 generally speaking messing with /dev/mem should be regarded as a last resort Nov 02 09:07:02 and it's definitely not helpful if you want to receive interrupts from anything Nov 02 09:23:54 Sure. Thank you for your inputs. I will try to utilize sysfs gpio when it comes to interrupts. Nov 02 09:26:10 why only for interrupts? it's usually also not a good idea to use /dev/mem to control gpios Nov 02 09:27:34 Will this dev/mem is related to AM335x or BBB? Sorry if i am asking a basic question. Nov 02 09:27:45 I have no idea what you're asking Nov 02 09:28:34 /dev/mem is a linux mechanism to allow root-privileged userspace programs to directly access memory-mapped peripherals Nov 02 09:29:10 which is usually a bad idea but can sometimes still be useful Nov 02 09:30:38 normally peripherals are used via a kernel driver Nov 02 09:31:42 (and in cases where using a peripheral directly from userspace is desirable, UIO is a better mechanism since it restricts access to a single peripheral, supports delivering interrupts to userspace, and doesn't require root privileges) Nov 02 09:34:06 Using UIO in place mmap? Nov 02 09:35:30 in place of /dev/mem, uio still involves mmap(). again, this is only when you really want to map a peripheral directly into userspace, e.g. if there's no kernel driver for the peripheral Nov 02 09:35:51 which does not apply to GPIO, which does have a kernel driver obviously Nov 02 14:57:27 Hello all! I have a BeagleBoard-X15 which needs a custom memory map. I would like to know if there is a instruction for these somewhere? Thank you! Nov 02 15:34:52 lostSoul: uhh, what do you mean by that? Nov 02 15:47:20 Hi Nov 02 15:48:01 USB mass storage option in BBB at u-boot level , Can I find Any Document Nov 02 16:33:39 Hi Nov 02 16:34:21 I would likte to know has beaglebone green wireless single board computer android image Nov 02 16:34:53 Is there BeagleBone Green Wireless android image Nov 02 16:45:31 hello? Nov 02 16:45:37 m Nov 02 16:45:56 kremlin Nov 02 16:45:59 oflifurkan: doesn't seem very likely, but you can try googling Nov 02 16:46:06 hi Nov 02 16:46:20 I've duckduckgoed Nov 02 16:46:34 But there is nothing well results Nov 02 16:47:02 then there probably isn't an android image for it Nov 02 23:53:09 GenTooMan: Heads up. In about two hours, my brother, if people are not busy in here, maybe we could chat about what stepper motors entail from what you were going to teach me the other day? Nov 02 23:54:50 I have two 24v, four wire steppers on ball screws w/ rails. the steppers do not know how long the ball screws go but I have accidentally brought them past the threshold. Nov 02 23:55:23 I hand to use my hands to get them working again. Anyway, I am using the BBGW, Motor Bridge Cape, and Python. Nov 02 23:55:49 bb in about an hour or two if you are available. **** ENDING LOGGING AT Tue Nov 03 03:00:33 2020