[poky] RaspberryPi with Poky

Gary Thomas gary at mlbassoc.com
Sun Jun 10 15:30:10 PDT 2012


On 2012-06-10 14:54, Paul Eggleton wrote:
> On Friday 08 June 2012 13:46:09 Tomas Frydrych wrote:
>> On 08/06/12 13:37, Gary Thomas wrote:
>>> First problem: 'core-image-sato-raspberrypi.rpi-sdimg' is broken (no file)
>>
>> I noticed this the the other day; on further investigation the sdimg
>> class in meta-raspberrypi is rather nasty, IIRC you need to set up some
>> stuff by hand on the build machine first and then run the build as root
>> as well. I am not sure there is any need for the sdimg either, you
>> should be able to use the tarball to extract the rootfs onto the SD card.
>
> Yes, I looked at this too. If nobody else gets to it first I might try to
> rework this in a manner similar to our current live images for x86 so that you
> don't have to have loopback devices pre-configured.

Turns out this is a dependency issue.  I added this patch to fix it:

diff --git a/recipes-bcm/kernel-image/bcm2835-kernel-image.bb b/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
index ced20b0..0b1a159 100644
--- a/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
+++ b/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
  COMPATIBLE_MACHINE = "raspberrypi"
  PR = "${MACHINE_KERNEL_PR}.1"

-DEPENDS = "bcm2835-bootfiles bcm2835-mkimage-native"
+DEPENDS = "bcm2835-bootfiles bcm2835-mkimage-native virtual/kernel"

  S = "${WORKDIR}"


I also needed this patch to get a working system, otherwise it hangs up
trying to talk to ttyS0:

diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf
index f3b33bb..86fd1b8 100755
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -11,7 +11,7 @@ GUI_MACHINE_CLASS = "bigscreen"

  IMAGE_FSTYPES += "tar.bz2 rpi-sdimg"

-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLE = "115200 ttyAMA0"

  PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}"
  MACHINE_KERNEL_PR = "r4"

I'm planning on sending a push for these tomorrow (today I have other commitments) :-)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the poky mailing list