(Forgive me for the improperly formatted reply, I just now properly registered to the users list and subscribed to the mailing list)
My friend, I was not expecting such a quick reply, much less a fix. Thank you very much! I'm almost certain this is exactly what is going on. I haven't manually compiled Genode or used run scripts to build images in a very long time, but I'm going to try to learn again - I've already setup a proper Genode development environment again in a virtual machine based on the latest Ubuntu LTS release to try to build an image based on your modification.
I set up my build directory, edited build.conf to the best of my ability and ran "make run/sculpt KERNEL=nova BOARD=pc". Unfortunately, the .iso image that is produced is unbootable. Is there a guide or article somewhere describing how to properly build a Sculpt image? I must be making a silly mistake somewhere.
Genode to the moon! baconicsynergy
Hi baconicsynergy,
I'm not an expert regarding this, but it seems that the Sculpt Manager doesn't expect more than 9 partions on a disk. In repos/gems/src/app/sculpt_manager/model/storage_device.h, in the part_block configuration in line 228, it generates policies for partition labels 1-9. This is why your part_block rejects the mke2fs session request for the partition with "no policy defined for label '12'". Consequently, your mke2fs dies with "Block-session creation failed" and "No such file or directory".
I created a quickfix on my branch https://github.com/m-stein/genode/tree/sculpt-21.03b-baconicsynergy. Could you give it a try? I hope this is the only place where the Sculpt Manager assumes such a limit. Maybe we should come up with a more generic solution to this problem.
Cheers, Martin
On 5/26/21 5:46 PM, baconicsynergy--- via users wrote:
[snip]
I set up my build directory, edited build.conf to the best of my ability and ran "make run/sculpt KERNEL=nova BOARD=pc". Unfortunately, the .iso image that is produced is unbootable. Is there a guide or article somewhere describing how to properly build a Sculpt image? I must be making a silly mistake somewhere.
In my experience, the ISO image works fine if you burn it to a CD-ROM or use it as a virtual CD in a VM. But if you want to copy it to a USB stick, you need to switch to creating a bootable disk image by changing the line in "build.conf" from:
QEMU_RUN_OPT := --include power_on/qemu --include log/qemu --include image/iso
to:
QEMU_RUN_OPT := --include power_on/qemu --include log/qemu --include image/disk
I hope this helps.
Genode to the moon!
Indeed!
John J. Karcher devuser@alternateapproach.com
Welcome to the list,
On Wed, May 26, 2021 at 23:46:02 CEST, baconicsynergy--- via users wrote:
I set up my build directory, edited build.conf to the best of my ability and ran "make run/sculpt KERNEL=nova BOARD=pc". Unfortunately, the .iso image that is produced is unbootable. Is there a guide or article somewhere describing how to properly build a Sculpt image? I must be making a silly mistake somewhere.
With pleasure I'd like to refer you to
https://genode.org/documentation/articles/sculpt-21-03#Building_the_boot_ima...
Greets
Hello,
since Martin's patch tweaks the sculpt manager, I'd like to chime in to suggest to also apply a patch like [1].
[1] https://github.com/nfeske/genode/commit/8215735e891bd5396e7bdc0780fa3c6571bf...
Normally, the sculpt.run script obtains all content - including the executable binary of the sculpt manager - from depot packages. So a manual tweak of the source won't picked up.
With this patch, the sculpt manager is built and integrated from the build directory.
Cheers Norman
On 27.05.21 09:46, Christian Helmuth wrote:
Welcome to the list,
On Wed, May 26, 2021 at 23:46:02 CEST, baconicsynergy--- via users wrote:
I set up my build directory, edited build.conf to the best of my ability and ran "make run/sculpt KERNEL=nova BOARD=pc". Unfortunately, the .iso image that is produced is unbootable. Is there a guide or article somewhere describing how to properly build a Sculpt image? I must be making a silly mistake somewhere.
With pleasure I'd like to refer you to
https://genode.org/documentation/articles/sculpt-21-03#Building_the_boot_ima...
Greets