couple OpenBMC image build and update questions

Brenden Lai Brenden_Lai at jabil.com
Wed Jan 23 18:05:32 AEDT 2019



> -----Original Message-----
> From: Andrew Geissler <geissonator at gmail.com>
> Sent: Tuesday, January 22, 2019 9:30 PM
> To: Brenden Lai <Brenden_Lai at jabil.com>
> Cc: openbmc at lists.ozlabs.org
> Subject: Re: couple OpenBMC image build and update questions
> 
> On Mon, Jan 21, 2019 at 1:05 AM Brenden Lai <Brenden_Lai at jabil.com>
> wrote:
> >
> > Hi all ,
> >
> >                I have done my first OpenBMC build with ver 2.6 , it do take a long
> time .
> >                Here is my questions .
> >
> > Attach screenshot , Which one is the BMC FW image  after building?
> 
> I haven't built the default qemuarm image in a long time. I believe
> obmc-phosphor-image-qemuarm.ext4 is the FW image.
The QEMU hang after installing image , see below. 

brenden at brenden-VirtualBox:~/openbmc$ ./qemu-system-arm -m 256 -M romulus-bmc -nographic -drive file=~/OCP/openbmc/build/tmp/deploy/images/qemuarm/obmc-phosphor-image-qemuarm-20190119120630.rootfs.ext4,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostname=qemu
qemu-system-arm: Aspeed iBT has no chardev backend

Are there any checkpoint to clarify this issue ?
> 
> > Does the image for both QEMU and real machine ?
> 
> I believe this default image would only support QEMU.
> 
> > How to update it by programming tool like SF600?
> 
> Yes, we use the dediprog tool internally to flash fresh chips.
If I have 2 SPI flash for redundant purpose , 
How do linux kernel know where  to boot from ?
Are there any configuration file described the offset of uboot , kernal ,filesystem in SPI flash  

> 
> > Does it support online update such as AMI YAFU flash ?
> 
> Not familiar with this but once you get OpenBMC on a systems, it does
> provide interfaces to update the firmware via a network connection.
> 
> The system we use for our CI work is Romulus. This system is supported in
> QEMU and on real hardware if you'd like to give it a shot.
> 
> https://github.com/openbmc/openbmc/blob/master/README.md#3-target-
> your-hardware
> talks about setting up your TEMPLATECONF for a system and
> https://github.com/openbmc/docs/blob/master/development/dev-
> environment.md#download-and-start-qemu-session
> has some pointers on starting your QEMU session. You'd of course need a
> Romulus system to flash on real hardware but hopefully it would help you
> get comfortable with building the image and testing in QEMU.
> 
> OpenBMC images are very specific to the hardware so before flashing on
> your system  you'd need to ensure you've got all of the different config
> options setup.
> https://github.com/openbmc/docs/blob/master/development/add-new-
> system.md
> is a reference for how to add a new system.
> 
> >
> >
> > Here is the output of my  build
> > brenden at brenden-
> VirtualBox:~/OCP/openbmc/build/tmp/deploy/images/qemua
> > rm$ ls obmc*
> > obmc-phosphor-debug-tarball-qemuarm-20190119120630.qemuboot.conf
> > obmc-phosphor-debug-tarball-qemuarm-20190119120630.rootfs.manifest
> > obmc-phosphor-debug-tarball-qemuarm-20190119120630.rootfs.tar.xz
> > obmc-phosphor-debug-tarball-qemuarm-20190119120630.testdata.json
> > obmc-phosphor-debug-tarball-qemuarm.manifest
> > obmc-phosphor-debug-tarball-qemuarm.qemuboot.conf
> > obmc-phosphor-debug-tarball-qemuarm.tar.xz
> > obmc-phosphor-debug-tarball-qemuarm.testdata.json
> > obmc-phosphor-image-qemuarm-20190119120630.qemuboot.conf
> > obmc-phosphor-image-qemuarm-20190119120630.rootfs.ext4
> > obmc-phosphor-image-qemuarm-20190119120630.rootfs.manifest
> > obmc-phosphor-image-qemuarm-20190119120630.rootfs.tar.bz2
> > obmc-phosphor-image-qemuarm-20190119120630.testdata.json
> > obmc-phosphor-image-qemuarm.ext4
> > obmc-phosphor-image-qemuarm.manifest
> > obmc-phosphor-image-qemuarm.qemuboot.conf
> > obmc-phosphor-image-qemuarm.tar.bz2
> > obmc-phosphor-image-qemuarm.testdata.json
> >
> >
> > Brenden Lai
> > SR. BMC Design Engineer
> > E&I, Jabil Design Services
> >
> >


More information about the openbmc mailing list