Hi All, I have another issue but related to udev/uevent. I am using 2.6.25 kernel with android patch on my board. When I insert the sdmmc card the "/dev/block/mmcblk0" is not getting created. After debugging I found that uevent is coming not init process. Where can I check to get the statistics of uevent?
After inserting the card if I do mknod manually the card is getting mounted and I am able to access it. Note: Hotplug is enabled in the kernel. the mountd.conf file is also present with "/dev/block/mmcblk0". Regards, Manish On Feb 18, 8:11 am, Jackie Wu <[email protected]> wrote: > Android doesn't use udev to handle the uevent from kernel but directly > use the init process to handle. By default, it will create the device > file under /dev with infor from uevent. There is no udev descriptor > and you have to specify the device file path in source code directly. > > You can refer to system/core/init/init.c and deviced.c. That's code to > handle that. > > Thanks > Jackie (Weihua) Wu > > If your driver and device have no problem, the device file should be created. > > > > On Tue, Feb 17, 2009 at 12:53 AM, chin...@tw-roc <[email protected]> > wrote: > > > Hi again, > > > I assume you are building a kernel that has a new char device "driver" > > with a specific device major/minor number associated with it. > > However, you will require a char device "file" in /dev for a process > > to control the device driver. > > That requires you to write a udev descriptor or static dev file using > > mknod with major/minor number to mapping your char device driver. > > > Hope that helps. > > > kmatzen wrote: > >> You can build it the same way as any Linux kernel. If building for > >> the dev 1 then get the .config from the phone itself. If building for > >> the emulator, switch to the kernel-goldfish-2.6.27 branch and run > >> 'make goldfish_defconfig' to get the correct .config. Finally, run > >> 'make'. > > >> The question I have is, where do you place the zImage and vmlinux when > >> building the Android software stack? Right now I'm overwriting kernel- > >> qemu and vmlinux-qemu in the prebuilt directory. The modification > >> that I made to the kernel was adding a character device. However, > >> this charact > > er device does not appear in /dev. Any ideas? > > >> On Feb 15, 11:57 pm, "chin...@tw-roc" <[email protected]> wrote: > >> > Hello > > >> > There is no android.mk in kernel folder of andoid platform source > >> > codes, so I could not use "mm" to build the whole folder. I am > >> > wondering if any script for android build system to build Android's > >> > linux kernel? > > >> > Thanks > > >> > Chinlin- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---
