| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-03-2009, 04:41 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Rep:
|
initrd error - "error inserting'/lib/uhci-hcd.ko' : -1 Unknown symbol in module"
Hi all,
I am a newbie to this group and forum as well as linux. I am trying to understand how initrd creates character devices, loads all the modules, functionalities of pivot_root and chroot system call, by writing my own utilities. I have written my own shell which calls custom cat, echo, mount, unmount, mknod, chmod, rm, mv, cd, ls, pivot_root and chroot. I havenot done the insmod part.
Now I have unzipped the initrd-2.6.21-1.3194.fc7.cpio.gz from the /boot/ and done cpio -iv<initrd-2.6.21-1.3194.fc7.cpio to get all the files extracted. I have replaced the init file with my custom shell. So ideally, after booting, the control goes to my shell. From here I am manually adding devices. Everything happens fine till creating the devices.
When it comes to insmod, it is throwing up the following error.
"error inserting'/lib/uhci-hcd.ko' : -1 Unknown symbol in module"
I have some doubts.
1. What is the function of hotplug and mkblkdevs commands?
2. Is hotplug utility and mkblkdevs implemented for executing these commands or are they available anywhere else that I should call them from?
3. Can I use the insmod given in the bin folder and integrate it with my custom shell?
Awaiting your reply,
Balaji.V
|
|
|
|
02-03-2009, 09:03 PM
|
#2
|
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
What do you mean by custom shell? You replaced nash with your own version? Don't you mean "shell script"?
Nash is used as a shell interpreter instead of bash. It has built in support for many of the commands found in the init script including mknod.
|
|
|
|
02-04-2009, 11:36 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Original Poster
Rep:
|
Thanks for your response,
I wrote my own shell that will execute my custom utilities. The utilities I could implement are mycat, myecho, mymount, mymknod, mypivot_root, mychroot, mychmod, myrm, mymv, mycd, myls (Their functionalities are same as their originals.). I have not implemented "insmod" utility. As you said, the init is a shell script. But I have replaced the init with myshell binary file. Now instead of init, myshell will be executed and the control is transferred to the user. I am trying to manually create the character devices, install those modules etc. This is the point where I was getting the above said error.
|
|
|
|
All times are GMT -5. The time now is 06:24 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|