Re: [beagleboard] Invalid module format
On Mon, Jun 7, 2021 at 8:23 AM Paul Beam wrote: > > Thanks, Robert. That would work if I were compiling on the PB, but > cross-compiling on my Debian VM was different. There may be an easier way, > but what I did was follow this: http://phwl.org/2021/building-bbg-kernel/ > to checkout the exact kernel I have on my PB, compile it, and then point my > driver Makefile to this directory. This at least appears to work. Okay, that would also work.. Regards, -- Robert Nelson https://rcn-ee.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYj2WtF34DOADaLeMxiWL1f170mU3Fdg_2zMJjg7uS9LVg%40mail.gmail.com.
Re: [beagleboard] Invalid module format
Thanks, Robert. That would work if I were compiling on the PB, but cross-compiling on my Debian VM was different. There may be an easier way, but what I did was follow this: http://phwl.org/2021/building-bbg-kernel/ to checkout the exact kernel I have on my PB, compile it, and then point my driver Makefile to this directory. This at least appears to work. On Friday, June 4, 2021 at 5:22:23 PM UTC-4 RobertCNelson wrote: > On Fri, Jun 4, 2021 at 4:20 PM Paul Beam wrote: > > > > I'm trying to build a new driver for a Realtek 8821C for the > PocketBeagle, and although I have managed to cross-compile the module, it > fails to load with an "invalid format" error, which I think means it thinks > I compiled with a different kernel version. > > > > My PB is still running "4.14-ti", and I downloaded Robert's "rt-4.14" > branch onto my build machine thinking that "4.14" should be close enough. > Is my problem the "ti" branch vs the "rt" branch? I guess I can build it on > the PB if I have to, but it is much faster to build on my desktop and, > theoretically, easier to keep track of. > > sudo apt install linux-headers-`uname -r` > > Regards, > > -- > Robert Nelson > https://rcn-ee.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/466ada0a-99cc-48e3-b817-ca388e000918n%40googlegroups.com.
Re: [beagleboard] Invalid module format
On Fri, Jun 4, 2021 at 4:20 PM Paul Beam wrote: > > I'm trying to build a new driver for a Realtek 8821C for the PocketBeagle, > and although I have managed to cross-compile the module, it fails to load > with an "invalid format" error, which I think means it thinks I compiled with > a different kernel version. > > My PB is still running "4.14-ti", and I downloaded Robert's "rt-4.14" branch > onto my build machine thinking that "4.14" should be close enough. Is my > problem the "ti" branch vs the "rt" branch? I guess I can build it on the PB > if I have to, but it is much faster to build on my desktop and, > theoretically, easier to keep track of. sudo apt install linux-headers-`uname -r` Regards, -- Robert Nelson https://rcn-ee.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjKhfodUt6_hfYa1qXaXWQuj4bjfA0hJpaqYw%3DpFm1HiA%40mail.gmail.com.
