Skip to contentSkip to conversation

doc: at91: delete done TODOs

PATCH In review Ahmad Fatoum 3 participants 4 messages Oct 14, 2020 – Oct 19, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 doc: at91: delete done TODOs

e52a250d2381 ("ARM: boards: Harmonize barebox_arm_reset_vector() prototype") has unified the prototype, so we can drop this TODO item.

---
 Documentation/boards/at91.rst | 9 ---------
 1 file changed, 9 deletions(-)
Documentation/boards/at91.rst +0 -9
index f25cb01bb1e1..3ac4b6a24451 100644
@@ -35,15 +35,6 @@ TODO
 ----
 This is a list of AT91 specific TODO items, listed in no particular order.
 
-* fix prototype for barebox_arm_reset_vector. Introduce the prototype:
-
-.. code-block:: c
-
-  void __naked __bare_init barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2)
-
-
-This will unify the prototype for the reset vector for multi image and standalone images
-
 * Update remaining boards to DT
 * Update remaing boards to support multi image boot
 * Get bootstrap working in combination with multi image
Signature · 7 lines
2.28.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 2/2 ARM: at91: define new at91_multi_defconfig

We now have 5 boards supporting multi-image, so add a defconfig that covers these three boards:
- Microchip KSZ-9477 EVB
- Microchip SAMA5D27-SOM1-EK
- Groboards Giantboard

For the latter two, two images are built. One with only a first stage PBL and another with a second-stage barebox proper.

Two more at91 multi-image boards are left out:
- Atmel AT91SAM9263-EK
- Atmel AT91SAM9x5 Series Evaluation Kit

They have a 256K barebox NAND partition in the device tree, so this multi-image build would not fit and I don't have the hardware to test them anyway.

---
 Documentation/boards/at91.rst                 | 20 ++++++-
 .../boards/at91/microchip-ksz9477-evb.rst     | 11 ----
 ...477_evb_defconfig => at91_multi_defconfig} | 53 ++++++++++++++++++-
 3 files changed, 70 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/boards/at91/microchip-ksz9477-evb.rst
 rename arch/arm/configs/{microchip_ksz9477_evb_defconfig => at91_multi_defconfig} (55%)
Documentation/boards/at91.rst +19 -1
index 3ac4b6a24451..e45feee94733 100644
@@ -21,7 +21,24 @@ processor and then load and execute barebox.
 
 AT91 boards
 -----------
-The majority of the supported boards have a short entry here.
+Newer boards can be built with the ``at91_multi_defconfig``:
+
+.. code-block:: sh
+
+  make ARCH=arm at91_multi_defconfig
+
+The resulting images will be placed under ``images/``:
+
+::
+
+  barebox-groboards-sama5d27-giantboard.img
+  barebox-groboards-sama5d27-giantboard-xload-mmc.img
+  barebox-microchip-ksz9477-evb.img
+  barebox-sama5d27-som1-ek.img
+  barebox-sama5d27-som1-ek-xload-mmc.img
+
+Older supported boards have yet to be migrated to multi-image and/or the
+new defconfig. The majority of these have a short entry here.
 For each board defconfig file(s) are noted but barebox may include additional
 defconfig files and may also include boards not included in the following.
 
@@ -37,6 +54,7 @@ This is a list of AT91 specific TODO items, listed in no particular order.
 
 * Update remaining boards to DT
 * Update remaing boards to support multi image boot
+* Include remaining boards in ``at91_multi_defconfig``
 * Get bootstrap working in combination with multi image
 * Introduce defaultenv2 for all boards
 * Add pwm driver (required to support backlight)
Documentation/boards/at91/microchip-ksz9477-evb.rst deleted +0 -11
deleted file mode 100644
index 4c4c4aecbfb3..000000000000
@@ -1,11 +0,0 @@
-Microchip KSZ 9477 Evaluation board
-===================================
-
-This is an evaluation board for a switch that uses the at91sam9x5 CPU.
-The board uses Device Tree and supports multi image.
-
-Building barebox:
-
-.. code-block:: sh
-
-  make ARCH=arm microchip_ksz9477_evb_defconfig
arch/arm/configs/at91_multi_defconfig renamed from arch/arm/configs/microchip_ksz9477_evb_defconfig +51 -2

91 lines not on this page · raw message

Signature · 7 lines
2.28.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Re: [PATCH 2/2] ARM: at91: define new at91_multi_defconfig

Quoted 6 lines · Ahmad Fatoum

We now have 5 boards supporting multi-image, so add a defconfig that covers these three boards:
- Microchip KSZ-9477 EVB
- Microchip SAMA5D27-SOM1-EK
- Groboards Giantboard

Quoted 6 lines

For the latter two, two images are built. One with only a first stage PBL and another with a second-stage barebox proper.

Two more at91 multi-image boards are left out:
- Atmel AT91SAM9263-EK
- Atmel AT91SAM9x5 Series Evaluation Kit

With the updated NAND partitioning I enabled these as well for the at91_multi_defconfig.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
In reply to Ahmad Fatoum

Hi Ahmad.

Quoted 5 lines · Ahmad Fatoum

e52a250d2381 ("ARM: boards: Harmonize barebox_arm_reset_vector() prototype") has unified the prototype, so we can drop this TODO item.

Nice!
My limited hacking time is wasted^Wwused for DRM hacking these dyas so no time for barebox love :-(

Sam

Quoted 26 lines
---
 Documentation/boards/at91.rst | 9 ---------
 1 file changed, 9 deletions(-)
Documentation/boards/at91.rst +0 -9
index f25cb01bb1e1..3ac4b6a24451 100644
@@ -35,15 +35,6 @@ TODO
 ----
 This is a list of AT91 specific TODO items, listed in no particular order.
 
-* fix prototype for barebox_arm_reset_vector. Introduce the prototype:
-
-.. code-block:: c
-
-  void __naked __bare_init barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2)
-
-
-This will unify the prototype for the reset vector for multi image and standalone images
-
 * Update remaining boards to DT
 * Update remaing boards to support multi image boot
 * Get bootstrap working in combination with multi image
Signature · 1 line
2.28.0

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox