rdanter / wrl-rpi-bsp

WR Linux Board Support Package for the Raspberry Pi
6 stars 4 forks source link

Yocto Warrior changes #1

Closed paroque28 closed 4 years ago

paroque28 commented 5 years ago

From release notes:

rpi3-64.conf:8 needs to be updated in order to fix the following error:

wrl-rpi-bsp/conf/machine/rpi3-64.conf:8: Could not include required file conf/machine/include/arm/arch-armv8.inc

It worked when I changed arch-armv8.inc to arch-armv8a.inc

rdanter commented 5 years ago

Thanks, I will take a look. Is this only since RCPL 6? I have not had time to test that yet.

rdanter commented 5 years ago

It worked when I changed arch-armv8.inc to arch-armv8a.inc

I have done a build here with LTS-18 RCPL 6 and did not encounter any issues. Also did a quick search for the inc file and did not fine the one for armv8a:

$ find . -name 'arch-armv8*\.inc'
./oe-core/meta/conf/machine/include/arm/arch-armv8.inc

So I wonder if you are using a different version? Can you tell me how to reproduce your issue?

Thanks Rich

rdanter commented 5 years ago

Aha! I see, you are using the latest Yocto. This BSP is for WR Linux LTS which is still on Thud. I have been thinking of creating a branch for the CI version, which I guess is now based on Warrior, but not had any time yet. The kernel is also newer, so I expect other changes will be needed too.

paroque28 commented 5 years ago

Hi Richard, I am using the lastest version from open source.

Install Wind River Linux LTS

mkdir my-project
cd my-project
git clone --branch master-wr https://github.com/WindRiver-OpenSourceLabs/wrlinux-x wrlinux-x

Configure Wind River Linux LTS

./wrlinux-x/setup.sh --distro wrlinux --dl-layers --accept-eula yes

Install RaspberryPi layer

cd  layers
git clone https://github.com/rdanter/wrl-rpi-bsp.git

Edit file wrl-rpi-bsp/conf/layer.conf and add warrior compatility as follows

 LAYERSERIES_COMPAT_rpi = "thud warrior"

add layer:

cd ..
. ./oe-init-build-env
bitbake-layers add-layer ../layers/wrl-rpi-bsp/
echo "MACHINE = \"rpi3-64\"" >> conf/local.conf

Enable network connectivity

Change the conf/local.conf file and update BB_NO_NETWORK ?= '0'

Build Wind River Linux LTS

bitbake wrlinux-image-glibc-std
paroque28 commented 5 years ago

Do you know how to clone WRLinux with thud instead of warrior?

rdanter commented 5 years ago

You can get the WR Linux 18 Base version, which ic based on thud, here: https://github.com/WindRiver-Labs/wrlinux-x

To build you will need to do something like this...

$ mkdir my-project
$ cd my-project
$ git clone --branch WRLINUX_10_18_BASE https://github.com/WindRiver-Labs/wrlinux-x
$ ./wrlinux-x/setup.sh --distro wrlinux --dl-layers
$ . environment-setup-x86_64-wrlinuxsdk-linux
$ . oe-init-build-env
$ bitbake-layers add-layer /path/to/wrl-rpi-bsp
$ echo "MACHINE = \"rpi3-64\"" >> conf/local.conf
$ echo "BB_NO_NETWORK = \"0\"" >> conf/local.conf
$ bitbake wrlinux-image-glibc-std

I have done a build here and encountered no problems except the expected CONFIG_ warnings from the kernel. Unfortunately I didn't have time to boot it though, please let me know how you get along.

rdanter commented 4 years ago

I have updated to Zeus with the latest patches, skipping Warrior.