Untitled
Untitled
1、I installed the dependent tools, and the installation results are as follows:
3、download bao
4、Set the PLATFORM and DEMO environment variables with the IDs in Appendix I. My hardware
platform is Raspberry Pi 4b, configured with linux+freertos:
Follow the step-by-step guide for Plan B:
5、Manually set the ARCH environment variable. For example, for Raspberry Pi 4b platform:
Clone freeRTOS from the demo (I've always had problems trying to clone the freertos-over-
bao repo in several experiments, especially getting the submodule src/baremetal-runtime). The
compilation results are as follows:
I don't think this will affect my subsequent operations, so I ignore this warning and continue to
operate.
Wrapping the kernel image and device tree blob in a single binary executes the following:
10、Build Bao
implement
make -C $BAO_DEMOS_BAO\
PLATFORM=$PLATFORM\
CONFIG_REPO=$BAO_DEMOS_WRKDIR_IMGS/config\
CONFIG=$DEMO\
CPPFLAGS=-DBAO_DEMOS_WRKDIR_IMGS=$BAO_DEMOS_WRKDIR_IMGS,
The printed prompt information is as follows:
And copy the resulting binary into the final image directory。
After executing the following command, the printed prompt information is as follows:
12、Build TF-A
execute command:
prompt information:
13、preparing your sd card,:
Before performing the operation, I formatted the sd card with SD Card Formatter, and the
following operations are performed on a blank sd card. After performing the operation of Prepare
SD card, the prompt information is as follows:
Connect to the Raspberry Pi's UART using a USB to TTL adapter to connect to the Raspberry Pi's
GPIO header UART pins. Using the terminal application minicom:
The information printed on the interface is as follows: (quickly pressing any key does not respond,
and the automatic boot cannot be skipped, and the serial port continues to print information until
U-boot> appears) After u-boot> appears, I still cannot enter any information on the terminal. Also
unable to enter the command: fatload mmc 0 0x200000 bao.bin; go 0x200000
OPTIONS: I18n
In: serial
Out: serial
Err: serial
starting USB...
U-Boot>