How can I create a Yocto recipe to set the logo for initial stages of booting for i.MX 8M Mini?
Not by manipulating with u-boot command line but by building the image by Yocto.
解決済! 解決策の投稿を見る。
Not the best way, but it works
meta-my-layer/recipes-bsp/u-boot-imx$ tree
.
├── files
│ ├── freescale.bmp
│ └── imx8mm_evk.h
└── u-boot-imx_2020.04.bbappend
freescale.bmp must be 8-bit. Use this command to convert from png:
convert freescale.png -type Palette -colors 224 -depth 8 -compress none -verbose BMP3:freescale.bmp
imx8mm_evk.h can be found in
.../imx-yocto-bsp/build-imx8mmevk/tmp/work/imx8mmevk-poky-linux/u-boot-imx/1_2020.04-r0/git/include/configs/imx8mm_evk.h
copy to the files folder of the recipe and edit lines of #define
#define CONFIG_EXTRA_ENV_SETTINGS \
to place logo to the center add
"splashpos=m,m\0" \
save, build.
Not the best way, but it works
meta-my-layer/recipes-bsp/u-boot-imx$ tree
.
├── files
│ ├── freescale.bmp
│ └── imx8mm_evk.h
└── u-boot-imx_2020.04.bbappend
freescale.bmp must be 8-bit. Use this command to convert from png:
convert freescale.png -type Palette -colors 224 -depth 8 -compress none -verbose BMP3:freescale.bmp
imx8mm_evk.h can be found in
.../imx-yocto-bsp/build-imx8mmevk/tmp/work/imx8mmevk-poky-linux/u-boot-imx/1_2020.04-r0/git/include/configs/imx8mm_evk.h
copy to the files folder of the recipe and edit lines of #define
#define CONFIG_EXTRA_ENV_SETTINGS \
to place logo to the center add
"splashpos=m,m\0" \
save, build.
I already have a layer and replace a logo. But I need to set U-boot variable splashpos=m,m.
Files tree is
meta-my_layer$ tree
.
├── conf
│ └── layer.conf
├── recipes-bsp
│ └── u-boot-imx
│ ├── files
│ │ ├── freescale.bmp
│ │ └── imx8mm_evk.patch
│ └── u-boot-imx_2020.04.bbappend
└── recipes-core
└── psplash
├── files
│ ├── psplash-bar-img.png
│ ├── psplash-colors.h
│ └── psplash-poky-img.png
└── psplash_git.bbappend
imx8mm_evk.patch is
--- imx8mm_evk.h
+++ imx8mm_evk.h
@@ -122,7 +122,6 @@
"script=boot.scr\0" \
"image=Image\0" \
"splashimage=0x50000000\0" \
- "splashpos=m,m\0 " \
"console=ttymxc1,115200\0" \
"fdt_addr=0x43000000\0" \
"fdt_high=0xffffffffffffffff\0" \
u-boot-imx_2020.04.bbappend is
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
PRINC = "8"
#DEPENDS += "u-boot"
SRC_URI += "file://freescale.bmp \
file://imx8mm_evk.patch \
"
do_configure_append () {
cd ${S}
cp ../freescale.bmp ./tools/logos/freescale.bmp
}
But I got
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- imx8mm_evk.h
|+++ imx8mm_evk.h
--------------------------
And there are no any files in the work/imx8mmevk-poky-linux/u-boot-imx/1_2020.04-r0/git/include/configs where imx8mm_evk.h .
Probably patch applies before files appear in the directory.
How to fix the recipe?
Hello Egor,
You can view this site for your developement:
Regards