-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to run ubuntu guest + freeRTOS guest on bao? #27
Comments
Hello! Yes, we have done a similar configuration using Raspberry Pi OS (previously called Raspbian). The steps required should be quite similar if you are using a custom Linux image, as in the demos. The process involves providing the necessary configuration required by the guest OS. For instance, if you need to use the Ethernet port on the guest OS, you'll need to give the guest access to the Ethernet device in its configuration. Similarly, if you plan to connect a monitor to the board, you'll need to give the guest access to the HDMI device. A similar approach must be taken for both operating systems (Linux and freeRTOS), as you can see in our demos. For example, please refer to the Linux+freeRTOS configuration for the Raspberry Pi 4B available here |
I'm very sorry that I don't understand such a configuration. If it is convenient, can you send your configuration file and configuration process? (Similar to the operation of bao-demo step-by-step guide) My basic configuration is similar to the example you described, and I need hdmi to display the Raspberry Pi and configure Ethernet. thank you very much for your help |
The configuration is straightforward, and we highly recommend that you take a look at the configuration example provided in the Bao repository at https://github.com/bao-project/bao-hypervisor/blob/main/configs/example/config.c The Linux guest is using:
The FreeRTOS is using:
The guests have shared memory at address 0x70000000 for communication.
|
Thanks a lot for your help, here I have two questions:
export BAO_DEMOS_LINUX=$BAO_DEMOS/guests/linux export BAO_DEMOS_LINUX_REPO=https://source.codeaurora.org/external/imx/linux-imx export BAO_DEMOS_LINUX_REPO=https://github.com/torvalds/linux.git export BAO_DEMOS_LINUX_SRC=$BAO_DEMOS_WRKDIR_SRC/linux-$BAO_DEMOS_LINUX_VERSION git clone $BAO_DEMOS_LINUX_REPO $BAO_DEMOS_LINUX_SRC export BAO_DEMOS_LINUX_CFG_FRAG=$(ls $BAO_DEMOS_LINUX/configs/base.config export BAO_DEMOS_BUILDROOT=$BAO_DEMOS_WRKDIR_SRC/ git clone https://github.com/buildroot/buildroot.git $BAO_DEMOS_BUILDROOT make defconfig BR2_DEFCONFIG=$BAO_DEMOS_BUILDROOT_DEFCFG If your target demo features multiple Linux virtual machines, you will have to repeat this last step for each of these, which should correspond to different .dts files in $BAO_DEMOS/$DEMO/devicetrees. The device tree(s) for your target demo are available in $BAO_DEMOS/$DEMO/devicetrees/$PLATFORM. For a device tree file named linux.dts define a virtual machine variable: export BAO_DEMO_LINUX_VM=linux dtc $BAO_DEMOS/demos/$DEMO/devicetrees/$PLATFORM/$BAO_DEMO_LINUX_VM.dts > make -C $BAO_DEMOS_LINUX/lloader |
Hi @wusnga8dn, I believe it would be better if you took a step back and understood the configuration file for bao's guests. Note that our demos exist to provide users with a "plug and play" experience, allowing you to test Bao on your platform and ensure everything runs smoothly. That being said, I noticed you are attempting to replace the Rasberry Linux kernel URL in buildroot. If you already have a Linux image (the Raspberry Pi OS), why are you trying to use buildroot? Therefore, it would be best to perform the steps separately. Here's what I suggest:
|
Thank you very much for your help, but I don't understand a little about the steps you mentioned. Here are my questions:
|
@wusnga8dn We'll be working on adding a demo featuring a full Ubuntu image to some of the platforms. For that reason, I've marked this as a feature request. |
@ninolomata is looking into this. Hoping to have some news soon. |
Hello, I want to run the combination of ubuntu + freeRTOS guest on bao, may I ask if you have done related configuration work, and how should I do it?
The text was updated successfully, but these errors were encountered: