Re: [DEVEL] Enable support for Renesas platform (section: live images)

2022-11-21 Thread Sam Hartman
> "Huỳnh" == Huỳnh Thành Hưng  writes:

Huỳnh> Hi all, Special thanks to all of you, your replies really
Huỳnh> help me to know what I need to do.  Weekly build image will
Huỳnh> help me reach to the target sooner than "Bookworm version".

Let us clarify a bit.
Our hope is that you will work with us using the weekly builds to submit
changes so that when the bookworm version is released, you and all your
users can use it on your hardware.
Because after bookworm freezes, changes like kernel config become more
difficult, and changes like kernel patches become very difficult.
So, if you work today, and are lucky, when bookworm comes out next year,
it will support your hardware out of the box.



Re: [DEVEL] Enable support for Renesas platform (section: live images)

2022-11-21 Thread Huỳnh Thành Hưng
Hi all,

Special thanks to all of you, your replies really help me to know what I
need to do.
Weekly build image will help me reach to the target sooner than "Bookworm
version".

I'm able to install/boot-up and use Debian OS on Renesas device (HiHope
RZ/G2M) with my defconfig.
So I will figure out the procedure/process flow in Debian Development next.


Best Regards,
Hung Huynh

Vào Th 3, 22 thg 11, 2022 vào lúc 03:31 Roland Clobus 
đã viết:

> On 19/11/2022 09:56, Paul Wise wrote:
> > On Fri, 2022-11-18 at 15:20 +0700, Huỳnh Thành Hưng wrote:
> >> I’m from Renesas Electronics Corporation,
>
> >> My group is developing to support running Debian OS on our devices,
> >> also for getting ARM System Ready IR certificate.
> ...
> >> Can you help me to enable those configs, also support the official
> >> release version of Debian Live Installer ISO which support Renesas
> >> platform?
> >
> > Debian does not yet support the ARM architecture at all with our live
> > images, please contact the Debian Live Team about that. Currently the
> > live images for the future Debian bookworm release are not being built,
> > but that may change before the final release.
> >
> > https://wiki.debian.org/Teams/Live
>
> I posted a summary about the current status of the live images a few
> minutes ago: https://lists.debian.org/debian-devel/2022/11/msg00221.html
>
> Given that Debian Stable (hence its name) is stable and will receive bug
> fixes, but not typically additional features, I would recommend you to
> target Bookworm (the next release).
>
> If you want to create live images, I recommend you to take a look at the
> online manual at
>
> https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
> The scripts can be highly customised, e.g. to contain custom kernels
> (see 8.2.10)
>
> With kind regards,
> Roland Clobus
>


Re: [DEVEL] Enable support for Renesas platform (section: live images)

2022-11-21 Thread Roland Clobus

On 19/11/2022 09:56, Paul Wise wrote:

On Fri, 2022-11-18 at 15:20 +0700, Huỳnh Thành Hưng wrote:

I’m from Renesas Electronics Corporation,



My group is developing to support running Debian OS on our devices,
also for getting ARM System Ready IR certificate.

...

Can you help me to enable those configs, also support the official
release version of Debian Live Installer ISO which support Renesas
platform?


Debian does not yet support the ARM architecture at all with our live
images, please contact the Debian Live Team about that. Currently the
live images for the future Debian bookworm release are not being built,
but that may change before the final release.

https://wiki.debian.org/Teams/Live


I posted a summary about the current status of the live images a few 
minutes ago: https://lists.debian.org/debian-devel/2022/11/msg00221.html


Given that Debian Stable (hence its name) is stable and will receive bug 
fixes, but not typically additional features, I would recommend you to 
target Bookworm (the next release).


If you want to create live images, I recommend you to take a look at the 
online manual at 
https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
The scripts can be highly customised, e.g. to contain custom kernels 
(see 8.2.10)


With kind regards,
Roland Clobus


OpenPGP_signature
Description: OpenPGP digital signature


Re: [DEVEL] Enable support for Renesas platform

2022-11-19 Thread Paul Wise
On Sat, 2022-11-19 at 09:06 +0200, Josua Mayer wrote:

> However note I am not part of the Debian project. 
> I don't know if joining makes sense, I don't know if the Debian
> project would like to incorporate some developers who specifically
> would collaborate to support certain vendors in Debian. 
> Just - there are things outsiders cannot do - like maintaining a
> "Blend" e.g.

You don't need to be a Debian member to contribute to Debian nor to
maintain a Debian blend, everyone is welcome to do that. All package
uploads will need to go via a sponsor or the maintainers though.
Usually a "Blend" isn't needed to support specific hardware, as the
support just goes into the existing hardware support packages like
u-boot/linux/mesa. Blends are more for specific areas of use-cases like
gaming or medicine or astronomy.

