Skip to contentSkip to conversation

Status of cip-core

cip-dev Daniel Sangorrin 4 participants 8 messages Oct 23, 2017 – Nov 10, 2017

lore
Share & tools
lore
#0 lore raw

Hi all,

I have updated the cip-core quickstart instructions:
Ref: https://wiki.linuxfoundation.org/civilinfrastructureplatform/cip-core-quickstart

I have checked that they work for iwg20m and bbb. They should work for qemu and cyclonev as well, but building targets takes a long time so I couldn't finish it today.

Additionally, I have upgraded cip-core to morty and KAS files to 0.13.0.

# now jethro (legacy) files are on their own branch, and morty (next release) is on the master branch

You can test the morty version as follows:
host$ git clone https://gitlab.com/cip-project/cip-core.git
host$ docker run -v $PWD/cip-core:/cip-core -e USER_ID=id -u $USER -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e NO_PROXY="$no_proxy" -it kasproject/kas:0.13.0 sh docker$ cd /cip-core/deby/poky/
docker$ kas build --target core-image-minimal meta-cip-iwg20m/kas-iwg20m.yml
[Alt] kas build --target core-image-minimal meta-cip-bbb/kas-bbb.yml

Current issues:
- KAS is using a single the same "build" folder for all targets, and this causes conflicts. Until I figure out how to specify the name of the build folder, please delete the build/tmp folder before building each target.
Jan: what is KAS_WORK_DIR in http://kas.readthedocs.io/en/latest/userguide.html#environment-variables?
- modules.tgz is not generated for iwg20m (for bbb it is): I have to investigate why but I think it is not a big problem since they are included in the file system images. Probably the reason is just that shmobile_defconfig has modules disabled.
- B at D: there are some slight changes needed so I will send an updated version of the patches.

Cheers,
Daniel

#1 lore raw

Hello Daniel,

Thank you for the update.

Quoted 4 lines

- modules.tgz is not generated for iwg20m (for bbb it is): I have to investigate why but I think it is not a big problem since they are included in the file system images. Probably the reason is just that shmobile_defconfig has modules disabled.

Correct :)

Kind regards, Chris

#2 lore raw

Hello Chris,

Quoted 8 lines

-----Original Message-----
From: Chris Paterson [mailto:Chris.Paterson2 at renesas.com]
Sent: Tuesday, October 24, 2017 3:23 AM
To: Daniel Sangorrin; cip-dev at lists.cip-project.org; 'Jan Kiszka'
Subject: RE: [cip-dev] Status of cip-core

Hello Daniel,

Quoted 8 lines

Thank you for the update.

Quoted 4 lines

- modules.tgz is not generated for iwg20m (for bbb it is): I have to investigate why but I think it is not a big problem since they are included in the file system images. Probably the reason is just that shmobile_defconfig has modules disabled.

Correct :)

I have noticed that the shmobile_defconfig from the official linux-cip repo is quite different from the one at https://github.com/renesas-rz/renesas-cip.

Previously I tested the official kernel using a ramdisk and it was successful so I didn't notice the difference. But today I've tried to boot the official kernel with the SD Card file system and it didn't work.

One problem was that EXT3/4 wasn't enabled. I decided to use renesas-cip's shmobile_defconfig to build the official linux-cip kernel. However, I got a build error because
https://gitlab.com/cip-project/linux-cip/blob/linux-4.4.y-cip/drivers/usb/host/xhci-rcar.c
references a firmware called "r8a779x_usb3_v1.dlmem" which wasn't available on the official kernel. I could solve that either by copying the firmware from renesas-cip or by commenting out the corresponding configuration flags.

I managed to build the official kernel but still I couldn't get it to boot from the SD Card. # By the way, I noticed that the mmc numbering also changed (mmcblk0p2 was working on renesas-cip kernel as the 2nd partition of the SD Card, but for the official kernel that was a partition on the eMMC and the kernel could not recognize mmcblk2p2).

I wonder if this problem comes from the device tree. On the renesas-cip repository there was a r8a7743-iwgm.dts file that worked fine, but on the official repository the one with the closest name was r8a7743-iwg20d-q7.dts. This one worked fine when I boot from a ramdisk but not when I boot from the SD Card.

