[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Petalinux 0.4 - Linux 0.6.20 with MMU - Unable to load kernel module
John Williams wrote:
Hi Paul-Bryan,
On Fri, Aug 7, 2009 at 12:58 AM, <pbronline-petalinux@xxxxxxxxxxx> wrote:
[snip]
Here's the commit in the upstream git tree that fixes loadable modules
for MMU - its may not apply perfectly cleanly to your PetaLinux
snapshot release, but it's a fairly trivial patch,and I'm sure you'll
figure it out. I am yet to back port this into the SVN trees, but
will do so shortly.
http://developer.petalogix.com/git/gitweb.cgi?p=linux-2.6-microblaze.git;a=commitdiff;h=900dcafa36142622606875c552e38aeac92c2abd
That did the trick. Many thanks. Now I think I need to touch base with
our firmware guys.
Git good. Subversion double plus un-good.
The 0.3 driver module was built in-tree (as a module) along with the Linux kernel. This approach appears to have been deliberately disabled with Petalinux 0.4. Instead I used the petalinux-new-module approach, which proved to be very easy. Disquietingly so.
No deliberate disablement of in-kernel module building, if you can
give more details I try to see what's going on.
I wish I could. I and the chap who did most of the 0.3 work last year
tried everything we would think of. By the end of the day I was so
dazed and confused I can't be sure what was tried in what order. I
think my first shot got a compiler error 'cos I'd something missing from
our old 0.3 environment. After that we never managed to coax the build
system into running make in the directory I'd added in-tree. We even
tried hacking Kconfig and selecting the module from make menuconfig. I
thought I had read something in the on-line user guide that said (I
paraphrase) "thou shalt not build modules in-tree" but I guess I was
half asleep at the time. I apologise.
re: disquietingly easy petalinux-new-module - I hope that's a good thing?
Yes. For 0.3 the powers-that-be decreed we should not reinvent, but
merely rediscover, the wheel that is Petalinux and refashion it in our
own image. Much cu's'in later, we are threatened with having to do it
all again. I found that using the wheel the way its creator intended
is so much easier that I thought there must be a catch.
Regards,
Paul-Bryan
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/