ptee: build common code depending on CONFIG_HAVE_OPTEE
https://git.pengutronix.de/cgit/barebox/commit/?id=3f575583d798 (link may
not be stable)
Best regards,
--
Sascha Hauer
be stable)
Best regards,
--
Sascha Hauer
with available RAM
https://git.pengutronix.de/cgit/barebox/commit/?id=2c04db069871 (link may
not be stable)
[2/2] commands: dmesg: support aborting dmesg output with ctrl-c
https://git.pengutronix.de/cgit/barebox/commit/?id=9eb0055d0ae9 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Mon, Mar 04, 2024 at 07:55:58PM +0100, Ahmad Fatoum wrote:
> of: fdt: have fdt_machine_is_compatible() return a score
>
> fdt_machine_is_compatible() currently returns false on mismatch and
> true on match. of_machine_is_compatible(), that it's meant to partially
> replace, returns a positive
.de/cgit/barebox/commit/?id=d10e80e4d683 (link may
not be stable)
Best regards,
--
Sascha Hauer
ds: efi_handle_dump: don't ignore failure to parse GUID
https://git.pengutronix.de/cgit/barebox/commit/?id=281c2b56b928 (link
may not be stable)
Best regards,
--
Sascha Hauer
Hi Antony,
On Sun, Mar 03, 2024 at 09:58:03PM +0300, Antony Pavlov wrote:
> Hi all!
>
> In the message [1] Sascha proposed to have the barebox network stack
> and picotcp in parallel.
>
> This approach is used in the branch 20240303.picotcp-1.7.0 from
> https://github.com/frantony/barebox/ repo
On Mon, Mar 04, 2024 at 10:37:06AM +0100, Sascha Hauer wrote:
> On Fri, Mar 01, 2024 at 02:04:43PM +0100, Ahmad Fatoum wrote:
> > When finding compatible bootloader spec files, barebox will unflatten
> > each DTB in turn, allocating objects for each property and node, only to
>
(link may
not be stable)
Best regards,
--
Sascha Hauer
r i.MX6DL board variant
https://git.pengutronix.de/cgit/barebox/commit/?id=7328dbe79895 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Fri, 01 Mar 2024 12:19:15 +0100, Sascha Hauer wrote:
> The get_response argument to imx9_s3mua_call() is always set to true by
> the callers. It must be like that because in the ELE API Reference Guide
> every call into the ELE has a response. Drop the unnecessary argument.
>
On Fri, Mar 01, 2024 at 02:04:43PM +0100, Ahmad Fatoum wrote:
> When finding compatible bootloader spec files, barebox will unflatten
> each DTB in turn, allocating objects for each property and node, only to
> compare a single property and then free all the allocations again.
>
> Given that this
it wasn't possible to read as much
>
> [...]
Applied, thanks!
[1/1] mtd: don't try to detect UBI in too small flash partitions
https://git.pengutronix.de/cgit/barebox/commit/?id=023cae6caa63 (link may
not be stable)
Best regards,
--
Sascha Hauer
PECIFIC_AREA
https://git.pengutronix.de/cgit/barebox/commit/?id=8cada69e81be (link may
not be stable)
Best regards,
--
Sascha Hauer
gt;
> [...]
Applied, thanks!
[1/1] mci: dwcmshc-sdhci: add support for Kalray Coolidge v2 SoC eMMC controller
https://git.pengutronix.de/cgit/barebox/commit/?id=8648400a46de (link may
not be stable)
Best regards,
--
Sascha Hauer
The get_response argument to imx9_s3mua_call() is always set to true by
the callers. It must be like that because in the ELE API Reference Guide
every call into the ELE has a response. Drop the unnecessary argument.
Signed-off-by: Sascha Hauer
---
arch/arm/mach-imx/ele.c | 34
ngutronix.de/cgit/barebox/commit/?id=af694bdae717 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Thu, 29 Feb 2024 08:18:24 +0100, Sascha Hauer wrote:
> Traditionally barebox starts partition numbers at 0. This was changed
> in bdc3cb54dc to start at 1. This was done to make the parted numbering
> consistent to the Linux tool. This breaks boot scripts though which
&
follow, because the header isn't written to the scratch
> area is printed with error log level.
>
> [...]
Applied, thanks!
[1/1] optee: don't warn about missing OP-TEE header
https://git.pengutronix.de/cgit/barebox/commit/?id=d69c84346b30 (link may
not be stable)
Best regards,
--
Sascha Hauer
[1/1] optee: check optee_verify_header argument for error pointers
https://git.pengutronix.de/cgit/barebox/commit/?id=231e81f8645c (link may
not be stable)
Best regards,
--
Sascha Hauer
arebox/commit/?id=a6e780cbe3a5 (link may
not be stable)
Best regards,
--
Sascha Hauer
mapping the buffer, which is
> detected by CONFIG_DMA_API_DEBUG:
>
> [...]
Applied, thanks!
[1/1] fixup! usb: xhci: reset endpoint on USB stall
https://git.pengutronix.de/cgit/barebox/commit/?id=aed18e44bbd9 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Fri, Mar 01, 2024 at 08:44:00AM +0100, Ahmad Fatoum wrote:
> usb: xhci: call dma_unmap_single in all error paths
>
> A new early exit for stalled USB was added that resets the endpoint
> before returning an error code to the caller.
>
> This unintentionally happened before unmapping the
On Mon, 05 Feb 2024 13:53:01 +0100, Sascha Hauer wrote:
> The PMIC is needs to be configured on the tqm93xx to properly reset the
> board, see the board specific initialisation code. We had a PMIC node
> in our downstream dts file which we dropped in favour for using the
>
On Tue, 27 Feb 2024 10:39:23 +0300, Antony Pavlov wrote:
>
Applied, thanks!
[1/1] net: drop unused rarp.h
https://git.pengutronix.de/cgit/barebox/commit/?id=3b38db4c3219 (link may
not be stable)
Best regards,
--
Sascha Hauer
X8M: drop function prototype for removed imx8m_uid
https://git.pengutronix.de/cgit/barebox/commit/?id=92a798ed6b94 (link may
not be stable)
[2/2] env: export getenv_ullx() helper
https://git.pengutronix.de/cgit/barebox/commit/?id=3aac1a9dfc97 (link may
not be stable)
Best regards,
--
Sascha Hauer
stable)
[6/6] usb: print number of skipped OTG controllers when scanning
https://git.pengutronix.de/cgit/barebox/commit/?id=0b90c781d183 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Wed, 28 Feb 2024 11:21:41 +0100, Sascha Hauer wrote:
> When the rx FIFO overruns then no new characters are received, even
> when the FIFO is read from and space becomes available again.
> Acknowledge the overrun in this case to let the UART continue to work.
>
>
Applied
Hi Ahmad,
On Wed, Feb 28, 2024 at 05:03:04PM +0100, Ahmad Fatoum wrote:
> The detect callback will try to detect an UBI volume inside a partition.
> If that partition happens to be smaller than 512 bytes, detect will fail
> with -EINVAL.
This 512 bytes here is confusing. You are referring to the
tions: efi: implement partition manipulation support")
Signed-off-by: Sascha Hauer
---
common/partitions/efi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 51e92f65c5..703d23c715 100644
--- a/common/partitions/e
tions: dos: implement partition manipulation support")
Signed-off-by: Sascha Hauer
---
Notes:
Changes since v1:
- fix partuuid number passed to Linux
common/partitions/dos.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/partitions/dos.
On Wed, Feb 28, 2024 at 06:37:45PM +0100, Ahmad Fatoum wrote:
> Hello Sascha,
>
> On 19.02.24 09:31, Sascha Hauer wrote:
> > - pentry = xzalloc(sizeof(*pentry));
> > + dpart = xzalloc(sizeof(*dpart));
> > + dpart->boot_indic
tions: efi: implement partition manipulation support")
Signed-off-by: Sascha Hauer
---
common/partitions/efi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 51e92f65c5..703d23c715 100644
--- a/common/partitions/e
tions: dos: implement partition manipulation support")
Signed-off-by: Sascha Hauer
---
common/partitions/dos.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 47b5764124..bec5ee60bc 100644
--- a/common/partitions/d
able)
[3/3] arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros
https://git.pengutronix.de/cgit/barebox/commit/?id=f061388ffe24 (link may
not be stable)
Best regards,
--
Sascha Hauer
On Wed, Feb 28, 2024 at 02:50:58PM +0300, Antony Pavlov wrote:
> On Wed, 28 Feb 2024 10:20:27 +0100
> Sascha Hauer wrote:
>
>
> Hi Sascha!
>
> > On Wed, Feb 28, 2024 at 10:26:15AM +0300, Antony Pavlov wrote:
> > > On Sat, 17 Feb 2024 09:51:02 +0100
> >
On Wed, Feb 28, 2024 at 09:46:51AM +0100, Stefan Kerkmann wrote:
> Hi Sascha,
>
> On 27.02.24 09:44, Sascha Hauer wrote:
> > On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote:
> > > Instead of passing in configuration parameters at runtime we can utilize
When the rx FIFO overruns then no new characters are received, even
when the FIFO is read from and space becomes available again.
Acknowledge the overrun in this case to let the UART continue to work.
Signed-off-by: Sascha Hauer
---
drivers/serial/serial_lpuart32.c | 21 -
1
On Wed, Feb 28, 2024 at 10:26:15AM +0300, Antony Pavlov wrote:
> On Sat, 17 Feb 2024 09:51:02 +0100
> Ahmad Fatoum wrote:
>
> Hi All!
>
> > Hello Antony,
> >
> > On 05.02.24 10:59, Antony Pavlov wrote:
> > > On Wed, 31 Jan 2024 22:37:50 +0100
> > > Ahmad Fatoum wrote:
> > >
> > > Hi All!
> >
On Tue, 20 Feb 2024 12:45:08 +0100, Sascha Hauer wrote:
> On i.MX93 the ROM API can be used to detect the bootsource. Implement
> support for this.
>
>
Applied, thanks!
[1/1] ARM: i.MX93: add bootsource detection
https://git.pengutronix.de/cgit/barebox/commit/?id=47e42821ec
On Mon, Feb 26, 2024 at 03:40:23PM +0100, Stefan Kerkmann wrote:
> Instead of passing in configuration parameters at runtime we can utilize
> the `cpu_is_mx8xyz` macro family to determine which bits should be set.
>
> As the tzasc driver is imx specific, all functions are prefixed with
> `imx8m_`
On Mon, 26 Feb 2024 15:14:57 +0100, Sascha Hauer wrote:
> The TQMa6ul upstream device trees contain aliases which swap the order
> of the mmc nodes, so what used to be mmc0 has now become mmc1 and vice
> versa. With this mmc0 now is the eMMC and mmc1 is the SD card.
>
> Introduc
On Mon, 26 Feb 2024 16:31:17 +0100, Sascha Hauer wrote:
> The barebox,bootsource-* properties are looked for in /chosen, not in
> /aliases. Move the properties to the correct node.
>
>
Applied, thanks!
[1/1] ARM: i.MX: move barebox,bootsource-mmc aliases to chosen node
The barebox,bootsource-* properties are looked for in /chosen, not in
/aliases. Move the properties to the correct node.
Fixes: 7eedf79ba9 ("ARM: i.MX: add barebox,bootsource-mmc aliases")
Signed-off-by: Sascha Hauer
---
arch/arm/dts/imx51.dtsi | 3 +++
arch/arm/dts/imx53.dtsi | 3
that bootsource_get_instance() matches our mmc numbering again. Also
register the eMMC BBU handler on /dev/mmc0 and the SD BBU handler on
/dev/mmc1.
Fixes: 5a23f05267 ("ARM: tqma6ul: use upstream device trees")
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c| 8
arch/arm/
Install barebox on the eMMC boot partitions which offer enough space
for bigger barebox images and which also provides a failsafe update.
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c| 2 +-
arch/arm/dts/imx6ul-tqma6ul-common.dtsi | 5 -
2 files changed, 1
as a fixup to be applied on the Linux device tree.
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c | 64 ---
.../flash-header-imx6ul-tqma6ulx.imxcfg | 3 +
arch/arm/boards/tqma6ulx/lowlevel.c | 26 +++-
arch/arm/boards/tqma6ulx/tqma6ulx.h
be stable)
Best regards,
--
Sascha Hauer
On Wed, Feb 21, 2024 at 05:42:49PM +0100, Ahmad Fatoum wrote:
> Hello Sascha,
>
> On 21.02.24 16:03, Sascha Hauer wrote:
> > The tqma6ul has several upstream device trees depending on the exact
> > board type. This removes the downstream device tree in favour for the
>
wer domains referenced by media_blk_ctrl
https://git.pengutronix.de/cgit/barebox/commit/?id=02f8945abcb0 (link may
not be stable)
Best regards,
--
Sascha Hauer
lied, thanks!
[1/1] bbu: Emit a message about what happens also when -y is given
https://git.pengutronix.de/cgit/barebox/commit/?id=73ac8b16486f (link may
not be stable)
Best regards,
--
Sascha Hauer
On Wed, 21 Feb 2024 15:27:56 +0100, Sascha Hauer wrote:
> The TQMa6UL board uses the gpio-keys driver with GPIOs provided by a
> PCA9554 I2C GPIO expander. This currently doesn't work as the GPIOs
> are read in a poller during an ongoing I2C transfer on the same bus.
>
> Th
On Wed, 21 Feb 2024 16:03:15 +0100, Sascha Hauer wrote:
> The TQMa6UL uses a downstream device tree, but there also appeared
> device trees for it upstream. Use the upstream device trees and add
> support for reading the board EEPROM to pick the right device tree
> for a particula
!
[1/1] ARM: i.MX: phytec-som-imx6: use strdup instead of basprintf
https://git.pengutronix.de/cgit/barebox/commit/?id=e29607037621 (link may
not be stable)
Best regards,
--
Sascha Hauer
tch to upstream DT
https://git.pengutronix.de/cgit/barebox/commit/?id=b2b465a75814 (link may
not be stable)
Best regards,
--
Sascha Hauer
Add a define for the I2C4 base address.
Signed-off-by: Sascha Hauer
---
include/mach/imx/imx6-regs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/mach/imx/imx6-regs.h b/include/mach/imx/imx6-regs.h
index 89a3b267c6..957b95bc95 100644
--- a/include/mach/imx/imx6-regs.h
+++ b
The TQMa6ul needs the enet_ref_125m clk as phy clock. This is currently
not enabled, so ethernet on fec2 is not working. As there's no good
place to enable it currently do this in the board code.
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c | 8
1 file changed, 8
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c| 1 +
arch/arm/boards/tqma6ulx/lowlevel.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/boards/tqma6ulx/board.c b/arch/arm/boards/tqma6ulx/board.c
index 4a9429a8c3..b3cecaa97d 100644
--- a/arch/arm/boards
o this can be added as new board type
when found.
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma6ulx/board.c | 7 +-
arch/arm/boards/tqma6ulx/lowlevel.c | 45 ++-
arch/arm/dts/Makefile | 5 +-
arch/arm/dts/imx6ul-mba6ulx.dtsi
The TQ board code needs CRC_ITU_T. Select it.
Signed-off-by: Sascha Hauer
---
common/boards/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/boards/Kconfig b/common/boards/Kconfig
index fe3a60d508..f6d4a56f88 100644
--- a/common/boards/Kconfig
+++ b/common/boards/Kconfig
Some I2C EEPROMs must be addressed with two bytes. Add the address
argument to pbl_tq_read_eeprom(). The actual EEPROM address will be 0x0
always, but we can use the address to pass I2C_ADDR_16_BIT through it.
Signed-off-by: Sascha Hauer
---
arch/arm/boards/tqma93xx/lowlevel.c | 2 +-
common
The correct format specifier for a size_t type is %zu. Use it.
Signed-off-by: Sascha Hauer
---
common/boards/tq/tq_eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/boards/tq/tq_eeprom.c b/common/boards/tq/tq_eeprom.c
index 220d75ecab..06f11a8a94 100644
{} subnode in miibus::dev.of_node, so use that to match
against the phy nodes parent.
This occured on a TQMa6UL where two FECs are registered, but both phys
are connected to the FEC2.
Signed-off-by: Sascha Hauer
---
drivers/net/phy/mdio_bus.c | 10 +++---
drivers/net/phy/phy.c | 2 +-
2 files
The TQMa6UL uses a downstream device tree, but there also appeared
device trees for it upstream. Use the upstream device trees and add
support for reading the board EEPROM to pick the right device tree
for a particular board type.
Sascha Hauer (8):
board: tq: add missing select
board: tq: fix
GPIOs are not only provided by raw register accesses but also by I2C
devices. Add a slice to a gpio chip so that a gpio user can check if the
slice is acquired before using it in a poller.
Signed-off-by: Sascha Hauer
---
drivers/gpio/gpiolib.c | 11 +++
include/gpio.h | 15
GPIOs a sometimes slow to read out, for example when they are provided
by I2C GPIO expanders. Limit the poll rate so that we do not slow down
barebox more than necessary in these cases.
Signed-off-by: Sascha Hauer
---
drivers/input/gpio_keys.c | 20
1 file changed, 8
The GPIOs provided by the pca953x cannot be used inside a poller while
the I2C controller is in use. Add a dependency to from the GPIO
controller to the I2C controller for this purpose.
Signed-off-by: Sascha Hauer
---
drivers/gpio/gpio-pca953x.c | 2 ++
1 file changed, 2 insertions(+)
diff
Before reading GPIOs in a poller check if they are available.
Signed-off-by: Sascha Hauer
---
drivers/input/gpio_keys.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c
index fd3995d01f..c23d20563c 100644
before using it.
Sascha Hauer (4):
gpio: add slice support
gpio: pca953x: depend on i2c slice
input: gpio_keys: limit poll rate
input: gpio_keys: only use gpios in poller when not in use
drivers/gpio/gpio-pca953x.c | 2 ++
drivers/gpio/gpiolib.c | 11 +++
drivers/input
On i.MX93 the ROM API can be used to detect the bootsource. Implement
support for this.
Signed-off-by: Sascha Hauer
---
arch/arm/mach-imx/imx9.c | 1 +
arch/arm/mach-imx/romapi.c | 67 ++
include/mach/imx/generic.h | 1 +
3 files changed, 69 insertions
t more explicit
https://git.pengutronix.de/cgit/barebox/commit/?id=e87ca6e235e4 (link may
not be stable)
Best regards,
--
Sascha Hauer
(link
may not be stable)
Best regards,
--
Sascha Hauer
On Mon, Feb 19, 2024 at 04:21:07PM +0100, Sascha Hauer wrote:
> On Mon, Feb 19, 2024 at 03:59:36PM +0100, Marco Felsch wrote:
> > On 24-02-19, Sascha Hauer wrote:
> > > We have a relation between the bootsource and the corresponding
> > > device_node. Add a functio
On Mon, Feb 19, 2024 at 04:20:55PM +0100, Ahmad Fatoum wrote:
> On 19.02.24 15:51, Sascha Hauer wrote:
> > We have a GUID for partitions to use for barebox environment. Add an
> > option for parted to create these.
> >
> > Signed-off-by: Sascha Hauer
> > ---
On Mon, 19 Feb 2024 11:55:07 +0100, Sascha Hauer wrote:
> Change default_environment_path_set() to take a const char * and let
> default_environment_path_get() return a const char *.
> Also, do not keep a copy of the string passed to
> default_environment_path_set() rather than
On Mon, 19 Feb 2024 09:31:28 +0100, Sascha Hauer wrote:
> This series adds support for changing partition tables. There is both a
> C API and a new command to create partition tables, to create partitions
> or to delete partitions. Both MSDOS and GPT tables are supported,
> al
On Tue, Feb 20, 2024 at 10:12:47AM +0100, Ahmad Fatoum wrote:
> On 20.02.24 10:08, Ahmad Fatoum wrote:
> > Hello Sascha,
> >
> > On 20.02.24 08:13, Sascha Hauer wrote:
> >> Several boards overwrite the standard mmc aliases to give them a board
> >> specifi
nodes that provides them. Add these aliases
for the newer i.MX SoCs.
Signed-off-by: Sascha Hauer
---
arch/arm/dts/imx51.dtsi | 4
arch/arm/dts/imx53.dtsi | 4
arch/arm/dts/imx6qdl.dtsi | 4
arch/arm/dts/imx8mm.dtsi | 3 +++
arch/arm/dts/imx8mn.dtsi | 3 +++
arch/arm/dts
e the bl33 loadaddr
ARM: i.MX8M: cleanup MX8M*_ATF_BL33_BASE_ADDR defines
ARM: i.MX8M: fix optee of-fixup logic
Rouven Czerwinski (1):
optee: add support to verify 64-bit headers as well
Sascha Hauer (90):
net: remove unused field from struct eth_device
pbl/pmic
On Mon, Feb 19, 2024 at 06:26:59PM +0100, Ahmad Fatoum wrote:
> Drivers should not need to compare an error value against EPROBE_DEFER.
> We have a number of drivers doing that though to decide whether to print
> an error or not. This error message will be lost if the probe is
> deferred, so use
st EPROBE_DEFER
https://git.pengutronix.de/cgit/barebox/commit/?id=b305ee5e0439 (link may
not be stable)
Best regards,
--
Sascha Hauer
rerror with %pe format specifier
https://git.pengutronix.de/cgit/barebox/commit/?id=ecab0d0bc4c9 (link may
not be stable)
Best regards,
--
Sascha Hauer
it.pengutronix.de/cgit/barebox/commit/?id=3644f6ce5e80 (link may
not be stable)
Best regards,
--
Sascha Hauer
n uninitialized total_mem. Fix this by initializing it to 0.
>
>
> [...]
Applied, thanks!
[1/1] ddr: fsl: fix possible use of uninitalized variable
https://git.pengutronix.de/cgit/barebox/commit/?id=1d8515a0d3f7 (link may
not be stable)
Best regards,
--
Sascha Hauer
nodes that provides them. Add these aliases
for the newer i.MX SoCs.
Signed-off-by: Sascha Hauer
---
arch/arm/dts/imx51.dtsi | 4
arch/arm/dts/imx53.dtsi | 4
arch/arm/dts/imx6qdl.dtsi | 4
arch/arm/dts/imx8mm.dtsi | 3 +++
arch/arm/dts/imx8mn.dtsi | 3 +++
arch/arm/dts
On Mon, Feb 19, 2024 at 03:59:36PM +0100, Marco Felsch wrote:
> On 24-02-19, Sascha Hauer wrote:
> > We have a relation between the bootsource and the corresponding
> > device_node. Add a function to get the device_node we booted from.
> > This is already open coded in of_fixu
We have a GUID for partitions to use for barebox environment. Add an
option for parted to create these.
Signed-off-by: Sascha Hauer
---
commands/parted.c | 2 +-
common/partitions/efi.c | 3 +++
include/efi/partition.h | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git
default_environment_path_set() then that
will be used instead.
Signed-off-by: Sascha Hauer
---
common/environment.c | 65 +++-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/common/environment.c b/common/environment.c
index a7432a84f3..583a2f0a03 100644
We have a relation between the bootsource and the corresponding
device_node. Add a function to get the device_node we booted from.
This is already open coded in of_fixup_bootargs_bootsource(),
use the newly created function for it.
Signed-off-by: Sascha Hauer
---
common/bootsource.c | 14
partition itself, so barebox
couldn't persist the environment on an unpartitioned device. Now with
parted support this has changed, so I think it's worth it to give it a
try now.
Sascha
Sascha Hauer (3):
partitions: efi: Allow to create barebox environment partition
bootsource: add function to get
us to free the
string passed to default_environment_path_set() after usage by some
callers.
Signed-off-by: Sascha Hauer
---
arch/arm/mach-omap/omap_generic.c | 1 +
commands/loadenv.c| 3 ++-
common/efi/payload/init.c | 1 +
common/environment.c | 13
This fills in the msdos specific function hooks to add/remove
partitions.
Signed-off-by: Sascha Hauer
---
common/partitions/dos.c | 256 ++--
1 file changed, 243 insertions(+), 13 deletions(-)
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
KiB as unit and printing the result at the end:
$ parted mmc0 unit KiB mklabel gpt mkpart rootfs ext4 1024 131072 print
The "refresh" command is barebox specific and is useful when for example
the alternate GPT is missing. This happens when an image is written.
Signed-off-by: Sa
This fills in the partition manipulation function hooks to add/remove
efi (GPT) partitions and to write a GPT partition table. This depends on
te msdos partition writing support for generating a protective MBR.
Signed-off-by: Sascha Hauer
---
common/partitions/Kconfig | 1 +
common/partitions
Signed-off-by: Sascha Hauer
---
include/efi/partition.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/efi/partition.h b/include/efi/partition.h
index 0ca2a72eb9..40ff4c557f 100644
--- a/include/efi/partition.h
+++ b/include/efi/partition.h
@@ -45,6 +45,9 @@
#define
Update linux/sizes.h from Linux to get Terabyte defines.
Signed-off-by: Sascha Hauer
---
include/linux/sizes.h | 12
1 file changed, 12 insertions(+)
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index 1d222daeab..08fe344bc4 100644
--- a/include/linux/sizes.h
+++ b
sanity checks like partition overlap checking,
access beyond device cheks and call into not yet existing efi or msdos
specific function hooks.
Signed-off-by: Sascha Hauer
---
common/Kconfig | 3 +
common/partitions.c | 156 ---
include/partitions.h
Save an indention level by continuing early in the loop.
Signed-off-by: Sascha Hauer
---
common/partitions/dos.c | 52 +
1 file changed, 27 insertions(+), 25 deletions(-)
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 7472824b00
This will be needed by upcoming partition manipulation code, so move it
to include/
Signed-off-by: Sascha Hauer
---
common/partitions.c| 3 +--
common/partitions/dos.c| 3 +--
common/partitions/efi.c| 2
Allocate struct partition in the parser rather than in the core
partition code. Doing so allows the parser to embed struct partition
in an implementation specific struct type.
Signed-off-by: Sascha Hauer
---
common/partitions.c| 12
common/partitions/dos.c| 56
501 - 600 of 14971 matches
Mail list logo