Closed abrahamrhoffman closed 4 years ago
Hi Abraham, I am a newbie on OpenBMC too and just reached the same stage. The online guides showed me how to build for meta-ibm/palmetto. I tried it for romulus and that works too. I am able to run it in QEMU and connect to it from the browser. Now I have got my hands on a server having an AST-2500 chip with some old IPMI on it. I want to overwrite it with an OpenBMC image and see what happens. So, did you find an image that we can download for AST-2500? Can we just build one for ast-2500 just like we did for palmetto? What is the tool to use for flashing? Thanks in advance for any tips.
Hey @aroobam. I have been working on this for a few months now. I emailed Aspeed back and forth for a while and acquired their socflash utility. I uploaded it here for you: https://github.com/abrahamrhoffman/bmc_tools
Create a backup and flash the new image:
abe@fractal:/x/build/flash$ sudo ./socflash_x64 ast2400-reference-palmetto.img backup.bin
ASPEED SOC Flash Utility v.1.20.00
Warning:
SoCflash utility is only for engineers to update the firmware in lab,
it is not a commercialized software product,
ASPEED has not done compatibility/reliability stress test for SoCflash.
Please do not use this utility for any mass production purpose.
Press y to continue if you are agree ....
y
Find ASPEED Device 1a03:2000 on 8:0.0
MMIO Virtual Address: 960b000
Relocate IO Base: 4000
Found ASPEED Device 1a03:2400 rev. 30
Static Memory Controller Information:
CS0 Flash Type is SPI
CS1 Flash Type is SPI
CS2 Flash Type is NOR
CS3 Flash Type is NOR
CS4 Flash Type is NOR
Boot CS is 0
Option Information:
CS: 0
Flash Type: SPI
[Warning] Don't AC OFF or Reboot System During BMC Firmware Update!!
[SOCFLASH] Flash ID : 1920c2
Find Flash Chip #1: MXIC MX25L256/257
Backup Flash Chip O.K.
Now I have my backup and the bmc has been flashed.
Thanks a lot. I am traveling over the weekend. Will check and let you know on Tuesday.
On Thu, Jul 18, 2019, 11:27 PM Abraham Hoffman notifications@github.com wrote:
Hey @aroobam https://github.com/aroobam. I have been working on this for a few months now. I emailed Aspeed back and forth for awhile and acquired their socflash utility. I uploaded it here for you: https://github.com/abrahamrhoffman/bmc_tools Create a backup - bash ./socflash.sh -b my_backup.bin
abe@fractal:/x/build/flash$ sudo ./socflash_x64 -b backup.bin ASPEED SOC Flash Utility v.1.20.00 Warning: SoCflash utility is only for engineers to update the firmware in lab, it is not a commercialized software product, ASPEED has not done compatibility/reliability stress test for SoCflash. Please do not use this utility for any mass production purpose. Press y to continue if you are agree .... y Find ASPEED Device 1a03:2000 on 8:0.0 MMIO Virtual Address: 960b000 Relocate IO Base: 4000 Found ASPEED Device 1a03:2400 rev. 30 Static Memory Controller Information: CS0 Flash Type is SPI CS1 Flash Type is SPI CS2 Flash Type is NOR CS3 Flash Type is NOR CS4 Flash Type is NOR Boot CS is 0 Option Information: CS: 0 Flash Type: SPI [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!! [SOCFLASH] Flash ID : 1920c2 Find Flash Chip #1: MXIC MX25L256/257 Backup Flash Chip O.K.
Now I have my backup! You can flash the backup bin or palmetto bin using the same utility:
abe@fractal:/x/build/flash$ sudo bash ./socflash.sh ast2400-reference-palmetto.img backup.bin ASPEED SOC Flash Utility v.1.20.00 Warning: SoCflash utility is only for engineers to update the firmware in lab, it is not a commercialized software product, ASPEED has not done compatibility/reliability stress test for SoCflash. Please do not use this utility for any mass production purpose. Press y to continue if you are agree .... y Find ASPEED Device 1a03:2000 on 8:0.0 MMIO Virtual Address: fff1000 Relocate IO Base: 4000 Found ASPEED Device 1a03:2400 rev. 30 Static Memory Controller Information: CS0 Flash Type is SPI CS1 Flash Type is SPI CS2 Flash Type is NOR CS3 Flash Type is NOR CS4 Flash Type is NOR Boot CS is 0 Option Information: CS: 0 Flash Type: SPI [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!! [SOCFLASH] Flash ID : 1920c2 Find Flash Chip #1: MXIC MX25L256/257 Backup Flash Chip O.K. Update Flash Chip #1 O.K. Update Flash Chip O.K
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openbmc/docs/issues/47?email_source=notifications&email_token=AHJ6HP6EZHPF66EQQMKVBW3QACVHFA5CNFSM4HNY3I72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JJGCY#issuecomment-512922379, or mute the thread https://github.com/notifications/unsubscribe-auth/AHJ6HP65SEK667NQWBH5OELQACVHFANCNFSM4HNY3I7Q .
Hi Abraham, First of all let me express my thanks once again for your time and quick response. I spent some time with your directions today. This is what I observe. Feel free to correct me anywhere, because I am still new to this and most probably the mistake is mine :-) I found the package you have uploaded is for DOS however the instructions are for Linux. Doesn't matter. I have the Linux socflash_64 from another site and your backup command "-b" works!! That in itself is a good step for me. I am building for romulus and do not find a "*.img" file as you have specified in the flashing command. I see only an "mtd" file. This is the one I used to boot in QEMU and that works fine. Can I flash this same file on the chip? Another thing I can do is try and build for Palmetto and see if I get an "img" file.
Thanks and Regards, Madhan.
On Thu, Jul 18, 2019 at 11:33 PM Madhan Muruganantham aroobam@gmail.com wrote:
Thanks a lot. I am traveling over the weekend. Will check and let you know on Tuesday.
On Thu, Jul 18, 2019, 11:27 PM Abraham Hoffman notifications@github.com wrote:
Hey @aroobam https://github.com/aroobam. I have been working on this for a few months now. I emailed Aspeed back and forth for awhile and acquired their socflash utility. I uploaded it here for you: https://github.com/abrahamrhoffman/bmc_tools Create a backup - bash ./socflash.sh -b my_backup.bin
abe@fractal:/x/build/flash$ sudo ./socflash_x64 -b backup.bin ASPEED SOC Flash Utility v.1.20.00 Warning: SoCflash utility is only for engineers to update the firmware in lab, it is not a commercialized software product, ASPEED has not done compatibility/reliability stress test for SoCflash. Please do not use this utility for any mass production purpose. Press y to continue if you are agree .... y Find ASPEED Device 1a03:2000 on 8:0.0 MMIO Virtual Address: 960b000 Relocate IO Base: 4000 Found ASPEED Device 1a03:2400 rev. 30 Static Memory Controller Information: CS0 Flash Type is SPI CS1 Flash Type is SPI CS2 Flash Type is NOR CS3 Flash Type is NOR CS4 Flash Type is NOR Boot CS is 0 Option Information: CS: 0 Flash Type: SPI [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!! [SOCFLASH] Flash ID : 1920c2 Find Flash Chip #1: MXIC MX25L256/257 Backup Flash Chip O.K.
Now I have my backup! You can flash the backup bin or palmetto bin using the same utility:
abe@fractal:/x/build/flash$ sudo bash ./socflash.sh ast2400-reference-palmetto.img backup.bin ASPEED SOC Flash Utility v.1.20.00 Warning: SoCflash utility is only for engineers to update the firmware in lab, it is not a commercialized software product, ASPEED has not done compatibility/reliability stress test for SoCflash. Please do not use this utility for any mass production purpose. Press y to continue if you are agree .... y Find ASPEED Device 1a03:2000 on 8:0.0 MMIO Virtual Address: fff1000 Relocate IO Base: 4000 Found ASPEED Device 1a03:2400 rev. 30 Static Memory Controller Information: CS0 Flash Type is SPI CS1 Flash Type is SPI CS2 Flash Type is NOR CS3 Flash Type is NOR CS4 Flash Type is NOR Boot CS is 0 Option Information: CS: 0 Flash Type: SPI [Warning] Don't AC OFF or Reboot System During BMC Firmware Update!! [SOCFLASH] Flash ID : 1920c2 Find Flash Chip #1: MXIC MX25L256/257 Backup Flash Chip O.K. Update Flash Chip #1 O.K. Update Flash Chip O.K
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openbmc/docs/issues/47?email_source=notifications&email_token=AHJ6HP6EZHPF66EQQMKVBW3QACVHFA5CNFSM4HNY3I72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JJGCY#issuecomment-512922379, or mute the thread https://github.com/notifications/unsubscribe-auth/AHJ6HP65SEK667NQWBH5OELQACVHFANCNFSM4HNY3I7Q .
Never mind. I see a "flash romulus" link to the "mtd". Guess that is what I should do. Will try and let you know. Fingers crossed.
Is the kernel loading after "Starting kernel " mine's stuck at that stage...
Hi Felix, sorry couldn't reply earlier. I flashed a server and bricked it. Waiting for a dev kit from Portwell to be approved. I talked to the server folks and found out that there are some customizations done for handshake between their own system BIOS and their own OpenBMC build and my expectation that my OpenBMC build will run out of their live server is not valid :-( What platform are you using? Hope you made some progress? Regards, Madhan.
On Fri, Sep 20, 2019 at 4:39 PM felixkj123 notifications@github.com wrote:
Is the kernel loading after "Starting kernel " mine's stuck at that stage...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openbmc/docs/issues/47?email_source=notifications&email_token=AHJ6HP32Y7PUNMXORPHJABTQKSVM5A5CNFSM4HNY3I72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GLTRY#issuecomment-533510599, or mute the thread https://github.com/notifications/unsubscribe-auth/AHJ6HP4FUL5KW33WAOKB7VTQKSVM5ANCNFSM4HNY3I7Q .
Rather than run the risk of bricking a system as listed in this thread, is there a way to build a network bootable image? One could then load it from uboot for testing. We are also at the stage where we would like to test builds on real hardware. A network bootable image would help a lot. Thanks, Chet
Hi Felix, sorry couldn't reply earlier. I flashed a server and bricked it. Waiting for a dev kit from Portwell to be approved. I talked to the server folks and found out that there are some customizations done for handshake between their own system BIOS and their own OpenBMC build and my expectation that my OpenBMC build will run out of their live server is not valid :-( What platform are you using? Hope you made some progress? Regards, Madhan. … On Fri, Sep 20, 2019 at 4:39 PM felixkj123 @.***> wrote: Is the kernel loading after "Starting kernel " mine's stuck at that stage... — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#47?email_source=notifications&email_token=AHJ6HP32Y7PUNMXORPHJABTQKSVM5A5CNFSM4HNY3I72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7GLTRY#issuecomment-533510599>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHJ6HP4FUL5KW33WAOKB7VTQKSVM5ANCNFSM4HNY3I7Q .
Hi aroobam, Earlier i took palmetto as base board for my ast2400 chip board and when booted, it was stuck at "Starting Kernel". I then tested with olympus and then it started to boot, no issues. Now I am currently doing customizing the olympus board to meet my specifications. Thanks for the response...
Rather than run the risk of bricking a system as listed in this thread, is there a way to build a network bootable image? One could then load it from uboot for testing. We are also at the stage where we would like to test builds on real hardware. A network bootable image would help a lot. Thanks, Chet
Try following the link... https://lists.ozlabs.org/pipermail/openbmc/2017-December/010264.html
and may try changing the image address to your need. The above link worked for me...
Hi All, I’m beginner of openbmc. I have some question need your suggestion.
As my understand the openbmc image has built after setting hardware. But I don’t understand how to select suitable “Hardware” setting for my target board, even I survey openbmc .md files and build-receipt list. My motherboard have a AST2500 and CPU model is Intel® Xeon® D-2100. Could you give me some advice?
P.S.
Now I can build image for AST2500 evb (Obmc-phosphor-image-evb-ast2500.static.mtd), but I not sure the image is workable on my target board. build command as below,
$ TEMPLATECONF=meta-evb/meta-evb-aspeed/meta-evb-ast2500/conf/ . openbmc-env
$ bitbake obmc-phosphor-image
Hi guys Im interested into flash a basic build of OpenBMC in 2400 based boards that floods aliexpress, just want to provide the most basic feature set to those commodity hardware having zero support now. I am expecting its integration be simple and non fancy bios integration is in place. do have any guide or checklist to identify requirements on those boards?
If you do not find your specific board as being supported, you'll quite likely brick your board by attempting to put any other image onto it. The Aspeed chip is commonly used in servers but there is lots of variations to how the Aspeed chip is wired up in a server that it is almost impossible to port to a new server unless you have schematics.
Here are just a few pieces of information you'd need to know before you could even attempt a porting:
Some vendors might follow an Intel reference server design as a starting point and then make minor changes off that, but other vendors make drastic changes from the Intel reference. In any case, supporting a board we don't already support is likely going to require some reverse engineering.
One last comment... opening issues on our docs repository doesn't get as much visibility as the development mailing list or interacting with developers on IRC. If you'd like to have an active discussion on your particular board, I'd suggest reaching out there instead. https://github.com/openbmc/docs#contact
@williamspatrick Hi, Thanks for your replying, I'll survey that first. Have a nice day. 👍
Many thanks, Prince
hi abrahamrhoffman I have been looking for a tool recently, I want to update the BMC on the server of one of my supermicro motherboards, I found you here in an online search tool, I don't know how to use this tool, my motherboard is supermicro X11 DPG-QT
After a lot of testing, I am feeling a bit lost here. We have ASPEED AST2400/2500 BMCs, and I just want to upload a firmware to it - so that I can test stock functionality. (Eventually, I want to customize the firmware with small changes.) The build process in README.md looks like it applies to a specific hardware manufacturer (IBM) and SKU (unknown).
I can boot QEMU with the built image just fine, and test functionality there. But from what I gather from
dmesg
andcat /proc/cpu
etc, I am worried it might brick my test BMC.I can't tell from the documentation how to do a basic build for ASPEED AST2500. Could someone point me in the right direction? Note: I do see
aspeed
in the dmesg output.