Linux Tegra architecture development
 help / color / mirror / Atom feed
* [RFC] staging: nvec: cannot configure to compile driver for testing
@ 2024-06-30 10:37 Philipp Hortmann
  2024-07-01  2:13 ` Ágatha Isabelle Chris Moreira Guedes
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Hortmann @ 2024-06-30 10:37 UTC (permalink / raw)
  To: linux-tegra, linux-staging, linux-kernel
  Cc: Tom Mounet, Julia Lawall, Marc Dietrich, Greg KH

Hi,

to test the patch:

[PATCH v3] staging: nvec: Use x instead of x != NULL to improve readability.
https://lore.kernel.org/linux-staging/66804898.5d0a0220.6df0f.4f0a@mx.google.com/T/#u

I would like to compile the driver nvec. But the issue I have is that I 
cannot configure to compile it.


When start make menuconfig

and search with / for NVEC I can see:

Symbol: MFD_NVEC [=n] 
                                                        Type  : tristate 
 
                                        Defined at 
drivers/staging/nvec/Kconfig:2 
                                              Prompt: NV Tegra Embedded 
Controller SMBus Interface 
                              Depends on: STAGING [=y] && I2C [=y] && 
GPIOLIB [=y] && ARCH_TEGRA 
                Location: 
 
  -> Device Drivers 
                                                      (2)   -> Staging 
drivers (STAGING [=y])
	 -> NV Tegra Embedded Controller SMBus Interface (MFD_NVEC [=n])
Selects: MFD_CORE [=y] 


But I cannot jump or go into "NV Tegra Embedded Controller SMBus Interface"

In my .config file there is no string "NVEC" at all.

How to config this driver to be compiled?

Thanks for your support.

Bye Philipp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] staging: nvec: cannot configure to compile driver for testing
  2024-06-30 10:37 [RFC] staging: nvec: cannot configure to compile driver for testing Philipp Hortmann
@ 2024-07-01  2:13 ` Ágatha Isabelle Chris Moreira Guedes
  2024-07-01 19:26   ` Philipp Hortmann
  0 siblings, 1 reply; 3+ messages in thread
From: Ágatha Isabelle Chris Moreira Guedes @ 2024-07-01  2:13 UTC (permalink / raw)
  To: Philipp Hortmann
  Cc: linux-tegra, linux-staging, linux-kernel, Tom Mounet,
	Julia Lawall, Marc Dietrich, Greg KH

[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]

Hi!

On Sun, Jun 30, 2024 at 12:37:53PM GMT, Philipp Hortmann wrote:
> When start make menuconfig
> 
> and search with / for NVEC I can see:
> 
> Symbol: MFD_NVEC [=n]
> Type  : tristate
> 
>                                        Defined at
> drivers/staging/nvec/Kconfig:2
> Prompt: NV Tegra Embedded Controller SMBus Interface
> Depends on: STAGING [=y] && I2C [=y] && GPIOLIB [=y] && ARCH_TEGRA
> Location:
> 
>  -> Device Drivers                                                      (2)
> -> Staging drivers (STAGING [=y])
> 	 -> NV Tegra Embedded Controller SMBus Interface (MFD_NVEC [=n])
> Selects: MFD_CORE [=y]
> 
> 
> But I cannot jump or go into "NV Tegra Embedded Controller SMBus Interface"

Have you checked whether you have its dependencies enabled?

It seems like you have STAGING, I2C and GPIOLIB, but not ARCH_TEGRA.

Is your kernel configured for the right architecture? Are you using
ARCH=arm environment variable? You can do this by running the command:

$ ARCH=arm make menuconfig

> In my .config file there is no string "NVEC" at all.

If it's generated by `make menuconfig` and you don't have the
dependencies, as far as I can recall it's not supposed to have this
string at all.

> How to config this driver to be compiled?

I haven't worked much with kernel for ARM-based SoCs, but I think as
soon as you have your kernel properly configured for the correct
architecture and having all dependencies met  you'll see it there. I
just tested and it shows up for me


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] staging: nvec: cannot configure to compile driver for testing
  2024-07-01  2:13 ` Ágatha Isabelle Chris Moreira Guedes
@ 2024-07-01 19:26   ` Philipp Hortmann
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Hortmann @ 2024-07-01 19:26 UTC (permalink / raw)
  To: Ágatha Isabelle Chris Moreira Guedes
  Cc: linux-tegra, linux-staging, linux-kernel, Tom Mounet,
	Julia Lawall, Marc Dietrich, Greg KH

On 7/1/24 04:13, Ágatha Isabelle Chris Moreira Guedes wrote:
> Hi!
> 
> On Sun, Jun 30, 2024 at 12:37:53PM GMT, Philipp Hortmann wrote:
>> When start make menuconfig
>>
>> and search with / for NVEC I can see:
>>
>> Symbol: MFD_NVEC [=n]
>> Type  : tristate
>>
>>                                         Defined at
>> drivers/staging/nvec/Kconfig:2
>> Prompt: NV Tegra Embedded Controller SMBus Interface
>> Depends on: STAGING [=y] && I2C [=y] && GPIOLIB [=y] && ARCH_TEGRA
>> Location:
>>
>>   -> Device Drivers                                                      (2)
>> -> Staging drivers (STAGING [=y])
>> 	 -> NV Tegra Embedded Controller SMBus Interface (MFD_NVEC [=n])
>> Selects: MFD_CORE [=y]
>>
>>
>> But I cannot jump or go into "NV Tegra Embedded Controller SMBus Interface"
> 
> Have you checked whether you have its dependencies enabled?
> 
> It seems like you have STAGING, I2C and GPIOLIB, but not ARCH_TEGRA.
> 
> Is your kernel configured for the right architecture? Are you using
> ARCH=arm environment variable? You can do this by running the command:
> 
> $ ARCH=arm make menuconfig
> 
>> In my .config file there is no string "NVEC" at all.
> 
> If it's generated by `make menuconfig` and you don't have the
> dependencies, as far as I can recall it's not supposed to have this
> string at all.
> 
>> How to config this driver to be compiled?
> 
> I haven't worked much with kernel for ARM-based SoCs, but I think as
> soon as you have your kernel properly configured for the correct
> architecture and having all dependencies met  you'll see it there. I
> just tested and it shows up for me
> 


Hi,

thanks for the hints. Here the steps I took on my x86_64:

saved my .config file.
sudo apt install gcc-aarch64-linux-gnu
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make defconfig
make menuconfig
	used / NVEC to find driver(s) and set them all to modules
make scripts prepare modules_prepare
make -j6
make -C . M=drivers/staging/nvec

Thanks for your support.

Bye Philipp












^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-01 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-30 10:37 [RFC] staging: nvec: cannot configure to compile driver for testing Philipp Hortmann
2024-07-01  2:13 ` Ágatha Isabelle Chris Moreira Guedes
2024-07-01 19:26   ` Philipp Hortmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox