am335x: evm: defconfig: disable spl tiny printf
PATCH 1/1 am335x: evm: defconfig: disable spl tiny printf
From: Moses Christopher Bollavarapu <[email protected]>
- As tiny printf lib is further optimized, the ability to deal with ethaddr is lost. Hence, in order to handle usb-eth boot from SPL we need to disable tiny printf.
- Tested on Beagle Bone Black
--- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/am335x_evm_defconfig +1 -0
@@ -77,6 +77,7 @@ CONFIG_USB_ETHER=y CONFIG_WDT=y # CONFIG_SPL_WDT is not set CONFIG_DYNAMIC_CRC_TABLE=y +# CONFIG_SPL_USE_TINY_PRINTF is not set CONFIG_RSA=y CONFIG_LZO=y # CONFIG_OF_LIBFDT_OVERLAY is not set
Signature · 1 line
2.20.1
PATCH 1/1 am335x: evm: defconfig: disable spl tiny printf
Quoted 9 lines · moseschristopherb at gmail.com
From: Moses Christopher Bollavarapu <[email protected]>
- As tiny printf lib is further optimized, the ability to deal with ethaddr is lost. Hence, in order to handle usb-eth boot from SPL we need to disable tiny printf.
- Tested on Beagle Bone Black
Signed-off-by Moses Christopher Bollavarapu <[email protected]>
This significantly increases the code size. Did you check how much is increased? SPL_TINY PRINTF is enabled on am335x_evm_defconfig to reduce the code size. Wondering what allowed to be built even after disabling tiny printf.
Thanks and regards,
Lokesh
PATCH 1/1 am335x: evm: defconfig: disable spl tiny printf
Quoted 9 lines · Lokesh Vutla
Quoted 6 lines · moseschristopherb at gmail.com
From: Moses Christopher Bollavarapu <[email protected]>
- As tiny printf lib is further optimized, the ability to deal with ethaddr is lost. Hence, in order to handle usb-eth boot from SPL we need to disable tiny printf.
Quoted 8 lines
Quoted 3 lines
- Tested on Beagle Bone Black
Signed-off-by Moses Christopher Bollavarapu <[email protected]>This significantly increases the code size. Did you check how much is increased?
SPL_TINYPRINTF is enabled onam335x_evm_defconfigto reduce the code size. Wondering what allowed to be built even after disabling tiny printf.
I agree with Lokesh. Fix should be to revert the change that broke tiny printf as its breaks an already supported feature. Disabling SPL_TINY_PRINTF bloats AM335x SPL image size which is already at limit.
Regards
Vignesh