# osProject **Repository Path**: windsgo/os-project ## Basic Information - **Project Name**: osProject - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-01-05 - **Last Updated**: 2022-02-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # osProject #### Introduction Codes written while learning the operating system. #### Environment 1. bochs 2.6.2 installed in /usr/local/bochs 2. Ubuntu 20.04 x86_64 desktop 5.13.0-27-generic 3. Use gcc -m32 & ld -m elf_i386 & nasm -f elf32 to compile and link in amd64 construction #### Usage 1. Modify "BOCHS_DIR" in Makefile according to where you install bochs 2. Modify "BUILD_DIR" in Makefile according to where you want to place build files, default value is "./build" 3. Note: If you install bochs in a system directory just like me, you should use "sudo" when you operate command associated with bochs and files in its directory 4. Use "sudo make" to 1. create virtual disks and info(bochsrc.disk) in $(BOCHS_DIR) 2. create $(BUILD_DIR) if not exists 3. build all (-> mbr.bin, loader.bin, kernel.bin) and write them into virtual disks 5. Or use "sudo make rebuild" to 1. clean all built files in $(BUILD_DIR) 2. make all