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

AUTOBOOT支持问题 #12

Open
ghp3000 opened this issue Dec 22, 2023 · 1 comment
Open

AUTOBOOT支持问题 #12

ghp3000 opened this issue Dec 22, 2023 · 1 comment

Comments

@ghp3000
Copy link

ghp3000 commented Dec 22, 2023

无修改编译正常.

./board/amlogic/configs/m8b_onecloud.h末尾新增定义:
#define CONFIG_AUTOBOOT_KEYED 1
#define CONFIG_AUTOBOOT_PROMPT "Press ESC to abort autoboot in %d seconds" , CONFIG_BOOTDELAY
#define CONFIG_AUTOBOOT_DELAY_STR "123456" //密码
#define CONFIG_AUTOBOOT_STOP_STR "\x1b" //esc键

编译报错:
common/libcommon.o:在函数‘abortboot’中:
/home/a/u-boot-onecloud/common/main.c:119:对‘get_ticks’未定义的引用
/home/a/u-boot-onecloud/common/main.c:119:对‘get_tbclk’未定义的引用
/home/a/u-boot-onecloud/common/main.c:209:对‘get_ticks’未定义的引用
arm-none-eabi-ld: BFD (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) 2.24.0.20140311 Linaro 2014.03 assertion fail /cbuild/slaves/oorts/crosstool-ng/builds/arm-none-eabi-linux/.build/src/binutils-linaro-2.24.0-2014.03/bfd/elf32-arm.c:7696
arm-none-eabi-ld: BFD (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) 2.24.0.20140311 Linaro 2014.03 assertion fail /cbuild/slaves/oorts/crosstool-ng/builds/arm-none-eabi-linux/.build/src/binutils-linaro-2.24.0-2014.03/bfd/elf32-arm.c:7696
arm-none-eabi-ld: error: required section '.rel.plt' not found in the linker script
arm-none-eabi-ld: final link failed: Invalid operation
make: *** [Makefile:666:/home/a/u-boot-onecloud/build/u-boot] 错误 1

@hzyitc
Copy link
Owner

hzyitc commented Dec 27, 2023

这可能就得改代码了。这个版本的uboot很多不按原版的编程接口接口写。

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