Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uboot编译失败请求解答 #43

Open
Dinngwei opened this issue Jan 14, 2025 · 1 comment
Open

uboot编译失败请求解答 #43

Dinngwei opened this issue Jan 14, 2025 · 1 comment

Comments

@Dinngwei
Copy link

你好,想请教您一个问题:
我在我的yocto工程中添加了meta-rockchip/recipes-bsp,
在uboot配置rk3588_defconfig增加下面这些配置
CONFIG_CMD_NAND=y
CONFIG_NAND_ROCKCHIP=y
CONFIG_SPL_NAND_SUPPORT=y
CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
CONFIG_SYS_NAND_U_BOOT_OFFS=0x8000
CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x10000
再bitbake u-boot时,报了这个错
/home/dw/aliopenbmc/build/rk3588/workspace/sources/u-boot/drivers/mtd/nand/raw/nand_timings.c: In function 'onfi_init_data_interface':
| /home/dw/aliopenbmc/build/rk3588/workspace/sources/u-boot/drivers/mtd/nand/raw/nand_timings.c:309:56: error: 'struct nand_chip' has no member named 'onfi_params'
| 309 | struct nand_onfi_params *params = &chip->onfi_params;

请问这个问题应该如何解决?

@JeffyCN
Copy link
Owner

JeffyCN commented Jan 14, 2025

according to the code, try to enable CONFIG_SYS_NAND_ONFI_DETECTION.

or:

u-boot# git diff
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h
index 571b307e479..0dcdb5878d8 100644
--- a/include/linux/mtd/rawnand.h
+++ b/include/linux/mtd/rawnand.h
@@ -912,9 +912,7 @@ struct nand_chip {

        int onfi_version;
        int jedec_version;
-#ifdef CONFIG_SYS_NAND_ONFI_DETECTION
        struct nand_onfi_params onfi_params;
-#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants