Experienced a front-end struggle. The SOC front-end design has been debugged and is now directly into the uboot transplant
First CD into the U-boot-master
Locate the subfolders include the De2_115.h file to make changes:
(Next plan: add Flash curing uboot; add NIC instead of serial port to download uimage)
Cd into U_boot_master:
1) $ make de2_115_config
2) $ make
3) generate a U_boot file and then simulate it with or1ksim.cfg
The generated u_boot;
Get simulation results:
Download the quartusii compiled socproject download file soc_top.sof to the de2-115 Development Board:
After connecting to the Ubuntu USB device interface:
Open the DBG terminal:
Open another terminal, CD in U_boot:
1) Input Or32-linux-gdb
2) Enter the GDB protocol
3) input file U_boot read U_boot binary
After the load is complete, for example:
1) Set $pc =0x100
2) Open the serial port, set a good baud rate 38400
3) Input: C
4) Get Uboot startup result on serial port:
To this. The uboot transplant is complete, and then the Linux system is migrated.
1) CD into U-boot-master.
2) then CD into tools to find mkimage.
3) Copy the Uboot compiled subfolder under Tools Tools Mkimage tool to/usr/bin; (remember that it must be compiled Mkimage tool)
4) Test mkimage: Input mkimage: It is no problem to get it.
Test success;
Then, CD into the Linux directory (virtual machine soc_design inside there. But you have to change the default configuration of makefile)
Open Makefile and change the default settings. For example, with:
Then CD into subfolder DTS for device tree changes:
Open a. dts file: Major changes to clock frequency, baud rate, address, etc.
Stare out of the temporary unused Mac: such as serial debugging can play Linux and then change the network card:
Follow these steps to compile the Linux kernel:
The last step is to make the Linux image of Uboot recognition by using the mkimage generated by Uboot.
You can generate
Perform vmlinux simulations:
Get simulation results:
To generate uimage with directives:
Pull the uimage out and put it in the upload folder of the serial tools SECURECRT:
After the U_boot board executes, enter Loady, ready to transfer Uboot recognized Linux image uimage to the board via SECURECRT:
Select Send Ymodem, select Uimage file for transfer
Transfer complete, enter BOOTM:
Figure 39
The kernel successfully started, the transplant first to end, go back to complete flash curing uboot. Add the Mac module to download the image.
KEEP FIGHTING!!!!
Porting Linux on or1200 processor-based SoCs