Hi,
## Loading kernel from FIT Image at xxxxxxxxxxx...
Using 'conf@random-image.dtb' configuration -----------> This name is called by fit_get_name(fit, noffset, NULL);
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Created: 2020-05-12 2:39:53 UTC
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x006000c0
Data Size: 2639132 Bytes = 2.5 MiB
Architecture: ARM
OS: Linux
Load Address:
Entry Point:
## Loading ramdisk from FIT Image at 00600000 ...
As I highlight above, how to change the name of random-image.dtb, I know it's fit_get_name(fit, noffset, NULL);
are doing the job but I dont know when this function gets called in the uboot and i dont know how the return value of this function is random-image.dtb
Please refer to the following section in function fit_image_load in common/image-fit.c of u-boot source code.
fit_base_uname_config = fdt_get_name(fit, cfg_noffset, NULL);
printf(" Using '%s' configuration\n", fit_base_uname_config);
/* Remember this config */
if (image_type == IH_TYPE_KERNEL)
images->fit_uname_cfg = fit_base_uname_config;
if (IMAGE_ENABLE_VERIFY && images->verify) {
puts(" Verifying Hash Integrity ... ");
if (fit_config_verify(fit, cfg_noffset)) {
puts("Bad Data Hash\n");
bootstage_error(bootstage_id +
BOOTSTAGE_SUB_HASH);
return -EACCES;
}
Hi Yiping,
I understand that this print is in image-fit.c,
I wonder how does printf(" Using '%s' configuration\n", fit_base_uname_config);
fit_base_uname_config knows it's ls1021a-twr.dtb for example, if I want to change it to ls1021a-random.dtb how could I do that?
Also it shows different name during different sections
## Loading ramdisk from FIT Image at xxxxxxx...
Using 'conf@random1-image.dtb' configuration
## Loading fdt from FIT Image at xxxxxx...
Using 'conf@random2-image.dtb' configuration
how to change the name random2-image.dtb to random2.dtb so the printf will print
For example:
Using 'conf@random1.dtb' configuration
Using 'conf@random2-.dtb' configuration
Do I have to change the name of the dts file itself? if so how many changes do I need to make ?
You could modify the following line in configs/board/ls1021atwr/manifest in flex-builder.
device_tree=build/linux/kernel/arm32/LS/ls1021a-twr.dtb
I am using yocto not flex-builder
it says No rule to make target `arch/arm/boot/dts/ls1021a.dtb' file
I changed dts file name and also the name in the Make file to ls1021a.dtb
Still got the error
You need to modify the following in sources/meta-freescale/conf/machine/ls1021atwr.conf and also add <your_name>.dtb in Linux Kernel source code arch/arm/boot/dts/.
KERNEL_DEVICETREE ?= "ls1021a-twr.dtb"