All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with own kernel recipe on Dora
@ 2014-04-22  7:52 Richard Leitner - SKIDATA
  2014-04-22  8:23 ` Richard Purdie
  2014-04-22 11:34 ` Nicolas Dechesne
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Leitner - SKIDATA @ 2014-04-22  7:52 UTC (permalink / raw)
  To: Yocto Project Discussion ML (yocto@yoctoproject.org)

Hi Yocto-Community,
as the subject already says I've a problem with my kernel recipe after the "migration" from the Dylan to the Dora (10.0.1) branch.
I've tried the 10.0.1 release tag as well as the current dora master (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).

The kernel recipe I'm using is derived from the skeleton:
DESCRIPTION = "Linux Kernel"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
inherit kernel
KSRC = "/home/leri/VCS/git/linux"
KBRANCH = "master"
SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
SRCREV = "2014_03_07"
PR = "sd_15.2"
LINUX_VERSION = "${PV}"
LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
KERNEL_IMAGETYPE = "uImage"
SRC_URI += "file://defconfig"
require recipes-kernel/linux/linux-yocto.inc


This recipe was working well with the Dylan branch and following changes:
-SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
+SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
+S = "${WORKDIR}/git"


When compiled with the dora branch the kernel hangs at "Starting kernel..." and doesn't start:
## Booting kernel from Legacy Image at 00000000 ...
   Image Name:   Linux-3.1.10-sd_15.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3181616 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...


I've already looked through the migration notes in the manual but I'm unable to find any hints...
Are there any ideas why the kernel doesn't start with the Dora branch?

Thank you for your help!

best regards,
Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with own kernel recipe on Dora
  2014-04-22  7:52 Problem with own kernel recipe on Dora Richard Leitner - SKIDATA
@ 2014-04-22  8:23 ` Richard Purdie
  2014-04-22  9:08   ` Richard Leitner - SKIDATA
  2014-04-22 11:34 ` Nicolas Dechesne
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2014-04-22  8:23 UTC (permalink / raw)
  To: Richard Leitner - SKIDATA
  Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)

On Tue, 2014-04-22 at 07:52 +0000, Richard Leitner - SKIDATA wrote:
> Hi Yocto-Community,
> as the subject already says I've a problem with my kernel recipe after the "migration" from the Dylan to the Dora (10.0.1) branch.
> I've tried the 10.0.1 release tag as well as the current dora master (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).
> 
> The kernel recipe I'm using is derived from the skeleton:
> DESCRIPTION = "Linux Kernel"
> SECTION = "kernel"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> inherit kernel
> KSRC = "/home/leri/VCS/git/linux"
> KBRANCH = "master"
> SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> SRCREV = "2014_03_07"
> PR = "sd_15.2"
> LINUX_VERSION = "${PV}"
> LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
> COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
> KERNEL_IMAGETYPE = "uImage"
> SRC_URI += "file://defconfig"
> require recipes-kernel/linux/linux-yocto.inc
> 
> 
> This recipe was working well with the Dylan branch and following changes:
> -SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> +SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
> +S = "${WORKDIR}/git"
> 
> 
> When compiled with the dora branch the kernel hangs at "Starting kernel..." and doesn't start:
> ## Booting kernel from Legacy Image at 00000000 ...
>    Image Name:   Linux-3.1.10-sd_15.2
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    3181616 Bytes = 3 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
>    Loading Kernel Image ... OK
> OK
> 
> Starting kernel ...
> 
> 
> I've already looked through the migration notes in the manual but I'm unable to find any hints...
> Are there any ideas why the kernel doesn't start with the Dora branch?

We saw an issue recently on beaglebone that looked very like this. It
turned out the load address for the kernel was conflicting in memory
with the device tree binary.

It easily be something different but I thought I'd mention it.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with own kernel recipe on Dora
  2014-04-22  8:23 ` Richard Purdie
