您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > ARM linux S3C2410 全程培训笔记
一.第一天课程:熟悉了解嵌入式1.检验交叉编译器安装成功与否?arm-linux-gcc-v2.gotothekernelsourcedircd/source/linux-2.6.133.editMakefile(setARCH=armsetCROSS_COMPILE=arm-linux-)makeconfig[menuconfig](第一次用先不要改选项)makedepmakezImage(thenzImageisgeneratedinarch/arm/boot/)4.powerupthehardwareplatforminu-bootpromtprintenv注意四个环境变量...setenvipaddrxx.xx.xx.xxsaveenv5.copyzImageintotftpbootdircparch/arm/boot/zImage/tftpboot6.checktftpservercd/etc/xinetd.dcattftp7.connectboardwithPCbyLANcable8.poweruptheboardinu-bootshelltftp30008000zImage9.setenvbootargsconsole=ttySAC0,115200root=/dev/nfsnfsroot=192.168.1.xx:/source/rootfsip=192.168.1.xxxsaveenv10checknfsservercat/etc/exports11.go3000800012.makemenuconfigbootoptions-13.disassemblehello.elfarm-linux-objdump-dhello.elfa.msgvia.msgcheckswi14.cdlinux-2.6.13vi*.maparm-linux-objdump-dvmlinuxa.msg15.compileapparm-linux-gcchello.c-ohello.elfarm-linux-gcchello.c-static-ohello.elf16.(stripelffiletobinary)arm-linux-objcopy-Obinaryvmlinuxvmlinux.bin第二天课程:linux-2.4内核移植cloneanewboardsupportinlinux2.4.18derivedfromsmdk24101.getneededfilefromftpservercd/root/mkdirhwangcdhwangftp166.111.2.177anonymous-getarm.tar.gzgetkernel.tar.gzgetroot-for-nfs-v5.tar.gz2.setupcross-compilerforarmlinuxkernelcparm.tar.gz/usr/localcd/usr/localtarxvzfarm.tar.gz/*editPATH*/cd/etcviprofile/*changePATH=/usr/local/arm/2.95.3/bin:$PATH*/3.changerootfsforourneededversioncd/root/hwangcproot-for-nfs-v5.tar.gz/source/mvrootfsrootfs_oldtarxvzfroot-for-nfs-v5.tar.gzmvrootrootfs4.unpackthekernelpackagecd/root/hwangtarxvzfkernel.tar.gzcdkernel/*nowstarttoaddanewboardinthiskernel*/5.editandchangearch/arm/config.inviarch/arm/config.in/*inchoice'ARMsystemtype'addanewlineafterS3C2410-basedCONFIG_ARCH_S3C2410\FS2410-basedCONFIG_ARCH_FS2410\*//*inthissectionif[$CONFIG_ARCH_EBSA110=y-o$CONFIG_FOOTBRIDGE=y-o\$CONFIG_ARCH_TBOX=y-o$CONFIG_ARCH_SHARK=y-o\$CONFIG_ARCH_NEXUSPCI=y-o$CONFIG_ARCH_CLPS711X=y-o\$CONFIG_ARCH_INTEGRATOR=y-o$CONFIG_ARCH_SA1100=y-o\$CONFIG_ARCH_L7200=y-o$CONFIG_ARCH_ANAKIN=y-o\$CONFIG_ARCH_S3C2400=y-o$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_CAMELOT=y-o$CONFIG_ARCH_MX1ADS=y];thendefine_boolCONFIG_CPU_32v4yelsedefine_boolCONFIG_CPU_32v4nfiaddanewoptionlikethisif[$CONFIG_ARCH_EBSA110=y-o$CONFIG_FOOTBRIDGE=y-o\$CONFIG_ARCH_TBOX=y-o$CONFIG_ARCH_SHARK=y-o\$CONFIG_ARCH_NEXUSPCI=y-o$CONFIG_ARCH_CLPS711X=y-o\$CONFIG_ARCH_INTEGRATOR=y-o$CONFIG_ARCH_SA1100=y-o\$CONFIG_ARCH_L7200=y-o$CONFIG_ARCH_ANAKIN=y-o\$CONFIG_ARCH_S3C2400=y-o$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_CAMELOT=y-o$CONFIG_ARCH_MX1ADS=y-o\$CONFIG_ARCH_FS2410=y];thendefine_boolCONFIG_CPU_32v4yelsedefine_boolCONFIG_CPU_32v4nfiafterthissection[if[$CONFIG_ARCH_S3C2410=y];thencomment'S3C2410Implementation'dep_bool'SMDK(MERITECHBOARD)'CONFIG_S3C2410_SMDK$CONFIG_ARCH_S3C2410dep_bool'changeAIJI'CONFIG_SMDK_AIJIdep_tristate'S3C2410USBfunctionsupport'CONFIG_S3C2410_USB$CONFIG_ARCH_S3C2100dep_tristate'SupportforS3C2410USBcharacterdeviceemulation'CONFIG_S3C2410_USB_CHAR$CONFIG_S3C2410_USBfi#/*CONFIG_ARCH_S3C2410*/addanewsectionlikethisif[$CONFIG_ARCH_FS2410=y];thencomment'FS2410Implementation'dep_bool'SMDK(MERITECHBOARD)'CONFIG_FS2410_SMDK$CONFIG_ARCH_FS2410dep_bool'changeAIJI'CONFIG_SMDK_AIJIdep_tristate'S3C2410USBfunctionsupport'CONFIG_FS2410_USB$CONFIG_ARCH_FS2100dep_tristate'SupportforS3C2410USBcharacterdeviceemulation'CONFIG_FS2410_USB_CHAR$CONFIG_FS2410_USBfi#/*CONFIG_ARCH_S3C2410*/inthissection[#ARM920Tif[$CONFIG_ARCH_S3C2400=y-o$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_MX1ADS=y];thendefine_boolCONFIG_CPU_ARM920Tyelseif[$CONFIG_ARCH_INTEGRATOR=y];thenbool'SupportARM920Tprocessor'CONFIG_CPU_ARM920Telsedefine_boolCONFIG_CPU_ARM920Tnfifiaddanewlinelikethis#ARM920Tif[$CONFIG_ARCH_S3C2400=y-o$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_MX1ADS=y-o$CONFIG_ARCH_FS2410=y];thendefine_boolCONFIG_CPU_ARM920Tyelseif[$CONFIG_ARCH_INTEGRATOR=y];thenbool'SupportARM920Tprocessor'CONFIG_CPU_ARM920Telsedefine_boolCONFIG_CPU_ARM920Tnfifiintthissectionif[$CONFIG_FOOTBRIDGE_HOST=y-o\$CONFIG_ARCH_SHARK=y-o\$CONFIG_ARCH_CLPS7500=y-o\$CONFIG_ARCH_EBSA110=y-o\$CONFIG_ARCH_CDB89712=y-o\$CONFIG_ARCH_EDB7211=y-o\$CONFIG_ARCH_S3C2400=y-o\$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_SA1100=y];thendefine_boolCONFIG_ISAyelsedefine_boolCONFIG_ISAnfiaddanewlinelikethisif[$CONFIG_FOOTBRIDGE_HOST=y-o\$CONFIG_ARCH_SHARK=y-o\$CONFIG_ARCH_CLPS7500=y-o\$CONFIG_ARCH_EBSA110=y-o\$CONFIG_ARCH_CDB89712=y-o\$CONFIG_ARCH_EDB7211=y-o\$CONFIG_ARCH_S3C2400=y-o\$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_FS2410=y-o\$CONFIG_ARCH_SA1100=y];thendefine_boolCONFIG_ISAyelsedefine_boolCONFIG_ISAnfiinthissectionif[$CONFIG_ARCH_NETWINDER=y-o\$CONFIG_ARCH_EBSA110=y-o\$CONFIG_ARCH_EBSA285=y-o\$CONFIG_ARCH_FTVPCI=y-o\$CONFIG_ARCH_SHARK=y-o\$CONFIG_ARCH_CO285=y-o\$CONFIG_ARCH_SA1100=y-o\$CONFIG_ARCH_LUBBOCK=y-o\$CONFIG_ARCH_PXA_IDP=y-o\$CONFIG_ARCH_PXA_CERF=y-o\$CONFIG_ARCH_INTEGRATOR=y-o\$CONFIG_ARCH_CDB89712=y-o\$CONFIG_ARCH_S3C2410=y-o\$CONFIG_ARCH_PREMIUM=y-o\$CONFIG_ARCH_NIPC2=y-o\$CONFIG_ARCH_P720T=y];thenbool'TimerandCPUusageLEDs'CONFIG_LEDSif[$CONFIG_LEDS=y
本文标题:ARM linux S3C2410 全程培训笔记
链接地址:https://www.777doc.com/doc-6126579 .html