Skip to content

Setenv #122

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,5 @@
/src/userland/helloworld/hello

# SDK binaries
/src/sdk/bootdisk/bin/hello
/src/sdk/c.img

node_modules
.grunt
_book
src/sdk/bootdisk/bin/hello
src/sdk/c.img
Binary file added src/devos-.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions src/kernel/modules/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void Module::initLink(){
ModLink* mod;
while (module_builder[i] != 0){
mod=new ModLink(module_builder[i]->module_name);
i=i++;
i++;
}
}

Expand All @@ -38,7 +38,7 @@ File* Module::createDevice(char* name,char* module,u32 flag){
}
}

i=i++;
i++;
}
return NULL;
}
Expand All @@ -61,7 +61,7 @@ File* Module::mount(char* dev,char* dir,char* module,u32 flag){
return NULL;
}

i=i++;
i++;
}
return NULL;
}
Expand All @@ -79,7 +79,7 @@ File* Module::install(char* dir,char* module,u32 flag,char* dev){
}
}

i=i++;
i++;
}
return NULL;
}
Binary file modified src/sdk/bootdisk/bin/hello
Binary file not shown.
4 changes: 0 additions & 4 deletions src/sdk/bootdisk/boot/grub/menu.lst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ title=Dev Operating System (with init)
kernel /kernel.elf
module /bin/hello
boot

title=Dev Operating System
kernel /kernel.elf
boot
Binary file modified src/sdk/c.img
Binary file not shown.
13 changes: 7 additions & 6 deletions src/sdk/diskimage.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
#!/bin/bash
rm c.img
qemu-img create c.img 2M
fdisk ./c.img << EOF
x
c
4
16
h
16
s
63
16
r
n
p
1
1
4
4095
a
1
w
EOF
fdisk -l -u ./c.img
losetup -o 32256 /dev/loop1 ./c.img
losetup -o 512 /dev/loop1 ./c.img

mke2fs /dev/loop1
mke2fs -t ext2 /dev/loop1
mount /dev/loop1 /mnt/
cp -R bootdisk/* /mnt/
umount /mnt/
grub --device-map=/dev/null << EOF
device (hd0) ./c.img
geometry (hd0) 4 16 63
geometry (hd0) 16 16 16
root (hd0,0)
setup (hd0)
quit
Expand Down
Binary file modified src/sdk/lib/libc.a
Binary file not shown.
2 changes: 1 addition & 1 deletion src/sdk/qemu.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
qemu -m 1024 -s -hda ./c.img -curses -serial /dev/tty -redir tcp:2323::23
qemu-system-i386 -m 1024 -hda ./c.img -curses -serial /dev/tty -redir tcp:2323::23 -gdb tcp::1234
Binary file modified src/sdk/src/libc/libc.a
Binary file not shown.
Binary file modified src/userland/helloworld/hello
Binary file not shown.