微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > linux-2.6.14移植到S3C2440

linux-2.6.14移植到S3C2440

时间:11-22 来源:互联网 点击:

  1. dependonmajorandminornumber
  2. allocations.Devicedriversregisterentriesin/devwhichthen
  3. appearautomatically,whichmeansthatthesystemadministratordoes
  4. nothavetocreatecharacterandblockspecialdevicefilesinthe
  5. /devdirectoryusingthemknodcommand(orMAKEDEVscript)anymore.
  6. Thisisworkinprogress.Ifyouwanttousethis,you*must*read
  7. thematerialin,especially
  8. thefileREADMEthere.
  9. Notethatdevfsnolongermanages/dev/pts!IfyouareusingUNIX98
  10. ptys,youwillalsoneedtomountthe/dev/ptsfilesystem(devpts).
  11. Notethatdevfshasbeenobsoletedbyudev,
  12. .
  13. Ithasbeenstrippeddowntoabareminimumandisonlyprovidedfor
  14. legacyinstallationsthatuseitsnamingschemewhichis
  15. unfortunatelydifferentfromthenamesnormalLinuxinstallations
  16. use.
  17. Ifunsure,sayN.
  18. configDEVFS_MOUNT
  19. bool"Automaticallymountatboot"
  20. dependsonDEVFS_FS
  21. help
  22. ThisoptionappearsifyouhaveCONFIG_DEVFS_FSenabled.Setting
  23. thistoYwillmakethekernelautomaticallymountdevfsonto/dev
  24. whenthesystemisbooted,beforetheinitthreadisstarted.
  25. Youcanoverridethiswiththe"devfs=nomount"bootoption.
  26. Ifunsure,sayN.
  27. configDEVFS_DEBUG
  28. bool"Debugdevfs"
  29. dependsonDEVFS_FS
  30. help
  31. IfyousayYhere,thenthe/devfilesystemcodewillgenerate
  32. debuggingmessages.Seethefile
  33. formore
  34. details.
  35. Ifunsure,sayN.
  36. configDEVPTS_FS_XATTR
  37. bool"/dev/ptsExtendedAttributes"
  38. dependsonUNIX98_PTYS
  39. help
  40. Extendedattributesarename:valuepairsassociatedwithinodesby
  41. thekernelorbyusers(seetheattr(5)manualpage,orvisit
  42. fordetails).
  43. Ifunsure,sayN.
  44. configDEVPTS_FS_SECURITY
  45. bool"/dev/ptsSecurityLabels"
  46. dependsonDEVPTS_FS_XATTR
  47. help
  48. Securitylabelssupportalternativeaccesscontrolmodels
  49. implementedbysecuritymoduleslikeSELinux.Thisoption
  50. enablesanextendedattributehandlerforfilesecurity
  51. labelsinthe/dev/ptsfilesystem.
  52. Ifyouarenotusingasecuritymodulethatrequiresusing
  53. extendedattributesforfilesecuritylabels,sayN.
  54. configTMPFS
  55. bool"Virtualmemoryfilesystemsupport(formershmfs)"
  56. help
  57. Tmpfsisafilesystemwhichkeepsallfilesinvirtualmemory.
  58. Everythingintmpfsistemporaryinthesensethatnofileswillbe
  59. createdonyourharddrive.Thefilesliveinmemoryandswap
  60. space.Ifyouunmountatmpfsinstance,everythingstoredthereinis
  61. lost.
  62. Seefordetails.

7.内核裁剪

7.1内核配置文件

将arch/arm/configs/s3c2410_defconfig .config拷到内核目录树根下:
cp arch/arm/configs/s3c2410_defconfig .config
make menuconfig 将s3c2410_defconfig 导入,在s3c2410_defconfig基础上,裁剪内核。

7.2内核选项

Loadable module support >
[*] Enable loadable module support
[*] Automatic kernel module loading

System Type >
[*] S3C2410 DMA support

Floating point emulation >
[*] NWFPE math emulation

接下来要做的是对内核MTD子系统的设置

Device Drivers >
Memory Technology Devices (MTD) >
[*] MTD partitioning support /*支持MTD分区,这样我们在前面设置的分区才有意义*/
[*] Command line partition table parsing /*支持从命令行设置flash分区信息,灵活*/
RAM/ROM/Flash chip drivers >
<*> Detect flash chips by Common Flash Interface (CFI) probe
<*> Detect nonCFI AMD/JEDECcompatible flash chips
<*> Support for Intel/Sharp flash chips
<*> Support for AMD/Fujitsu flash chips
<*> Support for ROM chips in bus mapping
NAND Flash Device Drivers >
<*> NAND Device Support
<*> NAND Flash support for S3C2410/S3C2440 SoC
Character devices >
[*] Nonstandard serial port support
[*] S3C2410 RTC Driver

接下来做的是针对文件系统的设置

File systems >
<> Second extended fs support #去除对ext2的支持
Pseudo filesystems >
[*] /proc file system support
[*] Virtual memory file system support (former shm fs)
[*] /dev file system support (OBSOLETE)
[*] Automatically mount at boot (NEW)
这里会看到我们前先修改fs/Kconfig的成果,devfs已经被支持上了
Miscellaneous filesystems >
Network File Systems >
<*> NFS file system support

7.3编译

make即

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top