OpenBMC on Raspberry PI 3.

Javier Romero xavinux at gmail.com
Sun Oct 8 15:45:19 AEDT 2017


I've tried these steps:

*1. tester at obmc:~$ *cd openbmc

*2. tester at obmc:/openbmc$ *export
TEMPLATECONF=meta-openbmc-machines/meta-evb/meta-evb-raspberrypi/conf

*3. tester at obmc:/openbmc$ *. oe-init-build-env ~/my-build-raspberrypi

*4. tester at obmc:~/my-build-raspberrypi$ *bitbake obmc-phosphor-image

*Build Configuration:*
*BB_VERSION        = "1.32.0"*
*BUILD_SYS         = "x86_64-linux"*
*NATIVELSBSTRING   = "Ubuntu-16.04"*
*TARGET_SYS        = "arm-openbmc-linux-gnueabi"*
*MACHINE           = "raspberrypi"*
*DISTRO            = "openbmc-phosphor"*
*DISTRO_VERSION    = "0.1.0"*
*TUNE_FEATURES     = "arm armv6  vfp arm1176jzfs callconvention-hard"*
*TARGET_FPU        = "hard"*
*meta              *
*meta-poky         *
*meta-oe           *
*meta-networking   *
*meta-python       *
*meta-virtualization *
*meta-phosphor     *
*meta-raspberrypi  = "master:65edf7d796c34012982632d0a724d80ff44c9e4a"*


But the following error appears:

*ERROR: linux-raspberrypi-1_4.4.48+gitAUTOINC+7ddf96fbb7-r0
do_kernel_metadata: Function failed: do_kernel_metadata (log file is
located at
/home/tester/my-build-raspberrypi/tmp/work/raspberrypi-openbmc-linux-gnueabi/linux-raspberrypi/1_4.4.48+gitAUTOINC+7ddf96fbb7-r0/temp/log.do_kernel_metadata.7276)*
*ERROR: Logfile of failure stored in:
/home/tester/my-build-raspberrypi/tmp/work/raspberrypi-openbmc-linux-gnueabi/linux-raspberrypi/1_4.4.48+gitAUTOINC+7ddf96fbb7-r0/temp/log.do_kernel_metadata.7276*
*Log data follows:*
*| DEBUG: Executing shell function do_kernel_metadata*
*| ERROR. input file "phosphor-gpio-keys" does not exist*
*| ERROR: could not process input files:
/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi/defconfig
/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
phosphor-gpio-keys*
*|        See /tmp/tmp.GA2zgVbszZ for details*
*| ERROR. input file "phosphor-gpio-keys" does not exist*
*| ERROR: could not process input files:
/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi/defconfig
/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
phosphor-gpio-keys*
*|        See /tmp/tmp.BEzIPRvVMy for details*
*| WARNING: exit code 1 from a shell command.*
*| ERROR: Function failed: do_kernel_metadata (log file is located at
/home/tester/my-build-raspberrypi/tmp/work/raspberrypi-openbmc-linux-gnueabi/linux-raspberrypi/1_4.4.48+gitAUTOINC+7ddf96fbb7-r0/temp/log.do_kernel_metadata.7276)*
*ERROR: Task
(/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:do_kernel_metadata)
failed with exit code '1'*
*NOTE: Tasks Summary: Attempted 632 tasks of which 0 didn't need to be
rerun and 1 failed.*
*Summary: 1 task failed:*
*
/home/tester/openbmc/import-layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bb:do_kernel_metadata*
*Summary: There were 6 WARNING messages shown.*
*Summary: There was 1 ERROR message shown, returning a non-zero exit code.*

Is there something wrong with the steps I've tried ?

Regards,




*Javier Romero*

*E-mail: xavinux at gmail.com <xavinux at gmail.com>*

*Skype: xavinux*


2017-10-06 20:02 GMT-03:00 Javier Romero <xavinux at gmail.com>:

> Rick / Andrew,
>
> Thank you very much for your answer and suggestions.
>
> I'm looking at that repository on Github now.
>
> Regards,
>
>
>
>
> *Javier Romero*
>
> *E-mail: xavinux at gmail.com <xavinux at gmail.com>*
>
> *Skype: xavinux*
>
>
> 2017-10-06 18:28 GMT-03:00 Andrew Jeffery <andrew at aj.id.au>:
>
>>
>>
>> On Sat, 7 Oct 2017, at 03:29, Rick Altherr wrote:
>> > When you run  export TEMPLATECONF=meta-openbmc-machines/meta-
>> > openpower/meta-ibm/meta-palmetto/conf, you are telling the build system
>> > that you want to build images for the BMC processor used on the Palmetto
>> > machine (Aspeed AST2400).  That image won't boot on a RaspberryPi.  What
>> > you'll need to do is create a new layer in meta-openbmc-machines for a
>> > RaspberryPi that includes the raspberrypi layer, specifies the correct
>> > kernel device tree, etc.
>>
>>  As a heads-up, some of this work has already been done:
>>
>> https://github.com/openbmc/openbmc/tree/master/meta-openbmc-
>> machines/meta-evb/meta-evb-raspberrypi/conf
>>
>> It was added in this change:
>>
>> https://gerrit.openbmc-project.xyz/#/c/508/
>>
>> I don't think it was thoroughly tested and it has probably bit-rotted,
>> but maybe it's existence will flatten out the learning curve a bit.
>>
>> Cheers,
>>
>> Andrew
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20171008/85d378b8/attachment.html>


More information about the openbmc mailing list