Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Hello world driver example on the wiki

I tried the hello world driver example on the wiki.

>>http://www.nioswiki.com/operatingsystems/uclinux/moduleprogramming

The static driver(compile-in) works.

I saw the hello, world in the kernel boot time.

However, I can not get the loadable module version worked.

I do have the hello.ko file in the lib directory.

/lib/modules/2.6.30-00494-g84a224b-dirty/kernel/drivers/misc/hello.ko

I followed the setting, so the make file and kconfig and other stuffs should be all right.

But I can not find the

make user/busybox_clean

Under the ~/uClinux-dist dir

BTW, I am using the MMU version.

Is that why I can not find this busybox_clean command???

I feel like the hello.ko file itself is fine...so that is why the build-in version works.

After the kernel loaded, whenever I did the insmod or modprobe, kernel just stack. No response at all.

I tried with insmod hello.ko &

Then, it seems like adding this driver, but can not see the "hello, world" and just hangup at there.

Full path for the hello.ko did not work.

I tried other super simple module drivers, but did not work.

BTW,

I could not jump the other reference link

http://www.icwin.net/showartitle.asp?art_id=8452&cat_id=52

It's no longer exist.
No RepliesBe the first to reply