Hi guys:

Onw question about create_dev ,which is in do_mounts_devfs.c(kernel
2.6.9) and in do_mounts.c(kernel 2.4.31)
i.e:
In init\do_mounts_initrd.c
Int __init initrd_load(void)
{
...
Create_dev("/dev/ram",Root_RAM1,NULL)
....
If (rd_load_image("/initrd.image") ........
}

Actually if I did not enable DEVFS in the make menuconfig
The create_dev won't be link into the image!

So that I will got this problem:

In the init/do_mounts_rd.c
Int __init rd_load_image(char *from)
{
...
Out_fd = sys_open("/dev/ram",O_RDWR,0);
....
} 

It seems the rd_load_image will always fail because the create_dev does
not create /dev/ram?


In kernel 2.6.19
The create_dev change again:

In init/do_mounts.h
Statis inline int create_dev(....)
{
Sys_unlink(name);
Return sys_mknod(name,.......)  (similar to what kernel 2.4 do)
}

Quite confused...

Regards
rui
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to