Bin Meng | 2f4d6bd | 2019-07-18 00:34:03 -0700 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | MIPS |
| 4 | ==== |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 5 | |
| 6 | Notes for the MIPS architecture port of U-Boot |
| 7 | |
| 8 | Toolchains |
| 9 | ---------- |
| 10 | |
Bin Meng | 2f4d6bd | 2019-07-18 00:34:03 -0700 | [diff] [blame] | 11 | * `ELDK < DULG < DENX <http://www.denx.de/wiki/DULG/ELDK>`_ |
| 12 | * `Embedded Debian -- Cross-development toolchains <http://www.emdebian.org/crosstools.html>`_ |
| 13 | * `Buildroot <http://buildroot.uclibc.org/>`_ |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 14 | |
| 15 | Known Issues |
| 16 | ------------ |
| 17 | |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 18 | * Cache incoherency issue caused by do_bootelf_exec() at cmd_elf.c |
| 19 | |
| 20 | Cache will be disabled before entering the loaded ELF image without |
| 21 | writing back and invalidating cache lines. This leads to cache |
| 22 | incoherency in most cases, unless the code gets loaded after U-Boot |
| 23 | re-initializes the cache. The more common uImage 'bootm' command does |
| 24 | not suffer this problem. |
| 25 | |
Bin Meng | 2f4d6bd | 2019-07-18 00:34:03 -0700 | [diff] [blame] | 26 | [workaround] To avoid this cache incoherency: |
| 27 | - insert flush_cache(all) before calling dcache_disable(), or |
| 28 | - fix dcache_disable() to do both flushing and disabling cache. |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 29 | |
| 30 | * Note that Linux users need to kill dcache_disable() in do_bootelf_exec() |
| 31 | or override do_bootelf_exec() not to disable I-/D-caches, because most |
| 32 | Linux/MIPS ports don't re-enable caches after entering kernel_entry. |
| 33 | |
| 34 | TODOs |
| 35 | ----- |
| 36 | |
| 37 | * Probe CPU types, I-/D-cache and TLB size etc. automatically |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 38 | * Secondary cache support missing |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 39 | * Initialize TLB entries redardless of their use |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 40 | * R2000/R3000 class parts are not supported |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 41 | * Limited testing across different MIPS variants |
Shinya Kuribayashi | 880cc5a | 2008-04-22 22:47:27 +0900 | [diff] [blame] | 42 | * Due to cache initialization issues, the DRAM on board must be |
| 43 | initialized in board specific assembler language before the cache init |
| 44 | code is run -- that is, initialize the DRAM in lowlevel_init(). |
Daniel Schwierzeck | 855316e | 2013-01-12 19:09:11 +0100 | [diff] [blame] | 45 | * centralize/share more CPU code of MIPS32, MIPS64 and XBurst |
Daniel Schwierzeck | 855316e | 2013-01-12 19:09:11 +0100 | [diff] [blame] | 46 | * support Qemu Malta |