Should I use renesas-cip kernel again?
I noticed that the new versions are been merged. I was using renesas-cip's v4.4.69-cip4 but I can see a newer branch called v4.4.83-cip8

Thanks,
Daniel

#5 lore raw
In reply to Daniel Sangorrin

Hi Daniel,

Quoted 1 line · Daniel Sangorrin

Jan: what is KAS_WORK_DIR in http://kas.readthedocs.io/en/latest/userguide.html#environment-variables?

kas is designed so that you need to run it always from the same directory you invoked it first. Basically the root folder for the project. But if you like me, not always running kas from the same folder KAS_WORK_DIR can be used to point to the root folder of the project.

Thanks,
Daniel

#6 lore raw
Quoted 10 lines

-----Original Message-----
From: Daniel Wagner [mailto:daniel.wagner at siemens.com]
Sent: Friday, October 27, 2017 9:57 PM
To: Daniel Sangorrin; cip-dev at lists.cip-project.org; 'Jan Kiszka'
Subject: Re: [cip-dev] Status of cip-core

Hi Daniel,

Quoted 7 lines
Quoted 1 line · Daniel Sangorrin

Jan: what is KAS_WORK_DIR in http://kas.readthedocs.io/en/latest/userguide.html#environment-variables?

kas is designed so that you need to run it always from the same directory you invoked it first. Basically the root folder for the project. But if you like me, not always running kas from the same folder KAS_WORK_DIR can be used to point to the root folder of the project.

Thanks, I thought so. My problem was that KAS always puts the results in a folder called "build" instead of "build-<target>" for example.

Thanks,
Daniel

#7 lore raw

Hi Daniel

Quoted 11 lines · Daniel Sangorrin
Quoted 11 lines

-----Original Message-----
From: Daniel Wagner [mailto:daniel.wagner at siemens.com]
Sent: Friday, October 27, 2017 9:57 PM
To: Daniel Sangorrin; cip-dev at lists.cip-project.org; 'Jan Kiszka'
Subject: Re: [cip-dev] Status of cip-core

Hi Daniel,

Quoted 1 line · Daniel Sangorrin

Jan: what is KAS_WORK_DIR in http://kas.readthedocs.io/en/latest/userguide.html#environment-variables?

Quoted 7 lines
Quoted 4 lines

kas is designed so that you need to run it always from the same directory you invoked it first. Basically the root folder for the project. But if you like me, not always running kas from the same folder KAS_WORK_DIR can be used to point to the root folder of the project.

Thanks, I thought so. My problem was that KAS always puts the results in a folder called "build" instead of "build-<target>" for example.

That sounds like a feature request :) If I am not completely mistaken, this should be easy to add.

Thanks,
Daniel

#3 lore raw
In reply to Daniel Sangorrin

Hello Daniel,

Apologies for the slow response. Lots of ramblings below, happy to set up a call if it's easier to go through the details.

Quoted 20 lines

From: Daniel Sangorrin [mailto:daniel.sangorrin at toshiba.co.jp]
Sent: 24 October 2017 06:17

Hello Chris,

Quoted 15 lines

-----Original Message-----
From: Chris Paterson [mailto:Chris.Paterson2 at renesas.com]
Sent: Tuesday, October 24, 2017 3:23 AM
To: Daniel Sangorrin; cip-dev at lists.cip-project.org; 'Jan Kiszka'
Subject: RE: [cip-dev] Status of cip-core

Hello Daniel,

Thank you for the update.

Quoted 4 lines

- modules.tgz is not generated for iwg20m (for bbb it is): I have to investigate why but I think it is not a big problem since they are included in the file system images. Probably the reason is just that shmobile_defconfig has modules disabled.

Quoted 4 lines
Quoted 1 line

Correct :)

I have noticed that the shmobile_defconfig from the official linux-cip repo is quite different from the one at https://github.com/renesas-rz/renesas-cip.

Let me explain...

The renesas-rz github website is used to host the complete Yocto BSP package for the RZ/G iWave platforms. This is used as a basis for the "Renesas RZ/G Linux Platform" which was launched in October.

This BSP is based on the CIP Kernel, but as you can see has a lot of patches applied on top. The main reason for these additional patches is that the iwg20m platform is not yet fully supported upstream.

If using the above BSP for your testing, I'd recommend that you stick with the v4.4.55-cip3 branch. This has been fully verified and should be working.

