Skip to content

Commit 903f2e7

Browse files
committed
Merge branch 'master' into CA/ts
2 parents 60273bf + ed4d06a commit 903f2e7

149 files changed

Lines changed: 1335 additions & 663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ policy-list
4646
*.dtb.*
4747
*.dtbo
4848
*.dtbo.*
49+
*.z
4950
*.asn1.c
5051
*.asn1.h
5152

Documentation/boards/layerscape.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ The barebox binary is expected to be located 4K bytes into the SD-Card::
2727
From there on, ``barebox_update`` can be used to flash
2828
barebox to the QSPI NOR-Flash if required::
2929

30-
barebox_update -t qspi /mnt/tftp/barebox-${global.hostname}-qspi.imaag
30+
barebox_update -t qspi /mnt/tftp/barebox-${global.hostname}-qspi.image
3131

3232
Flashing to the eMMC is possible likewise::
3333

34-
barebox_update -t sd /mnt/tftp/barebox-${global.hostname}-sd.imaag
34+
barebox_update -t sd /mnt/tftp/barebox-${global.hostname}-sd.image
3535

3636
.. note:: Some SoCs like the LS1046A feature only a single eSDHC.
3737
In such a case, using eMMC and SD-Card at the same time is not possible.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Release v2026.06.0
2+
==================
3+
4+
global.linux.bootargs.* appending order
5+
---------------------------------------
6+
7+
If barebox was configured to automatically generate any of the ``root``,
8+
``rootwait``, ``earlycon``, ``systemd.machine_id``, ``systemd.hostname``
9+
or ``barebox.security.policy`` kernel command line options, they will be
10+
appended onto the final kernel command line
11+
:ref:`**after** all other options <bootargs_concat_order>`.
12+
13+
Removal of global.env.autoprobe
14+
-------------------------------
15+
16+
The global.env.autoprobe variable introduced with v2025.02.0 is removed and
17+
now replaced with CONFIG_ENV_HANDLING_AUTOPROBE. It has never worked. If you
18+
want to load a barebox environment based on its partition UUID enable
19+
CONFIG_ENV_HANDLING_AUTOPROBE.

Documentation/user/devboot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Override rules
8989
9090
.. tip::
9191

92-
The Linux kernel ``make cpio-modules-pkg`` target builds a CPIO archive
92+
The Linux kernel ``make modules-cpio-pkg`` target builds a CPIO archive
9393
containing all kernel modules. This is useful for supplementing an existing
9494
initramfs with modules without modifying the root filesystem.
9595
Combined with initrd concatenation, a devboot script

Documentation/user/usb.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ The Fastboot gadget supports the following commands:
168168
- fastboot getvar
169169
- fastboot boot
170170
- fastboot reboot
171+
- fastboot erase
171172

172173
``fastboot flash`` additionally supports image types UBI and Barebox. For UBI
173174
Images and a MTD device as target, ubiformat is called. For a Barebox image

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 2026
3-
PATCHLEVEL = 05
3+
PATCHLEVEL = 06
44
SUBLEVEL = 0
55
EXTRAVERSION =
66
NAME = None

arch/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,25 @@ config ARCH_HAS_DATA_ABORT_MASK_PBL
9292
config ARCH_HAS_ZERO_PAGE
9393
bool
9494

95+
config ARCH_HAS_MALLOC_SIZE
96+
bool
97+
help
98+
This is selected by architectures, where CONFIG_MALLOC_SIZE
99+
can be used to specify an exact size of the malloc area.
100+
101+
Eventually, this should only be selected by sandbox, with
102+
everyone else switched over to ARCH_HAS_BAREBOX_MEMORY_OFFSET.
103+
104+
config ARCH_HAS_BAREBOX_MEMORY_OFFSET
105+
bool
106+
help
107+
This is selected by architectures, where CONFIG_BAREBOX_MEMORY_OFFSET
108+
can be used to specify the start offset of the barebox memory
109+
within the initially available memory (first memory bank usually).
110+
111+
Compared to CONFIG_MALLOC_SIZE, this offset simplifies memory layout
112+
calculation and allows to reserve the malloc region very early on.
113+
95114
config HAVE_EFFICIENT_UNALIGNED_ACCESS
96115
bool
97116

arch/arm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ config ARCH_MKIMAGE_NAME
3333

3434
config ARM32
3535
def_bool CPU_32
36+
select ARCH_HAS_MALLOC_SIZE
3637

3738
config ARM64
3839
def_bool CPU_64
3940
select ARCH_HAS_RELR
41+
select ARCH_HAS_BAREBOX_MEMORY_OFFSET
4042

4143
config ARCH_TEXT_BASE
4244
hex

arch/arm/boards/embest-riotboard/flash-header-embest-riotboard.imxcfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ wm 32 MX6_MMDC_P0_MDPDC 0x00025565
6767
wm 32 MX6_MMDC_P0_MAPSR 0x00011006
6868
wm 32 MX6_MMDC_P0_MDSCR 0x00000000
6969

70+
#include <mach/imx/imx6q-tzasc.h>
7071
#include <mach/imx/habv4-imx6-gencsf.h>

arch/arm/boards/embest-riotboard/lowlevel.c

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,35 @@
1111
#include <asm/cache.h>
1212
#include <asm/mmu.h>
1313
#include <mach/imx/imx6.h>
14+
#include <mach/imx/iomux-mx6.h>
15+
#include <mach/imx/esdctl.h>
1416

1517
extern char __dtb_imx6s_riotboard_start[];
1618

17-
ENTRY_FUNCTION(start_imx6s_riotboard, r0, r1, r2)
19+
static noinline void continue_imx6s_riotboard(void)
1820
{
19-
void *fdt;
21+
void __iomem *iomuxbase = IOMEM(MX6_IOMUXC_BASE_ADDR);
2022

21-
imx6_cpu_lowlevel_init();
23+
writel(0x4, iomuxbase + 0x016c);
24+
25+
imx6_ungate_all_peripherals();
26+
// if uart ist not set-up, then OP-TEE will fail if debugging is enabled.
27+
imx6_uart_setup(IOMEM(MX6_UART2_BASE_ADDR));
2228

2329
if (IS_ENABLED(CONFIG_DEBUG_LL)) {
24-
/*
25-
* CONFIG_DEBUG_IMX6Q_UART=y
26-
* CONFIG_DEBUG_IMX_UART_PORT=2
27-
*/
28-
writel(0x4, 0x020e016c);
29-
imx6_ungate_all_peripherals();
30-
imx6_uart_setup_ll();
31-
putc_ll('a');
30+
pbl_set_putc(imx_uart_putc, IOMEM(MX6_UART2_BASE_ADDR));
31+
putc_ll('>');
3232
}
3333

34-
fdt = __dtb_imx6s_riotboard_start + get_runtime_offset();
35-
barebox_arm_entry(0x10000000, SZ_1G, fdt);
34+
imx6q_barebox_entry(__dtb_imx6s_riotboard_start);
35+
}
36+
37+
ENTRY_FUNCTION(start_imx6s_riotboard, r0, r1, r2)
38+
{
39+
imx6_cpu_lowlevel_init();
40+
41+
relocate_to_current_adr();
42+
setup_c();
43+
44+
continue_imx6s_riotboard();
3645
}

0 commit comments

Comments
 (0)