Michal Simek
d7b5cc89d3
microblaze: Do not place u-boot to reserved memory location
Microblaze can also have reserved space in DT which u-boot has to avoid to
placing self to that location. The same change was done in Zynqmp by commit
ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory location").
This feature was tested with this memory description on kc705:
memory {
device_type = "memory";
reg = <0x80000000 0x40000000>;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
alloc@b00000000 {
reg = <0xb0000000 0x10000000>;
no-map;
};
alloc@a8000000 {
reg = <0xa8000000 0x00010000>;
no-map;
};
};
And in U-Boot log you can check u-boot relocation address and reserved
locations.
U-Boot 2022.01-03974-gb1b4c2dea9b9 (Feb 25 2022 - 11:59:48 +0100)
Model: Xilinx MicroBlaze
DRAM: 1 GiB
Flash: 128 MiB
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Model: Xilinx MicroBlaze
Net: AXI EMAC: 40c00000, phyaddr 7, interface gmii
eth0: ethernet@40c00000
U-BOOT for microblaze-generic
U-Boot-mONStR> bdi
...
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x40000000
...
relocaddr = 0xaff69000
...
lmb_dump_all:
memory.cnt = 0x1
memory[0] [0x80000000-0xbfffffff], 0x40000000 bytes flags: 0
reserved.cnt = 0x3
reserved[0] [0xa8000000-0xa800ffff], 0x00010000 bytes flags: 4
reserved[1] [0xafe87bb0-0xafffffff], 0x00178450 bytes flags: 0
reserved[2] [0xb0000000-0xbfffffff], 0x10000000 bytes flags: 4
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/ea0a8ccce723478eb518f6fdceb91d4f129efb68.1646122398.git.michal.simek@xilinx.com
2022-03-07 16:33:47 +01:00
..
2021-03-02 14:03:02 -05:00
2022-02-25 11:21:24 -05:00
2022-03-04 08:38:05 +01:00
2021-01-15 07:55:11 -05:00
2022-01-20 09:50:54 +01:00
2021-11-08 15:35:55 +08:00
2022-02-08 23:07:58 -05:00
2021-08-31 17:46:37 -04:00
2022-01-12 14:21:24 -05:00
2021-01-18 15:23:06 -05:00
2021-02-02 15:33:42 -05:00
2021-09-30 08:08:56 -04:00
2022-01-13 11:45:00 +02:00
2022-02-19 14:46:54 +01:00
2021-09-07 16:22:30 -04:00
2021-08-02 13:32:14 -04:00
2021-08-31 17:47:49 -04:00
2022-02-08 23:07:58 -05:00
2021-12-02 08:34:01 +02:00
2021-02-02 15:33:42 -05:00
2021-07-07 10:17:54 -04:00
2021-06-05 10:40:47 +02:00
2021-08-02 13:32:14 -04:00
2021-12-27 16:20:18 -05:00
2021-02-02 15:33:42 -05:00
2021-08-06 08:26:48 -04:00
2022-02-10 07:12:16 +01:00
2021-02-02 15:33:42 -05:00
2022-02-08 23:07:58 -05:00
2022-02-25 11:21:24 -05:00
2021-12-26 23:33:26 +01:00
2021-03-02 14:03:02 -05:00
2021-10-06 09:16:23 -04:00
2022-02-17 14:17:07 +01:00
2021-02-02 15:33:42 -05:00
2021-09-27 21:38:34 -04:00
2022-02-25 11:21:24 -05:00
2021-12-13 14:34:04 +01:00
2022-02-08 23:07:58 -05:00
2022-02-28 10:33:11 -05:00
2021-11-07 18:36:55 +01:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-09-04 12:26:01 -04:00
2022-02-10 11:18:13 +08:00
2021-12-24 14:56:58 +08:00
2021-08-02 13:32:14 -04:00
2021-09-25 09:46:15 -06:00
2022-02-19 23:32:23 +01:00
2021-09-07 16:22:30 -04:00
2021-02-02 15:33:42 -05:00
2022-02-19 14:46:54 +01:00
2022-01-19 18:11:34 +01:00
2022-02-08 23:07:58 -05:00
2022-02-25 11:21:24 -05: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
2021-02-02 15:33:42 -05:00
2021-09-04 11:42:41 -04:00
2022-02-25 11:21:24 -05:00
2021-09-07 16:22:30 -04:00
2022-02-10 07:12:16 +01:00
2021-02-02 15:33:42 -05:00
2021-08-31 17:46:37 -04:00
2022-02-01 15:08:07 +05:30
2021-03-02 14:03:02 -05:00
2021-07-31 09:59:58 +02:00
2022-02-28 11:59:35 +05:30
2021-02-02 15:33:42 -05:00
2021-09-17 12:10:44 -04:00
2021-12-27 16:20:19 -05:00
2021-02-15 10:16:45 -05:00
2021-09-07 16:22:30 -04:00
2022-02-05 13:38:39 +01:00
2021-10-11 15:02:50 -04:00
2022-02-10 07:12:16 +01:00
2021-02-02 15:33:42 -05:00
2021-09-30 08:08:56 -04:00
2021-10-19 12:36:50 +02:00
2021-12-02 16:43:52 +08:00
2021-02-02 15:33:42 -05:00
2021-09-30 08:08:56 -04:00
2021-09-30 08:08:56 -04:00
2021-02-02 15:33:42 -05:00
2022-02-08 11:00:04 -05:00
2022-02-08 23:07:58 -05:00
2021-10-13 14:18:30 -07:00
2021-04-08 23:59:50 +02: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-02-08 23:07:58 -05:00
2021-09-30 08:08:56 -04:00
2021-08-31 17:47:49 -04:00
2021-09-30 08:08:56 -04:00
2021-02-02 15:33:42 -05:00
2021-12-20 17:12:04 -05:00
2021-12-27 16:20:18 -05:00
2021-09-30 08:08:56 -04:00
2022-02-08 23:07:58 -05:00
2022-01-13 14:33:00 +09:00
2021-11-16 14:35:08 -05:00
2022-02-10 07:12:16 +01:00
2021-06-09 13:34:18 +02:00
2022-02-08 23:07:58 -05:00
2022-01-07 09:30:44 -05:00
2021-07-28 19:30:22 -04:00
2021-06-17 09:40:58 +08:00
2021-11-18 14:22:11 -05:00
2021-12-27 16:20:18 -05:00
2022-02-08 23:07:58 -05:00
2022-03-04 08:38:05 +01:00
2022-02-08 23:07:58 -05:00
2022-01-24 11:00:47 +01:00
2022-02-28 10:33:45 -05:00
2022-02-08 23:07:58 -05:00
2022-02-03 23:24:31 -05:00
2021-09-07 19:17:32 -04:00
2021-10-08 15:53:26 -04:00
2021-09-30 09:08:16 -04:00
2022-02-08 23:07:58 -05:00
2021-08-31 17:47:49 -04:00
2022-02-08 23:07:58 -05:00
2021-09-30 08:08:56 -04:00
2021-12-19 09:50:47 +01:00
2022-01-07 09:30:44 -05:00
2022-03-04 15:20:06 -05:00
2021-07-06 14:11:50 -04:00
2022-02-08 23:07:58 -05:00
2021-08-31 17:47:49 -04:00
2022-02-08 23:07:58 -05:00
2022-02-01 15:04:24 +05:30
2022-01-08 11:16:03 -05:00
2022-02-08 23:07:58 -05:00
2021-08-31 17:47:49 -04:00
2021-04-08 20:29:53 +02:00
2022-02-08 23:07:58 -05:00
2022-02-08 23:07:58 -05: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-03-07 16:33:47 +01:00
2021-07-19 08:44:15 +02:00