README.nokia_rx51 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Board: Nokia RX-51 aka N900
  2. This board definition results in a u-boot.bin which can be chainloaded
  3. from NOLO in qemu or on a real N900. It does very little hardware config
  4. because NOLO has already configured the board. Only needed is enabling
  5. internal eMMC memory via twl4030 regulator which is not enabled by NOLO.
  6. NOLO is expecting a kernel image and will treat any image it finds in
  7. onenand as such. This u-boot is intended to be flashed to the N900 like
  8. a kernel. In order to transparently boot the original kernel, it will be
  9. appended to u-boot.bin at 0x40000. NOLO will load the entire image into
  10. (random) memory and execute u-boot, which saves hw revision, boot reason
  11. and boot mode ATAGs set by NOLO. Then the bootscripts will attempt to load
  12. uImage or boot.scr from a fat, ext2/ext3 or ext4 filesystem in external
  13. SD card or internal eMMC memory. If this fails or keyboard is closed then
  14. the appended kernel image will be booted using some generated and some
  15. stored ATAGs (see boot order).
  16. There is support for hardware watchdog. Hardware watchdog is started by
  17. NOLO so u-boot must kick watchdog to prevent reboot device (but not very
  18. often, max every 2 seconds). There is also support for framebuffer display
  19. output with ANSI espace codes and the N900 HW keyboard input. USB tty works
  20. but is disabled because it prevents the current Maemo kernel from booting.
  21. When U-Boot is starting it enable IBE bit in Auxiliary Control Register,
  22. which is needed for Thumb-2 ISA support. It is workaround for errata 430973.
  23. Default boot order:
  24. * 0. if keyboard is closed boot automatically attached kernel image
  25. * 1. try boot from external SD card
  26. * 2. try boot from internal eMMC memory
  27. * 3. try boot from attached kernel image
  28. Boot from SD or eMMC in this order:
  29. * 1.
  30. * 1.1 find boot.scr on first fat partition
  31. * 1.2 find uImage on first fat parition
  32. * 1.3 same order for 2. - 4. fat partition
  33. * 2. same as 1. but for ext2/3 partition
  34. * 3. same as 1. but for ext4 partition
  35. Available additional commands/variables:
  36. * run sercon - Use serial port for control
  37. * run usbcon - Use usbtty for control
  38. * run vgacon - Use framebuffer and HW keyboard for control (default)
  39. * run sdboot - Boot from external SD card (see boot order)
  40. * run emmcboot - Boot from internal eMMC memory (see boot order)
  41. * run attachboot - Boot attached kernel image (attached to U-Boot binary)
  42. * run scriptload - Load boot script ${mmcscriptfile}
  43. * run scriptboot - Run loaded boot script
  44. * run kernload - Load kernel image ${mmckernfile}
  45. * run initrdload - Load initrd image ${mmcinitrdfile}
  46. * run kernboot - Boot loaded kernel image
  47. * run kerninitrdboot - Boot loaded kernel image with loaded initrd image
  48. * run trymmcscriptboot - Try to load and boot script ${mmcscriptfile}
  49. * run trymmckernboot - Try to load and boot kernel image ${mmckernfile}
  50. * run trymmckerninitrdboot - Try to load and boot kernel image ${mmckernfile}
  51. with initrd image ${mmcinitrdfile}
  52. Additional variables for loading files from mmc:
  53. * mmc ${mmcnum} (0 - external, 1 - internal)
  54. * partition number ${mmcpart} (1 - 4)
  55. * parition type ${mmctype} (fat, ext2)
  56. Additional varuables for booting kernel:
  57. * setup_omap_atag - Add OMAP table into atags structure (needs maemo kernel)
  58. * setup_console_atag - Enable serial console in OMAP table
  59. * setup_boot_reason_atag - Change boot reason in OMAP table
  60. * setup_boot_mode_atag - Change boot mode in OMAP table
  61. USB TTY:
  62. Maemo kernel 2.6.28 will crash if u-boot enable usb tty. So USB TTY is disabled.
  63. For enabling USB TTY just add this line to file include/configs/nokia_rx51.h
  64. #define CONFIG_USB_TTY
  65. ONENAND support:
  66. ONENAND support is disabled because not working yet and cause linux kernel to
  67. crash or no access to mtd. For enabling ONENAND support add this line at begin
  68. of file include/configs/nokia_rx51.h
  69. #define ONENAND_SUPPORT
  70. UBIFS support:
  71. UBIFS support is disabled, because U-Boot image is too big and cannot be
  72. flashed with attached zImage to RX-51 kernel nand area. For enabling UBIFS
  73. support first enable ONENAND support and then add this line at begin of file
  74. include/configs/nokia_rx51.h
  75. #define UBIFS_SUPPORT