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