Line 136... |
Line 136... |
To compile the ao486 processor load the project file from syn/components/ao486/ao486.qpf.
|
To compile the ao486 processor load the project file from syn/components/ao486/ao486.qpf.
|
|
|
#### SoC
|
#### SoC
|
To compile the ao486 SoC load the project file from syn/soc/soc.qpf.
|
To compile the ao486 SoC load the project file from syn/soc/soc.qpf.
|
|
|
|
Before compiling in Altera Quartus II, the Qsys system must be generated.
|
|
|
#### BIOS
|
#### BIOS
|
To compile the BIOS do the following:
|
To compile the BIOS do the following:
|
- extract the bochs-2.6.2 source archive,
|
- extract the bochs-2.6.2 source archive,
|
- apply the patch from the directory bios/bochs-2.6.2 by running in the extracted directory:
|
- apply the patch from the directory bios/bochs-2.6.2 by running in the extracted directory:
|
patch -p1 < (path to patch file)
|
patch -p1 < (path to patch file)
|
Line 164... |
Line 166... |
- opening the Nios II Software Build Tools for Eclipse,
|
- opening the Nios II Software Build Tools for Eclipse,
|
- creating a workspace in the directory syn/soc/firmware,
|
- creating a workspace in the directory syn/soc/firmware,
|
- importing the two projects 'exe' and 'exe_bsp',
|
- importing the two projects 'exe' and 'exe_bsp',
|
- genrating BSP on the 'exe_bsp' project,
|
- genrating BSP on the 'exe_bsp' project,
|
- compiling the 'exe' project.
|
- compiling the 'exe' project.
|
- compile the BIOS and copy the binary to the directory sd/bios
|
- compile the BIOS and copy the binary to the directory sd/bios,
|
- compile the VGABIOS and copy the binary to the directory sd/vgabios
|
- compile the VGABIOS and copy the binary to the directory sd/vgabios,
|
- compile the ao486_tool by running 'ant jar' in the directory ao486_tool
|
- compile the ao486_tool by running 'ant jar' in the directory ao486_tool,
|
- edit the files in the directory sd/hdd. They contain the position of the virtual hard disk located on
|
- edit the files in the directory sd/hdd. They contain the position of the virtual hard disk located on
|
the SD card. The start entry must be a multiplicity of 512. The values are in bytes from the begining
|
the SD card. The start entry must be a multiplicity of 512. The values are in bytes from the begining
|
of the SD card,
|
of the SD card,
|
- run 'java -cp ./dist/ao486_tool.jar ao486.SDGenerator' in the directory ao486_tool,
|
- run 'java -cp ./dist/ao486_tool.jar ao486.SDGenerator' in the directory ao486_tool,
|
- copy the file ao486_tool/sd.dat to the first sectors of the SD card by using 'dd if=sd.dat of=/dev/sdXXX'.
|
- copy the file ao486_tool/sd.dat to the first sectors of the SD card by using 'dd if=sd.dat of=/dev/sdXXX'.
|
|
- insert the SD card to the Terasic DE2-115 board,
|
- program the FPGA using the SOF file,
|
- program the FPGA using the SOF file,
|
- load and run the firmware of the NIOS II controller,
|
- load and run the firmware of the NIOS II controller,
|
- select the BIOS file on the On Screen Display by using KEY0 for down, KEY1 for up and KEY2 for select,
|
- select the BIOS file on the On Screen Display by using KEY0 for down, KEY1 for up and KEY2 for select,
|
- select the VGABIOS file on the OSD,
|
- select the VGABIOS file on the OSD,
|
- select the hard drive on the OSD,
|
- select the hard drive on the OSD,
|