setup.rst 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. =============================================
  2. Kernel initialisation parameters on ARM Linux
  3. =============================================
  4. The following document describes the kernel initialisation parameter
  5. structure, otherwise known as 'struct param_struct' which is used
  6. for most ARM Linux architectures.
  7. This structure is used to pass initialisation parameters from the
  8. kernel loader to the Linux kernel proper, and may be short lived
  9. through the kernel initialisation process. As a general rule, it
  10. should not be referenced outside of arch/arm/kernel/setup.c:setup_arch().
  11. There are a lot of parameters listed in there, and they are described
  12. below:
  13. page_size
  14. This parameter must be set to the page size of the machine, and
  15. will be checked by the kernel.
  16. nr_pages
  17. This is the total number of pages of memory in the system. If
  18. the memory is banked, then this should contain the total number
  19. of pages in the system.
  20. If the system contains separate VRAM, this value should not
  21. include this information.
  22. ramdisk_size
  23. This is now obsolete, and should not be used.
  24. flags
  25. Various kernel flags, including:
  26. ===== ========================
  27. bit 0 1 = mount root read only
  28. bit 1 unused
  29. bit 2 0 = load ramdisk
  30. bit 3 0 = prompt for ramdisk
  31. ===== ========================
  32. rootdev
  33. major/minor number pair of device to mount as the root filesystem.
  34. video_num_cols / video_num_rows
  35. These two together describe the character size of the dummy console,
  36. or VGA console character size. They should not be used for any other
  37. purpose.
  38. It's generally a good idea to set these to be either standard VGA, or
  39. the equivalent character size of your fbcon display. This then allows
  40. all the bootup messages to be displayed correctly.
  41. video_x / video_y
  42. This describes the character position of cursor on VGA console, and
  43. is otherwise unused. (should not be used for other console types, and
  44. should not be used for other purposes).
  45. memc_control_reg
  46. MEMC chip control register for Acorn Archimedes and Acorn A5000
  47. based machines. May be used differently by different architectures.
  48. sounddefault
  49. Default sound setting on Acorn machines. May be used differently by
  50. different architectures.
  51. adfsdrives
  52. Number of ADFS/MFM disks. May be used differently by different
  53. architectures.
  54. bytes_per_char_h / bytes_per_char_v
  55. These are now obsolete, and should not be used.
  56. pages_in_bank[4]
  57. Number of pages in each bank of the systems memory (used for RiscPC).
  58. This is intended to be used on systems where the physical memory
  59. is non-contiguous from the processors point of view.
  60. pages_in_vram
  61. Number of pages in VRAM (used on Acorn RiscPC). This value may also
  62. be used by loaders if the size of the video RAM can't be obtained
  63. from the hardware.
  64. initrd_start / initrd_size
  65. This describes the kernel virtual start address and size of the
  66. initial ramdisk.
  67. rd_start
  68. Start address in sectors of the ramdisk image on a floppy disk.
  69. system_rev
  70. system revision number.
  71. system_serial_low / system_serial_high
  72. system 64-bit serial number
  73. mem_fclk_21285
  74. The speed of the external oscillator to the 21285 (footbridge),
  75. which control's the speed of the memory bus, timer & serial port.
  76. Depending upon the speed of the cpu its value can be between
  77. 0-66 MHz. If no params are passed or a value of zero is passed,
  78. then a value of 50 Mhz is the default on 21285 architectures.
  79. paths[8][128]
  80. These are now obsolete, and should not be used.
  81. commandline
  82. Kernel command line parameters. Details can be found elsewhere.