Whilst Renesas are continuously working on the renesas-rz github repository, in tandem we are also upstreaming support to the mainline Kernel for the iwg20m platform. Periodically once a new Kernel release has been made we are backporting support to the official CIP Kernel.

The latest CIP Kernel (v4.4.92-cip11) includes support for clk, pinctrl, GPIO, Ethernet and eMMC on the iwg20m platform.

Quoted 4 lines

Previously I tested the official kernel using a ramdisk and it was successful so I didn't notice the difference. But today I've tried to boot the official kernel with the SD Card file system and it didn't work.

Currently the official CIP Kernel does not support SD on the iwg20m. Support upstream will be included in Kernel v4.15. We plan to backport support once v4.15 is released, but can backport when v4.15-rc1 is out if there is an urgent need.

Quoted 2 lines

One problem was that EXT3/4 wasn't enabled.

Yes. Historically shmobile_defconfig doesn't have ext3/4 enabled upstream :( I guess one option would be to enable this on the CIP Kernel?

Quoted 8 lines

I decided to use renesas-cip's
shmobile_defconfig to build the official linux-cip kernel. However, I got a build error because https://gitlab.com/cip-project/linux-cip/blob/linux-4.4.y-
cip/drivers/usb/host/xhci-rcar.c
references a firmware called "r8a779x_usb3_v1.dlmem" which wasn't available on the official kernel. I could solve that either by copying the firmware from renesas-cip or by commenting out the corresponding configuration flags.

There may well be other differences between the config used in the renesas-rz BSP compared to the upstream/CIP version. It might be best to stick with the version in the CIP Kernel and just enable EXT3/4 as required. This is what we use to test when backporting to the CIP Kernel.

Quoted 3 lines

I managed to build the official kernel but still I couldn't get it to boot from the SD Card.

Again, due to lack of SD support in the official Kernel (see r8a7743-iwg20d-q7.dts).

Quoted 5 lines

# By the way, I noticed that the mmc numbering also changed (mmcblk0p2 was working on renesas-cip kernel as the 2nd partition of the SD Card, but for the official kernel that was a partition on the eMMC and the kernel could not recognize mmcblk2p2).

Quoted 7 lines

I wonder if this problem comes from the device tree. On the renesas-cip repository there was a r8a7743-iwgm.dts file that worked fine, but on the official repository the one with the closest name was r8a7743-iwg20d-q7.dts. This one worked fine when I boot from a ramdisk but not when I boot from the SD Card.

Should I use renesas-cip kernel again?

As you have no need for the entire BSP (you only need the Kernel), I'd recommend using the official CIP Kernel. For now this would mean that you'd need to either use NFS or eMMC for your RFS. If using eMMC you'll need to enable EXT3/4 on top of shmobile_defconfig.

This has the added benefit that CIP Core will use and test the official CIP Kernel, rather than Renesas' out of tree BSP version.

Quoted 2 lines

I noticed that the new versions are been merged. I was using renesas-cip's v4.4.69-cip4 but I can see a newer branch called v4.4.83-cip8

v4.4.55-cip3 is the only version properly tested. I think the other versions are just rebases.

Binh-san, could you confirm the current status of the newer branches on renesas-rz?

Kind regards, Chris

Quoted 4 lines

Thanks,
Daniel

#4 lore raw

Hi Chris, Daniel,

Quoted 123 lines

Subject: RE: [cip-dev] Status of cip-core

Hello Daniel,

Apologies for the slow response. Lots of ramblings below, happy to set up a call if it's easier to go through the details.

Quoted 20 lines

From: Daniel Sangorrin [mailto:daniel.sangorrin at toshiba.co.jp]
Sent: 24 October 2017 06:17

Hello Chris,

Quoted 15 lines

-----Original Message-----
From: Chris Paterson [mailto:Chris.Paterson2 at renesas.com]
Sent: Tuesday, October 24, 2017 3:23 AM
To: Daniel Sangorrin; cip-dev at lists.cip-project.org; 'Jan Kiszka'
Subject: RE: [cip-dev] Status of cip-core

Hello Daniel,

Thank you for the update.

Quoted 4 lines

- modules.tgz is not generated for iwg20m (for bbb it is): I have to investigate why but I think it is not a big problem since they are included in the file system images. Probably the reason is just that shmobile_defconfig has modules disabled.

