https://turingpi.com logo
#│forum
Test BMC functionality without having the physical board
# │forum
i

i_gearv9

11/26/2023, 7:04 PM
Anyone figure out how to simulate the BMC firmware, UI, and TPi tool from a VM? or Container? Was looking at Qemu but haven’t gotten that far yet with it.. #testing
f

fentonfenton

11/26/2023, 7:09 PM
there are dockerfiles in github etc. Not sure if anything is stubbed out to experiment with though
u

_dhanos_

11/26/2023, 8:56 PM
There is no hardware emulator for TPi2. What would you use it for?
i

i_gearv9

11/26/2023, 10:33 PM
I was thinking it would be cool to test/ experiment with the functionality of the bmc before buying one?? so everything we expect from the board.. flashing, firmware upgrades… node management.. and then ultimately can be used to make further improvements.. terraform, ansible, cloud-init?
i know issues are inevitable.. but maybe it would help catch issues earlier in the development process ? can be used in ci/cd ?
u

_dhanos_

11/26/2023, 10:38 PM
There are no plans for hardware emulation and it won't emulate hardware issues (and software issues are being caught during normal use and patched).
I'm not saying an emulator does not make sense, but I don't see how much it could be useful
i

i_gearv9

11/26/2023, 10:43 PM
gotcha!
s

svenrademakers

11/28/2023, 10:28 AM
there is a possibility to run the BMC API with a stub
it mainly was used for internal development purposes, for someone who didnt had possession of the board. Its not maintained, im not sure the current state, even though i think you can make it work quite easily. if you checkout https://github.com/turing-machines/bmcd, you could run it with command
cargo run --features stubbed