Bug 1213805

Summary: OpenSUSE installation support for SMARC RZ/G2L platform
Product: [openSUSE] openSUSE Tumbleweed Reporter: John Vincent <john.vincent.xa>
Component: KernelAssignee: openSUSE Kernel Bugs <kernel-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: afaerber, chester.lin, ivan.ivanov, jcheung, john.vincent.xa, oneukum, snwint, stanimir.varbanov, tiwai
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: kernel log with CONFIG_RESET_RZG2L_USBPHY_CTRL=m
kernel log with CONFIG_RESET_RZG2L_USBPHY_CTRL=y

Description John Vincent 2023-07-31 07:51:03 UTC
Dear Maintainer

The OpenSUSE installation on SMARC RZ/G2L board is failing due to “CONFIG_RESET_RZG2L_USBPHY_CTRL=m”. 

https://github.com/openSUSE/kernel-source/blob/master/config/arm64/default#L11581

The USB memory disk not detected due to the above "m" configuration and hence the OpenSUSE installer is failing.

“CONFIG_RESET_RZG2L_USBPHY_CTRL=y” will fix this issue. Thanks

Please note you have helped us earlier in the ticket 1203558, this made RZ/G2M hihope board working, the SMARC RZ/G2L is more recent platform. The upstream kernel got this configured as 'y'. 

https://renesas.info/wiki/RZ-G/RZ-G2L_SMARC

Please help to fix the above configuration to make the Renesas RZ/G2L platform able to install OpenSUSE OS.

Best Regards
John
Comment 1 Takashi Iwai 2023-07-31 08:13:26 UTC
A more proper fix would be rather to put the module into the installer image, IMO.

Or does this driver have to be built-in by some other reason, not just because of the missing driver at the installation time?
Comment 3 Ivan Ivanov 2023-07-31 14:23:46 UTC
(In reply to John Vincent from comment #0)

> 
> The USB memory disk not detected due to the above "m" configuration and
> hence the OpenSUSE installer is failing.

Just for my understanding. You are booting from uSD and trying to install
on USB drive, is this correct?

Thanks,
Ivan
Comment 5 John Vincent 2023-07-31 14:50:11 UTC
Created attachment 868541 [details]
kernel log with CONFIG_RESET_RZG2L_USBPHY_CTRL=m
Comment 6 John Vincent 2023-07-31 14:51:10 UTC
Created attachment 868542 [details]
kernel log with CONFIG_RESET_RZG2L_USBPHY_CTRL=y
Comment 7 John Vincent 2023-07-31 14:51:56 UTC
Hi Ivan & Takashi

Thanks.

>> Just for my understanding. You are booting from uSD and trying to install
>> on USB drive, is this correct?

I'm booting from USB and trying to install on the eMMC flash memory. During Linux boot the USB memory device fail to detect and hence "Loading Installation System (1/6) etc..." does not occur. The installation steps then ask to load the files through network.

I've tested with option “CONFIG_RESET_RZG2L_USBPHY_CTRL" with option "y" & "m" using linux kernel 6.4.3. The option "y" detects the USB device ok during the linux boot, but option "m" not. I've added the logs for reference.

This driver “CONFIG_RESET_RZG2L_USBPHY_CTRL" have to be build-in to fix this issue.

Best Regards
John
Comment 10 Ivan Ivanov 2023-08-03 09:06:56 UTC
While making this module build-in perhaps will fix the issue, 
but we prefer to keep as much as possible drivers as loadable modules. 
Think of kernel image size.

It looks like what could fix installation issue in this case is
to add reset-rzg2l-usbphy-ctrl module to installer initrd.

What is put in initrd for openSUSE installation images is specified here [1].

[1] https://github.com/openSUSE/installation-images/blob/master/data/initrd/all_modules
Comment 11 John Vincent 2023-08-03 09:20:03 UTC
Hi Ivan

Thanks for your reply.

>> It looks like what could fix installation issue in this case is
to add reset-rzg2l-usbphy-ctrl module to installer initrd.

Yes. I agree. Adding "reset-rzg2l-usbphy-ctrl" module to installer initrd will fix this issue.

Please update when this update will be available in the daily installer so that we will test them and update you.

Best Regards
John
Comment 12 Steffen Winterfeldt 2023-08-03 10:01:18 UTC
The question to me would be whether to add all modules from kernel/drivers/reset/
or just this Renesas module?

Any insights?
Comment 13 Ivan Ivanov 2023-08-03 10:05:55 UTC
(In reply to John Vincent from comment #11)

> Please update when this update will be available in the daily installer so
> that we will test them and update you.

Github repo is publicly available. Everyone could submit pull request ;-)
Comment 14 Ivan Ivanov 2023-08-03 10:07:42 UTC
(In reply to Steffen Winterfeldt from comment #12)
> The question to me would be whether to add all modules from
> kernel/drivers/reset/
> or just this Renesas module?
> 
> Any insights?

According bug description only reset-rzg2l-usbphy-ctrl is required.
Comment 15 Steffen Winterfeldt 2023-08-03 10:14:47 UTC
I am aware of that. My question was more general. Let me rephrase:

Given that some of these reset drivers are compiled in, some are modules - would
it be beneficial to *other* hardware to have them all included or is just the
Renesas driver useful during installation?
Comment 16 John Vincent 2023-08-03 10:21:45 UTC
Hi Ivan

>> Github repo is publicly available. Everyone could submit pull request ;-)

I was expecting this module to be added in the installer iso image inside initrd so that I'm able to install OpenSUSE on Renesas RZ/G2L target boards.

How will I add this module on the installer iso image?

Best Regards
John
Comment 17 Ivan Ivanov 2023-08-03 10:40:42 UTC
(In reply to Steffen Winterfeldt from comment #15)

> Given that some of these reset drivers are compiled in, some are modules -
> would
> it be beneficial to *other* hardware to have them all included or is just the
> Renesas driver useful during installation?

If I should take decision, I will be conservative and add only this module.
They are so many other modules which are critical, but we can't be sure
until someone ask for them.
Comment 18 Ivan Ivanov 2023-08-03 10:47:07 UTC
(In reply to John Vincent from comment #16)
> Hi Ivan
> 
> >> Github repo is publicly available. Everyone could submit pull request ;-)
> 
> I was expecting this module to be added in the installer iso image inside
> initrd so that I'm able to install OpenSUSE on Renesas RZ/G2L target boards.
> 
> How will I add this module on the installer iso image?

My understanding is that.

1) Module name have to be added to [1].
2) Once pull request is accepted new installation-images package will be 
   created.
