Reputation: 466
I am using Yocto project and using U-boot for an embedded board. Trying to change U-boot prompt messages when my board is power up. For example, prompt messages is starting with U-boot "U-boot versiyon" "U-boot.bin file creation date" and then some device driver initialization messages and so on... I want to customize this screen and write some self messages like "Welcome to my board" or "Device is about to open, here is the driver situations..".
I was looking source of U-boot and i found some related files like this https://github.com/u-boot/u-boot/blob/master/cmd/bootmenu.c. In this file there is a line (line 88) which is
printf(" Hit any key to stop autoboot: %2d ", menu->delay);
prints the timer when U-boot is about to be closed and linux is about be open.
I changed this line and put another string instead. Recompiled U-boot and put my U-boot.bin to my embedded board. It did not work. String did not change.
Any suggestions ?
Upvotes: 0
Views: 1459
Reputation: 3480
I highly recommend not following the path you are on. Yocto is a fine for distributions, but if you are running custom bootloaders and kernels it is not a clean way to go. I know it's pitched as that, but patching is a not great way to do this. It's painful, slow, and error prone. Maybe if all you are doing is changing the command prompt...
I have done a lot of embedded projects in the past and used Yocto, buildroot, LTIB... the best strategy I have found is to perform initial builds from the build system, and extract the source for the code you want to customize (bootloaders, kernels) into your own Git repo. Leverage the tool for the build dependencies of your rootfs. That is the strength of them. You will save a lot of time and energy this way and you won't need to write patches for every single change.
Upvotes: 0