@ 2014-04-22  9:08   ` Richard Leitner - SKIDATA
  2014-04-22  9:30     ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Leitner - SKIDATA @ 2014-04-22  9:08 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)

Hi Richard,
thanks for your quick response.

> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> Sent: Tuesday, April 22, 2014 10:23 AM
> To: Richard Leitner - SKIDATA
> Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)
> Subject: Re: [yocto] Problem with own kernel recipe on Dora
> 
> On Tue, 2014-04-22 at 07:52 +0000, Richard Leitner - SKIDATA wrote:
> > Hi Yocto-Community,
> > as the subject already says I've a problem with my kernel recipe after the
> "migration" from the Dylan to the Dora (10.0.1) branch.
> > I've tried the 10.0.1 release tag as well as the current dora master
> (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).
> >
> > The kernel recipe I'm using is derived from the skeleton:
> > DESCRIPTION = "Linux Kernel"
> > SECTION = "kernel"
> > LICENSE = "GPLv2"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> > inherit kernel
> > KSRC = "/home/leri/VCS/git/linux"
> > KBRANCH = "master"
> > SRC_URI =
> "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > SRCREV = "2014_03_07"
> > PR = "sd_15.2"
> > LINUX_VERSION = "${PV}"
> > LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
> > COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
> > KERNEL_IMAGETYPE = "uImage"
> > SRC_URI += "file://defconfig"
> > require recipes-kernel/linux/linux-yocto.inc
> >
> >
> > This recipe was working well with the Dylan branch and following changes:
> > -SRC_URI =
> "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > +SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
> > +S = "${WORKDIR}/git"
> >
> >
> > When compiled with the dora branch the kernel hangs at "Starting kernel..." and
> doesn't start:
> > ## Booting kernel from Legacy Image at 00000000 ...
> >    Image Name:   Linux-3.1.10-sd_15.2
> >    Image Type:   ARM Linux Kernel Image (uncompressed)
> >    Data Size:    3181616 Bytes = 3 MiB
> >    Load Address: 00008000
> >    Entry Point:  00008000
> >    Verifying Checksum ... OK
> >    Loading Kernel Image ... OK
> > OK
> >
> > Starting kernel ...
> >
> >
> > I've already looked through the migration notes in the manual but I'm unable to find
> any hints...
> > Are there any ideas why the kernel doesn't start with the Dora branch?
> 
> We saw an issue recently on beaglebone that looked very like this. It turned out the
> load address for the kernel was conflicting in memory with the device tree binary.

Do you mean that the bootloader was loading the device tree binary into the load address of the kernel?

> 
> It easily be something different but I thought I'd mention it.

Do you have any idea how to further debug the problem?

regards,
Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with own kernel recipe on Dora
  2014-04-22  9:08   ` Richard Leitner - SKIDATA