3) Once new version of installation-images is released "build servers"
   will be updated and will start using this new package, which will
   produce ISO images and reset-rzg2l-usbphy-ctrl module will be inside initrd.


1] https://github.com/openSUSE/installation-images/blob/master/data/initrd/all_modules
Comment 19 Ivan Ivanov 2023-08-03 11:25:57 UTC
John, please, could you test this [1] ISO image.

It has reset-rzg2l-usbphy-ctrl inside installer initrd. This will
show as whether it is just this module missing or there are more.

[1] https://build.opensuse.org/source/home:iivanov/Tumbleweed-SMARC-RZ-G2/renesas-dud.iso?rev=0d54de428b584df414ce6d4030c722aa
Comment 20 Steffen Winterfeldt 2023-08-03 11:26:34 UTC
I've added the module:

https://github.com/openSUSE/installation-images/pull/652
Comment 21 John Vincent 2023-08-03 12:33:54 UTC
Hi Ivan

Thanks for the link:

https://build.opensuse.org/source/home:iivanov/Tumbleweed-SMARC-RZ-G2/renesas-dud.iso?rev=0d54de428b584df414ce6d4030c722aa

I'm getting the following error using this link:

<status code="maintenance">
<summary>Sorry, api.opensuse.org is in maintenance mode at the moment. If the situation persists, check the opensuse-buildservice@opensuse.org mailinglist or https://status.opensuse.org/ or join us in channel #opensuse-buildservice at irc.opensuse.org.</summary>
<details/>
</status>

The status says Maintenace on Thursday 8:00 to 10:00 CET.
https://status.opensuse.org/

Should I wait or this issue due to my browser setting or any other issues.

Thanks for your help.

Best Regards
John
Comment 22 Ivan Ivanov 2023-08-03 12:43:30 UTC
(In reply to John Vincent from comment #21)

> https://status.opensuse.org/
 
It says: "Build Service"  "Major Outage"
Comment 23 John Vincent 2023-08-03 16:24:18 UTC
Hi Ivan

Thanks for the iso image with reset-rzg2l-usbphy-ctrl added.

The usb driver is working ok now with this iso image. Thanks.

But I see this iso image is smaller. The Loading installation system (x/6) not present with this iso installer. (But this works ok on a sd card installer when I get the iso image size about 3.5GB).

Is it possible to get an iso image with the installation files present to test please. 

Best Regards
John
Comment 24 Ivan Ivanov 2023-08-04 06:23:44 UTC
Glad that this worked.

Image was created using openSUSE-Tumbleweed-NET-aarch64.iso 
and only for testing that adding only reset-rzg2l-usbphy-ctrl
module is enough to resolve the issue at hand. 

I don't know what you mean by "(x/6) not present". NET iso contain
minimal set of application, but you can install anything that
you need after this, by normal way "zypper in ..."

Once new installation images tool is released you will have
all ISO's, so you can test whatever you want. 

When this happens is beyond my knowledge.
Comment 25 John Vincent 2023-08-04 15:43:38 UTC
Thanks Ivan.

>>I don't know what you mean by "(x/6) not present". NET iso contain
>> minimal set of application,
I was referring the full installer iso image for testing.

Dear OpenSUSE support team,

Please update when this fix is available (adding reset-rzg2l-usbphy-ctrl.ko into the full installer ISO image). Thanks.

Best Regards
John
Comment 26 John Vincent 2023-09-05 17:53:36 UTC
Hi Ivan

This ticket is pending to add the reset-rzg2l-usbphy-ctrl.ko into openSUSE iso installation images.

Any update about reset-rzg2l-usbphy-ctrl.ko added into the installation image.

Alternatively, is it possible to configure “CONFIG_RESET_RZG2L_USBPHY_CTRL=y” for us to allow installing OpenSUSE on Renesas RZ platform.

Best Regards
John
Comment 27 Ivan Ivanov 2023-09-07 08:18:14 UTC
(In reply to John Vincent from comment #26)
> Hi Ivan
> 
> This ticket is pending to add the reset-rzg2l-usbphy-ctrl.ko into openSUSE
> iso installation images.

Sorry, Tumbleweed releases are out of my realm of influence :-)
Comment 28 Steffen Winterfeldt 2023-09-07 17:25:38 UTC
Hi John,

aarch64 Tumbleweed ISOs are unfortunately not updated as frequent as
the x86 media.

If you need it for testing, you can fix the ISO yourself and add the
required module(s) following the steps here:

https://github.com/openSUSE/mksusecd/blob/master/HOWTO.md#update-kernel-and-kernel-modules