Showing posts with label QEMU. Show all posts
Showing posts with label QEMU. Show all posts

Saturday, June 23, 2012

Linux-0.01 kernel building on ubuntu hardy

linux-0.01-rm-3.5 now builds ok on hardy but only on 32 bit version
The best way to try is to install hardy , or debian lenny in kvm-linux or virtualbox and then try the instructions bellow 

Official 0.0.1 project news and downloads are located here

You might need some packages first
$sudo apt-get install bin86 kvm qemu gcc build-essential


$wget http://ftp.be.debian.org/pub/linux/kernel/people/abdel/linux_0.01/sources/linux-0.01-rm-3.5.tar.gz

$tar -zxvf linux-0.01-rm-3.5.tar.gz
$cd linux-0.01-rm-3.5
$make

or time make

make[1]: Leaving directory `/home/mariuz/linux-0.01-rm-3.5/lib'
ld -s -x -M -Ttext 0 -e startup_32 boot/head.o init/main.o \
kernel/kernel.o mm/mm.o fs/fs.o \
lib/lib.a \
-o tools/system > System.map
(echo -n "SYSSIZE = (";stat -c%s tools/system \
| tr '\012' ' '; echo "+ 15 ) / 16") > tmp.s
cat boot/boot.s >> tmp.s
as86 -0 -o boot/boot.o tmp.s
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
rm -f tmp.s
ld86 -0 -s -o boot/boot boot/boot.o
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector \
-o tools/build tools/build.c
#chmem +65000 tools/build
objcopy -O binary -R .note -R .comment tools/system tools/system.bin
tools/build boot/boot tools/system.bin > Image
Boot sector 452 bytes.
System 89732 bytes.

real 0m4.512s
user 0m3.696s
sys 0m0.768s

then rename Image to linux0.01-3.5.img
qemu -hdb hd_oldlinux.img -fda linux0.01-3.5.img -boot a

you must use the hd image from here if you don't have it yet
wget http://draconux.free.fr/download/os-dev/linux0.01/Image/hd_oldlinux.img.zip
unzip hd_oldlinux.img.zip


Tuesday, September 30, 2008

testing tccboot with qemu/kvm
TCCBOOT, a hack where TCC loads and boots a Linux kernel from source in about 10 seconds. That is to say, it is a "boot loader" which reads Linux kernel source code from disk, writes executable instructions to memory, and begins running it.

wget http://bellard.org/tcc/tccboot.iso

for realy fast booting
kvm -cdrom tccboot.iso
for slow booting and to see what parts of the kernel are compiled
qemu -cdrom tccboot.iso

Sunday, September 21, 2008

17 years of linux - 0.0.1

http://alexandrubucur.com/2008-09-17/17-years-linux
you can still run linux 0.0.1 on an qemu/bochs machine , in kvm seems to crash the vm

http://kerneltrap.org/Linux/Dusting_Off_the_0.01_Kernel




here is the kvm crash , i should submit to them the bug

Saturday, September 20, 2008

I love the qemu manager on windows

http://www.davereyn.co.uk/download.htm

Is very easy to create an ubuntu/windows virtualmachine and is quite similar with virtualbox 
in usage and for me is quite fast on an athlon64x2 with 2G of ram 







Friday, May 09, 2008

UBUNTU PORTED TO A PDA
Ubuntu Linux 7.04 is now available for Sharp's Zaurus PDAs. The 0.1
release comes with a minimalist filesystem that can be launched in an
emulator, enhanced with software from the vast Ubuntu archives, and then
flashed onto a real Zaurus.
http://ct.enews.deviceforge.com/rd/cts?d=207-319-2-28-3471-27802-0-0-0-1

Sunday, April 06, 2008

Installing Debian GNU/kFreeBSD in QEMU VM

A nice guide for testing *bsd in an qemu machine

http://www.hermann-uwe.de/blog/testing-stuff-with-qemu-part-3-debian-gnu-kfreebsd