代码拉取完成,页面将自动刷新
.Author
Misa.Z misa.zhu@gmail.com
.About
A microkernel OS for learning operating system. versatilepb / raspi1,2,3 ported well, raspi4 todo....
-mmu
-smp multi-core
-copy on write
-multi processes
-multi thread
-ipc
-virtual fs service(everythig is a file)
-very simple ramdisk for initrd
-framebuffer device service for graphics
-uart device service
-SD card
.Environment & Tools
QEMU:
install the last version of qemu
Mac OSX(with brew installed):
brew tap PX4/homebrew-px4
brew install gcc-arm-none-eabi-49
(set the right PATH environment after installed)
download usb to ttl driver https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
How to create/mount ext2 image in macosx
===============prepair================
install macFUSE from official website(https://osxfuse.github.io/)
brew install e2fsprogs
brew install libtool
brew install autoconf
brew install automake
(download https://github.com/alperakcan/fuse-ext2)
./autogen.sh
CFLAGS="-idirafter/opt/gnu/include -idirafter/usr/local/include/osxfuse/ -idirafter/$(brew --prefix e2fsprogs)/include" LDFLAGS="-L/usr/local/opt/glib -L/usr/local/lib -L$(brew --prefix e2fsprogs)/lib" ./configure
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
make
sudo make install
=================example==============
dd if=/dev/zero of=root.ext2 bs=1024 count=16384
mke2fs -b 1024 -I 128 root.ext2 (make ext2 fs with: block_size=1024 inode_size=128)
mkdir -p tmp
fuse-ext2 -o force,rw+ img tmp
(copy files)
umount ./tmp
rm -r tmp
.tty debug
install minicom(linux/mac)
.make
"cd kernel/build/{arch}; make":
build EwokOS kernel image.
.make rootfs (system/root.ext2)
"cd system; make/make full(with xgui)/make extra(with xgui and extra apps"; make sd:
build EwokOS rootfs apps and sd file system.
.run by qemu (raspi2)
"cd kernel/build/raspi2"
"make run":
run EwokOS(username: root, password: (none));
"make debug":
run EwokOS at debug server-mode.
"make gdb":
debug EwokOS (debug client-mode).
.commands
Most of commands are in 'rootfs/sbin' directory, like:
ls, ps, pwd, test ......
.Source code read-guide Tips: Don't fall in love with assembly too much;).
. Kernel init memory map
PhyMem VMem Desc
----------------------------------------------------
0x00000000 0xFFFF0000 interrupt table
0x00008000 0x80008000 Kernel start (load to)
*** *** (_init_stack, _irq_stack, _startup_page_dir)
*** *** Kernel end, Kernel PageDir Table start
+16KB +16KB Kernel PageDir Table end.
+128KB +128KB kernel malloc base
+32M +32M kernel malloc end (size=2M).
......
physical ram top Share memory start base
......
MMIO_BASE_PHY MMIO_BASE MMIO base (arch)
......
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。