https://mentors.debian.net/intro-maintainers/
https://wiki.debian.org/DebianPureBlends

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Re: [DEVEL] Enable support for Renesas platform

2022-11-19 Thread Paul Wise
On Fri, 2022-11-18 at 15:20 +0700, Huỳnh Thành Hưng wrote:

> I’m from Renesas Electronics Corporation,

Welcome to Debian! In case your company would like to help out Debian,
please review our suggestions for ways that companies can contribute:

https://www.debian.org/intro/help#organizations

> My group is developing to support running Debian OS on our devices,
> also for getting ARM System Ready IR certificate.

It would be great to see Renesas contribute to the Debian ARM ports,
some resources for the ports are at the links below.

https://wiki.debian.org/Arm64Port
https://www.debian.org/ports/arm/
https://lists.debian.org/debian-arm/

This document about creating new ports should also apply to
contributing to the existing Debian ports to ARM.

https://wiki.debian.org/PortsDocs/New

> I recognize that the latest Debian 11 (Bullseye) has the kernel which
> do not enable support for Renesas platform.

Please refer to the Debian Linux kernel team documentation for how to
submit patches enabling this support in Debian unstable. I don't know
what the policy is for enabling Linux kernel config options in stable,
but it should be documented somewhere in the documentation here:

https://kernel-team.pages.debian.net/kernel-handbook/

> Can you help me to enable those configs, also support the official
> release version of Debian Live Installer ISO which support Renesas
> platform?

Debian does not yet support the ARM architecture at all with our live
images, please contact the Debian Live Team about that. Currently the
live images for the future Debian bookworm release are not being built,
but that may change before the final release.

https://wiki.debian.org/Teams/Live


-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Re: [DEVEL] Enable support for Renesas platform

2022-11-18 Thread Josua Mayer
Some pointers to the actual process I use:
1. boot debian stable with kernel deb from sid
2. install reportbug utility
3. analyse the kernel .config (/boot/config-*), figure out what's missing
4. use reportbug utility to file a bug for "linux" package, asking to
enable kernel configs

5. review flash-kernel package database (this one is responsible for
copying dtb to /boot, and generating a boot.scr)
6. file bug against flash-kernel package to add device

Examples:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839595
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876774

Sometimes I also encounter dead ends:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906268

Am Sa., 19. Nov. 2022 um 09:06 Uhr schrieb Josua Mayer
:
>
> Hi everybody!
>
> Firstly seeing an SoC vendor reach out directly about enabling their HW in 
> Debian seems great to me!
>
> I have been doing a little bit of this work in the past, asking the Debian 
> developers to add support for certain devices I had been working with. It was 
> a very slow process, often years between me establishing contact and an 
> actual release supporting a device.
> It turned out that I didn't always have the time to follow through, and also 
> sometimes encountered bugs specific to the more obscure components like 
> debian-installer.
>
> I'd like to make progress with this approach again, eventually. Especially 
> with SoC vendors supporting upstream Linux well, such as NXP (which I work 
> with a lot) - but also Renesas (my colleague tells me), support is quite 
> possible.
> So @Huynh, I'd be happy to assist / answer some questions.
>
> However note I am not part of the Debian project.
> I don't know if joining makes sense, I don't know if the Debian project would 
> like to incorporate some developers who specifically would collaborate to 
> support certain vendors in Debian.
> Just - there are things outsiders cannot do - like maintaining a "Blend" e.g.
>
> Sincerely
> Josua Mayer
>
> Fabio Fantoni  schrieb am Fr., 18. Nov. 2022, 12:50:
>>
>> Il 18/11/2022 09:20, Huỳnh Thành Hưng ha scritto:
>> > Dear Debian-developer,
>> >
>> > I’m from Renesas Electronics Corporation,
>> >
>> > My group is developing to support running Debian OS on our devices,
>> > also for getting ARM System Ready IR certificate.
>> >
>> > I recognize that the latest Debian 11 (Bullseye) has the kernel which
>> > do not enable support for Renesas platform.
>> >
>> >   * *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
>> >
>> > Can you help me to enable those configs, also support the official
>> > release version of Debian Live Installer ISO which support Renesas
>> > platform?
>> >
>> Hi, thanks for your work, having "out of the box" support on other ARM
>> devices I think would be a great thing.
>> I unfortunately saw years ago when I tried several ARM devices for work,
>> before choosing what to use for thin clients that the support was
>> lacking and it took me a long time to prepare a system to use
>> In recent years I've seen more interest in integrating upstream (mainly
>> the kernel) and having more support in distributions to make it easier
>> and faster for users to use them
>>
>> A first step is enable it in the kernel as you saw, add in stable
>> version is not possible FWIK but should be added in unstable before
>> (later, once added and migrated to testing, it will instead be possible
>> to have it in the backports), if it will be added before the approaching
>> freeze there is a chance it will be added in debian 12
>>
>> looking at latest version of kernel packaging for experimental in arm64
>> config about renesas boards seems not present and I don't see an MR for
>> add it: https://salsa.debian.org/kernel-team/linux
>>
>> probably can be useful see other contacts related to ARM port (mailing
>> list, irc, debian developers working on arm on debian) here:
>> https://www.debian.org/ports/arm/
>>
>> I'm not a maintainer of the ARM part, kernel, bootloader and installer
>> but I hope you will be able to find someone who can help you and that we
>> can have a further improvement in the ARM devices support
>>
>> > I classify the defconfig, also classify the new kernel module to
>> > support our devices.
>> >
>> >   * For new kernel defconfig:
>> >
>> > CONFIG_ARCH_RENESAS=y
>> >
>> > CONFIG_SOC_RENESAS=y
>> >
>> > CONFIG_ARCH_RCAR_GEN3=y
>> >
>> > CONFIG_ARCH_R8A774A1=y
>> >
>> > CONFIG_RST_RCAR=y
>> >
>> > CONFIG_SYSC_RCAR=y
>> >
>> > CONFIG_SYSC_R8A774A1=y
>> >
>> > CONFIG_RENESAS_IRQC=y
>> >
>> > CONFIG_RAVB=y
>> >
>> > CONFIG_SERIAL_SH_SCI=y
>> >
>> > CONFIG_CLK_RCAR_GEN3_CPG=y
>> >
>> > CONFIG_CLK_RENESAS_CPG_MSSR=y
>> >
>> > CONFIG_CLK_RENESAS_DIV6=y
>> >
>> > CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y
>> >
>> > CONFIG_PINCTRL_RENESAS=y
>> >
>> > CONFIG_PINCTRL_SH_PFC=y
>> >
>> > CONFIG_PINCTRL_PFC_R8A774A1=y
>> >
>> > CONFIG_RCAR_THERMAL=y
>> >
>> > CONFIG_RCAR_GEN3_THERMAL=y
>> >
>> > CONFIG_RENESAS_DMA=y
>> >
>> > CONFIG_RCAR_DMAC=y
>> >
>> > 

