@@ -69,12 +69,16 @@ mOS is the unix-like operating system developed from scratch and aims to POSIX c
6969
7070** Ubuntu**
7171
72+ - Install packakges
73+ ``` bash
74+ $ sudo apt install build-essential autopoint bison gperf texi2html texinfo qemu automake-1.15 nasm xorriso qemu-system-i386
75+ ```
76+
7277- Install gcc cross compilier viahttps://wiki.osdev.org/GCC_Cross-Compiler#The_Build
7378
7479- Install GCC (Version 9.1.0) & Binutils (Version 2.32).
7580
7681- Open src/toolchain/build.sh and modify SYSROOT and PREFIX variables to fit in your case
77-
7882```
7983 PREFIX="$HOME/opt/cross"
8084 TARGET=i386-pc-mos
@@ -84,19 +88,18 @@ mOS is the unix-like operating system developed from scratch and aims to POSIX c
8488```
8589
8690- Install mos toolchain
87-
8891```
8992 $ cd src/toolchain
90- $ ./build
93+ $ ./build.sh
9194```
9295
9396- Run Emulator
94-
9597```
9698 $ cd src && mkdir logs
9799 $ ./create_image.sh
98- $ cd src/ports/bash && ./package.sh
99- $ cd src/ports/coreutils && ./package.sh
100+ $ cd ports/figlet && ./package.sh && cd ../..
101+ $ cd ports/bash && ./package.sh make && cd ../..
102+ $ cd ports/coreutils && ./package.sh make && cd ../..
100103 $ ./build.sh qemu iso
101104```
102105
@@ -110,13 +113,12 @@ mOS is the unix-like operating system developed from scratch and aims to POSIX c
110113```
111114
112115✍️ To get userspace address for debugging
113-
114- ```
115- $ i386-mos-readelf -e program
116- # find the line below and copy Addr
117- # [Nr] Name Type Addr Off Size ES Flg Lk Inf Al
118- # [ x] .text PROGBITS xxx xxx xxx 00 AX 0 0 4
119- ```
116+ ```
117+ $ i386-mos-readelf -e program
118+ # find the line below and copy Addr
119+ # [Nr] Name Type Addr Off Size ES Flg Lk Inf Al
120+ # [ x] .text PROGBITS xxx xxx xxx 00 AX 0 0 4
121+ ```
120122
121123** Unit Test**
122124