README 7.6 KB

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