@ 2014-04-22  9:30     ` Richard Purdie
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2014-04-22  9:30 UTC (permalink / raw)
  To: Richard Leitner - SKIDATA
  Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)

On Tue, 2014-04-22 at 09:08 +0000, Richard Leitner - SKIDATA wrote:
> > -----Original Message-----
> > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> > Sent: Tuesday, April 22, 2014 10:23 AM
> > To: Richard Leitner - SKIDATA
> > Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)
> > Subject: Re: [yocto] Problem with own kernel recipe on Dora
> > 
> > On Tue, 2014-04-22 at 07:52 +0000, Richard Leitner - SKIDATA wrote:
> > > Hi Yocto-Community,
> > > as the subject already says I've a problem with my kernel recipe after the
> > "migration" from the Dylan to the Dora (10.0.1) branch.
> > > I've tried the 10.0.1 release tag as well as the current dora master
> > (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).
> > >
> > > The kernel recipe I'm using is derived from the skeleton:
> > > DESCRIPTION = "Linux Kernel"
> > > SECTION = "kernel"
> > > LICENSE = "GPLv2"
> > > LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> > > inherit kernel
> > > KSRC = "/home/leri/VCS/git/linux"
> > > KBRANCH = "master"
> > > SRC_URI =
> > "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > > SRCREV = "2014_03_07"
> > > PR = "sd_15.2"
> > > LINUX_VERSION = "${PV}"
> > > LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
> > > COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
> > > KERNEL_IMAGETYPE = "uImage"
> > > SRC_URI += "file://defconfig"
> > > require recipes-kernel/linux/linux-yocto.inc
> > >
> > >
> > > This recipe was working well with the Dylan branch and following changes:
> > > -SRC_URI =
> > "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > > +SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
> > > +S = "${WORKDIR}/git"
> > >
> > >
> > > When compiled with the dora branch the kernel hangs at "Starting kernel..." and
> > doesn't start:
> > > ## Booting kernel from Legacy Image at 00000000 ...
> > >    Image Name:   Linux-3.1.10-sd_15.2
> > >    Image Type:   ARM Linux Kernel Image (uncompressed)
> > >    Data Size:    3181616 Bytes = 3 MiB
> > >    Load Address: 00008000
> > >    Entry Point:  00008000
> > >    Verifying Checksum ... OK
> > >    Loading Kernel Image ... OK
> > > OK
> > >
> > > Starting kernel ...
> > >
> > >
> > > I've already looked through the migration notes in the manual but I'm unable to find
> > any hints...
> > > Are there any ideas why the kernel doesn't start with the Dora branch?
> > 
> > We saw an issue recently on beaglebone that looked very like this. It turned out the
> > load address for the kernel was conflicting in memory with the device tree binary.
> 
> Do you mean that the bootloader was loading the device tree binary into the load address of the kernel?

The kernel was large enough it was overwriting the device tree data.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with own kernel recipe on Dora
  2014-04-22  7:52 Problem with own kernel recipe on Dora Richard Leitner - SKIDATA
  2014-04-22  8:23 ` Richard Purdie
@ 2014-04-22 11:34 ` Nicolas Dechesne
  2014-04-22 12:11   ` Richard Leitner - SKIDATA
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Dechesne @ 2014-04-22 11:34 UTC (permalink / raw)
  To: Richard Leitner - SKIDATA
  Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)

On Tue, Apr 22, 2014 at 9:52 AM, Richard Leitner - SKIDATA
<Richard.Leitner@skidata.com> wrote:
> Hi Yocto-Community,
> as the subject already says I've a problem with my kernel recipe after the "migration" from the Dylan to the Dora (10.0.1) branch.
> I've tried the 10.0.1 release tag as well as the current dora master (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).
>
> The kernel recipe I'm using is derived from the skeleton:
> DESCRIPTION = "Linux Kernel"
> SECTION = "kernel"
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> inherit kernel
> KSRC = "/home/leri/VCS/git/linux"
> KBRANCH = "master"
> SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> SRCREV = "2014_03_07"
> PR = "sd_15.2"
> LINUX_VERSION = "${PV}"
> LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
> COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
> KERNEL_IMAGETYPE = "uImage"
> SRC_URI += "file://defconfig"
> require recipes-kernel/linux/linux-yocto.inc
>
>
> This recipe was working well with the Dylan branch and following changes:
> -SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> +SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
> +S = "${WORKDIR}/git"
>
>
> When compiled with the dora branch the kernel hangs at "Starting kernel..." and doesn't start:
> ## Booting kernel from Legacy Image at 00000000 ...
>    Image Name:   Linux-3.1.10-sd_15.2
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    3181616 Bytes = 3 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
>    Loading Kernel Image ... OK
> OK
>
> Starting kernel ...
>
>
> I've already looked through the migration notes in the manual but I'm unable to find any hints...
> Are there any ideas why the kernel doesn't start with the Dora branch?

you don't mention anything about gcc, so assuming you are using the
'default' gcc for each release, dylan has 4.7, and dora has 4.8. On a
couple of ARM platforms, i have seen similar issue when using gcc-4.8
with old kernel (<v3.4).

the following linux kernel patches were used to fix the boot problem:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=455bd4c430b0c0a361f38e8658a0d6cb469942b5
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=418df63adac56841ef6b0f1fcf435bc64d4ed177

They should cleanly apply to v3.1 which you seem to be using.

