Bin Meng
cb052d7712
riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+
...
Since OpenSBI commit bf3ef53bb7f5 ("firmware: Enable FW_PIC by default"),
OpenSBI runs directly at the load address without any code movement.
This causes the SPL version of QEMU 'virt' U-Boot does not boot Linux
kernel anymore. In that case, OpenSBI is loaded and runs at 0x81000000,
and it creates a 512KiB PMP window from that address. When booting
the Linux kernel, moving kernel to its linking address 0x80200000
overlaps the PMP window, and a PMP access failure is raised.
Update SPL_OPENSBI_LOAD_ADDR to load OpenSBI to a safe address.
Reported-by: Yangjie Zhang <pyjmstr@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Yangjie Zhang <pyjmstr@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
2022-10-20 15:22:33 +08:00
..
2022-08-04 15:32:20 -04:00
2022-08-23 12:35:37 +02:00
2022-08-20 16:17:50 -04:00
2022-08-11 18:46:07 +08:00
2022-04-28 09:26:44 -04:00
2022-06-28 17:11:48 -04:00
2022-09-29 10:10:39 -04:00
2022-09-18 10:26:33 +02:00
2022-10-17 21:17:12 -06:00
2022-07-05 17:03:02 -04:00
2021-09-07 16:22:30 -04:00
2022-08-12 16:10:50 -04:00
2022-05-20 12:36:48 +02:00
2022-04-10 08:44:13 +03:00
2022-09-23 15:12:42 -04:00
2022-09-18 22:56:18 +02:00
2022-08-23 12:40:34 +02:00
2022-09-15 14:22:08 -04:00
2021-08-02 13:32:14 -04:00
2021-12-27 16:20:18 -05:00
2021-08-06 08:26:48 -04:00
2022-04-18 11:25:13 +08:00
2022-02-10 07:12:16 +01:00
2022-08-04 16:18:47 -04:00
2022-08-20 21:18:15 -04:00
2022-07-05 17:04:01 -04:00
2022-03-14 15:20:40 +08:00
2022-03-02 13:59:29 -05:00
2022-06-23 12:58:18 -04:00
2022-09-18 12:41:57 +02:00
2022-09-20 18:30:02 +02:00
2022-06-23 12:58:18 -04:00
2022-02-25 11:21:24 -05:00
2022-10-18 08:34:25 +02:00
2022-02-08 23:07:58 -05:00
2022-06-06 18:01:21 -04:00
2021-11-07 18:36:55 +01:00
2021-09-04 12:26:01 -04:00
2022-10-20 15:22:33 +08:00
2022-10-18 08:40:59 +02:00
2021-08-02 13:32:14 -04:00
2022-09-04 20:00:38 +08:00
2022-09-19 08:38:32 -04:00
2022-07-05 17:03:01 -04:00
2022-08-04 16:18:47 -04:00
2022-09-18 22:56:09 +02:00
2022-10-17 21:17:12 -06:00
2022-04-01 10:28:46 -04:00
2022-07-01 15:55:54 -04:00
2021-08-31 17:47:49 -04:00
2021-10-27 16:38:26 -04:00
2021-09-30 08:08:56 -04:00
2021-07-28 19:30:22 -04:00
2022-06-22 21:30:05 -04:00
2022-09-23 15:12:42 -04:00
2022-10-17 21:17:12 -06:00
2021-09-07 16:22:30 -04:00
2022-02-10 07:12:16 +01:00
2022-08-20 21:18:15 -04:00
2022-04-28 09:26:44 -04:00
2022-10-06 10:13:38 +02:00
2021-07-31 09:59:58 +02:00
2022-09-06 09:10:41 +08:00
2022-08-10 13:46:55 -04:00
2022-08-20 21:18:15 -04:00
2022-08-20 21:18:15 -04:00
2022-07-08 17:57:34 -04:00
2021-09-07 16:22:30 -04:00
2022-09-18 10:26:33 +02:00
2022-08-04 16:18:47 -04:00
2022-09-19 16:07:12 -04:00
2022-08-23 12:35:37 +02:00
2022-09-23 15:09:15 -04:00
2022-09-26 11:27:30 -04:00
2021-12-02 16:43:52 +08:00
2022-04-18 11:25:13 +08:00
2022-04-28 09:26:44 -04:00
2022-10-18 13:40:40 -04:00
2022-02-08 23:07:58 -05:00
2022-10-06 21:05:17 -04:00
2021-10-13 14:18:30 -07:00
2021-09-30 08:08:56 -04:00
2021-07-07 20:34:02 +08:00
2022-02-08 23:07:58 -05:00
2022-08-20 16:40:14 -04:00
2022-03-10 13:57:04 -05:00
2022-09-18 22:56:10 +02:00
2021-08-31 17:47:49 -04:00
2022-08-26 10:55:46 -04:00
2022-04-18 11:25:13 +08:00
2022-09-23 15:12:42 -04:00
2022-09-02 13:25:01 +02:00
2022-04-18 11:25:13 +08:00
2022-04-18 11:25:13 +08:00
2022-04-08 09:05:20 -04:00
2022-08-20 21:18:15 -04:00
2022-07-26 02:30:56 -06:00
2022-02-10 07:12:16 +01:00
2021-06-09 13:34:18 +02:00
2022-08-04 16:18:47 -04:00
2022-01-07 09:30:44 -05:00
2021-07-28 19:30:22 -04:00
2022-03-15 17:43:11 +08:00
2022-10-06 21:05:17 -04:00
2022-08-04 16:18:47 -04:00
2022-02-08 23:07:58 -05:00
2022-07-25 15:08:23 +02:00
2022-02-08 23:07:58 -05:00
2022-10-18 08:40:59 +02:00
2022-02-28 10:33:45 -05:00
2022-02-08 23:07:58 -05:00
2022-06-26 11:22:54 +01:00
2022-08-23 12:38:47 +02:00
2022-09-29 16:07:57 -04:00
2022-07-05 17:03:01 -04:00
2022-04-12 15:36:18 +02:00
2021-08-31 17:47:49 -04:00
2022-02-08 23:07:58 -05:00
2022-05-23 21:28:07 +02:00
2022-08-23 12:35:37 +02:00
2022-01-07 09:30:44 -05:00
2022-10-03 15:39:46 -04:00
2021-07-06 14:11:50 -04:00
2022-09-19 16:07:12 -04:00
2021-08-31 17:47:49 -04:00
2022-02-08 23:07:58 -05:00
2022-08-10 13:46:55 -04:00
2022-01-08 11:16:03 -05:00
2022-07-05 17:03:02 -04:00
2022-06-23 12:58:18 -04:00
2022-08-20 21:18:15 -04:00
2021-09-17 12:10:44 -04:00
2021-12-27 08:41:38 -05:00
2021-12-27 16:20:18 -05:00
2022-10-10 12:28:08 +02:00
2022-08-23 12:35:37 +02:00