Quoted 5 lines
Quoted 1 line

Correct :)

I have noticed that the shmobile_defconfig from the official linux-cip repo is quite different from the one at
https://github.com/renesas-

rz/renesas-cip.

Let me explain...

The renesas-rz github website is used to host the complete Yocto BSP package for the RZ/G iWave platforms. This is used as a basis for the "Renesas RZ/G Linux Platform" which was launched in October.

This BSP is based on the CIP Kernel, but as you can see has a lot of patches applied on top. The main reason for these additional patches is that the iwg20m platform is not yet fully supported upstream.

If using the above BSP for your testing, I'd recommend that you stick with the
v4.4.55-cip3 branch. This has been fully verified and should be working.

Whilst Renesas are continuously working on the renesas-rz github repository, in tandem we are also upstreaming support to the mainline Kernel for the iwg20m platform. Periodically once a new Kernel release has been made we are backporting support to the official CIP Kernel.

The latest CIP Kernel (v4.4.92-cip11) includes support for clk, pinctrl, GPIO, Ethernet and eMMC on the iwg20m platform.

Quoted 4 lines

Previously I tested the official kernel using a ramdisk and it was successful so I didn't notice the difference. But today I've tried to boot the official kernel with the SD Card file system and it didn't work.

Currently the official CIP Kernel does not support SD on the iwg20m. Support upstream will be included in Kernel v4.15. We plan to backport support once
v4.15 is released, but can backport when v4.15-rc1 is out if there is an urgent need.

Quoted 2 lines

One problem was that EXT3/4 wasn't enabled.

Yes. Historically shmobile_defconfig doesn't have ext3/4 enabled upstream :( I guess one option would be to enable this on the CIP Kernel?

Quoted 9 lines

I decided to use renesas-cip's
shmobile_defconfig to build the official linux-cip kernel. However, I got a build error because
https://gitlab.com/cip-project/linux-cip/blob/linux-4.4.y-
cip/drivers/usb/host/xhci-rcar.c
references a firmware called "r8a779x_usb3_v1.dlmem" which wasn't available on the official kernel. I could solve that either by copying the firmware from renesas-cip or by commenting out the corresponding configuration flags.

There may well be other differences between the config used in the renesas- rz BSP compared to the upstream/CIP version. It might be best to stick with the version in the CIP Kernel and just enable EXT3/4 as required. This is what we use to test when backporting to the CIP Kernel.

Quoted 3 lines

I managed to build the official kernel but still I couldn't get it to boot from the SD Card.

Again, due to lack of SD support in the official Kernel (see r8a7743-iwg20d- q7.dts).

Quoted 9 lines

# By the way, I noticed that the mmc numbering also changed (mmcblk0p2 was working on renesas-cip kernel as the 2nd partition of the SD Card, but for the official kernel that was a partition on the eMMC and the kernel could not recognize mmcblk2p2).

I wonder if this problem comes from the device tree. On the renesas-cip repository there was a r8a7743-iwgm.dts file that worked fine, but on the official repository the one with the closest name was

r8a7743-iwg20d-q7.dts.

Quoted 4 lines

This one worked fine when I boot from a ramdisk but not when I boot from the SD Card.

Should I use renesas-cip kernel again?

As you have no need for the entire BSP (you only need the Kernel), I'd recommend using the official CIP Kernel. For now this would mean that you'd need to either use NFS or eMMC for your RFS. If using eMMC you'll need to enable EXT3/4 on top of shmobile_defconfig.

This has the added benefit that CIP Core will use and test the official CIP Kernel, rather than Renesas' out of tree BSP version.

Quoted 3 lines

I noticed that the new versions are been merged. I was using renesas-cip's
v4.4.69-cip4 but I can see a newer branch called v4.4.83-cip8

Quoted 5 lines

v4.4.55-cip3 is the only version properly tested. I think the other versions are just rebases.

Binh-san, could you confirm the current status of the newer branches on renesas-rz?

v4.4.55-cip3 was fully tested, including UT,IT,ST. v4.4.69-cip4 , v4.4.75-cip6 also worked with just some simple tests.

Best regards,
Binh Nguyen

Quoted 8 lines

Kind regards, Chris

Quoted 4 lines

Thanks,
Daniel