OK6410[000] Build a bare-metal development environment

Source: Internet
Author: User

1, install cross-tool chain arm-linux-gcc-4.3.2First copy this tool to the Rhat system "Rhel-server-6.3-i386-dvd.iso" decompressionarm-linux-gcc-4.3.2 to a directory, and then configure the environment variable2. Compile the sample program to compile Arm-linux-gcc-g-C LEDs. S link arm-linux-ld-tled.lds-o led.elf led.o format conversion arm-linux-objcopy-o binary led.elf Led.bin This makes a led.bin file that can be issued to bare metal run. 3, the production of SD boot card first use the board's own program to make SD Boot card setup Development Board from SD card boot 4, connectSecureCRTUse SECURECRT as the Remote Connection tool under Windows. After the connection, you must press and hold the SPACEBAR to boot, and finally the following interface will appear. Start the operation below. SELECT [1] to executeformat NAND FlashSELECT [3] Download the burn image from the USB linkSELECT [1] to download u-boot because our bare-metal program is similar to U-boot. 5, download Linux USB driver This time, the window system will load the device driver, we need to connect this device to the virtual machine, such as: After the connection, we need to download the device driver. This file needs to be Dnw_usb.ko loaded into the system, and execution here means the installation is complete. 6, the use of DNW to the Development Board to transmit data because to let DNW in other places also identify, so I put DNW into the/usr/bin/directory. Perform the following actions.  After downloading the communication terminal to view the transmission situation 7, from the NAND flash boot We are programmed to NAND flash, so start from NAND Flash to see the program status. Once this is set up, restart the Development Board and you will see one of the LEDs lit up. At this point, the construction of the Bare Metal Development Board environment is complete.



From for notes (Wiz)



OK6410[000] Build a bare-metal development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.