Auvidea Jetson TX2 USB3.0 problem

Hi,

I’m trying to compile tx2 with auvidea, to enable USB 3.0

When I connect ZED camera it cannot be launched and lsusb -t show like this


nvidia@tegra-ubuntu:~$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 3: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M

Therefore, I’ve copy and paste by follow the readme.txt of auvidea J120 carrier board

tegra186-quill-power-tree-p3310-1000-a00-00.dtsi to
/usr/src/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms

and after that I try to build and compile following by this page “GitHub - jetsonhacks/buildJetsonTX2Kernel: Build the NVIDIA Jetson TX2 Kernel on the device itself

It shows this kind of errors


root@tegra-ubuntu:/usr/src/kernel/kernel-4.4# make -j6 Image
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: ‘include/generated/mach-types.h’ is up to date.
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
LD drivers/…/…/t18x/drivers/net/can/mttcan/built-in.o
GZIP kernel/config_data.gz
LD drivers/…/…/t18x/drivers/net/can/built-in.o
LD drivers/…/…/t18x/drivers/net/built-in.o
CC drivers/…/…/t18x/drivers/platform/tegra/mc/tegra18_emc.o
CHK kernel/config_data.h
In file included from include/linux/platform/tegra/mc.h:22:0,
from drivers/…/…/t18x/drivers/platform/tegra/mc/tegra18_emc.c:17:
include/linux/platform/tegra/tegra_mc.h: In function ‘mc_get_carveout_info’:
include/linux/platform/tegra/tegra_mc.h:77:10: error: ‘ENODEV’ undeclared (first use in this function)
return -ENODEV;
^
include/linux/platform/tegra/tegra_mc.h:77:10: note: each undeclared identifier is reported only once for each function it appears in
UPD kernel/config_data.h
CC drivers/ata/tegra/ahci_tegra.o
CC kernel/configs.o
CC drivers/ata/libahci_platform.o
scripts/Makefile.build:261: recipe for target ‘drivers/…/…/t18x/drivers/platform/tegra/mc/tegra18_emc.o’ failed
make[5]: *** [drivers/…/…/t18x/drivers/platform/tegra/mc/tegra18_emc.o] Error 1
scripts/Makefile.build:406: recipe for target ‘drivers/…/…/t18x/drivers/platform/tegra/mc’ failed
make[4]: *** [drivers/…/…/t18x/drivers/platform/tegra/mc] Error 2
scripts/Makefile.build:406: recipe for target ‘drivers/…/…/t18x/drivers/platform/tegra’ failed
make[3]: *** [drivers/…/…/t18x/drivers/platform/tegra] Error 2
scripts/Makefile.build:406: recipe for target ‘drivers/…/…/t18x/drivers/platform’ failed
make[2]: *** [drivers/…/…/t18x/drivers/platform] Error 2
scripts/Makefile.build:406: recipe for target ‘drivers/…/…/t18x/drivers’ failed
make[1]: *** [drivers/…/…/t18x/drivers] Error 2
make[1]: *** Waiting for unfinished jobs…
LD kernel/built-in.o
In file included from include/soc/tegra/tegra_powergate.h:21:0,
from drivers/ata/tegra/ahci_tegra.c:20:
include/linux/tegra-powergate.h:74:19: error: redefinition of ‘tegra_powergate_is_powered’
static inline int tegra_powergate_is_powered(int id)
^
In file included from drivers/ata/tegra/ahci_tegra.h:30:0,
from drivers/ata/tegra/ahci_tegra.c:17:
include/soc/tegra/pmc.h:131:19: note: previous definition of ‘tegra_powergate_is_powered’ was here
static inline int tegra_powergate_is_powered(int id)
^
In file included from include/soc/tegra/tegra_powergate.h:21:0,
from drivers/ata/tegra/ahci_tegra.c:20:
include/linux/tegra-powergate.h:101:19: error: redefinition of ‘tegra_powergate_remove_clamping’
static inline int tegra_powergate_remove_clamping(int id)
^
In file included from drivers/ata/tegra/ahci_tegra.h:30:0,
from drivers/ata/tegra/ahci_tegra.c:17:
include/soc/tegra/pmc.h:146:19: note: previous definition of ‘tegra_powergate_remove_clamping’ was here
static inline int tegra_powergate_remove_clamping(int id)
^
include/soc/tegra/pmc.h:64:29: error: expected identifier or ‘(’ before numeric constant
#define TEGRA_POWERGATE_SOR 17
^
include/soc/tegra/tegra_powergate.h:28:12: note: in expansion of macro ‘TEGRA_POWERGATE_SOR’
extern int TEGRA_POWERGATE_SOR;
^
scripts/Makefile.build:261: recipe for target ‘drivers/ata/tegra/ahci_tegra.o’ failed
make[3]: *** [drivers/ata/tegra/ahci_tegra.o] Error 1
scripts/Makefile.build:406: recipe for target ‘drivers/ata/tegra’ failed
make[2]: *** [drivers/ata/tegra] Error 2
make[2]: *** Waiting for unfinished jobs…
LD net/can/built-in.o
scripts/Makefile.build:406: recipe for target ‘drivers/ata’ failed
make[1]: *** [drivers/ata] Error 2
Makefile:973: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs…
CC lib/vsprintf.o
LD net/built-in.o
AR lib/lib.a

Could please guide me to set this?

Thank you.

make -j6 Image

You are forgetting the O=… and ARCH=… options to the make call. Those are needed.

Snarky! Thank you for your help.

Could you please give me detailed instructions?

https://devtalk.nvidia.com/default/topic/937478/auvidea-j120-support-/?offset=25

I’ve tried by following above cite but it still not working. The error message is,

nvidia@tegra-ubuntu:/usr/src/kernel/kernel-4.4$ make O=$AUV_KERNEL_OUT dtbs

scripts/kconfig/conf --silentoldconfig Kconfig
warning: (SPI_TEGRA186_AON && TEGRA_BPMP && TEGRA_BPMP) selects TEGRA_HSP which has unmet direct dependencies (ARCH_TEGRA)
warning: (SPI_TEGRA186_AON && TEGRA_HV_MANAGER && TEGRA_BPMP && TEGRA_BPMP) selects TEGRA_IVC which has unmet direct dependencies (ARCH_TEGRA)
warning: (ARM_SMMU) selects OF_TEGRA_IOMMU_SMMU which has unmet direct dependencies (IOMMU_SUPPORT && ARCH_TEGRA)
warning: (SPI_TEGRA186_AON && TEGRA_BPMP && TEGRA_BPMP) selects TEGRA_HSP which has unmet direct dependencies (ARCH_TEGRA)
warning: (SPI_TEGRA186_AON && TEGRA_HV_MANAGER && TEGRA_BPMP && TEGRA_BPMP) selects TEGRA_IVC which has unmet direct dependencies (ARCH_TEGRA)
warning: (ARM_SMMU) selects OF_TEGRA_IOMMU_SMMU which has unmet direct dependencies (IOMMU_SUPPORT && ARCH_TEGRA)

*** Error during update of the configuration.

scripts/kconfig/Makefile:37: recipe for target ‘silentoldconfig’ failed
make[2]: *** [silentoldconfig] Error 1
Makefile:542: recipe for target ‘silentoldconfig’ failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target ‘include/config/auto.conf’, needed by ‘scripts’. Stop.

Thanks.

Hi SG_HUB,

You could try to update the firmware for Jetson TX2 based carrier boards, see [url]https://auvidea.com/firmware/[/url]

And some other information as reference:
[url]Auvidea's answers on J120 questions - Jetson TX2 - NVIDIA Developer Forums

Cheers