Re: [DEVEL] Enable support for Renesas platform

2022-11-18 Thread Josua Mayer
Hi everybody!

Firstly seeing an SoC vendor reach out directly about enabling their HW in
Debian seems great to me!

I have been doing a little bit of this work in the past, asking the Debian
developers to add support for certain devices I had been working with. It
was a very slow process, often years between me establishing contact and an
actual release supporting a device.
It turned out that I didn't always have the time to follow through, and
also sometimes encountered bugs specific to the more obscure components
like debian-installer.

I'd like to make progress with this approach again, eventually. Especially
with SoC vendors supporting upstream Linux well, such as NXP (which I work
with a lot) - but also Renesas (my colleague tells me), support is quite
possible.
So @Huynh, I'd be happy to assist / answer some questions.

However note I am not part of the Debian project.
I don't know if joining makes sense, I don't know if the Debian project
would like to incorporate some developers who specifically would
collaborate to support certain vendors in Debian.
Just - there are things outsiders cannot do - like maintaining a "Blend"
e.g.

Sincerely
Josua Mayer

Fabio Fantoni  schrieb am Fr., 18. Nov. 2022,
12:50:

> Il 18/11/2022 09:20, Huỳnh Thành Hưng ha scritto:
> > Dear Debian-developer,
> >
> > I’m from Renesas Electronics Corporation,
> >
> > My group is developing to support running Debian OS on our devices,
> > also for getting ARM System Ready IR certificate.
> >
> > I recognize that the latest Debian 11 (Bullseye) has the kernel which
> > do not enable support for Renesas platform.
> >
> >   * *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
> >
> > Can you help me to enable those configs, also support the official
> > release version of Debian Live Installer ISO which support Renesas
> > platform?
> >
> Hi, thanks for your work, having "out of the box" support on other ARM
> devices I think would be a great thing.
> I unfortunately saw years ago when I tried several ARM devices for work,
> before choosing what to use for thin clients that the support was
> lacking and it took me a long time to prepare a system to use
> In recent years I've seen more interest in integrating upstream (mainly
> the kernel) and having more support in distributions to make it easier
> and faster for users to use them
>
> A first step is enable it in the kernel as you saw, add in stable
> version is not possible FWIK but should be added in unstable before
> (later, once added and migrated to testing, it will instead be possible
> to have it in the backports), if it will be added before the approaching
> freeze there is a chance it will be added in debian 12
>
> looking at latest version of kernel packaging for experimental in arm64
> config about renesas boards seems not present and I don't see an MR for
> add it: https://salsa.debian.org/kernel-team/linux
>
> probably can be useful see other contacts related to ARM port (mailing
> list, irc, debian developers working on arm on debian) here:
> https://www.debian.org/ports/arm/
>
> I'm not a maintainer of the ARM part, kernel, bootloader and installer
> but I hope you will be able to find someone who can help you and that we
> can have a further improvement in the ARM devices support
>
> > I classify the defconfig, also classify the new kernel module to
> > support our devices.
> >
> >   * For new kernel defconfig:
> >
> > CONFIG_ARCH_RENESAS=y
> >
> > CONFIG_SOC_RENESAS=y
> >
> > CONFIG_ARCH_RCAR_GEN3=y
> >
> > CONFIG_ARCH_R8A774A1=y
> >
> > CONFIG_RST_RCAR=y
> >
> > CONFIG_SYSC_RCAR=y
> >
> > CONFIG_SYSC_R8A774A1=y
> >
> > CONFIG_RENESAS_IRQC=y
> >
> > CONFIG_RAVB=y
> >
> > CONFIG_SERIAL_SH_SCI=y
> >
> > CONFIG_CLK_RCAR_GEN3_CPG=y
> >
> > CONFIG_CLK_RENESAS_CPG_MSSR=y
> >
> > CONFIG_CLK_RENESAS_DIV6=y
> >
> > CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y
> >
> > CONFIG_PINCTRL_RENESAS=y
> >
> > CONFIG_PINCTRL_SH_PFC=y
> >
> > CONFIG_PINCTRL_PFC_R8A774A1=y
> >
> > CONFIG_RCAR_THERMAL=y
> >
> > CONFIG_RCAR_GEN3_THERMAL=y
> >
> > CONFIG_RENESAS_DMA=y
> >
> > CONFIG_RCAR_DMAC=y
> >
> > CONFIG_PCIE_RCAR=y
> >
> > CONFIG_PCIE_RCAR_HOST=y
> >
> > CONFIG_SYS_SUPPORTS_SH_CMT=y
> >
> > CONFIG_SYS_SUPPORTS_SH_TMU=y
> >
> > CONFIG_SH_TIMER_CMT=y
> >
> > CONFIG_SH_TIMER_TMU=y
> >
> > CONFIG_RENESAS_OSTM=y
> >
> > CONFIG_IPMMU_VMSA=y
> >
> > CONFIG_COMMON_CLK_VC5=y
> >
> > CONFIG_MMC_TMIO_CORE=m
> >
> > CONFIG_MMC_SDHI=m
> >
> > CONFIG_MMC_SDHI_INTERNAL_DMAC=m
> >
> > CONFIG_MMC_SDHI_SYS_DMAC=m
> >
> > CONFIG_RENESAS_USB_DMAC=m
> >
> > CONFIG_I2C_RCAR=m
> >
> > CONFIG_GPIO_RCAR=m
> >
> > CONFIG_VIDEO_RENESAS_FCP=m
> >
> > CONFIG_VIDEO_RENESAS_VSP1=m
> >
> > CONFIG_VIDEO_RCAR_CSI2=m
> >
> > CONFIG_VIDEO_RCAR_VIN=m
> >
> > CONFIG_DRM_RCAR_DU=m
> >
> > CONFIG_DRM_RCAR_CMM=m
> >
> > CONFIG_DRM_RCAR_DW_HDMI=m
> >
> > CONFIG_DRM_RCAR_LVDS=m
> >
> > CONFIG_PHY_RCAR_GEN3_USB2=m
> >
> > CONFIG_PHY_RCAR_GEN3_USB3=m
> >
> > CONFIG_USB_XHCI_RCAR=m
> >
> > CONFIG_USB_RENESAS_USBHS=m
> >
> > 

