You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: there are prebuilt versions of runtime.js kernel available https://github.com/runtimejs/builds. You can also use runtime-tools NPM package that can download prebuilt kernel automatically and run it in QEMU VM.
If you'd like to build runtime.js from source or hack on C++ parts of it, you will need to use a GCC cross-compiler. Here are the following dependencies that you will need for the following systems and the steps required to build.
You'll need to create a version of binutils that targets your architecture.
cd$HOME/src # go into your working directory
mkdir build-binutils # make a place to build cd build-binutils # go into the directory
../binutils-4.24/configure \ # run the configure script
--target=$TARGET\ # specify your target architecture
--prefix="$PREFIX"\ # specify the build path
--disable-nls \ # don't include native language support
--disable-werror # disable warnings as errors
make
make install
Then actually create your new version of gcc.
cd$HOME/src # go into your working directory
mkdir build-gcc # make a place to buildcd build-gcc # go into your gcc build directory
../gcc-4.8.3/configure \ # run the configure script
--target=$TARGET\ # the architecture to target
--prefix="$PREFIX"\ # where to put the build
--disable-nls \ # don't include native language support
--enable-languages=c,c++ # only compile C and C++ front ends
--without-headers # don't rely on any C library
make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc
If all goes well you should find a bunch of files in $HOME/opt/cross/bin that are prefixed with x86_64, these are your new cross compiler tools.
RUN
Now that you have a cross compiler, you can compile the runtimejs project and run it. Clone it into a directory (if you haven't already) using git. Then run the scons command.
QEMU
To run the kernel, you will need the qemu machine emulator/virtualizer (recommended version >= 2.0.0). The commands for running qemu have been added to the qemu.sh script here.
./qemu.sh
Or using runtime-tools with --kernel=<path> to point it to newly built kernel binary (located at disk/boot/runtime).
###KVM
If you're on Linux and your processor supports virtualization, you can run system in KVM.