* v2026.05.0
@ 2026-05-19 19:34 Sascha Hauer
2026-05-20 5:15 ` v2026.05.0 Alexander Shiyan
0 siblings, 1 reply; 13+ messages in thread
From: Sascha Hauer @ 2026-05-19 19:34 UTC (permalink / raw)
To: barebox
Hi All,
Here comes the barebox May Release - barebox-2026.05.0.
Our testing before releases has vastly improved over the last year(s)
which I can see clearly in the amount of regression fixes we need to do
before a release. This is good news as we detect and fix many
regressions before they go into a release, but of course also means more
work for us.
This release has some improvements that have the potential to make
the binaries smaller. builtin firmware files like TF-A or OP-TEE can now
be compressed. Decompression can be painfully slow on ARM without MMU,
so we also added very early MMU support to not hurt startup time too
much. Both features have been driven by the Rockchip support, they are
actively used there. Others would need additional SoC/board support to
use them.
Michael Tretter landed quite some SoCFPGA patches into this release,
mostly early startup cleanups. Thanks for that, I hope there are fewer
pitfalls in the code now.
Other than that the usual patch flow, fixes and cleanups, see below for
a full list.
Have Fun!
Migration notes for v2026.05.0
==============================
CONFIG_CRYPTO_PUBLIC_KEYS
-------------------------
The syntax of keytoc keyspecs when fully provided via an environment variable
was slightly changed to allow any number of keyspecs to be provided via an
environment variable. Such environment variables are now split at spaces to be
interpreted as multiple keyspecs. Any literal spaces and backslashes contained
in such keyspecs need to be escaped with a backslash.
This only applies to the form:
CONFIG_CRYPTO_PUBLIC_KEYS="__ENV__A"
While the interpretation of environment variables specifying hint or URI remains unchanged:
CONFIG_CRYPTO_PUBLIC_KEYS="keyring=kr:__ENV__B"
Fit hints can no longer be specified by environment variables using the __ENV__
syntax. This functionality was broken since the last change to the keyspec
syntax in 2025.12.
register_simplefb parameter
---------------------------
The ``register_simplefb`` parameter on framebuffer devices has changed from
boolean to an enum with values ``disabled``, ``enabled``, and ``stdout-path``.
Scripts that **read** the parameter will now receive ``"disabled"`` or
``"enabled"`` instead of ``"0"`` or ``"1"``.
Scripts that **write** ``"0"`` or ``"1"`` continue to work.
----------------------------------------------------------------
Ahmad Fatoum (39):
state: suppress state overwrite warning for barebox DT
console: return characters written from console_putc
stddef: implement scoped_var for use in iterators
console: have for_each_console declare the iterator internally
console: make console_puts and friends accept a console_device
console: implement console_putc in terms of console_putbin
console: implement console_printf
commands: dmesg: give log_print a console_device parameter
video: simplefb: add r5g5b5a1 and x8b8g8r8 formats to SIMPLEFB_FORMATS
video: simplefb-fixup: use shared SIMPLEFB_FORMATS table
parameter: allow enum params to be set by numeric index
video: simplefb-fixup: add stdout-path mode to register_simplefb param
Documentation: add OpenBSD booting guide
gpio: have gpio_chip::set return an error code
gpiolib: propagate errors from gpiod_set_(raw_)?value
regmap: align dev_get_regmap error return with Linux
usb: dwc2: remove non-existent brcm,bcm2708-usb compatible
serial: introduce clk_get_enabled_for_console()
clk: ignore -EPROTO in clk_get_enabled_if_available
firmware: arm_scmi: clock: sync with Linux v7.0
environment: support DT-compatible-specific overlays
sandbox: add a match.of_compatible directory to exercise the feature
efi: payload: image: exit if kernel image returned
efi: payload: bootm: fix potential double-unload for image
ppc: define sync_caches_for_execution only for MPC85xx
riscv: make header self-contained
mem: add flush callback to sync caches for execution
efi: gop: use screen_base directly instead of shadow buffer
kfifo: do not allocate a fifo smaller than 2 bytes
Documentation: user: use matrix.to instead of element.io link
ARM: dts: stm32mp: stm32mp135-dk: disable button on PA13
efi: payload: handle NULL return from loadable_view for ramdisk
fs: fix memory leak in automount_add()
mci: atmel_mci: fix mci_pbl breakage after mci_cmd::data change
ARM: i.MX8: esdctl: fix breakage for multi-SoC i.MX8M
startup: point out that /env/bin/init is legacy
doc: user: barebox: update typical barebox startup log
ci: pytest: bump Debian installer image to 13.5
serial: ns16550: add missing Linux console names
Anees Rehman (1):
ARM: i.MX7: DDR size detection off-by-one in row_max
Chali Anis (1):
usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
David Jander (3):
arm: mach-imx: esdctl.c: Add support for imx8mp inline ECC
drivers: ddr: imx8m: ddr_init.c: support ECC scrubbing
arm: boards: protonic-imx8ml: Add ECC + scrubbing
Fabian Pflug (3):
ARM: i.MX: atf: pass scratch fdt if configured
arm: i.mx: fix error in field return configuration
doc: tlv: add images and custom format documentation
Gavin Schenk (1):
docs: migration-guides: Fix typo
Jonas Rebmann (9):
scripts: include: Add string_util.h for strsep_unescaped
crypto: keytoc: Improve readability
crypto: keytoc: Move special handling of legacy pkcs11 format to parse_keyspec
crypto: keytoc: Parse all keyspecs before writing to stdout
crypto: keytoc: Split env-provided full keyspec on spaces
Documentation: migration-guides: Document change in keyspec env vars
crypto: keytoc: Allow fields to start with underscore
crypto: keytoc: Deprecate fit-hint from env variable
crypto: ecc: Add Origin-URL to document kernel revision
Lukas Wunner (1):
crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()
Michael Tretter (27):
mci: cadence: fix device tree override of host_caps
arm: socfpga: iossm: remove uninitialized variable
arm: socfpga: iossm: add version check
arm: socfpga: iossm: use local mb_ctrl variable
arm: socfpga: iossm: store size in bytes
arm: socfpga: iossm: refactor io96b_mb_init
arm: socfpga: iossm: refactor return value handling
arm: socfgpa: iossm: extract poll_bist_mem_init_status
arm: socfgpa: iossm: extract initialization of one interface
arm: socfpga: iossm: add memory initialization with inline ecc
arm: socfpga: iossm: add support for mailbox v1
arm: socfpga: iossm: make io96b_cal_status static
arm: socfpga: iossm: use readl_poll_timeout
arm: socfpga: iossm: remove duplicate read of response status
arm: socfpga: iossm: remove multiple read of status_addr
arm: socfpga: iossm: change io96b_csr_addr to void *
arm: socfpga: iossm: extract io96b_mb_init_instance
arm: socfpga: agilex5: cleanup TF-A loading
arm: socfgpa: agilex5: remove unused memsize
arm: socfpga: agilex5: configure firewall with base and size
arm: socfpga: agilex5: fix read of memory limit
arm: socfpga: agilex5: fix SDRAM size calculation
arm: socfpga: agilex5: remove unused declarations
arm: socfpga: agilex5: read SDRAM limits from firewall
arm: socfpga: agilex5: add agilex5_barebox_entry
arm: socfpga: agilex5: add explicit unreachable after TF-A load
Documentation: rk35xx: add secure boot documentation
Sascha Hauer (50):
ARM: socfpga: Drop unnecessary select USE_COMPRESSED_DTB
ARM: radxa-rock5: Use compressed DTB
ARM: Rockchip: Simplify retrieval of SoC specific addresses
firmware: Move firmware assembly generation to scripts/gen-fw-s
firmware: Use struct fwobj for get_builtin_firmware APIs
ARM: radxa-rock5t: Disable pcie3x2
optee: Explicitly ignore OPTEE_RPC_CMD_RPMB_*
pmdomain: rockchip: inform about missing subdomain support when in use
nvmem: rockchip-otp: implement SoC UID reading
ARM: rockchip: atf: add missing newline in message
firmware: Add compressed firmware symbols for PBL
firmware: Add fwobj_uncompress() for decompressing firmware in PBL
ARM: Rockchip: Use compressed OP-TEE binary
ARM: Rockchip: Use compressed TF-A binary
optee: skip registration of already known TEE bus devices
Merge branch 'for-next/compressed-firmware' into for-next/rockchip
ARM: rockchip: dmc: rework DRAM functions
ARM: rockchip: atf: make all memory banks available
ARM: rockchip: atf: add OP-TEE fdt creation function for all SoCs
ARM: Rockchip: Drop rk3xxx_atf_load_bl31()
ARM: rockchip: separate physical DRAM start from usable start
ARM: rockchip: atf: enable MMU in PBL
ARM: tqmls1046a: Add Arkona AT300 support
v2026.04.0: Move migration guide to correct place
Merge branch 'for-next/arm'
Merge branch 'for-next/compressed-firmware'
Merge branch 'for-next/imx'
Merge branch 'for-next/keys'
Merge branch 'for-next/mci'
Merge branch 'for-next/misc'
Merge branch 'for-next/optee'
Merge branch 'for-next/rockchip'
Merge branch 'for-next/socfpga'
Merge branch 'for-next/usb'
fs: set linux.bootargs.rootopts only when existing
ARM: rockchip: atf: only set OP-TEE address when starting it
ARM: rockchip: dmc: substract ROCKCHIP_DRAM_TFA_CARVE_OUT from memory regions
ARM: rockchip: atf: pass correct memsize to mmu_early_enable()
ARM: fix wrong calculation of barebox base
riscv: fix wrong calculation of barebox base
ARM: k3: am62x: move stack to end of SRAM
ARM: k3: am62x: make more space for r5 barebox binary
ARM: k3: k3-r5_defconfig: limit image size to maximum available space
PBL: add common define for early malloc size
pbl: cleanup early malloc
ARM: rockchip: initialize PBL malloc
pbl: mips/riscv compile fixes
fs: jffs2: zero initialize allocated inode
fs: ubifs: zero initialize allocated inode
Release v2026.05.0
Stefan Berger (1):
crypto: ecc - Fix off-by-one missing to clear most significant digit
Steffen Trumtrar (8):
ARM: i.MX: esdctl: fix spelling of ad(d)ress
mci: add data segment to mci_cmd
mci: sdhci: add sdhci_send_cmd
mci: sdhci: add set_uhs_signaling callback
mci: cadence: remove driver
mci: cadence: add support for version 6
ARM: socfpga-agilex5_defconfig: enable cadence-sdhci
scripts: ls1046a-rcwtool: add functions to generate RCW
Thorsten Blum (1):
crypto: ecc - Streamline alloc_point and remove {alloc,free}_digits_space
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-19 19:34 v2026.05.0 Sascha Hauer
@ 2026-05-20 5:15 ` Alexander Shiyan
2026-05-20 6:21 ` v2026.05.0 Sascha Hauer
0 siblings, 1 reply; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 5:15 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hello Sascha.
The first launch of the new release has failed.
On the RK3568 platform, BL31 does not start. The size of the final
binary has decreased from 1.5 MB
to 930 KB - possibly due to the announced compression, but it seems to
me that this is too
large a reduction...
Are there any additional settings/calls required for custom boards in
the new release?
Thanks!
вт, 19 мая 2026 г. в 23:33, Sascha Hauer <s.hauer@pengutronix.de>:
>
> Hi All,
>
> Here comes the barebox May Release - barebox-2026.05.0.
>
> Our testing before releases has vastly improved over the last year(s)
> which I can see clearly in the amount of regression fixes we need to do
> before a release. This is good news as we detect and fix many
> regressions before they go into a release, but of course also means more
> work for us.
>
> This release has some improvements that have the potential to make
> the binaries smaller. builtin firmware files like TF-A or OP-TEE can now
> be compressed. Decompression can be painfully slow on ARM without MMU,
> so we also added very early MMU support to not hurt startup time too
> much. Both features have been driven by the Rockchip support, they are
> actively used there. Others would need additional SoC/board support to
> use them.
>
> Michael Tretter landed quite some SoCFPGA patches into this release,
> mostly early startup cleanups. Thanks for that, I hope there are fewer
> pitfalls in the code now.
>
> Other than that the usual patch flow, fixes and cleanups, see below for
> a full list.
>
> Have Fun!
>
>
> Migration notes for v2026.05.0
> ==============================
>
> CONFIG_CRYPTO_PUBLIC_KEYS
> -------------------------
>
> The syntax of keytoc keyspecs when fully provided via an environment variable
> was slightly changed to allow any number of keyspecs to be provided via an
> environment variable. Such environment variables are now split at spaces to be
> interpreted as multiple keyspecs. Any literal spaces and backslashes contained
> in such keyspecs need to be escaped with a backslash.
>
> This only applies to the form:
>
> CONFIG_CRYPTO_PUBLIC_KEYS="__ENV__A"
>
> While the interpretation of environment variables specifying hint or URI remains unchanged:
>
> CONFIG_CRYPTO_PUBLIC_KEYS="keyring=kr:__ENV__B"
>
> Fit hints can no longer be specified by environment variables using the __ENV__
> syntax. This functionality was broken since the last change to the keyspec
> syntax in 2025.12.
>
> register_simplefb parameter
> ---------------------------
>
> The ``register_simplefb`` parameter on framebuffer devices has changed from
> boolean to an enum with values ``disabled``, ``enabled``, and ``stdout-path``.
>
> Scripts that **read** the parameter will now receive ``"disabled"`` or
> ``"enabled"`` instead of ``"0"`` or ``"1"``.
>
> Scripts that **write** ``"0"`` or ``"1"`` continue to work.
>
> ----------------------------------------------------------------
> Ahmad Fatoum (39):
> state: suppress state overwrite warning for barebox DT
> console: return characters written from console_putc
> stddef: implement scoped_var for use in iterators
> console: have for_each_console declare the iterator internally
> console: make console_puts and friends accept a console_device
> console: implement console_putc in terms of console_putbin
> console: implement console_printf
> commands: dmesg: give log_print a console_device parameter
> video: simplefb: add r5g5b5a1 and x8b8g8r8 formats to SIMPLEFB_FORMATS
> video: simplefb-fixup: use shared SIMPLEFB_FORMATS table
> parameter: allow enum params to be set by numeric index
> video: simplefb-fixup: add stdout-path mode to register_simplefb param
> Documentation: add OpenBSD booting guide
> gpio: have gpio_chip::set return an error code
> gpiolib: propagate errors from gpiod_set_(raw_)?value
> regmap: align dev_get_regmap error return with Linux
> usb: dwc2: remove non-existent brcm,bcm2708-usb compatible
> serial: introduce clk_get_enabled_for_console()
> clk: ignore -EPROTO in clk_get_enabled_if_available
> firmware: arm_scmi: clock: sync with Linux v7.0
> environment: support DT-compatible-specific overlays
> sandbox: add a match.of_compatible directory to exercise the feature
> efi: payload: image: exit if kernel image returned
> efi: payload: bootm: fix potential double-unload for image
> ppc: define sync_caches_for_execution only for MPC85xx
> riscv: make header self-contained
> mem: add flush callback to sync caches for execution
> efi: gop: use screen_base directly instead of shadow buffer
> kfifo: do not allocate a fifo smaller than 2 bytes
> Documentation: user: use matrix.to instead of element.io link
> ARM: dts: stm32mp: stm32mp135-dk: disable button on PA13
> efi: payload: handle NULL return from loadable_view for ramdisk
> fs: fix memory leak in automount_add()
> mci: atmel_mci: fix mci_pbl breakage after mci_cmd::data change
> ARM: i.MX8: esdctl: fix breakage for multi-SoC i.MX8M
> startup: point out that /env/bin/init is legacy
> doc: user: barebox: update typical barebox startup log
> ci: pytest: bump Debian installer image to 13.5
> serial: ns16550: add missing Linux console names
>
> Anees Rehman (1):
> ARM: i.MX7: DDR size detection off-by-one in row_max
>
> Chali Anis (1):
> usb: dwc2: host: initialize sub to fix maybe-uninitialized warning
>
> David Jander (3):
> arm: mach-imx: esdctl.c: Add support for imx8mp inline ECC
> drivers: ddr: imx8m: ddr_init.c: support ECC scrubbing
> arm: boards: protonic-imx8ml: Add ECC + scrubbing
>
> Fabian Pflug (3):
> ARM: i.MX: atf: pass scratch fdt if configured
> arm: i.mx: fix error in field return configuration
> doc: tlv: add images and custom format documentation
>
> Gavin Schenk (1):
> docs: migration-guides: Fix typo
>
> Jonas Rebmann (9):
> scripts: include: Add string_util.h for strsep_unescaped
> crypto: keytoc: Improve readability
> crypto: keytoc: Move special handling of legacy pkcs11 format to parse_keyspec
> crypto: keytoc: Parse all keyspecs before writing to stdout
> crypto: keytoc: Split env-provided full keyspec on spaces
> Documentation: migration-guides: Document change in keyspec env vars
> crypto: keytoc: Allow fields to start with underscore
> crypto: keytoc: Deprecate fit-hint from env variable
> crypto: ecc: Add Origin-URL to document kernel revision
>
> Lukas Wunner (1):
> crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()
>
> Michael Tretter (27):
> mci: cadence: fix device tree override of host_caps
> arm: socfpga: iossm: remove uninitialized variable
> arm: socfpga: iossm: add version check
> arm: socfpga: iossm: use local mb_ctrl variable
> arm: socfpga: iossm: store size in bytes
> arm: socfpga: iossm: refactor io96b_mb_init
> arm: socfpga: iossm: refactor return value handling
> arm: socfgpa: iossm: extract poll_bist_mem_init_status
> arm: socfgpa: iossm: extract initialization of one interface
> arm: socfpga: iossm: add memory initialization with inline ecc
> arm: socfpga: iossm: add support for mailbox v1
> arm: socfpga: iossm: make io96b_cal_status static
> arm: socfpga: iossm: use readl_poll_timeout
> arm: socfpga: iossm: remove duplicate read of response status
> arm: socfpga: iossm: remove multiple read of status_addr
> arm: socfpga: iossm: change io96b_csr_addr to void *
> arm: socfpga: iossm: extract io96b_mb_init_instance
> arm: socfpga: agilex5: cleanup TF-A loading
> arm: socfgpa: agilex5: remove unused memsize
> arm: socfpga: agilex5: configure firewall with base and size
> arm: socfpga: agilex5: fix read of memory limit
> arm: socfpga: agilex5: fix SDRAM size calculation
> arm: socfpga: agilex5: remove unused declarations
> arm: socfpga: agilex5: read SDRAM limits from firewall
> arm: socfpga: agilex5: add agilex5_barebox_entry
> arm: socfpga: agilex5: add explicit unreachable after TF-A load
> Documentation: rk35xx: add secure boot documentation
>
> Sascha Hauer (50):
> ARM: socfpga: Drop unnecessary select USE_COMPRESSED_DTB
> ARM: radxa-rock5: Use compressed DTB
> ARM: Rockchip: Simplify retrieval of SoC specific addresses
> firmware: Move firmware assembly generation to scripts/gen-fw-s
> firmware: Use struct fwobj for get_builtin_firmware APIs
> ARM: radxa-rock5t: Disable pcie3x2
> optee: Explicitly ignore OPTEE_RPC_CMD_RPMB_*
> pmdomain: rockchip: inform about missing subdomain support when in use
> nvmem: rockchip-otp: implement SoC UID reading
> ARM: rockchip: atf: add missing newline in message
> firmware: Add compressed firmware symbols for PBL
> firmware: Add fwobj_uncompress() for decompressing firmware in PBL
> ARM: Rockchip: Use compressed OP-TEE binary
> ARM: Rockchip: Use compressed TF-A binary
> optee: skip registration of already known TEE bus devices
> Merge branch 'for-next/compressed-firmware' into for-next/rockchip
> ARM: rockchip: dmc: rework DRAM functions
> ARM: rockchip: atf: make all memory banks available
> ARM: rockchip: atf: add OP-TEE fdt creation function for all SoCs
> ARM: Rockchip: Drop rk3xxx_atf_load_bl31()
> ARM: rockchip: separate physical DRAM start from usable start
> ARM: rockchip: atf: enable MMU in PBL
> ARM: tqmls1046a: Add Arkona AT300 support
> v2026.04.0: Move migration guide to correct place
> Merge branch 'for-next/arm'
> Merge branch 'for-next/compressed-firmware'
> Merge branch 'for-next/imx'
> Merge branch 'for-next/keys'
> Merge branch 'for-next/mci'
> Merge branch 'for-next/misc'
> Merge branch 'for-next/optee'
> Merge branch 'for-next/rockchip'
> Merge branch 'for-next/socfpga'
> Merge branch 'for-next/usb'
> fs: set linux.bootargs.rootopts only when existing
> ARM: rockchip: atf: only set OP-TEE address when starting it
> ARM: rockchip: dmc: substract ROCKCHIP_DRAM_TFA_CARVE_OUT from memory regions
> ARM: rockchip: atf: pass correct memsize to mmu_early_enable()
> ARM: fix wrong calculation of barebox base
> riscv: fix wrong calculation of barebox base
> ARM: k3: am62x: move stack to end of SRAM
> ARM: k3: am62x: make more space for r5 barebox binary
> ARM: k3: k3-r5_defconfig: limit image size to maximum available space
> PBL: add common define for early malloc size
> pbl: cleanup early malloc
> ARM: rockchip: initialize PBL malloc
> pbl: mips/riscv compile fixes
> fs: jffs2: zero initialize allocated inode
> fs: ubifs: zero initialize allocated inode
> Release v2026.05.0
>
> Stefan Berger (1):
> crypto: ecc - Fix off-by-one missing to clear most significant digit
>
> Steffen Trumtrar (8):
> ARM: i.MX: esdctl: fix spelling of ad(d)ress
> mci: add data segment to mci_cmd
> mci: sdhci: add sdhci_send_cmd
> mci: sdhci: add set_uhs_signaling callback
> mci: cadence: remove driver
> mci: cadence: add support for version 6
> ARM: socfpga-agilex5_defconfig: enable cadence-sdhci
> scripts: ls1046a-rcwtool: add functions to generate RCW
>
> Thorsten Blum (1):
> crypto: ecc - Streamline alloc_point and remove {alloc,free}_digits_space
>
> --
> 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 |
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 5:15 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 6:21 ` Sascha Hauer
2026-05-20 11:16 ` v2026.05.0 Alexander Shiyan
2026-05-20 12:11 ` v2026.05.0 Alexander Shiyan
0 siblings, 2 replies; 13+ messages in thread
From: Sascha Hauer @ 2026-05-20 6:21 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: barebox
Hi Alexander,
On 2026-05-20 08:15, Alexander Shiyan wrote:
> Hello Sascha.
>
> The first launch of the new release has failed.
> On the RK3568 platform, BL31 does not start. The size of the final
> binary has decreased from 1.5 MB
> to 930 KB - possibly due to the announced compression, but it seems to
> me that this is too
> large a reduction...
> Are there any additional settings/calls required for custom boards in
> the new release?
No board level adjustments required. I just re-tested the relase on a
Rock-3a board using rockchip_v8_defconfig. It works here.
The size reduction depends on the size of your firmware binaries. You
could look at the firmware/*.z files and compare with the original files
to see if that explains the size reduction. The TF-A and OP-TEE files
that I use only have around 700KiB in total, so a size reduction of
600KiB would be unreasonable in my case.
Do you have any console output to share?
Sascha
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 6:21 ` v2026.05.0 Sascha Hauer
@ 2026-05-20 11:16 ` Alexander Shiyan
2026-05-20 12:40 ` v2026.05.0 Sascha Hauer
2026-05-20 12:11 ` v2026.05.0 Alexander Shiyan
1 sibling, 1 reply; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 11:16 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hello Sascha.
There is only output from sdram-init binary, then silence.
shc@gentoo /home/ARM64/barebox/firmware $ ls -1hs rk3568*
396K rk3568-bl31.bin
4.0K rk3568-bl31.bin.gen.S
460K rk3568-bl31.bin.gen.pbl.o
4.0K rk3568-bl31.bin.sha.bin
64K rk3568-bl31.bin.z
456K rk3568-bl32.bin
4.0K rk3568-bl32.bin.gen.S
624K rk3568-bl32.bin.gen.pbl.o
4.0K rk3568-bl32.bin.sha.bin
168K rk3568-bl32.bin.z
Can you compare them with your files?
I understand the versions may differ, but the size should be roughly the same.
Thanks!
ср, 20 мая 2026 г. в 09:21, Sascha Hauer <s.hauer@pengutronix.de>:
>
> Hi Alexander,
>
> On 2026-05-20 08:15, Alexander Shiyan wrote:
> > Hello Sascha.
> >
> > The first launch of the new release has failed.
> > On the RK3568 platform, BL31 does not start. The size of the final
> > binary has decreased from 1.5 MB
> > to 930 KB - possibly due to the announced compression, but it seems to
> > me that this is too
> > large a reduction...
> > Are there any additional settings/calls required for custom boards in
> > the new release?
>
> No board level adjustments required. I just re-tested the relase on a
> Rock-3a board using rockchip_v8_defconfig. It works here.
>
> The size reduction depends on the size of your firmware binaries. You
> could look at the firmware/*.z files and compare with the original files
> to see if that explains the size reduction. The TF-A and OP-TEE files
> that I use only have around 700KiB in total, so a size reduction of
> 600KiB would be unreasonable in my case.
>
> Do you have any console output to share?
>
> Sascha
>
> --
> 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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 6:21 ` v2026.05.0 Sascha Hauer
2026-05-20 11:16 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 12:11 ` Alexander Shiyan
2026-05-20 13:17 ` v2026.05.0 Sascha Hauer
1 sibling, 1 reply; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 12:11 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Here is output with lowlevel debug:
DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
In
...
out
>rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
bw 2 row_3_4 0
rockchip-dmc: rk3568_ram_sizes() = 8589934592
mmu: enabling MMU, ttb @ 0xedf80000
mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
Everything looks good, but it hangs at this step.
ср, 20 мая 2026 г. в 09:21, Sascha Hauer <s.hauer@pengutronix.de>:
>
> Hi Alexander,
>
> On 2026-05-20 08:15, Alexander Shiyan wrote:
> > Hello Sascha.
> >
> > The first launch of the new release has failed.
> > On the RK3568 platform, BL31 does not start. The size of the final
> > binary has decreased from 1.5 MB
> > to 930 KB - possibly due to the announced compression, but it seems to
> > me that this is too
> > large a reduction...
> > Are there any additional settings/calls required for custom boards in
> > the new release?
>
> No board level adjustments required. I just re-tested the relase on a
> Rock-3a board using rockchip_v8_defconfig. It works here.
>
> The size reduction depends on the size of your firmware binaries. You
> could look at the firmware/*.z files and compare with the original files
> to see if that explains the size reduction. The TF-A and OP-TEE files
> that I use only have around 700KiB in total, so a size reduction of
> 600KiB would be unreasonable in my case.
>
> Do you have any console output to share?
>
> Sascha
>
> --
> 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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 11:16 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 12:40 ` Sascha Hauer
0 siblings, 0 replies; 13+ messages in thread
From: Sascha Hauer @ 2026-05-20 12:40 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: barebox
On 2026-05-20 14:16, Alexander Shiyan wrote:
> Hello Sascha.
>
> There is only output from sdram-init binary, then silence.
>
> shc@gentoo /home/ARM64/barebox/firmware $ ls -1hs rk3568*
> 396K rk3568-bl31.bin
> 4.0K rk3568-bl31.bin.gen.S
> 460K rk3568-bl31.bin.gen.pbl.o
> 4.0K rk3568-bl31.bin.sha.bin
> 64K rk3568-bl31.bin.z
> 456K rk3568-bl32.bin
> 4.0K rk3568-bl32.bin.gen.S
> 624K rk3568-bl32.bin.gen.pbl.o
> 4.0K rk3568-bl32.bin.sha.bin
> 168K rk3568-bl32.bin.z
396k + 456k - (64k + 168k) = 620k
So the size reduction you see seems fine.
Sascha
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 12:11 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 13:17 ` Sascha Hauer
2026-05-20 13:27 ` v2026.05.0 Alexander Shiyan
0 siblings, 1 reply; 13+ messages in thread
From: Sascha Hauer @ 2026-05-20 13:17 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: barebox
On 2026-05-20 15:11, Alexander Shiyan wrote:
> Here is output with lowlevel debug:
> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
> In
> ...
> out
> >rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> bw 2 row_3_4 0
> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> mmu: enabling MMU, ttb @ 0xedf80000
> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
Damn. I introduced this:
pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
This exactly ends up in the area marked as FAULT above (reserved for
OP-TEE).
Try this:
pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
PBL_MALLOC_SIZE);
You have XZ as image compression, right?
The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
for decompression. I tested with XZ as well, but the configuration I
used for this test doesn't have OP-TEE enabled, so the faulting area was
not there.
Sascha
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:17 ` v2026.05.0 Sascha Hauer
@ 2026-05-20 13:27 ` Alexander Shiyan
2026-05-20 13:38 ` v2026.05.0 Ahmad Fatoum
2026-05-22 11:00 ` v2026.05.0 Ahmad Fatoum
0 siblings, 2 replies; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 13:27 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hello Sascha.
Yes, that's how it works.
The new version adds a different trap, but it's most likely a board
issue; I'll investigate.
Thanks!
>rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
bw 2 row_3_4 0
rockchip-dmc: rk3568_ram_sizes() = 8589934592
uncompress.c: memory at 0x00a00000, size 0xef600000
endmem = 0xf0000000
arm_mem_optee = 0xee000000+0x02000000
arm_mem_scratch = 0xedff8000+0x00008000
arm_mem_stack = 0xedff0000+0x00008000
arm_mem_ttb = 0xedf80000+0x00040000
arm_mem_barebox_image = 0xedc00000+0x00400000
arm_mem_early_malloc = 0xedbe0000+0x00020000
membase = 0x00a00000+0xef600000
mmu: enabling MMU, ttb @ 0xedf80000
mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
uncompress.c: relocating ELF in place
In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
load_addr=00000000edc00000, offset=0xedc10000
In-place ELF relocation completed successfully
pbl-mmu: Setting up MMU from ELF segments
pbl-mmu: Segment 0 not page-aligned, rounding
pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
mmu_flags=0x3
mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
pbl-mmu: Segment 1 not page-aligned, rounding
pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
mmu_flags=0x4
mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
pbl-mmu: Segment 3 not page-aligned, rounding
pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
mmu_flags=0x1
mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
pbl-mmu: MMU setup from ELF complete
uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
start.c: memory at 0x00a00000, size 0xef600000
start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
start.c: starting barebox...
initcall-> command_slice_init+0x0/0x3c
initcall-> globalvar_init+0x0/0x8c
initcall-> register_bus_class+0x0/0x20
initcall-> platform_init+0x0/0x1c
initcall-> mdio_bus_init+0x0/0x1c
initcall-> register_mii_class+0x0/0x20
initcall-> usb_bus_init+0x0/0x1c
initcall-> otg_bus_init+0x0/0x1c
initcall-> register_udc_class+0x0/0x20
initcall-> spi_bus_init+0x0/0x1c
initcall-> i2c_bus_init+0x0/0x1c
initcall-> register_i2c_adapter_class+0x0/0x20
initcall-> register_mmc_class+0x0/0x20
initcall-> register_fb_class+0x0/0x20
initcall-> register_backlight_class+0x0/0x20
initcall-> nvmem_init+0x0/0x14
initcall-> register_nvmem_class+0x0/0x20
initcall-> register_watchdog_class+0x0/0x20
initcall-> gpio_desc_alloc+0x0/0x24
initcall-> pci_bus_init+0x0/0x1c
initcall-> scmi_bus_driver_init+0x0/0x40
initcall-> register_phy_class+0x0/0x20
initcall-> register_eth_class+0x0/0x20
initcall-> fs_bus_init+0x0/0x1c
initcall-> defaultenv_init+0x0/0x6c
initcall-> console_common_init+0x0/0xac
initcall-> partitions_init+0x0/0x50
initcall-> genpd_bus_init+0x0/0x1c
initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
initcall-> clk_rk3568_driver_register+0x0/0x1c
initcall-> clk_rk3588_driver_register+0x0/0x1c
initcall-> scmi_clocks_driver_register+0x0/0x1c
initcall-> gated_fixed_clk_driver_register+0x0/0x1c
initcall-> gpio_gate_clock_driver_register+0x0/0x1c
initcall-> syscon_driver_register+0x0/0x1c
initcall-> rockchip_gpio_driver_register+0x0/0x1c
initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
initcall-> simple_pm_bus_driver_register+0x0/0x1c
initcall-> scmi_drv_register+0x0/0x1c
initcall-> scmi_reset_driver_register+0x0/0x1c
initcall-> arm_scmi_driver_register+0x0/0x1c
initcall-> scmi_power_domain_driver_register+0x0/0x1c
initcall-> aarch64_init_vectors+0x0/0x50
initcall-> of_arm_init+0x0/0x2c
deep-probe: enabled in device tree
initcall-> register_autoboot_vars+0x0/0x7c
initcall-> system_partitions_var_init+0x0/0x50
initcall-> register_env_vars+0x0/0x30
initcall-> mipi_dsi_bus_init+0x0/0x1c
initcall-> arm_arch_timer_driver_register+0x0/0x1c
initcall-> of_init_early_vars+0x0/0x8
initcall-> of_timer_init+0x0/0x20
initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
initcall-> net_init+0x0/0x94
initcall-> init_fs+0x0/0x2c
initcall-> rockchip_init+0x0/0xe8
initcall-> ns16550_serial_driver_register+0x0/0x1c
initcall-> dos_partition_init+0x0/0x1c
initcall-> efi_partition_init+0x0/0x1c
initcall-> of_stdoutpath_init+0x0/0x28
Switch to console [cs0]
barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
Board: Diasom DS-RK3568-SMARC-EVB
start.c: memory at 0x00a00000, size 0xef600000
start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
start.c: starting barebox...
initcall-> command_slice_init+0x0/0x3c
initcall-> globalvar_init+0x0/0x8c
initcall-> register_bus_class+0x0/0x20
initcall-> platform_init+0x0/0x1c
initcall-> mdio_bus_init+0x0/0x1c
initcall-> register_mii_class+0x0/0x20
initcall-> usb_bus_init+0x0/0x1c
initcall-> otg_bus_init+0x0/0x1c
initcall-> register_udc_class+0x0/0x20
initcall-> spi_bus_init+0x0/0x1c
initcall-> i2c_bus_init+0x0/0x1c
initcall-> register_i2c_adapter_class+0x0/0x20
initcall-> register_mmc_class+0x0/0x20
initcall-> register_fb_class+0x0/0x20
initcall-> register_backlight_class+0x0/0x20
initcall-> nvmem_init+0x0/0x14
initcall-> register_nvmem_class+0x0/0x20
initcall-> register_watchdog_class+0x0/0x20
initcall-> gpio_desc_alloc+0x0/0x24
initcall-> pci_bus_init+0x0/0x1c
initcall-> scmi_bus_driver_init+0x0/0x40
initcall-> register_phy_class+0x0/0x20
initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
initcall-> rockchip_dmc_driver_init+0x0/0x324
rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
initcall-> __image_start+0x0/0x74
initcall-> mem_register_barebox+0x0/0x4c
initcall-> of_reserved_mem_walk+0x0/0x1bc
initcall-> mmu_init+0x0/0x1e0
initcall-> mem_malloc_resource+0x0/0xdc
initcall-> reset_source_init+0x0/0x50
initcall-> usbgadget_globalvars_init+0x0/0x44
initcall-> bootsource_init+0x0/0x40
initcall-> usb_udc_init+0x0/0x20
initcall-> rockchip_spi_driver_register+0x0/0x1c
initcall-> rk3x_i2c_driver_register+0x0/0x1c
initcall-> rk808_spi_driver_register+0x0/0x28
initcall-> rk808_i2c_driver_register+0x0/0x28
initcall-> regulator_fixed_driver_register+0x0/0x1c
initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
initcall-> rockchip_combphy_driver_register+0x0/0x1c
initcall-> rockchip_p3phy_driver_register+0x0/0x1c
initcall-> rk_udphy_driver_register+0x0/0x1c
initcall-> rockchip_iodomain_driver_register+0x0/0x1c
initcall-> digest_hmac_initcall+0x0/0x44
initcall-> sha1_digest_register+0x0/0x1c
initcall-> sha256_digest_register+0x0/0x1c
initcall-> ext_init+0x0/0x1c
initcall-> ramfs_init+0x0/0x1c
initcall-> tftp_init+0x0/0x38
initcall-> nfs_init+0x0/0x5c
initcall-> fat_init+0x0/0x1c
initcall-> diasom_rk3568_driver_register+0x0/0x1c
initcall-> diasom_rk3588_driver_register+0x0/0x1c
initcall-> psci_driver_register+0x0/0x1c
initcall-> arm_request_stack+0x0/0x4c
initcall-> mount_root+0x0/0x74
initcall-> binfmt_sh_init+0x0/0x1c
initcall-> binfmt_uimage_init+0x0/0x1c
initcall-> png_init+0x0/0x1c
initcall-> extlinux_init+0x0/0x1c
initcall-> of_kernel_init+0x0/0x28
initcall-> console_ctrlc_init+0x0/0x30
initcall-> firmware_init+0x0/0x38
initcall-> bootdef_entry_init+0x0/0x1c
initcall-> fastboot_globalvars_init+0x0/0x12c
initcall-> genphy_driver_register+0x0/0x1c
initcall-> realtek_drvs_register+0x0/0x20
initcall-> mdio_gpio_driver_register+0x0/0x1c
initcall-> rk_gmac_driver_register+0x0/0x1c
initcall-> rtl8169_eth_driver_register+0x0/0x1c
initcall-> usb_hub_init+0x0/0x1c
initcall-> dwc3_driver_register+0x0/0x1c
initcall-> usb_stor_init+0x0/0x1c
initcall-> ehci_driver_register+0x0/0x1c
initcall-> xhci_driver_register+0x0/0x1c
initcall-> gsermod_init+0x0/0x1c
initcall-> acmmod_init+0x0/0x1c
initcall-> dfumod_init+0x0/0x1c
initcall-> fastbootmod_init+0x0/0x1c
initcall-> umsmod_init+0x0/0x1c
initcall-> onboard_dev_driver_register+0x0/0x1c
initcall-> pca954x_driver_register+0x0/0x28
initcall-> rk_sdhci_driver_register+0x0/0x1c
initcall-> dw_mmc_driver_register+0x0/0x1c
initcall-> backlight_pwm_of_driver_register+0x0/0x1c
initcall-> vop2_driver_register+0x0/0x1c
initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
initcall-> led_gpio_of_driver_register+0x0/0x1c
initcall-> at24_driver_register+0x0/0x28
initcall-> rockchip_pwm_driver_register+0x0/0x1c
initcall-> sram_driver_register+0x0/0x1c
initcall-> mem_init+0x0/0x90
initcall-> nvmem_cells_driver_register+0x0/0x1c
initcall-> rmem_driver_register+0x0/0x1c
initcall-> rockchip_otp_driver_register+0x0/0x1c
initcall-> dw_wdt_driver_register+0x0/0x1c
initcall-> pca953x_driver_register+0x0/0x28
initcall-> rk_rng_driver_register+0x0/0x1c
initcall-> of_partition_init+0x0/0x48
initcall-> of_overlay_init+0x0/0x104
initcall-> fan53555_regulator_driver_register+0x0/0x28
initcall-> rk808_regulator_driver_register+0x0/0x1c
initcall-> rockchip_pcie_driver_register+0x0/0x1c
initcall-> inno_dsidphy_driver_register+0x0/0x1c
initcall-> rockchip_saradc_driver_register+0x0/0x1c
initcall-> nvme_driver_register+0x0/0x1c
initcall-> gpio_restart_driver_register+0x0/0x1c
initcall-> prng_init+0x0/0x40
initcall-> null_init+0x0/0x40
initcall-> full_init+0x0/0x40
initcall-> zero_init+0x0/0x40
initcall-> md5_digest_register+0x0/0x1c
initcall-> sha224_digest_register+0x0/0x1c
initcall-> init_net_poll+0x0/0x24
initcall-> netconsole_init+0x0/0x12c
netconsole: registered as netconsole-1
initcall-> diasom_rk3568_init+0x0/0x448
CPU version 0x03 detected.
rk808 rk8090: chip id: 0x8090
vcc_ddr: Bringing 500000uV into 1100000-1100000uV
vdd_npu: Bringing 500000uV into 850000-850000uV
vdda0v9_image: Bringing 600000uV into 900000-900000uV
vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
SOM version 2+ detected.
SMARC version 3 used.
arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
psci psci.of: detected version 1.1
xHCI xHCI0: USB XHCI 1.10
xHCI xHCI1: USB XHCI 1.10
ehci fd800000.usb@fd800000.of: USB EHCI 1.00
ehci fd880000.usb@fd880000.of: USB EHCI 1.00
fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
mdio_bus: miibus0: probed
dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
Smart0-win0, type primary
rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
window Smart1-win0, type overlay
rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
window Esmart1-win0, type overlay
rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
window Esmart0-win0, type overlay
rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
mmc1: detected SD card version 3.0
WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
of the disk.
WARNING: mmc1: GPT:2669671 != 62333951
WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
WARNING: mmc1: GPT:2669671 != 62333951
mmc1: GPT: will repair later if global.system.gpt_refresh=1
mmc1: registered mmc1
rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
mmc0: detected MMC card version 5.1
mmc0: registered mmc0.boot0
mmc0: registered mmc0.boot1
mmc0: registered mmc0
i2c2: Added multiplexed i2c bus 6
i2c2: Added multiplexed i2c bus 7
i2c2: Added multiplexed i2c bus 8
i2c2: Added multiplexed i2c bus 9
pca954x pca95460: registered 4 multiplexed busses for I2C switch
phy6: lane number 0, val 1
phy6: lane number 1, val 2
phy6: bifurcation enabled
rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
mdio_bus: miibus1: probed
mdio_bus: miibus2: probed
PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
DABT (current EL) (ESR 0x9600000b)
elr: 00000000edc6ff00 lr : 00000000edc6ff00
x0 : 00000000edcd5c17 x1 : 00000000edd7f000
x2 : 0000000000000000 x3 : 0000000000000030
x4 : 0000000000000000 x5 : 00000000edff7d18
x6 : 0000000000000002 x7 : 0000000000000000
x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
x10: 63702d3376336363 x11: 6b6c632d30336569
x12: 00000000edff7b30 x13: 00000000ffffffc8
x14: 0000000000000001 x15: 0000000000000000
x16: 00000000edccb95f x17: 0000000000000000
x18: 000000000000000a x19: 00000000aff3aa60
x20: 0000000000000000 x21: 0000000000000010
x22: 0000000000000000 x23: 00000000edcd5c17
x24: 0000000000000000 x25: 00000000f0000000
x26: 00000000000737a4 x27: 00000000001bb598
x28: 0000000000000000 x29: 00000000edff7dd0
Call trace:
[<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
(of_new_property+0x58/0x6c)
[<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
(of_property_write_bool+0x5c/0x68)
[<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
(of_set_root_node+0x60/0x88)
[<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
(diasom_rk3568_init+0x230/0x448)
[<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
(start_barebox+0x84/0xa4)
[<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
(barebox_non_pbl_start+0xd8/0xe8)
[<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
[<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
### ERROR ### Please RESET the board ###
ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
>
> On 2026-05-20 15:11, Alexander Shiyan wrote:
> > Here is output with lowlevel debug:
> > DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
> > In
> > ...
> > out
> > >rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> > rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> > bw 2 row_3_4 0
> > rockchip-dmc: rk3568_ram_sizes() = 8589934592
> > mmu: enabling MMU, ttb @ 0xedf80000
> > mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> > mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> > mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> > mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
> > mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
>
> Damn. I introduced this:
>
> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
>
> This exactly ends up in the area marked as FAULT above (reserved for
> OP-TEE).
>
> Try this:
>
> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
> PBL_MALLOC_SIZE);
>
> You have XZ as image compression, right?
>
> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
> for decompression. I tested with XZ as well, but the configuration I
> used for this test doesn't have OP-TEE enabled, so the faulting area was
> not there.
>
> Sascha
>
> --
> 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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:27 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 13:38 ` Ahmad Fatoum
2026-05-20 13:42 ` v2026.05.0 Alexander Shiyan
2026-05-22 11:00 ` v2026.05.0 Ahmad Fatoum
1 sibling, 1 reply; 13+ messages in thread
From: Ahmad Fatoum @ 2026-05-20 13:38 UTC (permalink / raw)
To: Alexander Shiyan, Sascha Hauer; +Cc: barebox
Hello,
On 5/20/26 3:27 PM, Alexander Shiyan wrote:
> Hello Sascha.
>
> Yes, that's how it works.
>
> The new version adds a different trap, but it's most likely a board
> issue; I'll investigate.
Let me know what you find out. I assume that the write of
$barebox,root-node failed, but I am at loss why.
If your board code available publicly?
Cheers,
Ahmad
>
> Thanks!
>
>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> bw 2 row_3_4 0
> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> uncompress.c: memory at 0x00a00000, size 0xef600000
> endmem = 0xf0000000
> arm_mem_optee = 0xee000000+0x02000000
> arm_mem_scratch = 0xedff8000+0x00008000
> arm_mem_stack = 0xedff0000+0x00008000
> arm_mem_ttb = 0xedf80000+0x00040000
> arm_mem_barebox_image = 0xedc00000+0x00400000
> arm_mem_early_malloc = 0xedbe0000+0x00020000
> membase = 0x00a00000+0xef600000
> mmu: enabling MMU, ttb @ 0xedf80000
> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
> 0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
> uncompress.c: relocating ELF in place
> In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
> load_addr=00000000edc00000, offset=0xedc10000
> In-place ELF relocation completed successfully
> pbl-mmu: Setting up MMU from ELF segments
> pbl-mmu: Segment 0 not page-aligned, rounding
> pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
> mmu_flags=0x3
> mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
> pbl-mmu: Segment 1 not page-aligned, rounding
> pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
> mmu_flags=0x4
> mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
> pbl-mmu: Segment 3 not page-aligned, rounding
> pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
> mmu_flags=0x1
> mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
> pbl-mmu: MMU setup from ELF complete
> uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
> start.c: memory at 0x00a00000, size 0xef600000
> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> start.c: starting barebox...
> initcall-> command_slice_init+0x0/0x3c
> initcall-> globalvar_init+0x0/0x8c
> initcall-> register_bus_class+0x0/0x20
> initcall-> platform_init+0x0/0x1c
> initcall-> mdio_bus_init+0x0/0x1c
> initcall-> register_mii_class+0x0/0x20
> initcall-> usb_bus_init+0x0/0x1c
> initcall-> otg_bus_init+0x0/0x1c
> initcall-> register_udc_class+0x0/0x20
> initcall-> spi_bus_init+0x0/0x1c
> initcall-> i2c_bus_init+0x0/0x1c
> initcall-> register_i2c_adapter_class+0x0/0x20
> initcall-> register_mmc_class+0x0/0x20
> initcall-> register_fb_class+0x0/0x20
> initcall-> register_backlight_class+0x0/0x20
> initcall-> nvmem_init+0x0/0x14
> initcall-> register_nvmem_class+0x0/0x20
> initcall-> register_watchdog_class+0x0/0x20
> initcall-> gpio_desc_alloc+0x0/0x24
> initcall-> pci_bus_init+0x0/0x1c
> initcall-> scmi_bus_driver_init+0x0/0x40
> initcall-> register_phy_class+0x0/0x20
> initcall-> register_eth_class+0x0/0x20
> initcall-> fs_bus_init+0x0/0x1c
> initcall-> defaultenv_init+0x0/0x6c
> initcall-> console_common_init+0x0/0xac
> initcall-> partitions_init+0x0/0x50
> initcall-> genpd_bus_init+0x0/0x1c
> initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
> initcall-> clk_rk3568_driver_register+0x0/0x1c
> initcall-> clk_rk3588_driver_register+0x0/0x1c
> initcall-> scmi_clocks_driver_register+0x0/0x1c
> initcall-> gated_fixed_clk_driver_register+0x0/0x1c
> initcall-> gpio_gate_clock_driver_register+0x0/0x1c
> initcall-> syscon_driver_register+0x0/0x1c
> initcall-> rockchip_gpio_driver_register+0x0/0x1c
> initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
> initcall-> simple_pm_bus_driver_register+0x0/0x1c
> initcall-> scmi_drv_register+0x0/0x1c
> initcall-> scmi_reset_driver_register+0x0/0x1c
> initcall-> arm_scmi_driver_register+0x0/0x1c
> initcall-> scmi_power_domain_driver_register+0x0/0x1c
> initcall-> aarch64_init_vectors+0x0/0x50
> initcall-> of_arm_init+0x0/0x2c
> deep-probe: enabled in device tree
> initcall-> register_autoboot_vars+0x0/0x7c
> initcall-> system_partitions_var_init+0x0/0x50
> initcall-> register_env_vars+0x0/0x30
> initcall-> mipi_dsi_bus_init+0x0/0x1c
> initcall-> arm_arch_timer_driver_register+0x0/0x1c
> initcall-> of_init_early_vars+0x0/0x8
> initcall-> of_timer_init+0x0/0x20
> initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
> initcall-> net_init+0x0/0x94
> initcall-> init_fs+0x0/0x2c
> initcall-> rockchip_init+0x0/0xe8
> initcall-> ns16550_serial_driver_register+0x0/0x1c
> initcall-> dos_partition_init+0x0/0x1c
> initcall-> efi_partition_init+0x0/0x1c
> initcall-> of_stdoutpath_init+0x0/0x28
> Switch to console [cs0]
>
>
> barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
>
>
> Board: Diasom DS-RK3568-SMARC-EVB
> start.c: memory at 0x00a00000, size 0xef600000
> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> start.c: starting barebox...
> initcall-> command_slice_init+0x0/0x3c
> initcall-> globalvar_init+0x0/0x8c
> initcall-> register_bus_class+0x0/0x20
> initcall-> platform_init+0x0/0x1c
> initcall-> mdio_bus_init+0x0/0x1c
> initcall-> register_mii_class+0x0/0x20
> initcall-> usb_bus_init+0x0/0x1c
> initcall-> otg_bus_init+0x0/0x1c
> initcall-> register_udc_class+0x0/0x20
> initcall-> spi_bus_init+0x0/0x1c
> initcall-> i2c_bus_init+0x0/0x1c
> initcall-> register_i2c_adapter_class+0x0/0x20
> initcall-> register_mmc_class+0x0/0x20
> initcall-> register_fb_class+0x0/0x20
> initcall-> register_backlight_class+0x0/0x20
> initcall-> nvmem_init+0x0/0x14
> initcall-> register_nvmem_class+0x0/0x20
> initcall-> register_watchdog_class+0x0/0x20
> initcall-> gpio_desc_alloc+0x0/0x24
> initcall-> pci_bus_init+0x0/0x1c
> initcall-> scmi_bus_driver_init+0x0/0x40
> initcall-> register_phy_class+0x0/0x20
> initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
> initcall-> rockchip_dmc_driver_init+0x0/0x324
> rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
> initcall-> __image_start+0x0/0x74
> initcall-> mem_register_barebox+0x0/0x4c
> initcall-> of_reserved_mem_walk+0x0/0x1bc
> initcall-> mmu_init+0x0/0x1e0
> initcall-> mem_malloc_resource+0x0/0xdc
> initcall-> reset_source_init+0x0/0x50
> initcall-> usbgadget_globalvars_init+0x0/0x44
> initcall-> bootsource_init+0x0/0x40
> initcall-> usb_udc_init+0x0/0x20
> initcall-> rockchip_spi_driver_register+0x0/0x1c
> initcall-> rk3x_i2c_driver_register+0x0/0x1c
> initcall-> rk808_spi_driver_register+0x0/0x28
> initcall-> rk808_i2c_driver_register+0x0/0x28
> initcall-> regulator_fixed_driver_register+0x0/0x1c
> initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
> initcall-> rockchip_combphy_driver_register+0x0/0x1c
> initcall-> rockchip_p3phy_driver_register+0x0/0x1c
> initcall-> rk_udphy_driver_register+0x0/0x1c
> initcall-> rockchip_iodomain_driver_register+0x0/0x1c
> initcall-> digest_hmac_initcall+0x0/0x44
> initcall-> sha1_digest_register+0x0/0x1c
> initcall-> sha256_digest_register+0x0/0x1c
> initcall-> ext_init+0x0/0x1c
> initcall-> ramfs_init+0x0/0x1c
> initcall-> tftp_init+0x0/0x38
> initcall-> nfs_init+0x0/0x5c
> initcall-> fat_init+0x0/0x1c
> initcall-> diasom_rk3568_driver_register+0x0/0x1c
> initcall-> diasom_rk3588_driver_register+0x0/0x1c
> initcall-> psci_driver_register+0x0/0x1c
> initcall-> arm_request_stack+0x0/0x4c
> initcall-> mount_root+0x0/0x74
> initcall-> binfmt_sh_init+0x0/0x1c
> initcall-> binfmt_uimage_init+0x0/0x1c
> initcall-> png_init+0x0/0x1c
> initcall-> extlinux_init+0x0/0x1c
> initcall-> of_kernel_init+0x0/0x28
> initcall-> console_ctrlc_init+0x0/0x30
> initcall-> firmware_init+0x0/0x38
> initcall-> bootdef_entry_init+0x0/0x1c
> initcall-> fastboot_globalvars_init+0x0/0x12c
> initcall-> genphy_driver_register+0x0/0x1c
> initcall-> realtek_drvs_register+0x0/0x20
> initcall-> mdio_gpio_driver_register+0x0/0x1c
> initcall-> rk_gmac_driver_register+0x0/0x1c
> initcall-> rtl8169_eth_driver_register+0x0/0x1c
> initcall-> usb_hub_init+0x0/0x1c
> initcall-> dwc3_driver_register+0x0/0x1c
> initcall-> usb_stor_init+0x0/0x1c
> initcall-> ehci_driver_register+0x0/0x1c
> initcall-> xhci_driver_register+0x0/0x1c
> initcall-> gsermod_init+0x0/0x1c
> initcall-> acmmod_init+0x0/0x1c
> initcall-> dfumod_init+0x0/0x1c
> initcall-> fastbootmod_init+0x0/0x1c
> initcall-> umsmod_init+0x0/0x1c
> initcall-> onboard_dev_driver_register+0x0/0x1c
> initcall-> pca954x_driver_register+0x0/0x28
> initcall-> rk_sdhci_driver_register+0x0/0x1c
> initcall-> dw_mmc_driver_register+0x0/0x1c
> initcall-> backlight_pwm_of_driver_register+0x0/0x1c
> initcall-> vop2_driver_register+0x0/0x1c
> initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
> initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
> initcall-> led_gpio_of_driver_register+0x0/0x1c
> initcall-> at24_driver_register+0x0/0x28
> initcall-> rockchip_pwm_driver_register+0x0/0x1c
> initcall-> sram_driver_register+0x0/0x1c
> initcall-> mem_init+0x0/0x90
> initcall-> nvmem_cells_driver_register+0x0/0x1c
> initcall-> rmem_driver_register+0x0/0x1c
> initcall-> rockchip_otp_driver_register+0x0/0x1c
> initcall-> dw_wdt_driver_register+0x0/0x1c
> initcall-> pca953x_driver_register+0x0/0x28
> initcall-> rk_rng_driver_register+0x0/0x1c
> initcall-> of_partition_init+0x0/0x48
> initcall-> of_overlay_init+0x0/0x104
> initcall-> fan53555_regulator_driver_register+0x0/0x28
> initcall-> rk808_regulator_driver_register+0x0/0x1c
> initcall-> rockchip_pcie_driver_register+0x0/0x1c
> initcall-> inno_dsidphy_driver_register+0x0/0x1c
> initcall-> rockchip_saradc_driver_register+0x0/0x1c
> initcall-> nvme_driver_register+0x0/0x1c
> initcall-> gpio_restart_driver_register+0x0/0x1c
> initcall-> prng_init+0x0/0x40
> initcall-> null_init+0x0/0x40
> initcall-> full_init+0x0/0x40
> initcall-> zero_init+0x0/0x40
> initcall-> md5_digest_register+0x0/0x1c
> initcall-> sha224_digest_register+0x0/0x1c
> initcall-> init_net_poll+0x0/0x24
> initcall-> netconsole_init+0x0/0x12c
> netconsole: registered as netconsole-1
> initcall-> diasom_rk3568_init+0x0/0x448
> CPU version 0x03 detected.
> rk808 rk8090: chip id: 0x8090
> vcc_ddr: Bringing 500000uV into 1100000-1100000uV
> vdd_npu: Bringing 500000uV into 850000-850000uV
> vdda0v9_image: Bringing 600000uV into 900000-900000uV
> vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
> rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
> SOM version 2+ detected.
> SMARC version 3 used.
> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> psci psci.of: detected version 1.1
> xHCI xHCI0: USB XHCI 1.10
> xHCI xHCI1: USB XHCI 1.10
> ehci fd800000.usb@fd800000.of: USB EHCI 1.00
> ehci fd880000.usb@fd880000.of: USB EHCI 1.00
> fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
> mdio_bus: miibus0: probed
> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
> v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
> Smart0-win0, type primary
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
> window Smart1-win0, type overlay
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
> window Esmart1-win0, type overlay
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
> window Esmart0-win0, type overlay
> rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
> dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
> mmc1: detected SD card version 3.0
> WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
> of the disk.
> WARNING: mmc1: GPT:2669671 != 62333951
> WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
> WARNING: mmc1: GPT:2669671 != 62333951
> mmc1: GPT: will repair later if global.system.gpt_refresh=1
> mmc1: registered mmc1
> rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
> mmc0: detected MMC card version 5.1
> mmc0: registered mmc0.boot0
> mmc0: registered mmc0.boot1
> mmc0: registered mmc0
> i2c2: Added multiplexed i2c bus 6
> i2c2: Added multiplexed i2c bus 7
> i2c2: Added multiplexed i2c bus 8
> i2c2: Added multiplexed i2c bus 9
> pca954x pca95460: registered 4 multiplexed busses for I2C switch
> phy6: lane number 0, val 1
> phy6: lane number 1, val 2
> phy6: bifurcation enabled
> rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
> mdio_bus: miibus1: probed
> mdio_bus: miibus2: probed
> PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
> DABT (current EL) (ESR 0x9600000b)
> elr: 00000000edc6ff00 lr : 00000000edc6ff00
> x0 : 00000000edcd5c17 x1 : 00000000edd7f000
> x2 : 0000000000000000 x3 : 0000000000000030
> x4 : 0000000000000000 x5 : 00000000edff7d18
> x6 : 0000000000000002 x7 : 0000000000000000
> x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
> x10: 63702d3376336363 x11: 6b6c632d30336569
> x12: 00000000edff7b30 x13: 00000000ffffffc8
> x14: 0000000000000001 x15: 0000000000000000
> x16: 00000000edccb95f x17: 0000000000000000
> x18: 000000000000000a x19: 00000000aff3aa60
> x20: 0000000000000000 x21: 0000000000000010
> x22: 0000000000000000 x23: 00000000edcd5c17
> x24: 0000000000000000 x25: 00000000f0000000
> x26: 00000000000737a4 x27: 00000000001bb598
> x28: 0000000000000000 x29: 00000000edff7dd0
>
> Call trace:
> [<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
> (of_new_property+0x58/0x6c)
> [<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
> (of_property_write_bool+0x5c/0x68)
> [<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
> (of_set_root_node+0x60/0x88)
> [<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
> (diasom_rk3568_init+0x230/0x448)
> [<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
> (start_barebox+0x84/0xa4)
> [<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
> (barebox_non_pbl_start+0xd8/0xe8)
> [<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
> [<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
>
> ### ERROR ### Please RESET the board ###
>
> ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
>>
>> On 2026-05-20 15:11, Alexander Shiyan wrote:
>>> Here is output with lowlevel debug:
>>> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
>>> In
>>> ...
>>> out
>>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
>>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
>>> bw 2 row_3_4 0
>>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
>>> mmu: enabling MMU, ttb @ 0xedf80000
>>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
>>> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
>>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
>>
>> Damn. I introduced this:
>>
>> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
>>
>> This exactly ends up in the area marked as FAULT above (reserved for
>> OP-TEE).
>>
>> Try this:
>>
>> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
>> PBL_MALLOC_SIZE);
>>
>> You have XZ as image compression, right?
>>
>> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
>> for decompression. I tested with XZ as well, but the configuration I
>> used for this test doesn't have OP-TEE enabled, so the faulting area was
>> not there.
>>
>> Sascha
>>
>> --
>> 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 |
>
>
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:38 ` v2026.05.0 Ahmad Fatoum
@ 2026-05-20 13:42 ` Alexander Shiyan
2026-05-20 13:43 ` v2026.05.0 Ahmad Fatoum
0 siblings, 1 reply; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 13:42 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
Hello Ahmad.
Yes, this caused by of_set_root_node(NULL);
The code uses this trick for reload correct aliases after load overlay.
https://github.com/MacroGroup/barebox/blob/macro/arch/arm/boards/diasom-rk3568/board.c#L495
ср, 20 мая 2026 г. в 16:38, Ahmad Fatoum <a.fatoum@pengutronix.de>:
>
> Hello,
>
> On 5/20/26 3:27 PM, Alexander Shiyan wrote:
> > Hello Sascha.
> >
> > Yes, that's how it works.
> >
> > The new version adds a different trap, but it's most likely a board
> > issue; I'll investigate.
>
> Let me know what you find out. I assume that the write of
> $barebox,root-node failed, but I am at loss why.
>
> If your board code available publicly?
>
> Cheers,
> Ahmad
>
> >
> > Thanks!
> >
> >> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> > rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> > bw 2 row_3_4 0
> > rockchip-dmc: rk3568_ram_sizes() = 8589934592
> > uncompress.c: memory at 0x00a00000, size 0xef600000
> > endmem = 0xf0000000
> > arm_mem_optee = 0xee000000+0x02000000
> > arm_mem_scratch = 0xedff8000+0x00008000
> > arm_mem_stack = 0xedff0000+0x00008000
> > arm_mem_ttb = 0xedf80000+0x00040000
> > arm_mem_barebox_image = 0xedc00000+0x00400000
> > arm_mem_early_malloc = 0xedbe0000+0x00020000
> > membase = 0x00a00000+0xef600000
> > mmu: enabling MMU, ttb @ 0xedf80000
> > mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> > mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> > mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> > mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
> > mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> > uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
> > 0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
> > uncompress.c: relocating ELF in place
> > In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
> > load_addr=00000000edc00000, offset=0xedc10000
> > In-place ELF relocation completed successfully
> > pbl-mmu: Setting up MMU from ELF segments
> > pbl-mmu: Segment 0 not page-aligned, rounding
> > pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
> > mmu_flags=0x3
> > mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
> > pbl-mmu: Segment 1 not page-aligned, rounding
> > pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
> > mmu_flags=0x4
> > mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
> > pbl-mmu: Segment 3 not page-aligned, rounding
> > pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
> > mmu_flags=0x1
> > mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
> > pbl-mmu: MMU setup from ELF complete
> > uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
> > start.c: memory at 0x00a00000, size 0xef600000
> > start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> > start.c: starting barebox...
> > initcall-> command_slice_init+0x0/0x3c
> > initcall-> globalvar_init+0x0/0x8c
> > initcall-> register_bus_class+0x0/0x20
> > initcall-> platform_init+0x0/0x1c
> > initcall-> mdio_bus_init+0x0/0x1c
> > initcall-> register_mii_class+0x0/0x20
> > initcall-> usb_bus_init+0x0/0x1c
> > initcall-> otg_bus_init+0x0/0x1c
> > initcall-> register_udc_class+0x0/0x20
> > initcall-> spi_bus_init+0x0/0x1c
> > initcall-> i2c_bus_init+0x0/0x1c
> > initcall-> register_i2c_adapter_class+0x0/0x20
> > initcall-> register_mmc_class+0x0/0x20
> > initcall-> register_fb_class+0x0/0x20
> > initcall-> register_backlight_class+0x0/0x20
> > initcall-> nvmem_init+0x0/0x14
> > initcall-> register_nvmem_class+0x0/0x20
> > initcall-> register_watchdog_class+0x0/0x20
> > initcall-> gpio_desc_alloc+0x0/0x24
> > initcall-> pci_bus_init+0x0/0x1c
> > initcall-> scmi_bus_driver_init+0x0/0x40
> > initcall-> register_phy_class+0x0/0x20
> > initcall-> register_eth_class+0x0/0x20
> > initcall-> fs_bus_init+0x0/0x1c
> > initcall-> defaultenv_init+0x0/0x6c
> > initcall-> console_common_init+0x0/0xac
> > initcall-> partitions_init+0x0/0x50
> > initcall-> genpd_bus_init+0x0/0x1c
> > initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
> > initcall-> clk_rk3568_driver_register+0x0/0x1c
> > initcall-> clk_rk3588_driver_register+0x0/0x1c
> > initcall-> scmi_clocks_driver_register+0x0/0x1c
> > initcall-> gated_fixed_clk_driver_register+0x0/0x1c
> > initcall-> gpio_gate_clock_driver_register+0x0/0x1c
> > initcall-> syscon_driver_register+0x0/0x1c
> > initcall-> rockchip_gpio_driver_register+0x0/0x1c
> > initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
> > initcall-> simple_pm_bus_driver_register+0x0/0x1c
> > initcall-> scmi_drv_register+0x0/0x1c
> > initcall-> scmi_reset_driver_register+0x0/0x1c
> > initcall-> arm_scmi_driver_register+0x0/0x1c
> > initcall-> scmi_power_domain_driver_register+0x0/0x1c
> > initcall-> aarch64_init_vectors+0x0/0x50
> > initcall-> of_arm_init+0x0/0x2c
> > deep-probe: enabled in device tree
> > initcall-> register_autoboot_vars+0x0/0x7c
> > initcall-> system_partitions_var_init+0x0/0x50
> > initcall-> register_env_vars+0x0/0x30
> > initcall-> mipi_dsi_bus_init+0x0/0x1c
> > initcall-> arm_arch_timer_driver_register+0x0/0x1c
> > initcall-> of_init_early_vars+0x0/0x8
> > initcall-> of_timer_init+0x0/0x20
> > initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
> > initcall-> net_init+0x0/0x94
> > initcall-> init_fs+0x0/0x2c
> > initcall-> rockchip_init+0x0/0xe8
> > initcall-> ns16550_serial_driver_register+0x0/0x1c
> > initcall-> dos_partition_init+0x0/0x1c
> > initcall-> efi_partition_init+0x0/0x1c
> > initcall-> of_stdoutpath_init+0x0/0x28
> > Switch to console [cs0]
> >
> >
> > barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
> >
> >
> > Board: Diasom DS-RK3568-SMARC-EVB
> > start.c: memory at 0x00a00000, size 0xef600000
> > start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> > start.c: starting barebox...
> > initcall-> command_slice_init+0x0/0x3c
> > initcall-> globalvar_init+0x0/0x8c
> > initcall-> register_bus_class+0x0/0x20
> > initcall-> platform_init+0x0/0x1c
> > initcall-> mdio_bus_init+0x0/0x1c
> > initcall-> register_mii_class+0x0/0x20
> > initcall-> usb_bus_init+0x0/0x1c
> > initcall-> otg_bus_init+0x0/0x1c
> > initcall-> register_udc_class+0x0/0x20
> > initcall-> spi_bus_init+0x0/0x1c
> > initcall-> i2c_bus_init+0x0/0x1c
> > initcall-> register_i2c_adapter_class+0x0/0x20
> > initcall-> register_mmc_class+0x0/0x20
> > initcall-> register_fb_class+0x0/0x20
> > initcall-> register_backlight_class+0x0/0x20
> > initcall-> nvmem_init+0x0/0x14
> > initcall-> register_nvmem_class+0x0/0x20
> > initcall-> register_watchdog_class+0x0/0x20
> > initcall-> gpio_desc_alloc+0x0/0x24
> > initcall-> pci_bus_init+0x0/0x1c
> > initcall-> scmi_bus_driver_init+0x0/0x40
> > initcall-> register_phy_class+0x0/0x20
> > initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
> > initcall-> rockchip_dmc_driver_init+0x0/0x324
> > rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
> > initcall-> __image_start+0x0/0x74
> > initcall-> mem_register_barebox+0x0/0x4c
> > initcall-> of_reserved_mem_walk+0x0/0x1bc
> > initcall-> mmu_init+0x0/0x1e0
> > initcall-> mem_malloc_resource+0x0/0xdc
> > initcall-> reset_source_init+0x0/0x50
> > initcall-> usbgadget_globalvars_init+0x0/0x44
> > initcall-> bootsource_init+0x0/0x40
> > initcall-> usb_udc_init+0x0/0x20
> > initcall-> rockchip_spi_driver_register+0x0/0x1c
> > initcall-> rk3x_i2c_driver_register+0x0/0x1c
> > initcall-> rk808_spi_driver_register+0x0/0x28
> > initcall-> rk808_i2c_driver_register+0x0/0x28
> > initcall-> regulator_fixed_driver_register+0x0/0x1c
> > initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
> > initcall-> rockchip_combphy_driver_register+0x0/0x1c
> > initcall-> rockchip_p3phy_driver_register+0x0/0x1c
> > initcall-> rk_udphy_driver_register+0x0/0x1c
> > initcall-> rockchip_iodomain_driver_register+0x0/0x1c
> > initcall-> digest_hmac_initcall+0x0/0x44
> > initcall-> sha1_digest_register+0x0/0x1c
> > initcall-> sha256_digest_register+0x0/0x1c
> > initcall-> ext_init+0x0/0x1c
> > initcall-> ramfs_init+0x0/0x1c
> > initcall-> tftp_init+0x0/0x38
> > initcall-> nfs_init+0x0/0x5c
> > initcall-> fat_init+0x0/0x1c
> > initcall-> diasom_rk3568_driver_register+0x0/0x1c
> > initcall-> diasom_rk3588_driver_register+0x0/0x1c
> > initcall-> psci_driver_register+0x0/0x1c
> > initcall-> arm_request_stack+0x0/0x4c
> > initcall-> mount_root+0x0/0x74
> > initcall-> binfmt_sh_init+0x0/0x1c
> > initcall-> binfmt_uimage_init+0x0/0x1c
> > initcall-> png_init+0x0/0x1c
> > initcall-> extlinux_init+0x0/0x1c
> > initcall-> of_kernel_init+0x0/0x28
> > initcall-> console_ctrlc_init+0x0/0x30
> > initcall-> firmware_init+0x0/0x38
> > initcall-> bootdef_entry_init+0x0/0x1c
> > initcall-> fastboot_globalvars_init+0x0/0x12c
> > initcall-> genphy_driver_register+0x0/0x1c
> > initcall-> realtek_drvs_register+0x0/0x20
> > initcall-> mdio_gpio_driver_register+0x0/0x1c
> > initcall-> rk_gmac_driver_register+0x0/0x1c
> > initcall-> rtl8169_eth_driver_register+0x0/0x1c
> > initcall-> usb_hub_init+0x0/0x1c
> > initcall-> dwc3_driver_register+0x0/0x1c
> > initcall-> usb_stor_init+0x0/0x1c
> > initcall-> ehci_driver_register+0x0/0x1c
> > initcall-> xhci_driver_register+0x0/0x1c
> > initcall-> gsermod_init+0x0/0x1c
> > initcall-> acmmod_init+0x0/0x1c
> > initcall-> dfumod_init+0x0/0x1c
> > initcall-> fastbootmod_init+0x0/0x1c
> > initcall-> umsmod_init+0x0/0x1c
> > initcall-> onboard_dev_driver_register+0x0/0x1c
> > initcall-> pca954x_driver_register+0x0/0x28
> > initcall-> rk_sdhci_driver_register+0x0/0x1c
> > initcall-> dw_mmc_driver_register+0x0/0x1c
> > initcall-> backlight_pwm_of_driver_register+0x0/0x1c
> > initcall-> vop2_driver_register+0x0/0x1c
> > initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
> > initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
> > initcall-> led_gpio_of_driver_register+0x0/0x1c
> > initcall-> at24_driver_register+0x0/0x28
> > initcall-> rockchip_pwm_driver_register+0x0/0x1c
> > initcall-> sram_driver_register+0x0/0x1c
> > initcall-> mem_init+0x0/0x90
> > initcall-> nvmem_cells_driver_register+0x0/0x1c
> > initcall-> rmem_driver_register+0x0/0x1c
> > initcall-> rockchip_otp_driver_register+0x0/0x1c
> > initcall-> dw_wdt_driver_register+0x0/0x1c
> > initcall-> pca953x_driver_register+0x0/0x28
> > initcall-> rk_rng_driver_register+0x0/0x1c
> > initcall-> of_partition_init+0x0/0x48
> > initcall-> of_overlay_init+0x0/0x104
> > initcall-> fan53555_regulator_driver_register+0x0/0x28
> > initcall-> rk808_regulator_driver_register+0x0/0x1c
> > initcall-> rockchip_pcie_driver_register+0x0/0x1c
> > initcall-> inno_dsidphy_driver_register+0x0/0x1c
> > initcall-> rockchip_saradc_driver_register+0x0/0x1c
> > initcall-> nvme_driver_register+0x0/0x1c
> > initcall-> gpio_restart_driver_register+0x0/0x1c
> > initcall-> prng_init+0x0/0x40
> > initcall-> null_init+0x0/0x40
> > initcall-> full_init+0x0/0x40
> > initcall-> zero_init+0x0/0x40
> > initcall-> md5_digest_register+0x0/0x1c
> > initcall-> sha224_digest_register+0x0/0x1c
> > initcall-> init_net_poll+0x0/0x24
> > initcall-> netconsole_init+0x0/0x12c
> > netconsole: registered as netconsole-1
> > initcall-> diasom_rk3568_init+0x0/0x448
> > CPU version 0x03 detected.
> > rk808 rk8090: chip id: 0x8090
> > vcc_ddr: Bringing 500000uV into 1100000-1100000uV
> > vdd_npu: Bringing 500000uV into 850000-850000uV
> > vdda0v9_image: Bringing 600000uV into 900000-900000uV
> > vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
> > rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
> > SOM version 2+ detected.
> > SMARC version 3 used.
> > arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> > psci psci.of: detected version 1.1
> > xHCI xHCI0: USB XHCI 1.10
> > xHCI xHCI1: USB XHCI 1.10
> > ehci fd800000.usb@fd800000.of: USB EHCI 1.00
> > ehci fd880000.usb@fd880000.of: USB EHCI 1.00
> > fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
> > mdio_bus: miibus0: probed
> > dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
> > dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
> > v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
> > rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
> > Smart0-win0, type primary
> > rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
> > window Smart1-win0, type overlay
> > rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
> > window Esmart1-win0, type overlay
> > rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
> > window Esmart0-win0, type overlay
> > rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
> > dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
> > mmc1: detected SD card version 3.0
> > WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
> > of the disk.
> > WARNING: mmc1: GPT:2669671 != 62333951
> > WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
> > WARNING: mmc1: GPT:2669671 != 62333951
> > mmc1: GPT: will repair later if global.system.gpt_refresh=1
> > mmc1: registered mmc1
> > rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
> > mmc0: detected MMC card version 5.1
> > mmc0: registered mmc0.boot0
> > mmc0: registered mmc0.boot1
> > mmc0: registered mmc0
> > i2c2: Added multiplexed i2c bus 6
> > i2c2: Added multiplexed i2c bus 7
> > i2c2: Added multiplexed i2c bus 8
> > i2c2: Added multiplexed i2c bus 9
> > pca954x pca95460: registered 4 multiplexed busses for I2C switch
> > phy6: lane number 0, val 1
> > phy6: lane number 1, val 2
> > phy6: bifurcation enabled
> > rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
> > mdio_bus: miibus1: probed
> > mdio_bus: miibus2: probed
> > PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
> > DABT (current EL) (ESR 0x9600000b)
> > elr: 00000000edc6ff00 lr : 00000000edc6ff00
> > x0 : 00000000edcd5c17 x1 : 00000000edd7f000
> > x2 : 0000000000000000 x3 : 0000000000000030
> > x4 : 0000000000000000 x5 : 00000000edff7d18
> > x6 : 0000000000000002 x7 : 0000000000000000
> > x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
> > x10: 63702d3376336363 x11: 6b6c632d30336569
> > x12: 00000000edff7b30 x13: 00000000ffffffc8
> > x14: 0000000000000001 x15: 0000000000000000
> > x16: 00000000edccb95f x17: 0000000000000000
> > x18: 000000000000000a x19: 00000000aff3aa60
> > x20: 0000000000000000 x21: 0000000000000010
> > x22: 0000000000000000 x23: 00000000edcd5c17
> > x24: 0000000000000000 x25: 00000000f0000000
> > x26: 00000000000737a4 x27: 00000000001bb598
> > x28: 0000000000000000 x29: 00000000edff7dd0
> >
> > Call trace:
> > [<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
> > (of_new_property+0x58/0x6c)
> > [<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
> > (of_property_write_bool+0x5c/0x68)
> > [<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
> > (of_set_root_node+0x60/0x88)
> > [<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
> > (diasom_rk3568_init+0x230/0x448)
> > [<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
> > (start_barebox+0x84/0xa4)
> > [<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
> > (barebox_non_pbl_start+0xd8/0xe8)
> > [<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
> > [<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
> >
> > ### ERROR ### Please RESET the board ###
> >
> > ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
> >>
> >> On 2026-05-20 15:11, Alexander Shiyan wrote:
> >>> Here is output with lowlevel debug:
> >>> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
> >>> In
> >>> ...
> >>> out
> >>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> >>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> >>> bw 2 row_3_4 0
> >>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> >>> mmu: enabling MMU, ttb @ 0xedf80000
> >>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> >>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> >>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> >>> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
> >>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> >>
> >> Damn. I introduced this:
> >>
> >> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
> >>
> >> This exactly ends up in the area marked as FAULT above (reserved for
> >> OP-TEE).
> >>
> >> Try this:
> >>
> >> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
> >> PBL_MALLOC_SIZE);
> >>
> >> You have XZ as image compression, right?
> >>
> >> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
> >> for decompression. I tested with XZ as well, but the configuration I
> >> used for this test doesn't have OP-TEE enabled, so the faulting area was
> >> not there.
> >>
> >> Sascha
> >>
> >> --
> >> 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 |
> >
> >
>
> --
> 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 |
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:42 ` v2026.05.0 Alexander Shiyan
@ 2026-05-20 13:43 ` Ahmad Fatoum
2026-05-20 13:47 ` v2026.05.0 Alexander Shiyan
0 siblings, 1 reply; 13+ messages in thread
From: Ahmad Fatoum @ 2026-05-20 13:43 UTC (permalink / raw)
To: Alexander Shiyan; +Cc: barebox
Hello,
On 5/20/26 3:42 PM, Alexander Shiyan wrote:
> Hello Ahmad.
>
> Yes, this caused by of_set_root_node(NULL);
>
> The code uses this trick for reload correct aliases after load overlay.
> https://github.com/MacroGroup/barebox/blob/macro/arch/arm/boards/diasom-rk3568/board.c#L495
Ah, I didn't anticpate this use.
Why can't you just call of_alias_scan()?
Cheers,
Ahmad
>
>
> ср, 20 мая 2026 г. в 16:38, Ahmad Fatoum <a.fatoum@pengutronix.de>:
>>
>> Hello,
>>
>> On 5/20/26 3:27 PM, Alexander Shiyan wrote:
>>> Hello Sascha.
>>>
>>> Yes, that's how it works.
>>>
>>> The new version adds a different trap, but it's most likely a board
>>> issue; I'll investigate.
>>
>> Let me know what you find out. I assume that the write of
>> $barebox,root-node failed, but I am at loss why.
>>
>> If your board code available publicly?
>>
>> Cheers,
>> Ahmad
>>
>>>
>>> Thanks!
>>>
>>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
>>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
>>> bw 2 row_3_4 0
>>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
>>> uncompress.c: memory at 0x00a00000, size 0xef600000
>>> endmem = 0xf0000000
>>> arm_mem_optee = 0xee000000+0x02000000
>>> arm_mem_scratch = 0xedff8000+0x00008000
>>> arm_mem_stack = 0xedff0000+0x00008000
>>> arm_mem_ttb = 0xedf80000+0x00040000
>>> arm_mem_barebox_image = 0xedc00000+0x00400000
>>> arm_mem_early_malloc = 0xedbe0000+0x00020000
>>> membase = 0x00a00000+0xef600000
>>> mmu: enabling MMU, ttb @ 0xedf80000
>>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
>>> mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
>>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
>>> uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
>>> 0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
>>> uncompress.c: relocating ELF in place
>>> In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
>>> load_addr=00000000edc00000, offset=0xedc10000
>>> In-place ELF relocation completed successfully
>>> pbl-mmu: Setting up MMU from ELF segments
>>> pbl-mmu: Segment 0 not page-aligned, rounding
>>> pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
>>> mmu_flags=0x3
>>> mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
>>> pbl-mmu: Segment 1 not page-aligned, rounding
>>> pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
>>> mmu_flags=0x4
>>> mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
>>> pbl-mmu: Segment 3 not page-aligned, rounding
>>> pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
>>> mmu_flags=0x1
>>> mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
>>> pbl-mmu: MMU setup from ELF complete
>>> uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
>>> start.c: memory at 0x00a00000, size 0xef600000
>>> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
>>> start.c: starting barebox...
>>> initcall-> command_slice_init+0x0/0x3c
>>> initcall-> globalvar_init+0x0/0x8c
>>> initcall-> register_bus_class+0x0/0x20
>>> initcall-> platform_init+0x0/0x1c
>>> initcall-> mdio_bus_init+0x0/0x1c
>>> initcall-> register_mii_class+0x0/0x20
>>> initcall-> usb_bus_init+0x0/0x1c
>>> initcall-> otg_bus_init+0x0/0x1c
>>> initcall-> register_udc_class+0x0/0x20
>>> initcall-> spi_bus_init+0x0/0x1c
>>> initcall-> i2c_bus_init+0x0/0x1c
>>> initcall-> register_i2c_adapter_class+0x0/0x20
>>> initcall-> register_mmc_class+0x0/0x20
>>> initcall-> register_fb_class+0x0/0x20
>>> initcall-> register_backlight_class+0x0/0x20
>>> initcall-> nvmem_init+0x0/0x14
>>> initcall-> register_nvmem_class+0x0/0x20
>>> initcall-> register_watchdog_class+0x0/0x20
>>> initcall-> gpio_desc_alloc+0x0/0x24
>>> initcall-> pci_bus_init+0x0/0x1c
>>> initcall-> scmi_bus_driver_init+0x0/0x40
>>> initcall-> register_phy_class+0x0/0x20
>>> initcall-> register_eth_class+0x0/0x20
>>> initcall-> fs_bus_init+0x0/0x1c
>>> initcall-> defaultenv_init+0x0/0x6c
>>> initcall-> console_common_init+0x0/0xac
>>> initcall-> partitions_init+0x0/0x50
>>> initcall-> genpd_bus_init+0x0/0x1c
>>> initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
>>> initcall-> clk_rk3568_driver_register+0x0/0x1c
>>> initcall-> clk_rk3588_driver_register+0x0/0x1c
>>> initcall-> scmi_clocks_driver_register+0x0/0x1c
>>> initcall-> gated_fixed_clk_driver_register+0x0/0x1c
>>> initcall-> gpio_gate_clock_driver_register+0x0/0x1c
>>> initcall-> syscon_driver_register+0x0/0x1c
>>> initcall-> rockchip_gpio_driver_register+0x0/0x1c
>>> initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
>>> initcall-> simple_pm_bus_driver_register+0x0/0x1c
>>> initcall-> scmi_drv_register+0x0/0x1c
>>> initcall-> scmi_reset_driver_register+0x0/0x1c
>>> initcall-> arm_scmi_driver_register+0x0/0x1c
>>> initcall-> scmi_power_domain_driver_register+0x0/0x1c
>>> initcall-> aarch64_init_vectors+0x0/0x50
>>> initcall-> of_arm_init+0x0/0x2c
>>> deep-probe: enabled in device tree
>>> initcall-> register_autoboot_vars+0x0/0x7c
>>> initcall-> system_partitions_var_init+0x0/0x50
>>> initcall-> register_env_vars+0x0/0x30
>>> initcall-> mipi_dsi_bus_init+0x0/0x1c
>>> initcall-> arm_arch_timer_driver_register+0x0/0x1c
>>> initcall-> of_init_early_vars+0x0/0x8
>>> initcall-> of_timer_init+0x0/0x20
>>> initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
>>> initcall-> net_init+0x0/0x94
>>> initcall-> init_fs+0x0/0x2c
>>> initcall-> rockchip_init+0x0/0xe8
>>> initcall-> ns16550_serial_driver_register+0x0/0x1c
>>> initcall-> dos_partition_init+0x0/0x1c
>>> initcall-> efi_partition_init+0x0/0x1c
>>> initcall-> of_stdoutpath_init+0x0/0x28
>>> Switch to console [cs0]
>>>
>>>
>>> barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
>>>
>>>
>>> Board: Diasom DS-RK3568-SMARC-EVB
>>> start.c: memory at 0x00a00000, size 0xef600000
>>> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
>>> start.c: starting barebox...
>>> initcall-> command_slice_init+0x0/0x3c
>>> initcall-> globalvar_init+0x0/0x8c
>>> initcall-> register_bus_class+0x0/0x20
>>> initcall-> platform_init+0x0/0x1c
>>> initcall-> mdio_bus_init+0x0/0x1c
>>> initcall-> register_mii_class+0x0/0x20
>>> initcall-> usb_bus_init+0x0/0x1c
>>> initcall-> otg_bus_init+0x0/0x1c
>>> initcall-> register_udc_class+0x0/0x20
>>> initcall-> spi_bus_init+0x0/0x1c
>>> initcall-> i2c_bus_init+0x0/0x1c
>>> initcall-> register_i2c_adapter_class+0x0/0x20
>>> initcall-> register_mmc_class+0x0/0x20
>>> initcall-> register_fb_class+0x0/0x20
>>> initcall-> register_backlight_class+0x0/0x20
>>> initcall-> nvmem_init+0x0/0x14
>>> initcall-> register_nvmem_class+0x0/0x20
>>> initcall-> register_watchdog_class+0x0/0x20
>>> initcall-> gpio_desc_alloc+0x0/0x24
>>> initcall-> pci_bus_init+0x0/0x1c
>>> initcall-> scmi_bus_driver_init+0x0/0x40
>>> initcall-> register_phy_class+0x0/0x20
>>> initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
>>> initcall-> rockchip_dmc_driver_init+0x0/0x324
>>> rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
>>> initcall-> __image_start+0x0/0x74
>>> initcall-> mem_register_barebox+0x0/0x4c
>>> initcall-> of_reserved_mem_walk+0x0/0x1bc
>>> initcall-> mmu_init+0x0/0x1e0
>>> initcall-> mem_malloc_resource+0x0/0xdc
>>> initcall-> reset_source_init+0x0/0x50
>>> initcall-> usbgadget_globalvars_init+0x0/0x44
>>> initcall-> bootsource_init+0x0/0x40
>>> initcall-> usb_udc_init+0x0/0x20
>>> initcall-> rockchip_spi_driver_register+0x0/0x1c
>>> initcall-> rk3x_i2c_driver_register+0x0/0x1c
>>> initcall-> rk808_spi_driver_register+0x0/0x28
>>> initcall-> rk808_i2c_driver_register+0x0/0x28
>>> initcall-> regulator_fixed_driver_register+0x0/0x1c
>>> initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
>>> initcall-> rockchip_combphy_driver_register+0x0/0x1c
>>> initcall-> rockchip_p3phy_driver_register+0x0/0x1c
>>> initcall-> rk_udphy_driver_register+0x0/0x1c
>>> initcall-> rockchip_iodomain_driver_register+0x0/0x1c
>>> initcall-> digest_hmac_initcall+0x0/0x44
>>> initcall-> sha1_digest_register+0x0/0x1c
>>> initcall-> sha256_digest_register+0x0/0x1c
>>> initcall-> ext_init+0x0/0x1c
>>> initcall-> ramfs_init+0x0/0x1c
>>> initcall-> tftp_init+0x0/0x38
>>> initcall-> nfs_init+0x0/0x5c
>>> initcall-> fat_init+0x0/0x1c
>>> initcall-> diasom_rk3568_driver_register+0x0/0x1c
>>> initcall-> diasom_rk3588_driver_register+0x0/0x1c
>>> initcall-> psci_driver_register+0x0/0x1c
>>> initcall-> arm_request_stack+0x0/0x4c
>>> initcall-> mount_root+0x0/0x74
>>> initcall-> binfmt_sh_init+0x0/0x1c
>>> initcall-> binfmt_uimage_init+0x0/0x1c
>>> initcall-> png_init+0x0/0x1c
>>> initcall-> extlinux_init+0x0/0x1c
>>> initcall-> of_kernel_init+0x0/0x28
>>> initcall-> console_ctrlc_init+0x0/0x30
>>> initcall-> firmware_init+0x0/0x38
>>> initcall-> bootdef_entry_init+0x0/0x1c
>>> initcall-> fastboot_globalvars_init+0x0/0x12c
>>> initcall-> genphy_driver_register+0x0/0x1c
>>> initcall-> realtek_drvs_register+0x0/0x20
>>> initcall-> mdio_gpio_driver_register+0x0/0x1c
>>> initcall-> rk_gmac_driver_register+0x0/0x1c
>>> initcall-> rtl8169_eth_driver_register+0x0/0x1c
>>> initcall-> usb_hub_init+0x0/0x1c
>>> initcall-> dwc3_driver_register+0x0/0x1c
>>> initcall-> usb_stor_init+0x0/0x1c
>>> initcall-> ehci_driver_register+0x0/0x1c
>>> initcall-> xhci_driver_register+0x0/0x1c
>>> initcall-> gsermod_init+0x0/0x1c
>>> initcall-> acmmod_init+0x0/0x1c
>>> initcall-> dfumod_init+0x0/0x1c
>>> initcall-> fastbootmod_init+0x0/0x1c
>>> initcall-> umsmod_init+0x0/0x1c
>>> initcall-> onboard_dev_driver_register+0x0/0x1c
>>> initcall-> pca954x_driver_register+0x0/0x28
>>> initcall-> rk_sdhci_driver_register+0x0/0x1c
>>> initcall-> dw_mmc_driver_register+0x0/0x1c
>>> initcall-> backlight_pwm_of_driver_register+0x0/0x1c
>>> initcall-> vop2_driver_register+0x0/0x1c
>>> initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
>>> initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
>>> initcall-> led_gpio_of_driver_register+0x0/0x1c
>>> initcall-> at24_driver_register+0x0/0x28
>>> initcall-> rockchip_pwm_driver_register+0x0/0x1c
>>> initcall-> sram_driver_register+0x0/0x1c
>>> initcall-> mem_init+0x0/0x90
>>> initcall-> nvmem_cells_driver_register+0x0/0x1c
>>> initcall-> rmem_driver_register+0x0/0x1c
>>> initcall-> rockchip_otp_driver_register+0x0/0x1c
>>> initcall-> dw_wdt_driver_register+0x0/0x1c
>>> initcall-> pca953x_driver_register+0x0/0x28
>>> initcall-> rk_rng_driver_register+0x0/0x1c
>>> initcall-> of_partition_init+0x0/0x48
>>> initcall-> of_overlay_init+0x0/0x104
>>> initcall-> fan53555_regulator_driver_register+0x0/0x28
>>> initcall-> rk808_regulator_driver_register+0x0/0x1c
>>> initcall-> rockchip_pcie_driver_register+0x0/0x1c
>>> initcall-> inno_dsidphy_driver_register+0x0/0x1c
>>> initcall-> rockchip_saradc_driver_register+0x0/0x1c
>>> initcall-> nvme_driver_register+0x0/0x1c
>>> initcall-> gpio_restart_driver_register+0x0/0x1c
>>> initcall-> prng_init+0x0/0x40
>>> initcall-> null_init+0x0/0x40
>>> initcall-> full_init+0x0/0x40
>>> initcall-> zero_init+0x0/0x40
>>> initcall-> md5_digest_register+0x0/0x1c
>>> initcall-> sha224_digest_register+0x0/0x1c
>>> initcall-> init_net_poll+0x0/0x24
>>> initcall-> netconsole_init+0x0/0x12c
>>> netconsole: registered as netconsole-1
>>> initcall-> diasom_rk3568_init+0x0/0x448
>>> CPU version 0x03 detected.
>>> rk808 rk8090: chip id: 0x8090
>>> vcc_ddr: Bringing 500000uV into 1100000-1100000uV
>>> vdd_npu: Bringing 500000uV into 850000-850000uV
>>> vdda0v9_image: Bringing 600000uV into 900000-900000uV
>>> vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
>>> rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
>>> SOM version 2+ detected.
>>> SMARC version 3 used.
>>> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
>>> psci psci.of: detected version 1.1
>>> xHCI xHCI0: USB XHCI 1.10
>>> xHCI xHCI1: USB XHCI 1.10
>>> ehci fd800000.usb@fd800000.of: USB EHCI 1.00
>>> ehci fd880000.usb@fd880000.of: USB EHCI 1.00
>>> fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
>>> mdio_bus: miibus0: probed
>>> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
>>> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
>>> v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
>>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
>>> Smart0-win0, type primary
>>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
>>> window Smart1-win0, type overlay
>>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
>>> window Esmart1-win0, type overlay
>>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
>>> window Esmart0-win0, type overlay
>>> rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
>>> dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
>>> mmc1: detected SD card version 3.0
>>> WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
>>> of the disk.
>>> WARNING: mmc1: GPT:2669671 != 62333951
>>> WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
>>> WARNING: mmc1: GPT:2669671 != 62333951
>>> mmc1: GPT: will repair later if global.system.gpt_refresh=1
>>> mmc1: registered mmc1
>>> rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
>>> mmc0: detected MMC card version 5.1
>>> mmc0: registered mmc0.boot0
>>> mmc0: registered mmc0.boot1
>>> mmc0: registered mmc0
>>> i2c2: Added multiplexed i2c bus 6
>>> i2c2: Added multiplexed i2c bus 7
>>> i2c2: Added multiplexed i2c bus 8
>>> i2c2: Added multiplexed i2c bus 9
>>> pca954x pca95460: registered 4 multiplexed busses for I2C switch
>>> phy6: lane number 0, val 1
>>> phy6: lane number 1, val 2
>>> phy6: bifurcation enabled
>>> rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
>>> mdio_bus: miibus1: probed
>>> mdio_bus: miibus2: probed
>>> PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
>>> DABT (current EL) (ESR 0x9600000b)
>>> elr: 00000000edc6ff00 lr : 00000000edc6ff00
>>> x0 : 00000000edcd5c17 x1 : 00000000edd7f000
>>> x2 : 0000000000000000 x3 : 0000000000000030
>>> x4 : 0000000000000000 x5 : 00000000edff7d18
>>> x6 : 0000000000000002 x7 : 0000000000000000
>>> x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
>>> x10: 63702d3376336363 x11: 6b6c632d30336569
>>> x12: 00000000edff7b30 x13: 00000000ffffffc8
>>> x14: 0000000000000001 x15: 0000000000000000
>>> x16: 00000000edccb95f x17: 0000000000000000
>>> x18: 000000000000000a x19: 00000000aff3aa60
>>> x20: 0000000000000000 x21: 0000000000000010
>>> x22: 0000000000000000 x23: 00000000edcd5c17
>>> x24: 0000000000000000 x25: 00000000f0000000
>>> x26: 00000000000737a4 x27: 00000000001bb598
>>> x28: 0000000000000000 x29: 00000000edff7dd0
>>>
>>> Call trace:
>>> [<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
>>> (of_new_property+0x58/0x6c)
>>> [<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
>>> (of_property_write_bool+0x5c/0x68)
>>> [<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
>>> (of_set_root_node+0x60/0x88)
>>> [<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
>>> (diasom_rk3568_init+0x230/0x448)
>>> [<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
>>> (start_barebox+0x84/0xa4)
>>> [<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
>>> (barebox_non_pbl_start+0xd8/0xe8)
>>> [<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
>>> [<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
>>>
>>> ### ERROR ### Please RESET the board ###
>>>
>>> ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
>>>>
>>>> On 2026-05-20 15:11, Alexander Shiyan wrote:
>>>>> Here is output with lowlevel debug:
>>>>> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
>>>>> In
>>>>> ...
>>>>> out
>>>>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
>>>>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
>>>>> bw 2 row_3_4 0
>>>>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
>>>>> mmu: enabling MMU, ttb @ 0xedf80000
>>>>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
>>>>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
>>>>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
>>>>> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
>>>>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
>>>>
>>>> Damn. I introduced this:
>>>>
>>>> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
>>>>
>>>> This exactly ends up in the area marked as FAULT above (reserved for
>>>> OP-TEE).
>>>>
>>>> Try this:
>>>>
>>>> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
>>>> PBL_MALLOC_SIZE);
>>>>
>>>> You have XZ as image compression, right?
>>>>
>>>> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
>>>> for decompression. I tested with XZ as well, but the configuration I
>>>> used for this test doesn't have OP-TEE enabled, so the faulting area was
>>>> not there.
>>>>
>>>> Sascha
>>>>
>>>> --
>>>> 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 |
>>>
>>>
>>
>> --
>> 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 |
>>
>
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:43 ` v2026.05.0 Ahmad Fatoum
@ 2026-05-20 13:47 ` Alexander Shiyan
0 siblings, 0 replies; 13+ messages in thread
From: Alexander Shiyan @ 2026-05-20 13:47 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
IDK, Perhaps the function was static before...
ср, 20 мая 2026 г. в 16:43, Ahmad Fatoum <a.fatoum@pengutronix.de>:
>
> Hello,
>
> On 5/20/26 3:42 PM, Alexander Shiyan wrote:
> > Hello Ahmad.
> >
> > Yes, this caused by of_set_root_node(NULL);
> >
> > The code uses this trick for reload correct aliases after load overlay.
> > https://github.com/MacroGroup/barebox/blob/macro/arch/arm/boards/diasom-rk3568/board.c#L495
>
> Ah, I didn't anticpate this use.
>
> Why can't you just call of_alias_scan()?
>
> Cheers,
> Ahmad
>
> >
> >
> > ср, 20 мая 2026 г. в 16:38, Ahmad Fatoum <a.fatoum@pengutronix.de>:
> >>
> >> Hello,
> >>
> >> On 5/20/26 3:27 PM, Alexander Shiyan wrote:
> >>> Hello Sascha.
> >>>
> >>> Yes, that's how it works.
> >>>
> >>> The new version adds a different trap, but it's most likely a board
> >>> issue; I'll investigate.
> >>
> >> Let me know what you find out. I assume that the write of
> >> $barebox,root-node failed, but I am at loss why.
> >>
> >> If your board code available publicly?
> >>
> >> Cheers,
> >> Ahmad
> >>
> >>>
> >>> Thanks!
> >>>
> >>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> >>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> >>> bw 2 row_3_4 0
> >>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> >>> uncompress.c: memory at 0x00a00000, size 0xef600000
> >>> endmem = 0xf0000000
> >>> arm_mem_optee = 0xee000000+0x02000000
> >>> arm_mem_scratch = 0xedff8000+0x00008000
> >>> arm_mem_stack = 0xedff0000+0x00008000
> >>> arm_mem_ttb = 0xedf80000+0x00040000
> >>> arm_mem_barebox_image = 0xedc00000+0x00400000
> >>> arm_mem_early_malloc = 0xedbe0000+0x00020000
> >>> membase = 0x00a00000+0xef600000
> >>> mmu: enabling MMU, ttb @ 0xedf80000
> >>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> >>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> >>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> >>> mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
> >>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> >>> uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
> >>> 0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
> >>> uncompress.c: relocating ELF in place
> >>> In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
> >>> load_addr=00000000edc00000, offset=0xedc10000
> >>> In-place ELF relocation completed successfully
> >>> pbl-mmu: Setting up MMU from ELF segments
> >>> pbl-mmu: Segment 0 not page-aligned, rounding
> >>> pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
> >>> mmu_flags=0x3
> >>> mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
> >>> pbl-mmu: Segment 1 not page-aligned, rounding
> >>> pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
> >>> mmu_flags=0x4
> >>> mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
> >>> pbl-mmu: Segment 3 not page-aligned, rounding
> >>> pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
> >>> mmu_flags=0x1
> >>> mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
> >>> pbl-mmu: MMU setup from ELF complete
> >>> uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
> >>> start.c: memory at 0x00a00000, size 0xef600000
> >>> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> >>> start.c: starting barebox...
> >>> initcall-> command_slice_init+0x0/0x3c
> >>> initcall-> globalvar_init+0x0/0x8c
> >>> initcall-> register_bus_class+0x0/0x20
> >>> initcall-> platform_init+0x0/0x1c
> >>> initcall-> mdio_bus_init+0x0/0x1c
> >>> initcall-> register_mii_class+0x0/0x20
> >>> initcall-> usb_bus_init+0x0/0x1c
> >>> initcall-> otg_bus_init+0x0/0x1c
> >>> initcall-> register_udc_class+0x0/0x20
> >>> initcall-> spi_bus_init+0x0/0x1c
> >>> initcall-> i2c_bus_init+0x0/0x1c
> >>> initcall-> register_i2c_adapter_class+0x0/0x20
> >>> initcall-> register_mmc_class+0x0/0x20
> >>> initcall-> register_fb_class+0x0/0x20
> >>> initcall-> register_backlight_class+0x0/0x20
> >>> initcall-> nvmem_init+0x0/0x14
> >>> initcall-> register_nvmem_class+0x0/0x20
> >>> initcall-> register_watchdog_class+0x0/0x20
> >>> initcall-> gpio_desc_alloc+0x0/0x24
> >>> initcall-> pci_bus_init+0x0/0x1c
> >>> initcall-> scmi_bus_driver_init+0x0/0x40
> >>> initcall-> register_phy_class+0x0/0x20
> >>> initcall-> register_eth_class+0x0/0x20
> >>> initcall-> fs_bus_init+0x0/0x1c
> >>> initcall-> defaultenv_init+0x0/0x6c
> >>> initcall-> console_common_init+0x0/0xac
> >>> initcall-> partitions_init+0x0/0x50
> >>> initcall-> genpd_bus_init+0x0/0x1c
> >>> initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
> >>> initcall-> clk_rk3568_driver_register+0x0/0x1c
> >>> initcall-> clk_rk3588_driver_register+0x0/0x1c
> >>> initcall-> scmi_clocks_driver_register+0x0/0x1c
> >>> initcall-> gated_fixed_clk_driver_register+0x0/0x1c
> >>> initcall-> gpio_gate_clock_driver_register+0x0/0x1c
> >>> initcall-> syscon_driver_register+0x0/0x1c
> >>> initcall-> rockchip_gpio_driver_register+0x0/0x1c
> >>> initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
> >>> initcall-> simple_pm_bus_driver_register+0x0/0x1c
> >>> initcall-> scmi_drv_register+0x0/0x1c
> >>> initcall-> scmi_reset_driver_register+0x0/0x1c
> >>> initcall-> arm_scmi_driver_register+0x0/0x1c
> >>> initcall-> scmi_power_domain_driver_register+0x0/0x1c
> >>> initcall-> aarch64_init_vectors+0x0/0x50
> >>> initcall-> of_arm_init+0x0/0x2c
> >>> deep-probe: enabled in device tree
> >>> initcall-> register_autoboot_vars+0x0/0x7c
> >>> initcall-> system_partitions_var_init+0x0/0x50
> >>> initcall-> register_env_vars+0x0/0x30
> >>> initcall-> mipi_dsi_bus_init+0x0/0x1c
> >>> initcall-> arm_arch_timer_driver_register+0x0/0x1c
> >>> initcall-> of_init_early_vars+0x0/0x8
> >>> initcall-> of_timer_init+0x0/0x20
> >>> initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
> >>> initcall-> net_init+0x0/0x94
> >>> initcall-> init_fs+0x0/0x2c
> >>> initcall-> rockchip_init+0x0/0xe8
> >>> initcall-> ns16550_serial_driver_register+0x0/0x1c
> >>> initcall-> dos_partition_init+0x0/0x1c
> >>> initcall-> efi_partition_init+0x0/0x1c
> >>> initcall-> of_stdoutpath_init+0x0/0x28
> >>> Switch to console [cs0]
> >>>
> >>>
> >>> barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
> >>>
> >>>
> >>> Board: Diasom DS-RK3568-SMARC-EVB
> >>> start.c: memory at 0x00a00000, size 0xef600000
> >>> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> >>> start.c: starting barebox...
> >>> initcall-> command_slice_init+0x0/0x3c
> >>> initcall-> globalvar_init+0x0/0x8c
> >>> initcall-> register_bus_class+0x0/0x20
> >>> initcall-> platform_init+0x0/0x1c
> >>> initcall-> mdio_bus_init+0x0/0x1c
> >>> initcall-> register_mii_class+0x0/0x20
> >>> initcall-> usb_bus_init+0x0/0x1c
> >>> initcall-> otg_bus_init+0x0/0x1c
> >>> initcall-> register_udc_class+0x0/0x20
> >>> initcall-> spi_bus_init+0x0/0x1c
> >>> initcall-> i2c_bus_init+0x0/0x1c
> >>> initcall-> register_i2c_adapter_class+0x0/0x20
> >>> initcall-> register_mmc_class+0x0/0x20
> >>> initcall-> register_fb_class+0x0/0x20
> >>> initcall-> register_backlight_class+0x0/0x20
> >>> initcall-> nvmem_init+0x0/0x14
> >>> initcall-> register_nvmem_class+0x0/0x20
> >>> initcall-> register_watchdog_class+0x0/0x20
> >>> initcall-> gpio_desc_alloc+0x0/0x24
> >>> initcall-> pci_bus_init+0x0/0x1c
> >>> initcall-> scmi_bus_driver_init+0x0/0x40
> >>> initcall-> register_phy_class+0x0/0x20
> >>> initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
> >>> initcall-> rockchip_dmc_driver_init+0x0/0x324
> >>> rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
> >>> initcall-> __image_start+0x0/0x74
> >>> initcall-> mem_register_barebox+0x0/0x4c
> >>> initcall-> of_reserved_mem_walk+0x0/0x1bc
> >>> initcall-> mmu_init+0x0/0x1e0
> >>> initcall-> mem_malloc_resource+0x0/0xdc
> >>> initcall-> reset_source_init+0x0/0x50
> >>> initcall-> usbgadget_globalvars_init+0x0/0x44
> >>> initcall-> bootsource_init+0x0/0x40
> >>> initcall-> usb_udc_init+0x0/0x20
> >>> initcall-> rockchip_spi_driver_register+0x0/0x1c
> >>> initcall-> rk3x_i2c_driver_register+0x0/0x1c
> >>> initcall-> rk808_spi_driver_register+0x0/0x28
> >>> initcall-> rk808_i2c_driver_register+0x0/0x28
> >>> initcall-> regulator_fixed_driver_register+0x0/0x1c
> >>> initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
> >>> initcall-> rockchip_combphy_driver_register+0x0/0x1c
> >>> initcall-> rockchip_p3phy_driver_register+0x0/0x1c
> >>> initcall-> rk_udphy_driver_register+0x0/0x1c
> >>> initcall-> rockchip_iodomain_driver_register+0x0/0x1c
> >>> initcall-> digest_hmac_initcall+0x0/0x44
> >>> initcall-> sha1_digest_register+0x0/0x1c
> >>> initcall-> sha256_digest_register+0x0/0x1c
> >>> initcall-> ext_init+0x0/0x1c
> >>> initcall-> ramfs_init+0x0/0x1c
> >>> initcall-> tftp_init+0x0/0x38
> >>> initcall-> nfs_init+0x0/0x5c
> >>> initcall-> fat_init+0x0/0x1c
> >>> initcall-> diasom_rk3568_driver_register+0x0/0x1c
> >>> initcall-> diasom_rk3588_driver_register+0x0/0x1c
> >>> initcall-> psci_driver_register+0x0/0x1c
> >>> initcall-> arm_request_stack+0x0/0x4c
> >>> initcall-> mount_root+0x0/0x74
> >>> initcall-> binfmt_sh_init+0x0/0x1c
> >>> initcall-> binfmt_uimage_init+0x0/0x1c
> >>> initcall-> png_init+0x0/0x1c
> >>> initcall-> extlinux_init+0x0/0x1c
> >>> initcall-> of_kernel_init+0x0/0x28
> >>> initcall-> console_ctrlc_init+0x0/0x30
> >>> initcall-> firmware_init+0x0/0x38
> >>> initcall-> bootdef_entry_init+0x0/0x1c
> >>> initcall-> fastboot_globalvars_init+0x0/0x12c
> >>> initcall-> genphy_driver_register+0x0/0x1c
> >>> initcall-> realtek_drvs_register+0x0/0x20
> >>> initcall-> mdio_gpio_driver_register+0x0/0x1c
> >>> initcall-> rk_gmac_driver_register+0x0/0x1c
> >>> initcall-> rtl8169_eth_driver_register+0x0/0x1c
> >>> initcall-> usb_hub_init+0x0/0x1c
> >>> initcall-> dwc3_driver_register+0x0/0x1c
> >>> initcall-> usb_stor_init+0x0/0x1c
> >>> initcall-> ehci_driver_register+0x0/0x1c
> >>> initcall-> xhci_driver_register+0x0/0x1c
> >>> initcall-> gsermod_init+0x0/0x1c
> >>> initcall-> acmmod_init+0x0/0x1c
> >>> initcall-> dfumod_init+0x0/0x1c
> >>> initcall-> fastbootmod_init+0x0/0x1c
> >>> initcall-> umsmod_init+0x0/0x1c
> >>> initcall-> onboard_dev_driver_register+0x0/0x1c
> >>> initcall-> pca954x_driver_register+0x0/0x28
> >>> initcall-> rk_sdhci_driver_register+0x0/0x1c
> >>> initcall-> dw_mmc_driver_register+0x0/0x1c
> >>> initcall-> backlight_pwm_of_driver_register+0x0/0x1c
> >>> initcall-> vop2_driver_register+0x0/0x1c
> >>> initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
> >>> initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
> >>> initcall-> led_gpio_of_driver_register+0x0/0x1c
> >>> initcall-> at24_driver_register+0x0/0x28
> >>> initcall-> rockchip_pwm_driver_register+0x0/0x1c
> >>> initcall-> sram_driver_register+0x0/0x1c
> >>> initcall-> mem_init+0x0/0x90
> >>> initcall-> nvmem_cells_driver_register+0x0/0x1c
> >>> initcall-> rmem_driver_register+0x0/0x1c
> >>> initcall-> rockchip_otp_driver_register+0x0/0x1c
> >>> initcall-> dw_wdt_driver_register+0x0/0x1c
> >>> initcall-> pca953x_driver_register+0x0/0x28
> >>> initcall-> rk_rng_driver_register+0x0/0x1c
> >>> initcall-> of_partition_init+0x0/0x48
> >>> initcall-> of_overlay_init+0x0/0x104
> >>> initcall-> fan53555_regulator_driver_register+0x0/0x28
> >>> initcall-> rk808_regulator_driver_register+0x0/0x1c
> >>> initcall-> rockchip_pcie_driver_register+0x0/0x1c
> >>> initcall-> inno_dsidphy_driver_register+0x0/0x1c
> >>> initcall-> rockchip_saradc_driver_register+0x0/0x1c
> >>> initcall-> nvme_driver_register+0x0/0x1c
> >>> initcall-> gpio_restart_driver_register+0x0/0x1c
> >>> initcall-> prng_init+0x0/0x40
> >>> initcall-> null_init+0x0/0x40
> >>> initcall-> full_init+0x0/0x40
> >>> initcall-> zero_init+0x0/0x40
> >>> initcall-> md5_digest_register+0x0/0x1c
> >>> initcall-> sha224_digest_register+0x0/0x1c
> >>> initcall-> init_net_poll+0x0/0x24
> >>> initcall-> netconsole_init+0x0/0x12c
> >>> netconsole: registered as netconsole-1
> >>> initcall-> diasom_rk3568_init+0x0/0x448
> >>> CPU version 0x03 detected.
> >>> rk808 rk8090: chip id: 0x8090
> >>> vcc_ddr: Bringing 500000uV into 1100000-1100000uV
> >>> vdd_npu: Bringing 500000uV into 850000-850000uV
> >>> vdda0v9_image: Bringing 600000uV into 900000-900000uV
> >>> vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
> >>> rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
> >>> SOM version 2+ detected.
> >>> SMARC version 3 used.
> >>> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> >>> psci psci.of: detected version 1.1
> >>> xHCI xHCI0: USB XHCI 1.10
> >>> xHCI xHCI1: USB XHCI 1.10
> >>> ehci fd800000.usb@fd800000.of: USB EHCI 1.00
> >>> ehci fd880000.usb@fd880000.of: USB EHCI 1.00
> >>> fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
> >>> mdio_bus: miibus0: probed
> >>> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
> >>> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
> >>> v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
> >>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
> >>> Smart0-win0, type primary
> >>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
> >>> window Smart1-win0, type overlay
> >>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
> >>> window Esmart1-win0, type overlay
> >>> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
> >>> window Esmart0-win0, type overlay
> >>> rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
> >>> dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
> >>> mmc1: detected SD card version 3.0
> >>> WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
> >>> of the disk.
> >>> WARNING: mmc1: GPT:2669671 != 62333951
> >>> WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
> >>> WARNING: mmc1: GPT:2669671 != 62333951
> >>> mmc1: GPT: will repair later if global.system.gpt_refresh=1
> >>> mmc1: registered mmc1
> >>> rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
> >>> mmc0: detected MMC card version 5.1
> >>> mmc0: registered mmc0.boot0
> >>> mmc0: registered mmc0.boot1
> >>> mmc0: registered mmc0
> >>> i2c2: Added multiplexed i2c bus 6
> >>> i2c2: Added multiplexed i2c bus 7
> >>> i2c2: Added multiplexed i2c bus 8
> >>> i2c2: Added multiplexed i2c bus 9
> >>> pca954x pca95460: registered 4 multiplexed busses for I2C switch
> >>> phy6: lane number 0, val 1
> >>> phy6: lane number 1, val 2
> >>> phy6: bifurcation enabled
> >>> rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
> >>> mdio_bus: miibus1: probed
> >>> mdio_bus: miibus2: probed
> >>> PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
> >>> DABT (current EL) (ESR 0x9600000b)
> >>> elr: 00000000edc6ff00 lr : 00000000edc6ff00
> >>> x0 : 00000000edcd5c17 x1 : 00000000edd7f000
> >>> x2 : 0000000000000000 x3 : 0000000000000030
> >>> x4 : 0000000000000000 x5 : 00000000edff7d18
> >>> x6 : 0000000000000002 x7 : 0000000000000000
> >>> x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
> >>> x10: 63702d3376336363 x11: 6b6c632d30336569
> >>> x12: 00000000edff7b30 x13: 00000000ffffffc8
> >>> x14: 0000000000000001 x15: 0000000000000000
> >>> x16: 00000000edccb95f x17: 0000000000000000
> >>> x18: 000000000000000a x19: 00000000aff3aa60
> >>> x20: 0000000000000000 x21: 0000000000000010
> >>> x22: 0000000000000000 x23: 00000000edcd5c17
> >>> x24: 0000000000000000 x25: 00000000f0000000
> >>> x26: 00000000000737a4 x27: 00000000001bb598
> >>> x28: 0000000000000000 x29: 00000000edff7dd0
> >>>
> >>> Call trace:
> >>> [<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
> >>> (of_new_property+0x58/0x6c)
> >>> [<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
> >>> (of_property_write_bool+0x5c/0x68)
> >>> [<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
> >>> (of_set_root_node+0x60/0x88)
> >>> [<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
> >>> (diasom_rk3568_init+0x230/0x448)
> >>> [<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
> >>> (start_barebox+0x84/0xa4)
> >>> [<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
> >>> (barebox_non_pbl_start+0xd8/0xe8)
> >>> [<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
> >>> [<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
> >>>
> >>> ### ERROR ### Please RESET the board ###
> >>>
> >>> ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
> >>>>
> >>>> On 2026-05-20 15:11, Alexander Shiyan wrote:
> >>>>> Here is output with lowlevel debug:
> >>>>> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
> >>>>> In
> >>>>> ...
> >>>>> out
> >>>>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> >>>>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> >>>>> bw 2 row_3_4 0
> >>>>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> >>>>> mmu: enabling MMU, ttb @ 0xedf80000
> >>>>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> >>>>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> >>>>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> >>>>> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
> >>>>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> >>>>
> >>>> Damn. I introduced this:
> >>>>
> >>>> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
> >>>>
> >>>> This exactly ends up in the area marked as FAULT above (reserved for
> >>>> OP-TEE).
> >>>>
> >>>> Try this:
> >>>>
> >>>> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
> >>>> PBL_MALLOC_SIZE);
> >>>>
> >>>> You have XZ as image compression, right?
> >>>>
> >>>> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
> >>>> for decompression. I tested with XZ as well, but the configuration I
> >>>> used for this test doesn't have OP-TEE enabled, so the faulting area was
> >>>> not there.
> >>>>
> >>>> Sascha
> >>>>
> >>>> --
> >>>> 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 |
> >>>
> >>>
> >>
> >> --
> >> 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 |
> >>
> >
>
> --
> 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 |
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: v2026.05.0
2026-05-20 13:27 ` v2026.05.0 Alexander Shiyan
2026-05-20 13:38 ` v2026.05.0 Ahmad Fatoum
@ 2026-05-22 11:00 ` Ahmad Fatoum
1 sibling, 0 replies; 13+ messages in thread
From: Ahmad Fatoum @ 2026-05-22 11:00 UTC (permalink / raw)
To: Alexander Shiyan, Sascha Hauer; +Cc: barebox
Hello Alexander,
On 5/20/26 3:27 PM, Alexander Shiyan wrote:
> Hello Sascha.
>
> Yes, that's how it works.
Can you also give this here a test:
https://lore.barebox.org/barebox/20260522105852.2681680-1-a.fatoum@pengutronix.de/
Thanks!
Ahmad
>
> The new version adds a different trap, but it's most likely a board
> issue; I'll investigate.
>
> Thanks!
>
>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
> bw 2 row_3_4 0
> rockchip-dmc: rk3568_ram_sizes() = 8589934592
> uncompress.c: memory at 0x00a00000, size 0xef600000
> endmem = 0xf0000000
> arm_mem_optee = 0xee000000+0x02000000
> arm_mem_scratch = 0xedff8000+0x00008000
> arm_mem_stack = 0xedff0000+0x00008000
> arm_mem_ttb = 0xedf80000+0x00040000
> arm_mem_barebox_image = 0xedc00000+0x00400000
> arm_mem_early_malloc = 0xedbe0000+0x00020000
> membase = 0x00a00000+0xef600000
> mmu: enabling MMU, ttb @ 0xedf80000
> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
> mmu: __arch_remap_range: 0x08400000+0x2000000 type FAULT
> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
> uncompress.c: uncompressing barebox ELF at 0x0000000000b60680 (size
> 0x000737a4) to 0xedc00000 (uncompressed size: 0x001bb598)
> uncompress.c: relocating ELF in place
> In-place ELF relocation: text_vaddr=0x0, text_offset=0x10000,
> load_addr=00000000edc00000, offset=0xedc10000
> In-place ELF relocation completed successfully
> pbl-mmu: Setting up MMU from ELF segments
> pbl-mmu: Segment 0 not page-aligned, rounding
> pbl-mmu: Segment 0: addr=0xedc10000 size=0x000b6000 flags=0x5 [R-X] ->
> mmu_flags=0x3
> mmu: __arch_remap_range: 0xedc10000+0xb6000 type CODE
> pbl-mmu: Segment 1 not page-aligned, rounding
> pbl-mmu: Segment 1: addr=0xedcc6000 size=0x000b9000 flags=0x4 [R--] ->
> mmu_flags=0x4
> mmu: __arch_remap_range: 0xedcc6000+0xb9000 type RO
> pbl-mmu: Segment 3 not page-aligned, rounding
> pbl-mmu: Segment 3: addr=0xedd7f000 size=0x00047000 flags=0x6 [RW-] ->
> mmu_flags=0x1
> mmu: __arch_remap_range: 0xedd7f000+0x47000 type CACHED
> pbl-mmu: MMU setup from ELF complete
> uncompress.c: jumping to ELF entry point at 0x00000000edcc2c9c
> start.c: memory at 0x00a00000, size 0xef600000
> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> start.c: starting barebox...
> initcall-> command_slice_init+0x0/0x3c
> initcall-> globalvar_init+0x0/0x8c
> initcall-> register_bus_class+0x0/0x20
> initcall-> platform_init+0x0/0x1c
> initcall-> mdio_bus_init+0x0/0x1c
> initcall-> register_mii_class+0x0/0x20
> initcall-> usb_bus_init+0x0/0x1c
> initcall-> otg_bus_init+0x0/0x1c
> initcall-> register_udc_class+0x0/0x20
> initcall-> spi_bus_init+0x0/0x1c
> initcall-> i2c_bus_init+0x0/0x1c
> initcall-> register_i2c_adapter_class+0x0/0x20
> initcall-> register_mmc_class+0x0/0x20
> initcall-> register_fb_class+0x0/0x20
> initcall-> register_backlight_class+0x0/0x20
> initcall-> nvmem_init+0x0/0x14
> initcall-> register_nvmem_class+0x0/0x20
> initcall-> register_watchdog_class+0x0/0x20
> initcall-> gpio_desc_alloc+0x0/0x24
> initcall-> pci_bus_init+0x0/0x1c
> initcall-> scmi_bus_driver_init+0x0/0x40
> initcall-> register_phy_class+0x0/0x20
> initcall-> register_eth_class+0x0/0x20
> initcall-> fs_bus_init+0x0/0x1c
> initcall-> defaultenv_init+0x0/0x6c
> initcall-> console_common_init+0x0/0xac
> initcall-> partitions_init+0x0/0x50
> initcall-> genpd_bus_init+0x0/0x1c
> initcall-> rk_clk_gate_link_driver_register+0x0/0x1c
> initcall-> clk_rk3568_driver_register+0x0/0x1c
> initcall-> clk_rk3588_driver_register+0x0/0x1c
> initcall-> scmi_clocks_driver_register+0x0/0x1c
> initcall-> gated_fixed_clk_driver_register+0x0/0x1c
> initcall-> gpio_gate_clock_driver_register+0x0/0x1c
> initcall-> syscon_driver_register+0x0/0x1c
> initcall-> rockchip_gpio_driver_register+0x0/0x1c
> initcall-> rockchip_pinctrl_driver_register+0x0/0x1c
> initcall-> simple_pm_bus_driver_register+0x0/0x1c
> initcall-> scmi_drv_register+0x0/0x1c
> initcall-> scmi_reset_driver_register+0x0/0x1c
> initcall-> arm_scmi_driver_register+0x0/0x1c
> initcall-> scmi_power_domain_driver_register+0x0/0x1c
> initcall-> aarch64_init_vectors+0x0/0x50
> initcall-> of_arm_init+0x0/0x2c
> deep-probe: enabled in device tree
> initcall-> register_autoboot_vars+0x0/0x7c
> initcall-> system_partitions_var_init+0x0/0x50
> initcall-> register_env_vars+0x0/0x30
> initcall-> mipi_dsi_bus_init+0x0/0x1c
> initcall-> arm_arch_timer_driver_register+0x0/0x1c
> initcall-> of_init_early_vars+0x0/0x8
> initcall-> of_timer_init+0x0/0x20
> initcall-> rockchip_pm_domain_drv_register+0x0/0x1c
> initcall-> net_init+0x0/0x94
> initcall-> init_fs+0x0/0x2c
> initcall-> rockchip_init+0x0/0xe8
> initcall-> ns16550_serial_driver_register+0x0/0x1c
> initcall-> dos_partition_init+0x0/0x1c
> initcall-> efi_partition_init+0x0/0x1c
> initcall-> of_stdoutpath_init+0x0/0x28
> Switch to console [cs0]
>
>
> barebox 2026.05.0-00773-g4ba3c57b6144-dirty #5 Wed May 20 16:20:30 MSK 2026
>
>
> Board: Diasom DS-RK3568-SMARC-EVB
> start.c: memory at 0x00a00000, size 0xef600000
> start.c: initializing malloc pool at 0xadc10000 (size 0x40000000)
> start.c: starting barebox...
> initcall-> command_slice_init+0x0/0x3c
> initcall-> globalvar_init+0x0/0x8c
> initcall-> register_bus_class+0x0/0x20
> initcall-> platform_init+0x0/0x1c
> initcall-> mdio_bus_init+0x0/0x1c
> initcall-> register_mii_class+0x0/0x20
> initcall-> usb_bus_init+0x0/0x1c
> initcall-> otg_bus_init+0x0/0x1c
> initcall-> register_udc_class+0x0/0x20
> initcall-> spi_bus_init+0x0/0x1c
> initcall-> i2c_bus_init+0x0/0x1c
> initcall-> register_i2c_adapter_class+0x0/0x20
> initcall-> register_mmc_class+0x0/0x20
> initcall-> register_fb_class+0x0/0x20
> initcall-> register_backlight_class+0x0/0x20
> initcall-> nvmem_init+0x0/0x14
> initcall-> register_nvmem_class+0x0/0x20
> initcall-> register_watchdog_class+0x0/0x20
> initcall-> gpio_desc_alloc+0x0/0x24
> initcall-> pci_bus_init+0x0/0x1c
> initcall-> scmi_bus_driver_init+0x0/0x40
> initcall-> register_phy_class+0x0/0x20
> initcall-> register_eth_class+0xinitcall-> of_probe_memory+0x0/0x60
> initcall-> rockchip_dmc_driver_init+0x0/0x324
> rockchip-dmc memory-controller.of: Detected memory size: 0x200000000
> initcall-> __image_start+0x0/0x74
> initcall-> mem_register_barebox+0x0/0x4c
> initcall-> of_reserved_mem_walk+0x0/0x1bc
> initcall-> mmu_init+0x0/0x1e0
> initcall-> mem_malloc_resource+0x0/0xdc
> initcall-> reset_source_init+0x0/0x50
> initcall-> usbgadget_globalvars_init+0x0/0x44
> initcall-> bootsource_init+0x0/0x40
> initcall-> usb_udc_init+0x0/0x20
> initcall-> rockchip_spi_driver_register+0x0/0x1c
> initcall-> rk3x_i2c_driver_register+0x0/0x1c
> initcall-> rk808_spi_driver_register+0x0/0x28
> initcall-> rk808_i2c_driver_register+0x0/0x28
> initcall-> regulator_fixed_driver_register+0x0/0x1c
> initcall-> rockchip_usb2phy_driver_register+0x0/0x1c
> initcall-> rockchip_combphy_driver_register+0x0/0x1c
> initcall-> rockchip_p3phy_driver_register+0x0/0x1c
> initcall-> rk_udphy_driver_register+0x0/0x1c
> initcall-> rockchip_iodomain_driver_register+0x0/0x1c
> initcall-> digest_hmac_initcall+0x0/0x44
> initcall-> sha1_digest_register+0x0/0x1c
> initcall-> sha256_digest_register+0x0/0x1c
> initcall-> ext_init+0x0/0x1c
> initcall-> ramfs_init+0x0/0x1c
> initcall-> tftp_init+0x0/0x38
> initcall-> nfs_init+0x0/0x5c
> initcall-> fat_init+0x0/0x1c
> initcall-> diasom_rk3568_driver_register+0x0/0x1c
> initcall-> diasom_rk3588_driver_register+0x0/0x1c
> initcall-> psci_driver_register+0x0/0x1c
> initcall-> arm_request_stack+0x0/0x4c
> initcall-> mount_root+0x0/0x74
> initcall-> binfmt_sh_init+0x0/0x1c
> initcall-> binfmt_uimage_init+0x0/0x1c
> initcall-> png_init+0x0/0x1c
> initcall-> extlinux_init+0x0/0x1c
> initcall-> of_kernel_init+0x0/0x28
> initcall-> console_ctrlc_init+0x0/0x30
> initcall-> firmware_init+0x0/0x38
> initcall-> bootdef_entry_init+0x0/0x1c
> initcall-> fastboot_globalvars_init+0x0/0x12c
> initcall-> genphy_driver_register+0x0/0x1c
> initcall-> realtek_drvs_register+0x0/0x20
> initcall-> mdio_gpio_driver_register+0x0/0x1c
> initcall-> rk_gmac_driver_register+0x0/0x1c
> initcall-> rtl8169_eth_driver_register+0x0/0x1c
> initcall-> usb_hub_init+0x0/0x1c
> initcall-> dwc3_driver_register+0x0/0x1c
> initcall-> usb_stor_init+0x0/0x1c
> initcall-> ehci_driver_register+0x0/0x1c
> initcall-> xhci_driver_register+0x0/0x1c
> initcall-> gsermod_init+0x0/0x1c
> initcall-> acmmod_init+0x0/0x1c
> initcall-> dfumod_init+0x0/0x1c
> initcall-> fastbootmod_init+0x0/0x1c
> initcall-> umsmod_init+0x0/0x1c
> initcall-> onboard_dev_driver_register+0x0/0x1c
> initcall-> pca954x_driver_register+0x0/0x28
> initcall-> rk_sdhci_driver_register+0x0/0x1c
> initcall-> dw_mmc_driver_register+0x0/0x1c
> initcall-> backlight_pwm_of_driver_register+0x0/0x1c
> initcall-> vop2_driver_register+0x0/0x1c
> initcall-> dw_hdmi_rockchip_driver_register+0x0/0x1c
> initcall-> dw_mipi_dsi_rockchip_driver_register+0x0/0x1c
> initcall-> led_gpio_of_driver_register+0x0/0x1c
> initcall-> at24_driver_register+0x0/0x28
> initcall-> rockchip_pwm_driver_register+0x0/0x1c
> initcall-> sram_driver_register+0x0/0x1c
> initcall-> mem_init+0x0/0x90
> initcall-> nvmem_cells_driver_register+0x0/0x1c
> initcall-> rmem_driver_register+0x0/0x1c
> initcall-> rockchip_otp_driver_register+0x0/0x1c
> initcall-> dw_wdt_driver_register+0x0/0x1c
> initcall-> pca953x_driver_register+0x0/0x28
> initcall-> rk_rng_driver_register+0x0/0x1c
> initcall-> of_partition_init+0x0/0x48
> initcall-> of_overlay_init+0x0/0x104
> initcall-> fan53555_regulator_driver_register+0x0/0x28
> initcall-> rk808_regulator_driver_register+0x0/0x1c
> initcall-> rockchip_pcie_driver_register+0x0/0x1c
> initcall-> inno_dsidphy_driver_register+0x0/0x1c
> initcall-> rockchip_saradc_driver_register+0x0/0x1c
> initcall-> nvme_driver_register+0x0/0x1c
> initcall-> gpio_restart_driver_register+0x0/0x1c
> initcall-> prng_init+0x0/0x40
> initcall-> null_init+0x0/0x40
> initcall-> full_init+0x0/0x40
> initcall-> zero_init+0x0/0x40
> initcall-> md5_digest_register+0x0/0x1c
> initcall-> sha224_digest_register+0x0/0x1c
> initcall-> init_net_poll+0x0/0x24
> initcall-> netconsole_init+0x0/0x12c
> netconsole: registered as netconsole-1
> initcall-> diasom_rk3568_init+0x0/0x448
> CPU version 0x03 detected.
> rk808 rk8090: chip id: 0x8090
> vcc_ddr: Bringing 500000uV into 1100000-1100000uV
> vdd_npu: Bringing 500000uV into 850000-850000uV
> vdda0v9_image: Bringing 600000uV into 900000-900000uV
> vcca1v8_image: Bringing 600000uV into 1800000-1800000uV
> rockchip_saradc fe720000.saradc@fe720000.of: registered as aiodev0
> SOM version 2+ detected.
> SMARC version 3 used.
> arm-scmi firmware:scmi.of: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
> psci psci.of: detected version 1.1
> xHCI xHCI0: USB XHCI 1.10
> xHCI xHCI1: USB XHCI 1.10
> ehci fd800000.usb@fd800000.of: USB EHCI 1.00
> ehci fd880000.usb@fd880000.of: USB EHCI 1.00
> fan53555-regulator tcs45250: FAN53555 Option[12] Rev[15] Detected!
> mdio_bus: miibus0: probed
> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: registered I2C bus driver
> dwhdmi-rockchip fe0a0000.hdmi@fe0a0000.of: Detected HDMI TX controller
> v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0 on VP0, window
> Smart0-win0, type primary
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_0 on VP0,
> window Smart1-win0, type overlay
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_1 on VP0,
> window Esmart1-win0, type overlay
> rockchip-vop2 fe040000.vop@fe040000.of: Registered fb0_2 on VP0,
> window Esmart0-win0, type overlay
> rockchip-dw-pcie 3c0000000.pcie@fe260000.of: Phy link never came up
> dw_mmc fe2b0000.mmc@fe2b0000.of: registered as mmc1
> mmc1: detected SD card version 3.0
> WARNING: mmc1: GPT:Primary header thinks Alt. header is not at the end
> of the disk.
> WARNING: mmc1: GPT:2669671 != 62333951
> WARNING: mmc1: GPT:Alternate GPT header not at the end of the disk.
> WARNING: mmc1: GPT:2669671 != 62333951
> mmc1: GPT: will repair later if global.system.gpt_refresh=1
> mmc1: registered mmc1
> rk3568-dwcmshc-sdhci fe310000.mmc@fe310000.of: registered as mmc0
> mmc0: detected MMC card version 5.1
> mmc0: registered mmc0.boot0
> mmc0: registered mmc0.boot1
> mmc0: registered mmc0
> i2c2: Added multiplexed i2c bus 6
> i2c2: Added multiplexed i2c bus 7
> i2c2: Added multiplexed i2c bus 8
> i2c2: Added multiplexed i2c bus 9
> pca954x pca95460: registered 4 multiplexed busses for I2C switch
> phy6: lane number 0, val 1
> phy6: lane number 1, val 2
> phy6: bifurcation enabled
> rockchip-dw-pcie 3c0800000.pcie@fe280000.of: Phy link never came up
> mdio_bus: miibus1: probed
> mdio_bus: miibus2: probed
> PANIC: unable to handle NULL pointer dereference at address 0x0000000000000018
> DABT (current EL) (ESR 0x9600000b)
> elr: 00000000edc6ff00 lr : 00000000edc6ff00
> x0 : 00000000edcd5c17 x1 : 00000000edd7f000
> x2 : 0000000000000000 x3 : 0000000000000030
> x4 : 0000000000000000 x5 : 00000000edff7d18
> x6 : 0000000000000002 x7 : 0000000000000000
> x8 : 00000000aff3aa90 x9 : 6f2e726f74616c75
> x10: 63702d3376336363 x11: 6b6c632d30336569
> x12: 00000000edff7b30 x13: 00000000ffffffc8
> x14: 0000000000000001 x15: 0000000000000000
> x16: 00000000edccb95f x17: 0000000000000000
> x18: 000000000000000a x19: 00000000aff3aa60
> x20: 0000000000000000 x21: 0000000000000010
> x22: 0000000000000000 x23: 00000000edcd5c17
> x24: 0000000000000000 x25: 00000000f0000000
> x26: 00000000000737a4 x27: 00000000001bb598
> x28: 0000000000000000 x29: 00000000edff7dd0
>
> Call trace:
> [<edc6ff00>] (__of_new_property+0x38/0x74) from [<edc6ff94>]
> (of_new_property+0x58/0x6c)
> [<edc6ff94>] (of_new_property+0x58/0x6c) from [<edc700d0>]
> (of_property_write_bool+0x5c/0x68)
> [<edc700d0>] (of_property_write_bool+0x5c/0x68) from [<edc7013c>]
> (of_set_root_node+0x60/0x88)
> [<edc7013c>] (of_set_root_node+0x60/0x88) from [<edcc0854>]
> (diasom_rk3568_init+0x230/0x448)
> [<edcc0854>] (diasom_rk3568_init+0x230/0x448) from [<edc125f4>]
> (start_barebox+0x84/0xa4)
> [<edc125f4>] (start_barebox+0x84/0xa4) from [<edcc2d74>]
> (barebox_non_pbl_start+0xd8/0xe8)
> [<edcc2d74>] (barebox_non_pbl_start+0xd8/0xe8) from [<00b02cfc>] (0xb02cfc)
> [<00b02cfc>] (0xb02cfc) from [<00b020c4>] (0xb020c4)
>
> ### ERROR ### Please RESET the board ###
>
> ср, 20 мая 2026 г. в 16:17, Sascha Hauer <s.hauer@pengutronix.de>:
>>
>> On 2026-05-20 15:11, Alexander Shiyan wrote:
>>> Here is output with lowlevel debug:
>>> DDR 03ea844c5d typ 24/09/03-10:42:57,fwver: v1.23
>>> In
>>> ...
>>> out
>>>> rockchip-dmc: rockchip_sdram_size(reg2=1000ea01, reg3=30000031)
>>> rockchip-dmc: rank 2 cs0_col 10 cs1_col 10 bk 3 cs0_row 17 cs1_row 17
>>> bw 2 row_3_4 0
>>> rockchip-dmc: rk3568_ram_sizes() = 8589934592
>>> mmu: enabling MMU, ttb @ 0xedf80000
>>> mmu: __arch_remap_range: 0x00000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x8000000000+0x8000000000 type UNCACHED
>>> mmu: __arch_remap_range: 0x00a00000+0xef600000 type RWX
>>> mmu: __arch_remap_range: 0xee000000+0x2000000 type FAULT
>>> mmu: __arch_remap_range: 0x00b00000+0x60000 type RWX
>>
>> Damn. I introduced this:
>>
>> pbl_malloc_init(membase[0] + memsize[0] - PBL_MALLOC_SIZE, PBL_MALLOC_SIZE);
>>
>> This exactly ends up in the area marked as FAULT above (reserved for
>> OP-TEE).
>>
>> Try this:
>>
>> pbl_malloc_init(membase[0] + memsize[0] - OPTEE_SIZE - PBL_MALLOC_SIZE,
>> PBL_MALLOC_SIZE);
>>
>> You have XZ as image compression, right?
>>
>> The rockchip_v8_defconfig uses LZ4 which doesn't need any dynamic memory
>> for decompression. I tested with XZ as well, but the configuration I
>> used for this test doesn't have OP-TEE enabled, so the faulting area was
>> not there.
>>
>> Sascha
>>
>> --
>> 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 |
>
>
--
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 |
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2026-05-22 11:02 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-19 19:34 v2026.05.0 Sascha Hauer
2026-05-20 5:15 ` v2026.05.0 Alexander Shiyan
2026-05-20 6:21 ` v2026.05.0 Sascha Hauer
2026-05-20 11:16 ` v2026.05.0 Alexander Shiyan
2026-05-20 12:40 ` v2026.05.0 Sascha Hauer
2026-05-20 12:11 ` v2026.05.0 Alexander Shiyan
2026-05-20 13:17 ` v2026.05.0 Sascha Hauer
2026-05-20 13:27 ` v2026.05.0 Alexander Shiyan
2026-05-20 13:38 ` v2026.05.0 Ahmad Fatoum
2026-05-20 13:42 ` v2026.05.0 Alexander Shiyan
2026-05-20 13:43 ` v2026.05.0 Ahmad Fatoum
2026-05-20 13:47 ` v2026.05.0 Alexander Shiyan
2026-05-22 11:00 ` v2026.05.0 Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox