Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail in obmc-pal #56

Open
UlyssesKao0801 opened this issue Jul 7, 2017 · 3 comments
Open

Build fail in obmc-pal #56

UlyssesKao0801 opened this issue Jul 7, 2017 · 3 comments

Comments

@UlyssesKao0801
Copy link

try to use config TEMPLATECONF=meta-openbmc/meta-facebook/meta-fbtp/conf to build image.
I meet the build error

[ 50%] Building C object CMakeFiles/obmc-pal.dir/obmc-pal.c.o
| /home/ukao/openbmc/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-fb-linux-gnueabi/arm-fb-linux-gnueabi-gcc -march=armv6 --sysroot=/home/ukao/openbmc/poky/build/tmp/sysroots/fbtp -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/ukao/openbmc/poky/build/tmp/work/armv6-fb-linux-gnueabi/obmc-pal/0.1-r1=/usr/src/debug/obmc-pal/0.1-r1 -fdebug-prefix-map=/home/ukao/openbmc/poky/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/ukao/openbmc/poky/build/tmp/sysroots/fbtp= -o CMakeFiles/obmc-pal.dir/obmc-pal.c.o -c /home/ukao/openbmc/poky/build/tmp/work/armv6-fb-linux-gnueabi/obmc-pal/0.1-r1/obmc-pal.c
| /home/ukao/openbmc/poky/build/tmp/work/armv6-fb-linux-gnueabi/obmc-pal/0.1-r1/obmc-pal.c:30:24: fatal error: openbmc/kv.h: No such file or directory
| compilation terminated.

Please help to resolve this issue

@vrpradeepkumar
Copy link

Hi ,
It works fine for me.
Can you be more specific?

I used the following steps to build

export TEMPLATECONF=meta-openbmc/meta-facebook/meta-fbtp/conf
. oe-init-build-env
bitbake fbtp-image

Thanks

@henbin
Copy link

henbin commented Aug 17, 2017

@vrpradeepkumar Thanks for your response. I have passed this issue.

@UlyssesKao0801
Copy link
Author

UlyssesKao0801 commented Aug 21, 2017 via email

facebook-github-bot pushed a commit that referenced this issue May 17, 2019
Summary:
As title
Pull Request resolved: facebookexternal/openbmc.celestica#56

Test Plan:
root@shan0556:/mnt/data1/CPLD_image/Image/Image# pwrcpld_update.sh PWR/Wedge400_pwr_cpld_V01.vme
                 Lattice Semiconductor Corp.

             ispVME(tm) V12.2 Copyright 1998-2011.

For daisy chain programming of all in-system programmable devices

CPU Freq set as 1000 MHZ
calibration ....

Processing virtual machine file (PWR/Wedge400_pwr_cpld_V01.vme)......
Diamond Deployment Tool 3.9
CREATION DATE: Wed Mar 27 13:30:24 2019

Warning! Don't power off......

                                                   [100%]
+=======+
| PASS! |
+=======+

Upgrade successful.

Pass

Reviewed By: tomrepo

fbshipit-source-id: f962f320bb
facebook-github-bot pushed a commit that referenced this issue Aug 21, 2020
Summary:
Update nomenclature/numbering:

Testing:
------SCM-FPGA------
SCM_FPGA: 1.11
------FAN-FPGA------
FAN_FPGA: 1.1
------SMB-FPGA------
SMB_FPGA: 1.15
------SMB-CPLD------
SMB_CPLD: 4.1
------PIM-FPGA------
PIM 2: 4.2
PIM 3: 4.2
PIM 4: 4.2
PIM 5: 4.2
PIM 6: NOT INSERTED
PIM 7: NOT INSERTED
PIM 8: NOT INSERTED
PIM 9: NOT INSERTED

Pull Request resolved: facebookexternal/openbmc.arista#56

Reviewed By: tao-ren

fbshipit-source-id: 0621cc81ca
facebook-github-bot pushed a commit that referenced this issue Oct 7, 2022
Summary:
Implement userver_power_ functions for Sandia.

Implement userver_power_ functions for Sandia in board-utils.sh. The functions use both Cisco KLMs and i2cset/get depending on Cisco KLM installation or not.

Build instruction:

A. With proprietary/cisco

1. Set up OpenBMC build environment.
2. Run "source open-init-build-env sandia". It goes into build directory.
3. From build directory, edit conf/local.conf to add a line 'INHERIT += "fb-proprietary-recipes"' at the end of file.
4. From build directory, run "bitbake sandia-image".

B. Without proprietary/cisco

1. Set up OpenBMC build environment.
2. Run "source open-init-build-env sandia". It goes into build directory.
3. From build directory, run "bitbake sandia-image".

X-link: facebookexternal/openbmc.cisco#56

Test Plan:
A. Basic function

1. Build should complete without errors.
2. Image should boot to Linux.
3. "ifconfig" should enable eth0.
4. Image download should work.
5. "flashcp" image should work.

B. Test wedge_power.sh with 2 images below.

B.1. Image with proprietary/cisco
This requires patches below.
- kernel-module: Add kernel modules for Cisco OBMC x86 power and I2C
- sandia: kconfig: Enable MFD core
- sandia: device-tree: Add device entries for power control and SCM EEPROM
- sandia: u-boot: Support early SCM P1 board
- sandia: power: Add power control utility
- sandia: image: Add packages of Cisco KLM for power and I2C, and power control utility

B.2. Image without proprietary/cisco

1. Run 'wedge_power.sh status'. This should show power status.
2. Run 'wedge_power.sh on'. This should power x86 on.
3. Run 'wedge_power.sh off'. This should power x86 off.
4. Run 'wedge_power.sh reset'. This should reset x86 power.
5. Run 'wedge_power.sh reset -s'. This should reset system power.

Reviewed By: tao-ren, GoldenBug

fbshipit-source-id: b6fafdff232dd14a9998d45ce399c30619f30a14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants