How to compile gstomx for TX2?

Hi Everyone

I have been trying to compile gstomx1_src for TX2. I sefl-compile source code on TX2 board.
Gstomx source is download at https://developer.nvidia.com/embedded/dlc/l4t-sources-27-1.

I follow READE.txt in gstomx1_src to compile. And I meet error related to EGL package when execute ./configure --with-omx-target=tegra.

configure: using GStreamer Base Plugins in /home/nvidia/gst_1.6.0/out/lib/gstreamer-1.0
checking for GST_EGL... configure: error: Package requirements (gstreamer-egl-1.0) were not met:

By disable checking EGL in confiure.ac as https://lists.freedesktop.org/archives/gstreamer-commits/2013-June/072214.html.
Configure command can be completed. However now I have meet error when make.

nvidia@tegra-ubuntu:~/gst_1.6.0/gst-omx1$ make
(CDPATH=“${ZSH_VERSION+.}:” && cd . && /bin/bash /home/nvidia/gst_1.6.0/gst-omx1/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory ‘/home/nvidia/gst_1.6.0/gst-omx1’
Making all in common
make[2]: Entering directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common’
Making all in m4
make[3]: Entering directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common/m4’
make[3]: Nothing to be done for ‘all’.
make[3]: Leaving directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common/m4’
make[3]: Entering directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common’
make[3]: Nothing to be done for ‘all-am’.
make[3]: Leaving directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common’
make[2]: Leaving directory ‘/home/nvidia/gst_1.6.0/gst-omx1/common’
Making all in omx
make[2]: Entering directory ‘/home/nvidia/gst_1.6.0/gst-omx1/omx’
CC libgstomx_la-gstomx_config.lo
CC libgstomx_la-gstomx.lo
In file included from gstomx.c:32:0:
gstomx.h:54:32: fatal error: NvxIndexExtensions.h: No such file or directory
compilation terminated.
Makefile:692: recipe for target ‘libgstomx_la-gstomx.lo’ failed
make[2]: *** [libgstomx_la-gstomx.lo] Error 1
make[2]: Leaving directory ‘/home/nvidia/gst_1.6.0/gst-omx1/omx’
Makefile:526: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/nvidia/gst_1.6.0/gst-omx1’
Makefile:458: recipe for target ‘all’ failed
make: *** [all] Error 2

Could anyone teach me how to solve this issue?
Thank you very much!

Best regards,

Hi, it is an known issue on r27.1. Please try r28.1

And gstomx1_src.tbz2 is dependent to gstegl_src.tbz2. you need to compile the two sources together.

Hi DaneLLL

Thank you about your prompt answer!

it is an known issue on r27.1. Please try r28.1

You mean that we need to install L4T r28.1 into TX2, is it right?
And where can I get source of gstomx1_src.tbz2 and gstegl_src.tbz2 for r28.1?

Best regards,

Yes, please install r28.1
https://devtalk.nvidia.com/default/topic/1019641/jetpack-3-1-mdash-l4t-r28-1-released-for-jetson-tx1-tx2/

Source packages https://developer.nvidia.com/embedded/dlc/l4t-sources-28-1

Hi DaneLLL

Thanks about your feedback!

I tried to install Tegra186_Linux_R28.1.0_aarch64.tbz2 downloaded at Jetson Download Center | NVIDIA Developer.
Because I had failure to flash L4T from host PC. So I install it by copy package into $INIDIA_INSTALLER on TX board
through SDCard and modify installer.sh script.

However after installation and reboot, board cannot boot successfully. Booting is infinite loop.

U-Boot 2016.07-g5971907 (Feb 08 2017 - 18:01:58 -0800)

TEGRA186
Model: NVIDIA P2771-0000-500
DRAM: 7.8 GiB
MC: Tegra SD/MMC: 0, Tegra SD/MMC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: eth0: ethernet@2490000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1…
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
462 bytes read in 87 ms (4.9 KiB/s)
p2771-0000 eMMC boot options
1: primary kernel
Enter choice: 1: primary kernel
Retrieving file: /boot/Image
20280368 bytes read in 536 ms (36.1 MiB/s)
append: fbcon=map:0 net.ifnames=0 console=tty0 OS=l4t console=ttyS0,115200n8 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 androit

Flattened Device Tree blob at 92000000

Booting using the fdt blob at 0x92000000
reserving fdt memory region: addr=80000000 size=10000
Using Device Tree in place at 0000000092000000, end 0000000092041814

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x100
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.38-tegra (buildbrain@mobile-u64-553) (gcc version 4.8.5 (GCC) ) #1 SMP PREEMPT Thu Jul 20 00:49:07 PDT 2017
[ 0.000000] Boot CPU: AArch64 Processor [411fd073]
[ 0.000000] earlycon: Early serial console at MMIO32 0x3100000 (options ‘’)
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] Reserved memory: initialized node vpr-carveout, compatible id nvidia,vpr-carveout
[ 0.000000] Reserved memory: initialized node ramoops_carveout, compatible id nvidia,ramoops
[ 0.000000] cma: Reserved 64 MiB at 0x00000000f2000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] PERCPU: Embedded 17 pages/cpu @ffffffc1ffcaa000 s31232 r8192 d30208 u69632
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 2019520
[ 0.000000] Kernel command line: fbcon=map:0 net.ifnames=0 console=tty0 OS=l4t console=ttyS0,115200n8 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 gpt tegraid=18.1.2.0.0 tegra_keep_t
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Memory: 7278920K/8206336K available (10976K kernel code, 1817K rwdata, 5712K rodata, 1164K init, 682K bss, 173752K reserved, 753664K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffffff8000000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
[ 0.000000] 0xffffffbdc2000000 - 0xffffffbdca000000 ( 128 MB actual)
[ 0.000000] fixed : 0xffffffbffa7fd000 - 0xffffffbffac00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
[ 0.000000] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc200000000 ( 8192 MB)
[ 0.000000] .init : 0xffffffc0010cd000 - 0xffffffc0011f0000 ( 1164 KB)
[ 0.000000] .text : 0xffffffc000080000 - 0xffffffc0010cd000 ( 16692 KB)
[ 0.000000] .data : 0xffffffc001211000 - 0xffffffc0013d7430 ( 1818 KB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=6.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] Architected cp15 timer(s) running at 31.25MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
[ 0.000002] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 4398046511088ns
[ 0.009249] Tegra Chip ID not yet available
[ 0.013592] ------------[ cut here ]------------
[ 0.018375] WARNING: at ffffffc000449684 [verbose debug info unavailable]
[ 0.025409] Modules linked in:
[ 0.028571]
[ 0.030113] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.38-tegra #1
[ 0.036789] Hardware name: quill (DT)
[ 0.040580] task: ffffffc001224ec0 ti: ffffffc001214000 task.ti: ffffffc001214000
[ 0.048342] PC is at tegra_read_chipid+0x48/0x54
[ 0.053125] LR is at tegra_read_chipid+0x48/0x54
[ 0.057907] pc : [] lr : [] pstate: 600000c5
[ 0.065573] sp : ffffffc001217e90
[ 0.069002] x29: ffffffc001217e90 x28: ffffffc00146a210
[ 0.074510] x27: 0000000000000000 x26: 0000000000000000
[ 0.080017] x25: ffffffc00121b9d8 x24: ffffffc00121caf0
[ 0.085525] x23: ffffffc00146a000 x22: ffffffc1ffdc5d50
[ 0.091031] x21: 0000000000000000 x20: 0000000000000001
[ 0.096535] x19: ffffffc001449ea0 x18: 000000000000000c
[ 0.102041] x17: 000000000000123f x16: 0000000000000001
[ 0.107550] x15: 0000000000000002 x14: 3536343038393334
[ 0.113058] x13: 2079726576652073 x12: ffffffc001234000
[ 0.118563] x11: 0000000000000002 x10: 0000000000000000
[ 0.124069] x9 : 000000000000002a x8 : 7661207465792074
[ 0.129576] x7 : 0000000000000000 x6 : ffffffc0010fdf80
[ 0.135080] x5 : ffffffc0010fdea4 x4 : 0000000000000000
[ 0.140586] x3 : 0000000000000000 x2 : 0000000000000001
[ 0.146092] x1 : ffffffc001214000 x0 : 000000000000001f
[ 0.151598]
[ 0.153144] —[ end trace cb88537fdc8fa200 ]—
[ 0.157927] Call trace:
[ 0.160459] [] tegra_read_chipid+0x48/0x54
[ 0.166323] [] tegra_get_platform+0xc/0xb8
[ 0.172191] [] tegra186_timer_init+0xf0/0x304
[ 0.178328] [] clocksource_probe+0x60/0xa0
[ 0.184192] [] time_init+0x14/0x44
[ 0.189337] [] start_kernel+0x28c/0x3b0
[ 0.194932] [<0000000080b2e000>] 0x80b2e000
[ 0.199893] Tegra Chip ID not yet available
[ 0.204235] ------------[ cut here ]------------
[ 0.209015] WARNING: at ffffffc000449684 [verbose debug info unavailable]
[ 0.216050] Modules linked in:
[ 0.219211]
[ 0.220750] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.4.38-tegra #1
[ 0.228686] Hardware name: quill (DT)
[ 0.232474] task: ffffffc001224ec0 ti: ffffffc001214000 task.ti: ffffffc001214000
[ 0.240232] PC is at tegra_read_chipid+0x48/0x54
[ 0.245015] LR is at tegra_read_chipid+0x48/0x54
[ 0.249797] pc : [] lr : [] pstate: 600000c5
[ 0.257461] sp : ffffffc001217e90
[ 0.260890] x29: ffffffc001217e90 x28: ffffffc00146a210
[ 0.266400] x27: 0000000000000001 x26: 0000000000000001
[ 0.271906] x25: ffffffc00121b9d8 x24: ffffffc00121caf0
[ 0.277412] x23: ffffffc00146a000 x22: ffffffc1ffdc5d50
[ 0.282921] x21: 0000000000000001 x20: 0000000000000002
[ 0.288428] x19: ffffffc001449ea0 x18: 000000000000000c
[ 0.293933] x17: 000000000000123f x16: 0000000000000001
[ 0.299436] x15: 0000000000000002 x14: 3536343038393334
[ 0.304940] x13: 2079726576652073 x12: ffffffc001234000
[ 0.310449] x11: 0000000000000002 x10: 0000000000000000
[ 0.315953] x9 : 000000000000004f x8 : 616c696176612074
[ 0.321462] x7 : 0000000000000000 x6 : ffffffc0010fdf80
[ 0.326969] x5 : ffffffc0010fdea4 x4 : 0000000000000000
[ 0.332473] x3 : 0000000000000000 x2 : 0000000000000001
[ 0.337981] x1 : ffffffc001214000 x0 : 000000000000001f
[ 0.343485]
[ 0.345022] —[ end trace cb88537fdc8fa201 ]—
[ 0.349801] Call trace:
[ 0.352333] [] tegra_read_chipid+0x48/0x54
[ 0.358197] [] tegra_get_platform+0xc/0xb8
[ 0.364062] [] tegra186_timer_init+0xf0/0x304
[ 0.370196] [] clocksource_probe+0x60/0xa0
[ 0.376061] [] time_init+0x14/0x44
[ 0.381205] [] start_kernel+0x28c/0x3b0
[ 0.386800] [<0000000080b2e000>] 0x80b2e000
[ 0.391718] Tegra Chip ID not yet available
[ 0.396058] ------------[ cut here ]------------
[ 0.400840] WARNING: at ffffffc000449684 [verbose debug info unavailable]
[ 0.407875] Modules linked in:
[ 0.411039]
[ 0.412578] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.4.38-tegra #1
[ 0.420515] Hardware name: quill (DT)
[ 0.424305] task: ffffffc001224ec0 ti: ffffffc001214000 task.ti: ffffffc001214000
[ 0.432061] PC is at tegra_read_chipid+0x48/0x54
[ 0.436843] LR is at tegra_read_chipid+0x48/0x54
[ 0.441625] pc : [] lr : [] pstate: 600000c5
[ 0.449292] sp : ffffffc001217e90
[ 0.452723] x29: ffffffc001217e90 x28: ffffffc00146a210
[ 0.458229] x27: 0000000000000002 x26: 0000000000000002
[ 0.463737] x25: ffffffc00121b9d8 x24: ffffffc00121caf0
[ 0.469241] x23: ffffffc00146a000 x22: ffffffc1ffdc5d50
[ 0.474747] x21: 0000000000000002 x20: 0000000000000003
[ 0.480251] x19: ffffffc001449ea0 x18: 000000000000000c
[ 0.485757] x17: 000000000000123f x16: 0000000000000001
[ 0.491265] x15: 0000000000000002 x14: 3536343038393334
[ 0.496772] x13: 2079726576652073 x12: ffffffc001234000
[ 0.502279] x11: 0000000000000002 x10: 0000000000000000
[ 0.507784] x9 : 0000000000000074 x8 : 657920746f6e2044
[ 0.513292] x7 : 0000000000000000 x6 : ffffffc0010fdf80
[ 0.518799] x5 : ffffffc0010fdea4 x4 : 0000000000000000
[ 0.524303] x3 : 0000000000000000 x2 : 0000000000000001
[ 0.529810] x1 : ffffffc001214000 x0 : 000000000000001f
[ 0.535317]
[ 0.536853] —[ end trace cb88537fdc8fa202 ]—

Do you have any idea to fix this issue?

Thank you so much!
Sincerely

Can you try to install it via Jetpack 3.1?

Hi All

I tried to boot from SD Card by deploy rootfs into SD card.
Rootfs is got after apply binaries $ sudo ./apply_binaries.sh.
/boot/extlinux/extlinux.conf is modified to change boot device from eMMC to SD Card.

Booting works well with R27.1.0 package only. Booting with R28.1.0 package is infinite loop.

Everyone have any comment?
Thank you!

It looks to be another issue. Please make a new post.