Skip to content
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

Introduce ELF loader with networking support #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

razvand
Copy link
Contributor

@razvand razvand commented Oct 13, 2024

Add elfloader-net/ directory (with networking support)

  • Config.uk: ELF Loader configuration
  • rootfs/: setup for building Linux ELFs, with simple C HTTP server
  • Makefile: for building the ELF Loader
  • Makefile.uk: empty placeholder file required by build system
  • fc.x86_64.json: Firecracker configuration
  • README.md: instructions

Add `elfloader-net/` directory (with networking support)

- `Config.uk`: ELF Loader configuration
- `rootfs/`: setup for building Linux ELFs, with simple C HTTP server
- `Makefile`: for building the ELF Loader
- `Makefile.uk`: empty placeholder file required by build system
- `fc.x86_64.json`: Firecracker configuration
- `README.md`: instructions

Signed-off-by: Razvan Deaconescu <[email protected]>
@razvand razvand added the enhancement New feature or request label Oct 13, 2024
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a lot of build errors related to lwip, see the comments.

Also, is there a reason why we have two separate elfloader application, one with and one without networking? Why would we not just use the one with networking enabled?
I think having 2 instances of the same app might get hard to maintain over time, but if there is a good reason for it then it's ok.

```console
test -d ../repos/unikraft || git clone https://github.com/unikraft/unikraft ../repos/unikraft
test -d ../repos/libs/libelf || git clone https://github.com/unikraft/lib-libelf ../repos/libs/libelf
test -d "../repos/libs/lwip" || git clone https://github.com/unikraft/lib-lwip ../repos/libs/lwip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test -d "../repos/libs/lwip" || git clone https://github.com/unikraft/lib-lwip ../repos/libs/lwip
test -d "../repos/libs/lwip" || git clone https://github.com/unikraft/lib-lwip ../repos/libs/lwip
test -d "../repos/apps/elfloader" || git clone https://github.com/unikraft/lib-lwip ../repos/apps/elfloader

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should also clone the elfloader app right?

CONFIG_LIBDEVFS_AUTOMOUNT=y
CONFIG_LIBLWIP=y
CONFIG_LIBUKNETDEV_EINFO_LIBPARAM=y'
UK_DEFCONFIG=/tmp/defconfig make defconfig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a lot of warnings when doing the defconfig

/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:20:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:25:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:37:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:112:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:119:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:135:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:137:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:139:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:141:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:143:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:145:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:147:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:168:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:173:warning: choice value used outside its choice group
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:12:warning: choice default symbol 'LWIP_UNIKRAFT21X' is not contained in the choice
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:109:warning: choice default symbol 'LWIP_THREADS' is not contained in the choice
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:133:warning: choice default symbol 'LWIP_STACKTHREAD_MBOX_SIZE_256' is not contained in the choice
/projects/unikraft/catalog-core/repos/apps/elfloader/Config.uk:165:warning: choice default symbol 'LWIP_HEAP' is not contained in the choice

and a lot of build errors related to lwip, which should have the same cause i suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants