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

[metal] Get zipos working again for legacy BIOS boot #833

Closed
wants to merge 1 commit into from

Conversation

tkchia
Copy link
Contributor

@tkchia tkchia commented Jun 14, 2023

examples/hellolua.c now runs again when booted as a legacy BIOS disk image.

  • output number of sectors to load as a patchable variable; for now the patching is done by tool/build/zipcopy.c
  • remove references to _ezip
  • add tweaks to metal mmap()
  • implement lseek() for metal memory files (edit 27 Aug: also implement fstat() for metal files)

@tkchia tkchia force-pushed the tkchia/20230615 branch 2 times, most recently from f5c90b7 to 7d6a8dc Compare June 15, 2023 16:48
@tkchia tkchia changed the title [metal] Get zipos working again for metal [metal] Get zipos working again for legacy BIOS boot Jun 15, 2023
@tkchia tkchia marked this pull request as ready for review June 15, 2023 16:49
@trholding
Copy link

@tkchia

It would be great if you could test your patch by building this: https://github.com/trholding/llama2.c
The corresponding issue is this: #866

Read this to build: https://github.com/trholding/llama2.c#binary-portability-even-more-magic
Model can be downloaded here: https://github.com/trholding/llama2.c#feel-the-magic

@trholding
Copy link

I gave your branch a try and it did not work for me.

@tkchia tkchia marked this pull request as draft August 26, 2023 15:37
@tkchia tkchia force-pushed the tkchia/20230615 branch 2 times, most recently from 7ce6120 to 99d8eaa Compare August 26, 2023 22:15
examples/hellolua.c now runs again when booted as a legacy BIOS
disk image.

- output number of sectors to load as a patchable variable;
  for now the patching is done by tool/build/zipcopy.c
- remove references to _ezip
- add tweaks to metal mmap()
- implement lseek() & fstat() for metal memory files
@tkchia tkchia marked this pull request as ready for review August 27, 2023 06:07
@tkchia tkchia closed this by deleting the head repository May 28, 2024
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.

None yet

2 participants