Are you passing ARCH=arm ??
obj-m+=ebbchar.o
all:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
$(CC) testebbchar.c -o test
clean:
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean
rm test
in theory, the arch assembly directory should be fixed. ( back ported
a builddeb change from the v4.7.0-rc merge cycle)
https://github.com/RobertCNelson/stable-kernel/commit/3a0073dc8a13b0aa955f440d8219d2bb638a44c9
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a11a503f-20f2-4f19-99f0-45e3fd2e7db6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, William -I have no (current) interest in building my own kernel. I'm trying to do Dr. Molloy's tutorials because I want to learn about writing device drivers for Linux (you may recall an earlier discussion where you encouraged me to go this route in favor of doing bare-metal bit-banging). I'm just trying to get his program to work. I wasn't aware that I was doing anything in the kernel building area. (Still new to much of this stuff.)mz
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Hey, I'm open to any and all ideas. It seems so strange that I'm getting a seg fault in the client code, though...that does make me suspicious of the compiler version vs. the headers, etc.How do people go about debugging kernel code, anyway? I gather that gdb isn't much of an option. Do we just litter the code with printk statements like we did when we were freshmen in college?mz
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/f34faaa9-9be9-47a1-b5a7-9c502f47acb6%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b08c6a13-5bd6-4693-a466-9b5596a8e117%40googlegroups.com.
On Jun 23, 2017, at 1:47 PM, mzimmers <mzim...@gmail.com> wrote:
Thanks for all the details, John. I'll look into that approach when I get around to more serious kernel programming. Right now, I just want to figure out why this example isn't working for me.I need to download Robert's header files for the BBB to my host. If I just add a file to sources.list.d, and run apt, will this work, or am I at risk of overwriting my host's files?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/83496bd4-9803-45cb-ba72-f9c011adbbaa%40googlegroups.com.
On Jun 23, 2017, at 1:47 PM, mzimmers <mzim...@gmail.com> wrote:
Thanks for all the details, John. I'll look into that approach when I get around to more serious kernel programming. Right now, I just want to figure out why this example isn't working for me.I need to download Robert's header files for the BBB to my host. If I just add a file to sources.list.d, and run apt, will this work, or am I at risk of overwriting my host's files?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/83496bd4-9803-45cb-ba72-f9c011adbbaa%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/86393369-eafd-442e-8884-07fd3fd62b20%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/14051cf1-b93d-4e3c-90ae-2ee63b30599c%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4646b453-2069-4d7a-a0f8-30f487caaf98%40googlegroups.com.
Hey, William...thanks for the pointers. I actually do already have cross-development working (for user space programs). I'm using Qt Creator, and a Linaro toolchain and sysroot. I built Qt for the armhf in order to get the right qmake.conf file, and I can cross-debug using gdbserver on the BBB. So, I've got that going already.But, as you're aware, cross building for kernel stuff is more involved, and I'm inclined to agree with you that I'm making this a bigger deal than it is. I'm prepared to move on, though I'd really like to know why this example program isn't working. But, as I mentioned, this isn't a BBB problem, so I'm not going to pursue it here.