[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] microblaze loadable module support



Just change your mount point to /tmp/

#mknod /tmp/scull c 254 0

Benny

victor-sv_yeo@xxxxxxxxxxx wrote:
Hi,

When I do: #mknod /dev/scull c 254 0
I got - mknod: /dev/scull: Read-only file system

I realize /dev is mounted as cramfs, therefore it is non-writable.

If I do: #mount -t ramfs none /dev
I can change /dev to writable, but I lost all the contents of /dev.

Is there a solution to this problem?

Thanks,
Victor

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of YEO,VICTOR-SV (A-Malaysia,ex1)
Sent: Tuesday, September 25, 2007 10:44 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: RE: [microblaze-uclinux] microblaze loadable module support

Hi,

I have patched the microblaze kernel, and I am able to load kernel modules dynamically!

The trick is to patch the kernel with John's patch, and then copy asm-microblaze/elf.h and asm-microblaze/module.h from Erik's patch.

Thank you for the good work.

Rgds,
Victor Yeo

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of YEO,VICTOR-SV (A-Malaysia,ex1)
Sent: Sunday, September 23, 2007 4:19 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: RE: [microblaze-uclinux] microblaze loadable module support

Hi,

From the mailing list, I think there are two patches for loadable module:
1) microblaze_modules.patch
2) platform_module_fixup.patch
Both are applied at -p0 from petalinux-v0.30-rcX/software. I tried these patches, but I got some errors.

Is there anyone keeping a working copy of the patches?

Rgds,
Victor Yeo

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of YEO,VICTOR-SV (A-Malaysia,ex1)
Sent: Sunday, September 23, 2007 3:59 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: [microblaze-uclinux] microblaze loadable module support

Hi,

When I enable the loadable module support in microblaze linux 2.6 kernel, I got the following errors:

In file included from init/main.c:13:
include/linux/module.h:315: error: field `arch' has incomplete type
include/linux/module.h:345: error: parse error before "Elf_Sym"
include/linux/module.h:345: warning: no semicolon at end of struct or union
include/linux/module.h:359: error: parse error before '}' token
include/linux/module.h: In function `module_is_live':
include/linux/module.h:366: error: dereferencing pointer to incomplete type
include/linux/module.h: In function `__module_get':
include/linux/module.h:400: error: dereferencing pointer to incomplete type
include/linux/module.h: In function `try_module_get':
include/linux/module.h:412: error: dereferencing pointer to incomplete type
make[2]: *** [init/main.o] Error 1
make[1]: *** [init] Error 2
make[1]: Leaving directory `/opt2/petalinux-v0.20-rc3/software/linux-2.6.x-petalogix'
make: *** [linux] Error 1

Does anyone encounter the same problem before?

Rgds,
Victor Yeo


___________________________
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/


___________________________
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/


___________________________
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/


___________________________
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/

___________________________
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/