JetPack_5.0.2_Linux_JETSON_AGX_XAVIER_TARGETS
I delete the clone.img.raw and want to clone another clone.img.raw
but I encounter a new error
EFI system partition image (esp.img) not found
please tell me what I can do
thanks
…/Rules.mk:52: *** Please specify the target rootfs path if you are cross-compiling. Stop.
=> This might be permission issue, it can’t get TARGET_ROOTFS when you are compiling. Please try to execute command in su mode.
Or just execute in a line:
ex. $ sudo TARGET_ROOTFS=$HOME/jetson PATH=<CROSS_COMPILER_PATH>/bin:$PATH CROSS_COMPILE=aarch64-linux-gnu- make
previously, I always executed sudo make but it didn’t work
I execute your command it works but why I can’t use export environment variable like original steps
after execute the command, the follow error is
Linking: jpeg_decode
/usr/lib/gcc-cross/aarch64-linux-gnu/9/…/…/…/…/aarch64-linux-gnu/bin/ld: skipping incompatible /home/mikeli/jetson//usr/local/cuda/lib64/libnvjpeg.so when searching for -lnvjpeg
/usr/lib/gcc-cross/aarch64-linux-gnu/9/…/…/…/…/aarch64-linux-gnu/bin/ld: skipping incompatible /home/mikeli/jetson//usr/local/cuda/lib64/libcudart.so when searching for -lcudart
/usr/lib/gcc-cross/aarch64-linux-gnu/9/…/…/…/…/aarch64-linux-gnu/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
make: *** [Makefile:53: jpeg_decode] Error 1
Compiling: jpeg_decode_csvparser.cpp
Compiling: jpeg_decode_main.cpp
Linking: jpeg_decode
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/mikeli/jetson/usr/lib/aarch64-linux-gnu/libpthread.a(pthread_create.o): in function `allocate_stack':
/build/glibc-RIFKjK/glibc-2.31/nptl/allocatestack.c:525: undefined reference to `_dl_stack_flags'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/allocatestack.c:525: undefined reference to `_dl_stack_flags'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/allocatestack.c:647: undefined reference to `_dl_stack_flags'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/allocatestack.c:647: undefined reference to `_dl_stack_flags'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/mikeli/jetson/usr/lib/aarch64-linux-gnu/libpthread.a(nptl-init.o): in function `__pthread_initialize_minimal_internal':
/build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:335: undefined reference to `_dl_pagesize'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:335: undefined reference to `_dl_pagesize'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:344: undefined reference to `_dl_pagesize'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:360: undefined reference to `_dl_init_static_tls'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:362: undefined reference to `_dl_wait_lookup_done'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:360: undefined reference to `_dl_init_static_tls'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:362: undefined reference to `_dl_wait_lookup_done'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/mikeli/jetson/usr/lib/aarch64-linux-gnu/libpthread.a(nptl-init.o): in function `__pthread_get_minstack':
/build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:393: undefined reference to `_dl_pagesize'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/nptl-init.c:393: undefined reference to `_dl_pagesize'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/mikeli/jetson/usr/lib/aarch64-linux-gnu/libpthread.a(unwind.o): in function `_jmpbuf_sp':
/build/glibc-RIFKjK/glibc-2.31/nptl/../sysdeps/aarch64/jmpbuf-offsets.h:52: undefined reference to `__pointer_chk_guard_local'
/usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /build/glibc-RIFKjK/glibc-2.31/nptl/../sysdeps/aarch64/jmpbuf-offsets.h:52: undefined reference to `__pointer_chk_guard_local'
collect2: error: ld returned 1 exit status
make: *** [Makefile:53: jpeg_decode] Error 1
it generates undefined reference, how to deal with it?
Thanks Kevin! I can build the sample code now.
However, after building example, I can’t run it, it shows
/lib/ld-linux-aarch64.so.1: No such file or directory
You told it how to link, now it also has to find libraries at run time. Is this the cross environment, or native to the Jetson? Instructions differ, but basically it needs an update to the LD_LIBRARY_PATH, or else a symbolic link added. If native, then the symbolic link is preferable ; if cross environment, then adjusting LD_LIBRARY_PATH is preferable. Whichever environment it is, what do you see for:
echo $LD_LIBRARY_PATH
ls -l /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
(I say that because this is one standard location for finding that library)