Skip to content

feat(rh850-u2a16): Add baremetal demo for RH850-U2A16#74

Open
JensenWei007 wants to merge 3 commits intobao-project:update/miscfrom
JensenWei007:master
Open

feat(rh850-u2a16): Add baremetal demo for RH850-U2A16#74
JensenWei007 wants to merge 3 commits intobao-project:update/miscfrom
JensenWei007:master

Conversation

@JensenWei007
Copy link

@DavidMCerdeira
Copy link
Member

DavidMCerdeira commented Jan 30, 2026

I tried to update your repo to set the relevant branches to the WIP versions, but I got permission denied. Here are the modifications:

diff --git a/Makefile b/Makefile
index 6dee6d8..249192a 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ environment+=BAO_DEMOS_SDCARD=/media/$$USER/boot
 all: platform 
 
 bao_repo:=https://github.com/bao-project/bao-hypervisor
-bao_version:=demo
+bao_version:=wip/rh850-u2a16
 bao_src:=$(wrkdir_src)/bao
 bao_cfg_repo:=$(wrkdir_demo_imgs)/config
 wrkdirs+=$(bao_cfg_repo)
diff --git a/guests/baremetal/make.mk b/guests/baremetal/make.mk
index 1c7ef9a..d32b1db 100644
--- a/guests/baremetal/make.mk
+++ b/guests/baremetal/make.mk
@@ -1,6 +1,6 @@
 baremetal_src:=$(wrkdir_src)/baremetal
-baremetal_repo:=https://github.com/bao-project/bao-baremetal-guest.git 
-baremetal_branch:=demo
+baremetal_repo:=git@github.com:JensenWei007/bao-baremetal-guest.git
+baremetal_branch:=master
 
 $(baremetal_src):
 	git clone $(baremetal_repo) $@ --branch $(baremetal_branch)

@DavidMCerdeira DavidMCerdeira self-requested a review January 30, 2026 17:55
@DavidMCerdeira
Copy link
Member

Also it would be nice to have the next steps after building, similar to what we have on other platforms.

Check ZCU104 platform make as an example:

platform: $(bao_image) $(boot_bin) $(bao_uboot_image) 
	$(call print-instructions, $(instuctions), 1, false)
	$(call print-instructions, $(instuctions), 2, false)
	$(call print-instructions, $(instuctions), 3, true)

It's necessary to add the following on the relevant README sections:

<!--- instruction#1 -->

Also, it's possible to use Make variables to build the output command with the correct paths. Example:

<!--- instruction#1 -->
## 3) Setup SD card

After [preparing your sd card](../../platforms/sdcard.md), copy the firmware and 
bao's final image to it:


cp $BAO_DEMOS_WRKDIR_PLAT/BOOT.BIN $BAO_DEMOS_SDCARD
cp $BAO_DEMOS_WRKDIR_IMGS/bao.img $BAO_DEMOS_SDCARD
umount $BAO_DEMOS_SDCARD

@JensenWei007
Copy link
Author

JensenWei007 commented Feb 3, 2026

I tried to update your repo to set the relevant branches to the WIP versions, but I got permission denied. Here are the modifications:

diff --git a/Makefile b/Makefile
index 6dee6d8..249192a 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ environment+=BAO_DEMOS_SDCARD=/media/$$USER/boot
 all: platform 
 
 bao_repo:=https://github.com/bao-project/bao-hypervisor
-bao_version:=demo
+bao_version:=wip/rh850-u2a16
 bao_src:=$(wrkdir_src)/bao
 bao_cfg_repo:=$(wrkdir_demo_imgs)/config
 wrkdirs+=$(bao_cfg_repo)
diff --git a/guests/baremetal/make.mk b/guests/baremetal/make.mk
index 1c7ef9a..d32b1db 100644
--- a/guests/baremetal/make.mk
+++ b/guests/baremetal/make.mk
@@ -1,6 +1,6 @@
 baremetal_src:=$(wrkdir_src)/baremetal
-baremetal_repo:=https://github.com/bao-project/bao-baremetal-guest.git 
-baremetal_branch:=demo
+baremetal_repo:=git@github.com:JensenWei007/bao-baremetal-guest.git
+baremetal_branch:=master
 
 $(baremetal_src):
 	git clone $(baremetal_repo) $@ --branch $(baremetal_branch)

Oh, you use ssh to pull repo, I didn't invite you before, but I have sent you an invitation now.

Also, you can use http to pull repo. Like: https://github.com/JensenWei007/bao-baremetal-guest.git

The change of hypervisor(for bao-version should have not issues), the problem is caused by git.

@JensenWei007
Copy link
Author

Also it would be nice to have the next steps after building, similar to what we have on other platforms.

Check ZCU104 platform make as an example:

platform: $(bao_image) $(boot_bin) $(bao_uboot_image) 
	$(call print-instructions, $(instuctions), 1, false)
	$(call print-instructions, $(instuctions), 2, false)
	$(call print-instructions, $(instuctions), 3, true)

It's necessary to add the following on the relevant README sections:

<!--- instruction#1 -->

Also, it's possible to use Make variables to build the output command with the correct paths. Example:

<!--- instruction#1 -->
## 3) Setup SD card

After [preparing your sd card](../../platforms/sdcard.md), copy the firmware and 
bao's final image to it:


cp $BAO_DEMOS_WRKDIR_PLAT/BOOT.BIN $BAO_DEMOS_SDCARD
cp $BAO_DEMOS_WRKDIR_IMGS/bao.img $BAO_DEMOS_SDCARD
umount $BAO_DEMOS_SDCARD

For RH850-U2A16, I am not sure what needs to be done for the make.mk in our platform/. The only conversion to hex that needs to be done has already been completed in the baremetal repository, which is the commit you submitted a few days ago.

As stated in the make.mk, there may be only one cp operation.

Should we do the same for this cp command ?

@JensenWei007 JensenWei007 reopened this Feb 3, 2026
@DavidMCerdeira DavidMCerdeira changed the base branch from master to update/misc February 13, 2026 16:31
@DavidMCerdeira
Copy link
Member

@JensenWei007 It seems I missed your comments on this PR sorry for that.

@DavidMCerdeira DavidMCerdeira force-pushed the master branch 3 times, most recently from 98d4559 to e9591cc Compare February 13, 2026 18:15
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
@DavidMCerdeira DavidMCerdeira force-pushed the master branch 2 times, most recently from ce9186c to 4d07fe0 Compare February 13, 2026 18:20
JensenWei007 and others added 2 commits February 13, 2026 18:29
Signed-off-by: JensenWei007 <jensenwei007@gmail.com>
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
@DavidMCerdeira
Copy link
Member

DavidMCerdeira commented Feb 13, 2026

I'll delete the last commit with the WIP branches after both bao-project/bao-baremetal-guest#11 and bao-project/bao-hypervisor#246 are merged

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

Successfully merging this pull request may close these issues.

2 participants