De MediaWiki do Campus São José
Ir para navegação
Ir para pesquisar
Requirements
- Download Mentor's compiler;
- Download buildroot Embedded Linux Generator;
- Create a work directory, e.g. "mkdir my_first_linux";
- Extract bot files to my_first_linux directory as "sourcery" and "buildroot" respectively;
Nios II Configuration
Buildroot Options
- Now go to the directory my_first_linux/buildroot/ and run "make nios2_defconfig" (a menu should open);
- [Optional] Enter your root password at System Configuration -> Enable root login with password;
- Select an text editor such as nano at Target packages-> Text Editors and viewers -> nano;
- Exit & Save;
- Run "make".
Bootloader
- Go to the my_first_linux/buildroot/ directory and download the bootloader running "git clone https://github.com/altera-opensource/u-boot-socfpga.git";
- Export the need environment variables in order to continue:
- export PATH=$PATH:/home/aluno/Documentos/sourceryg/bin (path to the binaries of your compiler)
- export ARCH=nios2
- export CROSS_COMPILE=nios2-linux-gnu-
- To generate to bootloader, go to my_first_linux/buildroot/u-boot-socfpga/ directory and run "make nios2-generic_config";
- For an unknown reason it might require you to run this command again "make nios2-generic_config";
- Finally, run "make".
Linux Kernel