hypervisor icon indicating copy to clipboard operation
hypervisor copied to clipboard

alignment issues kernel_bin

Open maxraulea opened this issue 8 months ago • 3 comments

Hi,

I am trying to get bareflank running on arch linux (I am on the latest version), but the alignment of the kernel_bin binary is not correct. This may be due to the behaviour of the compiler and linker changing with newer versions, but I am not sure. The error occurs in the file: loader/src/x64/map_4k_page.c line 84, there it checks if the segments are aligned.

Is there a way to get the kernel_bin to be aligned correctly?

maxraulea avatar May 17 '25 20:05 maxraulea

Same issue, I get "virt is not page aligned" when load in efi. and I tried AllocatePages instead AllocatePool, it's no use.

Diarica avatar May 28 '25 06:05 Diarica

It's probably due to incorrect build configuration? Have you checked this video? https://www.youtube.com/watch?v=FuEyjDqA53M I'm checking this.

Diarica avatar May 28 '25 06:05 Diarica

It's probably due to incorrect build configuration? Have you checked this video? https://www.youtube.com/watch?v=FuEyjDqA53M I'm checking this.

This video seems outdated, there is no "scripts" folder, and such cmake build configurations.

Diarica avatar May 28 '25 06:05 Diarica