blob: b8166087ddfed8fa6195a966357f83e92190fe52 [file] [log] [blame]
Bin Meng2f4d6bd2019-07-18 00:34:03 -07001.. SPDX-License-Identifier: GPL-2.0+
2
3MIPS
4====
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +09005
6Notes for the MIPS architecture port of U-Boot
7
8Toolchains
9----------
10
Bin Meng2f4d6bd2019-07-18 00:34:03 -070011 * `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 Kuribayashi880cc5a2008-04-22 22:47:27 +090014
15Known Issues
16------------
17
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090018 * 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 Meng2f4d6bd2019-07-18 00:34:03 -070026 [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 Kuribayashi880cc5a2008-04-22 22:47:27 +090029
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
34TODOs
35-----
36
37 * Probe CPU types, I-/D-cache and TLB size etc. automatically
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090038 * Secondary cache support missing
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090039 * Initialize TLB entries redardless of their use
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090040 * R2000/R3000 class parts are not supported
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090041 * Limited testing across different MIPS variants
Shinya Kuribayashi880cc5a2008-04-22 22:47:27 +090042 * 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 Schwierzeck855316e2013-01-12 19:09:11 +010045 * centralize/share more CPU code of MIPS32, MIPS64 and XBurst
Daniel Schwierzeck855316e2013-01-12 19:09:11 +010046 * support Qemu Malta