Implementation of an operating system: ubuntu system environment configuration, ubuntu mobile phone operating system
Implementation of an operating system: ubuntu system environment Configuration
Gcc has been installed on the computer.
I. nasm installation:
Sudo apt-get install nasm
Or
Download http://sourceforge.net/projects/nasm
I downloaded the nasm-2.11.08-1.src.rpm(there is the nasm-2.11.08.tar. xz file)
Rpm installation method:
1 $ sudo apt-get install alien # alien is not installed by default, so you must first install it 2 $ sudo alien xxxx. rpm ## convert rpm to deb. After the conversion, an xxxx is generated. deb 3 $ sudo dpkg-I xxxx. deb # so that the xxxx software can be installed. 4. Then, nasm-2.11.08.tar will be generated. unzip the xz File 5: 6 tar-axf XXX.tar. xz option-a allows tar. select the decompression tool for xz; 7. Then run the following command :. /configure 9 10 make11 12 sudo make installRpm
Nasminstall tar.gz:
1 unzip: tar zxvf nasm-2.10.07.tar.gz2 3 open the unzipped directory 4 5 then execute the command:./configure6 7 make8 9 sudo make installTar.gz
Ii. Install bochs:
Method 1:
$ Sudo apt-get install vgabios bochs-x bximage
Method 2:
$ Tar-vxzf bochs-2.3.5.tar.gz
$ Bochs-2.3.5 cd
$./Configure -- enable-debugger -- enable-disasm
$ Make
$ Sudo make install
I used method 2 for installation, which always caused problems. Finally I chose method 1.
3. Create a floppy image:
Enter bximage in the command line. The procedure is the same as that in a book.
4. modify the configuration file bochsrc:
Under the/etc/bochs-init/directory
Display_library: sdl-> install sdl: sudo apt-get install bochs-sdl
(If this statement is not provided, display_library is x by default, and sudo apt-get install bochs-x is installed)
Configuration in the bochsrc file:
1 megs: 32 2 display_library: sdl3 vgaromimage: file =/usr/share/vgabios. bin 4 romimage: file =/usr/share/bochs/BIOS-bochs-latest 5 floppya: bytes 44 =. img, status = inserted 6 boot: floppy7 log :. /bochs. out 8 mouse: enabled = 0BOCHSRC
5. Use:
Nasm boot. asm-o boot. bin
Dd if = boot. bin of = a. img bs = 512 count = 1 conv = notrunc
Bochs-f bochsrc
(Put boot. asm-> boot. bin, a. img, and bochsrc in the same directory)
Ps: If the screen is black, enter c on the terminal and press Enter.
To install
FreeDos: http://bochs.sourceforge.net/diskimages.html in implementation of an operating system
Detailed description:
Http://bochs.sourceforge.net/cgi-bin/topper.pl? Name = New + Bochs + Documentation & url = http://bochs.sourceforge.net/doc/docbook/user/index.html