s3c6410 Linux Drive development Environment Building

Source: Internet
Author: User

s3c6410 Linux Drive development Environment Building


--Since you are doing Linux development, do you still use virtual machines?



Very many people in win under the development, so sd_writer.exe such as burning writing tools "big line its way", mostly with virtual machine Linux.

Completely transferred to the Linux learning started pretty uncomfortable, Development board producers sent tutorials are some of the win-ce, feel the substance of nothing. For the full use of Linux to develop the technical explanation is very few, even burn write SD card use of win the following program. Later found some information, organized here, hoping to leave a caring. Together to create a better environment for learning together. When others are in trouble, they can leave something to help others.




(because I have already burned once Linux, so the second burning is not the need to use Eboot to erase the partition protection of the few blocks, assuming that before the WIN-CE board to see the Development Board supplier's manual)

First on the PC host

installation Cross Compiler


Next, configure the minicom.


Prepare the version number corresponding to the kernel tree (this is very important ~ Kernel version number must be corresponding, a lot of problems are due to the inconsistency of the kernel version number)


Burn and write SD card (while cool to *.exe)


Linux comes with tool--dd


    • Format SD card for VFAT format
Mkfs.vfat      /DEV/SDB1

(Here's the wrong, different SD card.) Hanging in the name may not be the same. I'm here for SDB, the same thing to note. Here is the SDB1 format, SDB is a partitioned table, SDB1 is the remaining space of the U disk.

。。 I just once again inserted the USB flash drive. The name becomes SDC, so don't be wrong here.

    • Copy the Zimage uboot.bin yaffs file from the CD to the root folder of the SD card
    • Run on the Linux command line:

DD Iflag=dsync oflag=dsync if=mmc.bin OF=/DEV/SDC seek=1

( /dev/sdc SD card in Linux device name Mmc.bin is to burn the file, here with what File Development Board manual will say, I here focus on finishing Linux environment of burning write method )

    • Run on the linux command line: Sync
(write the contents of the cache to the SD card)
    • Development Board from SD card boot, there will be a burn-write interface! Done!


Compile the Hello Word module on the Linux PC host to do driver cross-compilation test


Emulate the Hello World on the PC machine

If you change makefile, you can

# code wrire:eof# code date:2014.08.19# e-mail: [email protected]## this Makefile are a demo only for arm-architecture# Ifneq ($ (kernelrelease),) obj-m: = Hello.oelsecross_compile =/USR/LOCAL/ARM/4.3.2/BIN/ARM-LINUX-GCC/CC = CROSS_ Compilekerneldir =/lib/modules/$ (Shell uname-r)/buildpwd:=$ (shell pwd) subdir  : =/JASON_WITH_ARM/LINUX-3.0.1/ modules:$ (make)-C $ (subdir) m=$ (PWD) modulesclean:rm-rf *.o *.order *.symvers *.ko *.mod*endif










s3c6410 Linux Drive development Environment Building

Related Article

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.