cheers,
nico


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with own kernel recipe on Dora
  2014-04-22 11:34 ` Nicolas Dechesne
@ 2014-04-22 12:11   ` Richard Leitner - SKIDATA
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Leitner - SKIDATA @ 2014-04-22 12:11 UTC (permalink / raw)
  To: Nicolas Dechesne; +Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)

> -----Original Message-----
> From: Nicolas Dechesne [mailto:nicolas.dechesne@linaro.org]
> Sent: Tuesday, April 22, 2014 1:35 PM
> To: Richard Leitner - SKIDATA
> Cc: Yocto Project Discussion ML (yocto@yoctoproject.org)
> Subject: Re: [yocto] Problem with own kernel recipe on Dora
> 
> On Tue, Apr 22, 2014 at 9:52 AM, Richard Leitner - SKIDATA
> <Richard.Leitner@skidata.com> wrote:
> > Hi Yocto-Community,
> > as the subject already says I've a problem with my kernel recipe after the
> "migration" from the Dylan to the Dora (10.0.1) branch.
> > I've tried the 10.0.1 release tag as well as the current dora master
> (50e9ccb2aff7b9f9dca4fda99a6832c60f64de3b).
> >
> > The kernel recipe I'm using is derived from the skeleton:
> > DESCRIPTION = "Linux Kernel"
> > SECTION = "kernel"
> > LICENSE = "GPLv2"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> > inherit kernel
> > KSRC = "/home/leri/VCS/git/linux"
> > KBRANCH = "master"
> > SRC_URI =
> "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > SRCREV = "2014_03_07"
> > PR = "sd_15.2"
> > LINUX_VERSION = "${PV}"
> > LINUX_VERSION_EXTENSION = "-${PR}+${SRCREV}"
> > COMPATIBLE_MACHINE = "skidata-harmony|smartcpu"
> > KERNEL_IMAGETYPE = "uImage"
> > SRC_URI += "file://defconfig"
> > require recipes-kernel/linux/linux-yocto.inc
> >
> >
> > This recipe was working well with the Dylan branch and following changes:
> > -SRC_URI =
> "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel;nocheckout=1"
> > +SRC_URI = "git://${KSRC};protocol=file;branch=${KBRANCH};name=kernel"
> > +S = "${WORKDIR}/git"
> >
> >
> > When compiled with the dora branch the kernel hangs at "Starting kernel..." and
> doesn't start:
> > ## Booting kernel from Legacy Image at 00000000 ...
> >    Image Name:   Linux-3.1.10-sd_15.2
> >    Image Type:   ARM Linux Kernel Image (uncompressed)
> >    Data Size:    3181616 Bytes = 3 MiB
> >    Load Address: 00008000
> >    Entry Point:  00008000
> >    Verifying Checksum ... OK
> >    Loading Kernel Image ... OK
> > OK
> >
> > Starting kernel ...
> >
> >
> > I've already looked through the migration notes in the manual but I'm unable to find
> any hints...
> > Are there any ideas why the kernel doesn't start with the Dora branch?
> 
> you don't mention anything about gcc, so assuming you are using the 'default' gcc for
> each release, dylan has 4.7, and dora has 4.8. On a couple of ARM platforms, i have
> seen similar issue when using gcc-4.8 with old kernel (<v3.4).
> 
> the following linux kernel patches were used to fix the boot problem:
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=455bd4c430b0c
> 0a361f38e8658a0d6cb469942b5
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=418df63adac56
> 841ef6b0f1fcf435bc64d4ed177
> 
> They should cleanly apply to v3.1 which you seem to be using.
> 

Thank you very much Nico!
These two patches fixed the problem and the kernel is booting again :-)

Just for completeness: Yes, I'm using the "default" gcc version and the two patches applied cleanly to my 3.1 branch.

regards,
Richard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-22 12:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22  7:52 Problem with own kernel recipe on Dora Richard Leitner - SKIDATA
2014-04-22  8:23 ` Richard Purdie
2014-04-22  9:08   ` Richard Leitner - SKIDATA
2014-04-22  9:30     ` Richard Purdie
2014-04-22 11:34 ` Nicolas Dechesne
2014-04-22 12:11   ` Richard Leitner - SKIDATA

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.