Problem with booting 2.6.31 kernel source

Hi all,

I have a beagle board rev C3 and i tested with the procedures followed
in the diagnosis. Its all working fine with pre built images available
on the site.

Now i started building kernel, u-boot and, x-loader sources available
on the site elinux beagle board. But kernel source provided at this
site is properly compiling and building results uImage.

But when i start the beagle board with this kernel, booting process
going upto,...

Uncompressing the kernel.........................................
done...............................Booting the
kernel...................

thats it it hangs up there. i dont the reason why its not going
further.

Please can any body help on this issue...

Best Regards

Phaneendrakumar

Can you try enabling kernel debugging feature in menuconfig, have you
taken proper branch of the kernel ?

Regards,
Khasim

Hi,

try this link,

http://wiki.davincidsp.com/index.php/FAQ_for_DaVinci_Linux

this will really help you.

Thanks and Regards,
HarishKumar.V

Hi,
I have same issue, but I am just learn linux. Could you please tell me how I should do to be able to do those step:

Kernel hacking → Kernel debugging → Kernel low-level debugging functions

I want to learn more with kernel so I would like to understand about these steps other than second option: change the console setting.

Best regards,
Thang Nguyen

Hi,

I also have the same problem.
I tried building GIT version with OpenEmbedded and it doesn't boot.

I tried sources from several places:
1) www.kernel.org
2) http://www.sakoman.net/cgi-bin/gitweb.cgi

Building them with the toolchains build by OpenEmbedded, however it
doesn't boot.
I do not have a JTAG adapter for BB, so I could check where it hangs.

Which sources should I use?

I need latest version of the kernel, because I am trying to use
Hauppauge WinTV USB2
car with BB, but it doesn't work (I'll post separate mail). And I've
seen that there
were some patches for the driver done in June and July.

Any hints?

Matej

You do know that nearly all linux-v4l modules can be built as external modules against the last 6 kernel releases or so?

regards,

Koen

Hi,

> I need latest version of the kernel, because I am trying to use
> Hauppauge WinTV USB2
> car with BB, but it doesn't work (I'll post separate mail). And I've
> seen that there
> were some patches for the driver done in June and July.

You do know that nearly all linux-v4l modules can be built as external
modules against the last 6 kernel releases or so?

No, I didn't know that! Thank you.

I'll try building newest modules for kernel 2.6.29.
So I just get the modules sources from http://linuxtv.org/hg/v4l-dvb/
and try with:
$ make release DIR=<path to my kernel sources>

I'll let you know if it worked.

Regards,
Matej

HarishKumar, thankx for the davinci dsp link.

I found out why Linux-2.6-rc1 I compiled was not booting up on my BB. Here’s a patch to fix it:

diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 3487520…b62435e 100644
— a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -271,7 +271,8 @@ int musb_platform_suspend(struct musb musb)
l |= ENABLEWAKEUP; /
enable wakeup */
omap_writel(l, OTG_SYSCONFIG);

  • otg_set_suspend(musb->xceiv, 1);
  • if (musb->xceiv)
  • otg_set_suspend(musb->xceiv, 1);

if (musb->set_clock)
musb->set_clock(musb->clock, 0);

Can any one tell me how to forward this patch to the git repository? (this is my first time so, I would appreciate some details, I know the command, I’m looking for the ‘other’ instructions like mail it to so and so etc).

Thanks,
–Krishna/.

Hi Krishna.

Look at this, it might help you:
http://elinux.org/Git_usage#send-email

Regards,
Matthieu.

HarishKumar, thankx for the davinci dsp link.

I found out why Linux-2.6-rc1 I compiled was not booting up on my BB. Here's a patch to fix it:

This looks like your Kconfig doesn't have the nop xceiv option selected. Also, usb patches need to go to the linux-usb mailinglist

Krishna,

I found out why Linux-2.6-rc1 I compiled was not booting up on my BB. Here's
a patch to fix it:

diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 3487520..b62435e 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -271,7 +271,8 @@ int musb_platform_suspend(struct musb *musb)
l |= ENABLEWAKEUP; /* enable wakeup */
omap_writel(l, OTG_SYSCONFIG);

- otg_set_suspend(musb->xceiv, 1);
+ if (musb->xceiv)
+ otg_set_suspend(musb->xceiv, 1);

    if \(musb\-&gt;set\_clock\)
            musb\-&gt;set\_clock\(musb\-&gt;clock, 0\);

Can any one tell me how to forward this patch to the git repository? (this
is my first time so, I would appreciate some details, I know the command,
I'm looking for the 'other' instructions like mail it to so and so etc).

What kernel sources did you use? From where?
Which patches did you apply?

I can try it too, if you give me some details.

And Koen, thank you for your tip. I've downloaded the V4L sources
and build them with the command I described.
They even provide a Make rule which checks which modules can be
build against provided kernel sources. Really nice!
And yes, the driver works now. However, the whole thing is very
unstable,
mplayer crashes very often. It worked quite good, but now I messed up
my rootfs and I need to build a new one.

Any suggestions?
Ubuntu?

Regards,
Matej

I got the kernel sources from: http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary. This was the git repository posted at http://elinux.org/BeagleBoard#Linux_kernel. The kernel version i was trying out was 2.6.30-rc1 (head of the repo as of 2009/06/26)).

-Krishna/.

Krishna,

I got the kernel sources from:http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a
This was the git repository posted athttp://elinux.org/BeagleBoard#Linux_kernel. The kernel version i was trying
out was 2.6.30-rc1 (head of the repo as of 2009/06/26)).

And with only the patch you mentioned?

Matej

Yup! only with the patch I mentioned.