xilox
June 8, 2023, 4:01pm
1
I am using Radxa Zero for my project, and I trying build system image with Yocto Project by manual
As a result of the assembly, I do not get the finished image file. But just u-boot.bin, dtbs and rootfs.
Can anybody help me with creating full image or give some documentation how to do it? Some manuals of structure of finished image?
if you have board working you could use dd command to dump the image into the file
e.g.:
dd if=/dev/mmc1blk0 of=/path/to/some/folder/yokto.img bs=1M status=progress
just remember that /path/to/some/folder needs to be some external storage for example usb device bigger then current storage that all the part have been installed
xilox
June 9, 2023, 8:41am
3
I have working Ubuntu img, but it has different structure and boot files.
How it can help me if i trying build my own image with yocto?
Hi. meta-meson layer supports Radxa Zero now.
See https://github.com/superna9999/meta-meson/tree/kirkstone
You can try the following steps to build one Radxa Zero image.
$ mkdir ~/amlogic-bsp
$ cd ~/amlogic-bsp
$ git clone git://git.yoctoproject.org/poky -b kirkstone poky
$ git clone https://github.com/superna9999/meta-meson.git meta-meson -b kirkstone
$ TEMPLATECONF=../meta-meson/conf
$ source poky/oe-init-build-env
$ cp ../poky/meta-poky/conf/local.conf.sample conf/local.conf
$ export MACHINE=radxa-zero
$ bitbake -k amlogic-image-sato
And you will get the system image, build/tmp/deploy/images/radxa-zero/amlogic-image-sato-radxa-zero.wic.
xilox
June 9, 2023, 8:55am
5
Thank you.
I’m trying this metod at this time.
I managed to create the image. It looks not bad)) but still do not get how to
add network/bluetooth drivers and other staff.
Do we need to add any device tree to enable devices??
Hi. Have there been any new developments on this? I have tried implementing the method seen in meta-radxa readme file on github and I tried using the meta-meson layer but neither one gives me a bootable image for my radxa zero 3w. Any insights would be appreciated.
Also if there is any way to create a .img file that would be useful. Thanks
Hi
This is the current development status of Radxa boards.
Yocto Build
Please check this guide to create 3W Yocto image.
# meta-rockchip
Yocto BSP layer for Rockchip-bsed deivces using upstream sources as much as possible.
This project is based on upstream - https://git.yoctoproject.org/meta-rockchip
## Build Host
To install the required packages on a Debian/Ubuntu run
```
$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential \
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils \
debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa \
libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool
```
## Configure Yocto/OE
In order to build an image, you need to download some layers.
This file has been truncated. show original