DOWNLOAD
Download the patch here.
APPLY
The patch modifies the i386 architecture. All hardware accesses
and assembler instructions are replaced with with a386 calls.
To apply the patch, follow these steps:
- untar a frech copy of Linux 2.3.40
- cd path-to-Linux-2.3.40
- zcat path-to/patch-a386-2.3.40.gz | patch -p1
- mv arch/i386 arch/a386
- mv include/asm-i386 include/asm-a386
COMPILE
You'll need to install a386 in
order to compile Linux/a386.
To compile Linux/a386, do this:
- edit the value of the A386_LIB variable in
arch/a386/Makefile to reflect your a386 installation
- ln -s path-to-a386-sources/unix/include/a386
path-to-linux/include
- copy this file, put it in the
Linux directory, and rename it .config
- make ARCH=a386 oldconfig
- make ARCH=a386 dep
- make ARCH=a386
RUN
You can run Linux/a386 in an unmodified Linux/i386 2.3.22 or newer.
Older kernels will work only with a special patch. Other hosting
operating stystems are not yet supported by a386.
To run Linux/a386:
- get the binary
snapshot and replace vmlinux with your newly compiled
vmlinux
- ./load vmlinux root=2a00 init=/bin/sh 2>debug.log
|