Re: When/where does the init of a driver built into the kernel is called?

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

 



Thanks for your reply. Yesterday I found that the init happens from
do_initcalls in init/main.c. I printed the address of the init
functions and used system.map to find where it is hanging (it was
hanging at ide_init). Added a return at the top of that and currently
the flash is getting probed and it also gives me messages that it has
created two partitions. However at the end I am still getting a kernel
panic that it cannot find the root device.

On 7/11/07, Bhanu Kalyan Chetlapalli <chbhanukalyan@xxxxxxxxx> wrote:
On 7/10/07, Sarin, Suseelan <suseelan@xxxxxxxxx> wrote:
> Hi All,
>
> I am facing the following problem. I will describe it in the next
> paragraph. I feel that I can debug it further if I know where the init
> for each device is called (they are built into the kernel).Can someone
> tell me which function will be calling those init functions?
>
> I have a PXA255 board with P33 flash (CFI Revision 1.5) on it. The guy
> who worked on this card before me was able to get it to a point where
> the flash was being probed and I was getting a message "Unknown
> Intel/Sharp Extended Query. Version 1.5". But, I do not have the
> kernel/config file that he was using. Currently, the kernel that I
> compile does not give any error message about the flash. It just hangs
> after printing RAM disk init message. I tried adding a lot of printks

I guess you should be using early_printk in lieu of a normal printk,
if you are trying to print messages this early in the boot sequence.

> to cmdline parsing function (boot loader passes a mtdparts=XYZ to
> kernel), flash driver and CFI probe function. I don't see any message
> on the screen. The last message I see is "RAMDISK driver initialized:
> 16 RAM disks of 16384K size 1024 blocksize". I was actually supposed
> to fix the CFI revision issue. But, I can't even dream of that before
> I get the kernel to probe the card!
>
> Thanks & Regards,
> Suseelan

Bhanu.

> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>


--
The box said "Requires Windows Vista or better." So I installed LINUX



--
S B Sarin
Ph: +91-9342552097
http://sarin.net.in

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux