README 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. ARM Linux 2.6
  2. =============
  3. Please check <ftp://ftp.arm.linux.org.uk/pub/armlinux> for
  4. updates.
  5. Compilation of kernel
  6. ---------------------
  7. In order to compile ARM Linux, you will need a compiler capable of
  8. generating ARM ELF code with GNU extensions. GCC 2.95.1, EGCS
  9. 1.1.2, and GCC 3.3 are known to be good compilers. Fortunately, you
  10. needn't guess. The kernel will report an error if your compiler is
  11. a recognized offender.
  12. To build ARM Linux natively, you shouldn't have to alter the ARCH = line
  13. in the top level Makefile. However, if you don't have the ARM Linux ELF
  14. tools installed as default, then you should change the CROSS_COMPILE
  15. line as detailed below.
  16. If you wish to cross-compile, then alter the following lines in the top
  17. level make file:
  18. ARCH = <whatever>
  19. with
  20. ARCH = arm
  21. and
  22. CROSS_COMPILE=
  23. to
  24. CROSS_COMPILE=<your-path-to-your-compiler-without-gcc>
  25. eg.
  26. CROSS_COMPILE=arm-linux-
  27. Do a 'make config', followed by 'make Image' to build the kernel
  28. (arch/arm/boot/Image). A compressed image can be built by doing a
  29. 'make zImage' instead of 'make Image'.
  30. Bug reports etc
  31. ---------------
  32. Please send patches to the patch system. For more information, see
  33. http://www.arm.linux.org.uk/patches/info.html Always include some
  34. explanation as to what the patch does and why it is needed.
  35. Bug reports should be sent to linux-arm-kernel@lists.arm.linux.org.uk,
  36. or submitted through the web form at
  37. http://www.arm.linux.org.uk/forms/solution.shtml
  38. When sending bug reports, please ensure that they contain all relevant
  39. information, eg. the kernel messages that were printed before/during
  40. the problem, what you were doing, etc.
  41. Include files
  42. -------------
  43. Several new include directories have been created under include/asm-arm,
  44. which are there to reduce the clutter in the top-level directory. These
  45. directories, and their purpose is listed below:
  46. arch-* machine/platform specific header files
  47. hardware driver-internal ARM specific data structures/definitions
  48. mach descriptions of generic ARM to specific machine interfaces
  49. proc-* processor dependent header files (currently only two
  50. categories)
  51. Machine/Platform support
  52. ------------------------
  53. The ARM tree contains support for a lot of different machine types. To
  54. continue supporting these differences, it has become necessary to split
  55. machine-specific parts by directory. For this, the machine category is
  56. used to select which directories and files get included (we will use
  57. $(MACHINE) to refer to the category)
  58. To this end, we now have arch/arm/mach-$(MACHINE) directories which are
  59. designed to house the non-driver files for a particular machine (eg, PCI,
  60. memory management, architecture definitions etc). For all future
  61. machines, there should be a corresponding include/asm-arm/arch-$(MACHINE)
  62. directory.
  63. Modules
  64. -------
  65. Although modularisation is supported (and required for the FP emulator),
  66. each module on an ARM2/ARM250/ARM3 machine when is loaded will take
  67. memory up to the next 32k boundary due to the size of the pages.
  68. Therefore, modularisation on these machines really worth it?
  69. However, ARM6 and up machines allow modules to take multiples of 4k, and
  70. as such Acorn RiscPCs and other architectures using these processors can
  71. make good use of modularisation.
  72. ADFS Image files
  73. ----------------
  74. You can access image files on your ADFS partitions by mounting the ADFS
  75. partition, and then using the loopback device driver. You must have
  76. losetup installed.
  77. Please note that the PCEmulator DOS partitions have a partition table at
  78. the start, and as such, you will have to give '-o offset' to losetup.
  79. Request to developers
  80. ---------------------
  81. When writing device drivers which include a separate assembler file, please
  82. include it in with the C file, and not the arch/arm/lib directory. This
  83. allows the driver to be compiled as a loadable module without requiring
  84. half the code to be compiled into the kernel image.
  85. In general, try to avoid using assembler unless it is really necessary. It
  86. makes drivers far less easy to port to other hardware.
  87. ST506 hard drives
  88. -----------------
  89. The ST506 hard drive controllers seem to be working fine (if a little
  90. slowly). At the moment they will only work off the controllers on an
  91. A4x0's motherboard, but for it to work off a Podule just requires
  92. someone with a podule to add the addresses for the IRQ mask and the
  93. HDC base to the source.
  94. As of 31/3/96 it works with two drives (you should get the ADFS
  95. *configure harddrive set to 2). I've got an internal 20MB and a great
  96. big external 5.25" FH 64MB drive (who could ever want more :-) ).
  97. I've just got 240K/s off it (a dd with bs=128k); thats about half of what
  98. RiscOS gets; but it's a heck of a lot better than the 50K/s I was getting
  99. last week :-)
  100. Known bug: Drive data errors can cause a hang; including cases where
  101. the controller has fixed the error using ECC. (Possibly ONLY
  102. in that case...hmm).
  103. 1772 Floppy
  104. -----------
  105. This also seems to work OK, but hasn't been stressed much lately. It
  106. hasn't got any code for disc change detection in there at the moment which
  107. could be a bit of a problem! Suggestions on the correct way to do this
  108. are welcome.
  109. CONFIG_MACH_ and CONFIG_ARCH_
  110. -----------------------------
  111. A change was made in 2003 to the macro names for new machines.
  112. Historically, CONFIG_ARCH_ was used for the bonafide architecture,
  113. e.g. SA1100, as well as implementations of the architecture,
  114. e.g. Assabet. It was decided to change the implementation macros
  115. to read CONFIG_MACH_ for clarity. Moreover, a retroactive fixup has
  116. not been made because it would complicate patching.
  117. Previous registrations may be found online.
  118. <http://www.arm.linux.org.uk/developer/machines/>
  119. Kernel entry (head.S)
  120. --------------------------
  121. The initial entry into the kernel is via head.S, which uses machine
  122. independent code. The machine is selected by the value of 'r1' on
  123. entry, which must be kept unique.
  124. Due to the large number of machines which the ARM port of Linux provides
  125. for, we have a method to manage this which ensures that we don't end up
  126. duplicating large amounts of code.
  127. We group machine (or platform) support code into machine classes. A
  128. class typically based around one or more system on a chip devices, and
  129. acts as a natural container around the actual implementations. These
  130. classes are given directories - arch/arm/mach-<class> and
  131. include/asm-arm/arch-<class> - which contain the source files to
  132. support the machine class. This directories also contain any machine
  133. specific supporting code.
  134. For example, the SA1100 class is based upon the SA1100 and SA1110 SoC
  135. devices, and contains the code to support the way the on-board and off-
  136. board devices are used, or the device is setup, and provides that
  137. machine specific "personality."
  138. This fine-grained machine specific selection is controlled by the machine
  139. type ID, which acts both as a run-time and a compile-time code selection
  140. method.
  141. You can register a new machine via the web site at:
  142. <http://www.arm.linux.org.uk/developer/machines/>
  143. ---
  144. Russell King (15/03/2004)