board: dragonboard410c: Use dynamically allocated load addresses
authorStephan Gerhold <stephan.gerhold@linaro.org>
Mon, 7 Apr 2025 16:59:28 +0000 (18:59 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 11 Apr 2025 13:32:22 +0000 (15:32 +0200)
The generic Qualcomm board code allocates addresses for loading the kernel,
ramdisk, DT, fastboot etc. This also happens on the DB410c and already
overrides these definitions defined in the default env. So let's just drop
the static ones, since the dynamic ones work just fine.

Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by:
Link: https://lore.kernel.org/r/20250407-db410c-fixes-v1-7-524aefbc8bb4@linaro.org
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
board/qualcomm/dragonboard410c/dragonboard410c.c
board/qualcomm/dragonboard410c/dragonboard410c.env

index b3f9a09..83862f1 100644 (file)
@@ -66,7 +66,7 @@ int misc_init_r(void)
 
        state = button_get_state(btn);
        if (state == BUTTON_ON) {
-               env_set("preboot", "setenv preboot; fastboot 0");
+               env_set("preboot", "setenv preboot; run fastboot");
                printf("vol_down pressed - Starting fastboot.\n");
        }
 
index eb42c0a..0032dc3 100644 (file)
@@ -1,9 +1,3 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
-loadaddr=0x81000000
 initrd_high=0xffffffffffffffff
-kernel_addr_r=0x81000000
-fdtfile=qcom/apq8016-sbc.dtb
-fdt_addr_r=0x83000000
-ramdisk_addr_r=0x84000000
-scriptaddr=0x90000000
-pxefile_addr_r=0x90100000
+fastboot=fastboot -l $fastboot_addr_r usb 0