Re: [DEVEL] Enable support for Renesas platform

2022-11-18 Thread Huỳnh Thành Hưng
Hi Fabio Fantoni,

Thank for your reply.

Seen like I need to wait for a long time to get the official support from
Debian for Renesas platform.

While waiting it, I'll connect with ARM port to get more support.

First times connect with Debian, this is useful for my experience.


Vào 17:50, T.6, 18 Th11, 2022 Fabio Fantoni  đã
viết:

> Il 18/11/2022 09:20, Huỳnh Thành Hưng ha scritto:
> > Dear Debian-developer,
> >
> > I’m from Renesas Electronics Corporation,
> >
> > My group is developing to support running Debian OS on our devices,
> > also for getting ARM System Ready IR certificate.
> >
> > I recognize that the latest Debian 11 (Bullseye) has the kernel which
> > do not enable support for Renesas platform.
> >
> >   * *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
> >
> > Can you help me to enable those configs, also support the official
> > release version of Debian Live Installer ISO which support Renesas
> > platform?
> >
> Hi, thanks for your work, having "out of the box" support on other ARM
> devices I think would be a great thing.
> I unfortunately saw years ago when I tried several ARM devices for work,
> before choosing what to use for thin clients that the support was
> lacking and it took me a long time to prepare a system to use
> In recent years I've seen more interest in integrating upstream (mainly
> the kernel) and having more support in distributions to make it easier
> and faster for users to use them
>
> A first step is enable it in the kernel as you saw, add in stable
> version is not possible FWIK but should be added in unstable before
> (later, once added and migrated to testing, it will instead be possible
> to have it in the backports), if it will be added before the approaching
> freeze there is a chance it will be added in debian 12
>
> looking at latest version of kernel packaging for experimental in arm64
> config about renesas boards seems not present and I don't see an MR for
> add it: https://salsa.debian.org/kernel-team/linux
>
> probably can be useful see other contacts related to ARM port (mailing
> list, irc, debian developers working on arm on debian) here:
> https://www.debian.org/ports/arm/
>
> I'm not a maintainer of the ARM part, kernel, bootloader and installer
> but I hope you will be able to find someone who can help you and that we
> can have a further improvement in the ARM devices support
>
> > I classify the defconfig, also classify the new kernel module to
> > support our devices.
> >
> >   * For new kernel defconfig:
> >
> > CONFIG_ARCH_RENESAS=y
> >
> > CONFIG_SOC_RENESAS=y
> >
> > CONFIG_ARCH_RCAR_GEN3=y
> >
> > CONFIG_ARCH_R8A774A1=y
> >
> > CONFIG_RST_RCAR=y
> >
> > CONFIG_SYSC_RCAR=y
> >
> > CONFIG_SYSC_R8A774A1=y
> >
> > CONFIG_RENESAS_IRQC=y
> >
> > CONFIG_RAVB=y
> >
> > CONFIG_SERIAL_SH_SCI=y
> >
> > CONFIG_CLK_RCAR_GEN3_CPG=y
> >
> > CONFIG_CLK_RENESAS_CPG_MSSR=y
> >
> > CONFIG_CLK_RENESAS_DIV6=y
> >
> > CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y
> >
> > CONFIG_PINCTRL_RENESAS=y
> >
> > CONFIG_PINCTRL_SH_PFC=y
> >
> > CONFIG_PINCTRL_PFC_R8A774A1=y
> >
> > CONFIG_RCAR_THERMAL=y
> >
> > CONFIG_RCAR_GEN3_THERMAL=y
> >
> > CONFIG_RENESAS_DMA=y
> >
> > CONFIG_RCAR_DMAC=y
> >
> > CONFIG_PCIE_RCAR=y
> >
> > CONFIG_PCIE_RCAR_HOST=y
> >
> > CONFIG_SYS_SUPPORTS_SH_CMT=y
> >
> > CONFIG_SYS_SUPPORTS_SH_TMU=y
> >
> > CONFIG_SH_TIMER_CMT=y
> >
> > CONFIG_SH_TIMER_TMU=y
> >
> > CONFIG_RENESAS_OSTM=y
> >
> > CONFIG_IPMMU_VMSA=y
> >
> > CONFIG_COMMON_CLK_VC5=y
> >
> > CONFIG_MMC_TMIO_CORE=m
> >
> > CONFIG_MMC_SDHI=m
> >
> > CONFIG_MMC_SDHI_INTERNAL_DMAC=m
> >
> > CONFIG_MMC_SDHI_SYS_DMAC=m
> >
> > CONFIG_RENESAS_USB_DMAC=m
> >
> > CONFIG_I2C_RCAR=m
> >
> > CONFIG_GPIO_RCAR=m
> >
> > CONFIG_VIDEO_RENESAS_FCP=m
> >
> > CONFIG_VIDEO_RENESAS_VSP1=m
> >
> > CONFIG_VIDEO_RCAR_CSI2=m
> >
> > CONFIG_VIDEO_RCAR_VIN=m
> >
> > CONFIG_DRM_RCAR_DU=m
> >
> > CONFIG_DRM_RCAR_CMM=m
> >
> > CONFIG_DRM_RCAR_DW_HDMI=m
> >
> > CONFIG_DRM_RCAR_LVDS=m
> >
> > CONFIG_PHY_RCAR_GEN3_USB2=m
> >
> > CONFIG_PHY_RCAR_GEN3_USB3=m
> >
> > CONFIG_USB_XHCI_RCAR=m
> >
> > CONFIG_USB_RENESAS_USBHS=m
> >
> > CONFIG_USB_RENESAS_USBHS_HCD=m
> >
> > CONFIG_USB_RENESAS_USBHS_UDC=m
> >
> > CONFIG_USB_RENESAS_USB3=m
> >
> > CONFIG_PWM_RCAR=m
> >
> > CONFIG_SPI_SH_MSIOF=m
> >
> > CONFIG_SND_SOC_RCAR=m
> >
> > CONFIG_CAN_RCAR=m
> >
> > CONFIG_CAN_RCAR_CANFD=m
> >
> > CONFIG_RENESAS_WDT=y
> >
> >   * For new kernel modules to be installed in
> > *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
> >   o *I2C Common:*
> >   + drivers/i2c/*.ko
> >   o *Renesas I2C: depend on I2C Common*
> >   + drivers/i2c/busses/i2c-rcar.ko
> >   o *Renesas GPIO:*
> >   + drivers/gpio/gpio-rcar.ko
> >   o *Renesas SDHI:*
> >   + drivers/mmc/host/tmio_mmc_core.ko
> >   + drivers/mmc/host/renesas_sdhi_core.ko
> >   + drivers/mmc/host/renesas_sdhi_internal_dmac.ko
> >   + drivers/mmc/host/renesas_sdhi_sys_dmac.ko
> >   o *V4L2 Common driver:*
> >  

Re: [DEVEL] Enable support for Renesas platform

2022-11-18 Thread Fabio Fantoni

Il 18/11/2022 09:20, Huỳnh Thành Hưng ha scritto:

Dear Debian-developer,

I’m from Renesas Electronics Corporation,

My group is developing to support running Debian OS on our devices, 
also for getting ARM System Ready IR certificate.


I recognize that the latest Debian 11 (Bullseye) has the kernel which 
do not enable support for Renesas platform.


  * *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*

Can you help me to enable those configs, also support the official 
release version of Debian Live Installer ISO which support Renesas 
platform?


Hi, thanks for your work, having "out of the box" support on other ARM 
devices I think would be a great thing.
I unfortunately saw years ago when I tried several ARM devices for work, 
before choosing what to use for thin clients that the support was 
lacking and it took me a long time to prepare a system to use
In recent years I've seen more interest in integrating upstream (mainly 
the kernel) and having more support in distributions to make it easier 
and faster for users to use them


A first step is enable it in the kernel as you saw, add in stable 
version is not possible FWIK but should be added in unstable before 
(later, once added and migrated to testing, it will instead be possible 
to have it in the backports), if it will be added before the approaching 
freeze there is a chance it will be added in debian 12


looking at latest version of kernel packaging for experimental in arm64 
config about renesas boards seems not present and I don't see an MR for 
add it: https://salsa.debian.org/kernel-team/linux


probably can be useful see other contacts related to ARM port (mailing 
list, irc, debian developers working on arm on debian) here: 
https://www.debian.org/ports/arm/


I'm not a maintainer of the ARM part, kernel, bootloader and installer 
but I hope you will be able to find someone who can help you and that we 
can have a further improvement in the ARM devices support


I classify the defconfig, also classify the new kernel module to 
support our devices.


  * For new kernel defconfig:

CONFIG_ARCH_RENESAS=y

CONFIG_SOC_RENESAS=y

CONFIG_ARCH_RCAR_GEN3=y

CONFIG_ARCH_R8A774A1=y

CONFIG_RST_RCAR=y

CONFIG_SYSC_RCAR=y

CONFIG_SYSC_R8A774A1=y

CONFIG_RENESAS_IRQC=y

CONFIG_RAVB=y

CONFIG_SERIAL_SH_SCI=y

CONFIG_CLK_RCAR_GEN3_CPG=y

CONFIG_CLK_RENESAS_CPG_MSSR=y

CONFIG_CLK_RENESAS_DIV6=y

CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y

CONFIG_PINCTRL_RENESAS=y

CONFIG_PINCTRL_SH_PFC=y

CONFIG_PINCTRL_PFC_R8A774A1=y

CONFIG_RCAR_THERMAL=y

CONFIG_RCAR_GEN3_THERMAL=y

CONFIG_RENESAS_DMA=y

CONFIG_RCAR_DMAC=y

CONFIG_PCIE_RCAR=y

CONFIG_PCIE_RCAR_HOST=y

CONFIG_SYS_SUPPORTS_SH_CMT=y

CONFIG_SYS_SUPPORTS_SH_TMU=y

CONFIG_SH_TIMER_CMT=y

CONFIG_SH_TIMER_TMU=y

CONFIG_RENESAS_OSTM=y

CONFIG_IPMMU_VMSA=y

CONFIG_COMMON_CLK_VC5=y

CONFIG_MMC_TMIO_CORE=m

CONFIG_MMC_SDHI=m

CONFIG_MMC_SDHI_INTERNAL_DMAC=m

CONFIG_MMC_SDHI_SYS_DMAC=m

CONFIG_RENESAS_USB_DMAC=m

CONFIG_I2C_RCAR=m

CONFIG_GPIO_RCAR=m

CONFIG_VIDEO_RENESAS_FCP=m

CONFIG_VIDEO_RENESAS_VSP1=m

CONFIG_VIDEO_RCAR_CSI2=m

CONFIG_VIDEO_RCAR_VIN=m

CONFIG_DRM_RCAR_DU=m

CONFIG_DRM_RCAR_CMM=m

CONFIG_DRM_RCAR_DW_HDMI=m

CONFIG_DRM_RCAR_LVDS=m

CONFIG_PHY_RCAR_GEN3_USB2=m

CONFIG_PHY_RCAR_GEN3_USB3=m

CONFIG_USB_XHCI_RCAR=m

CONFIG_USB_RENESAS_USBHS=m

CONFIG_USB_RENESAS_USBHS_HCD=m

CONFIG_USB_RENESAS_USBHS_UDC=m

CONFIG_USB_RENESAS_USB3=m

CONFIG_PWM_RCAR=m

CONFIG_SPI_SH_MSIOF=m

CONFIG_SND_SOC_RCAR=m

CONFIG_CAN_RCAR=m

CONFIG_CAN_RCAR_CANFD=m

CONFIG_RENESAS_WDT=y

  * For new kernel modules to be installed in
*linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
  o *I2C Common:*
  + drivers/i2c/*.ko
  o *Renesas I2C: depend on I2C Common*
  + drivers/i2c/busses/i2c-rcar.ko
  o *Renesas GPIO:*
  + drivers/gpio/gpio-rcar.ko
  o *Renesas SDHI:*
  + drivers/mmc/host/tmio_mmc_core.ko
  + drivers/mmc/host/renesas_sdhi_core.ko
  + drivers/mmc/host/renesas_sdhi_internal_dmac.ko
  + drivers/mmc/host/renesas_sdhi_sys_dmac.ko
  o *V4L2 Common driver:*
  + drivers/media/common/videobuf2/*.ko
  + drivers/media/v4l2-core/*.ko
  + drivers/media/mc/mc.ko
  o *Renesas video device: depend on "V4L2 Common driver"*
  + drivers/media/platform/rcar-fcp.ko
  + drivers/media/platform/vsp1/vsp1.ko
  o *Renesas display: depend on "Renesas video device"*
  + drivers/gpu/drm/rcar-du/*.ko
  o *Renesas USB:*
  + drivers/phy/renesas/phy-rcar-gen3-usb2.ko
  + drivers/phy/renesas/phy-rcar-gen3-usb3.ko
  + drivers/usb/renesas_usbhs/renesas_usbhs.ko
  + drivers/usb/gadget/udc/renesas_usb3.ko
  o *Realtek driver:*
  + drivers/net/phy/realtek.ko
  + drivers/net/mdio/mdio-mux.ko
  o *Renesas CAN/CANFD*
  + drviers/net/can/rcar/rcar_can.ko
  + drviers/net/can/rcar/rcar_canfd.ko
  o *Renesas SPI/MSIOF*
  + 

[DEVEL] Enable support for Renesas platform

2022-11-18 Thread Huỳnh Thành Hưng
Dear Debian-developer,



I’m from Renesas Electronics Corporation,



My group is developing to support running Debian OS on our devices, also
for getting ARM System Ready IR certificate.



I recognize that the latest Debian 11 (Bullseye) has the kernel which do
not enable support for Renesas platform.

   - *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*

Can you help me to enable those configs, also support the official release
version of Debian Live Installer ISO which support Renesas platform?



I classify the defconfig, also classify the new kernel module to support
our devices.

   - For new kernel defconfig:

CONFIG_ARCH_RENESAS=y

CONFIG_SOC_RENESAS=y

CONFIG_ARCH_RCAR_GEN3=y

CONFIG_ARCH_R8A774A1=y

CONFIG_RST_RCAR=y

CONFIG_SYSC_RCAR=y

CONFIG_SYSC_R8A774A1=y

CONFIG_RENESAS_IRQC=y

CONFIG_RAVB=y

CONFIG_SERIAL_SH_SCI=y

CONFIG_CLK_RCAR_GEN3_CPG=y

CONFIG_CLK_RENESAS_CPG_MSSR=y

CONFIG_CLK_RENESAS_DIV6=y

CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y

CONFIG_PINCTRL_RENESAS=y

CONFIG_PINCTRL_SH_PFC=y

CONFIG_PINCTRL_PFC_R8A774A1=y

CONFIG_RCAR_THERMAL=y

CONFIG_RCAR_GEN3_THERMAL=y

CONFIG_RENESAS_DMA=y

CONFIG_RCAR_DMAC=y

CONFIG_PCIE_RCAR=y

CONFIG_PCIE_RCAR_HOST=y

CONFIG_SYS_SUPPORTS_SH_CMT=y

CONFIG_SYS_SUPPORTS_SH_TMU=y

CONFIG_SH_TIMER_CMT=y

CONFIG_SH_TIMER_TMU=y

CONFIG_RENESAS_OSTM=y

CONFIG_IPMMU_VMSA=y

CONFIG_COMMON_CLK_VC5=y



CONFIG_MMC_TMIO_CORE=m

CONFIG_MMC_SDHI=m

CONFIG_MMC_SDHI_INTERNAL_DMAC=m

CONFIG_MMC_SDHI_SYS_DMAC=m

CONFIG_RENESAS_USB_DMAC=m

CONFIG_I2C_RCAR=m

CONFIG_GPIO_RCAR=m

CONFIG_VIDEO_RENESAS_FCP=m

CONFIG_VIDEO_RENESAS_VSP1=m

CONFIG_VIDEO_RCAR_CSI2=m

CONFIG_VIDEO_RCAR_VIN=m

CONFIG_DRM_RCAR_DU=m

CONFIG_DRM_RCAR_CMM=m

CONFIG_DRM_RCAR_DW_HDMI=m

CONFIG_DRM_RCAR_LVDS=m

CONFIG_PHY_RCAR_GEN3_USB2=m

CONFIG_PHY_RCAR_GEN3_USB3=m

CONFIG_USB_XHCI_RCAR=m

CONFIG_USB_RENESAS_USBHS=m

CONFIG_USB_RENESAS_USBHS_HCD=m

CONFIG_USB_RENESAS_USBHS_UDC=m

CONFIG_USB_RENESAS_USB3=m

CONFIG_PWM_RCAR=m

CONFIG_SPI_SH_MSIOF=m

CONFIG_SND_SOC_RCAR=m

CONFIG_CAN_RCAR=m

CONFIG_CAN_RCAR_CANFD=m

CONFIG_RENESAS_WDT=y





   - For new kernel modules to be installed in
   *linux-image-5.10.0-18-arm64_5.10.140-1_arm64.deb*
  - *I2C Common:*
 - drivers/i2c/*.ko
  - *Renesas I2C: depend on I2C Common*
 - drivers/i2c/busses/i2c-rcar.ko
  - *Renesas GPIO:*
 - drivers/gpio/gpio-rcar.ko
  - *Renesas SDHI:*
 - drivers/mmc/host/tmio_mmc_core.ko
 - drivers/mmc/host/renesas_sdhi_core.ko
 - drivers/mmc/host/renesas_sdhi_internal_dmac.ko
 - drivers/mmc/host/renesas_sdhi_sys_dmac.ko
  - *V4L2 Common driver:*
 - drivers/media/common/videobuf2/*.ko
 - drivers/media/v4l2-core/*.ko
 - drivers/media/mc/mc.ko
  - *Renesas video device: depend on "V4L2 Common driver"*
 - drivers/media/platform/rcar-fcp.ko
 - drivers/media/platform/vsp1/vsp1.ko
  - *Renesas display: depend on "Renesas video device"*
 - drivers/gpu/drm/rcar-du/*.ko
  - *Renesas USB:*
 - drivers/phy/renesas/phy-rcar-gen3-usb2.ko
 - drivers/phy/renesas/phy-rcar-gen3-usb3.ko
 - drivers/usb/renesas_usbhs/renesas_usbhs.ko
 - drivers/usb/gadget/udc/renesas_usb3.ko
  - *Realtek driver:*
 - drivers/net/phy/realtek.ko
 - drivers/net/mdio/mdio-mux.ko
  - *Renesas CAN/CANFD*
 - drviers/net/can/rcar/rcar_can.ko
 - drviers/net/can/rcar/rcar_canfd.ko
  - *Renesas SPI/MSIOF*
 - drivers/spi/spi-sh-msiof.ko
  - *Renesas Sound*
 - sound/soc/sh/rcar/snd-soc-rcar.ko
  - *Renesas PWM driver*
 - drivers/pwm/pwm-rcar.ko

Thank you so much.



Best Regards,

*Huynh Thanh Hung*

---

*SS4 – RZS2 Group.*

*Renesas Design Vietnam Co., Ltd.*

---