nopsys / CogNOS

A Cog VM in the bare metal using the Nopsys library
33 stars 5 forks source link

Create CogNOS on top of minimal images #46

Open charig opened 6 years ago

charig commented 6 years ago

See this: https://github.com/guillep/PharoBootstrap.

Then also Pablo Tessone's instructions for creating minimal images:

Guillep's repository have the instructions to create the image to bootstrap (the host). Usually it is not needed, in the productive process we are using an already built image:

23.7 MB bootstrapImage.zip

To bootstrap Pharo, you need to clone the Pharo repository.

https://github.com/pharo-project/pharo

Usually on the pharo repository, you can run

BUILD_NUMBER=42 BOOTSTRAP_ARCH=32 sh ./bootstrap/scripts/bootstrap.sh

This script execute the scripts that are in ./bootstrap/scripts, they are named 1-, 2-, 3-, 4-

The products are generated in the bootstrap-cache directory.

It will produce first a bootstrap.image that is the minimal image, you cannot do much on it. But It will later load packages on top of it. Usually the first useful image is the one with the compiler.