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

Update README.md with FreeBSD source download instructions #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ngalstyan4
Copy link

👋 Hi!

Thanks for building castor and giving it Castor to the world!
I just started playing with this. It seems SConstruct script expects FreeBSD source to be available but it is not in the repo.
I cloned the source of 13.1 release into the expected directory and the build is still in progress.

Is this the right version of the FreeBSD source to download and place under sysroot-src?

@guhaoyu2005
Copy link
Member

guhaoyu2005 commented Oct 6, 2023

Hi there,

I cloned the source of 13.1 release into the expected directory and the build is still in progress.

Do you mean the FreeBSD kernel building is in progress or the scons building?

Is this the right version of the FreeBSD source to download and place under sysroot-src?

I read through your diff and I think that command is correct.

Couple days ago we updated the environment deployment script to make them easier to use. So basically now the sysroot preparation is in a one click script. You could check it out.

Best,

@Ngalstyan4
Copy link
Author

Do you mean the FreeBSD kernel building is in progress or the scons building?

FreeBSD kernel. It is loong done, I just took a while debugging and doing other thigns before getting back to responding here :)

Couple days ago we updated the environment deployment script to make them easier to use. So basically now the sysroot preparation is in a one click script. You could check it out.

I am using the updated script!
The items in this PR are things that I think are expected by the new script but are not carried out or documented. So, I tried adding documentation.

@Ngalstyan4
Copy link
Author

btw, I found the iocage setup instructions deleted in this commit very useful. I would suggest bringing them back to the main readme !

It would also be great to clarify whether you expect the kernel source to be compiled inside the jail created for castor or outside of the jail.

Current main readme made me think I needed to clone and build FreeBSD kernel outside of jails and then bulid a jail on top of the built sysroot. I thought that because the current main readme mentions building sysroot (lines 28-31) before it first mentions jails (lines 34-35).

But the older readme with iocage instructions made me think that the kernel source tree needs to be built and installed inside the jail. I followed with the latter approach and got some of the tests to pass (see #2) so I assume that is the expected way to proceed.

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