I tried the tutorial following Jetson/TX2 SPI - eLinux.org on real TX2. However, all those steps had passed, except
sudo ./flash.sh -r -k kernel-dtb jetson-tx2 mmcblk0p1
there is no flash.sh in TX2.
So I tried the tutorial on host machine. However, the errors occurred when i run the command
$ git clone http://github.com/jetsonhacks/buildJetsonTX2Kernel.git
$ cd buildJetsonTX2Kernel
$ ./getKernelSources.sh
This one
$ ./getKernelSources.sh
the errors:
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Hit:13 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:14 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 323 kB in 2s (144 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version (0.29.1-0ubuntu1).
qt5-default is already the newest version (5.5.1+dfsg-16ubuntu7.5).
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic
linux-headers-4.13.0-45 linux-headers-4.13.0-45-generic
linux-headers-4.15.0-30 linux-headers-4.15.0-30-generic
linux-image-4.13.0-36-generic linux-image-4.13.0-45-generic
linux-image-4.15.0-30-generic linux-image-extra-4.13.0-36-generic
linux-image-extra-4.13.0-45-generic linux-modules-4.15.0-30-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded.
--2018-08-25 03:21:58-- http://developer.download.nvidia.com/embedded/L4T/r28_Release_v2.0/GA/BSP/tx2_sources.tbz2
Resolving developer.download.nvidia.com (developer.download.nvidia.com)... 58.216.33.87, 58.216.33.88, 58.223.168.55, ...
Connecting to developer.download.nvidia.com (developer.download.nvidia.com)|58.216.33.87|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘tx2_sources.tbz2’ not modified on server. Omitting download.
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar: public_release/kernel_src.tbz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rm: cannot remove 'public_release': No such file or directory
./scripts/getKernelSources.sh: line 11: cd: kernel/kernel-4.4: No such file or directory
gzip: /proc/config.gz: No such file or directory
make: *** No rule to make target 'xconfig'. Stop.<li></li>
the command can run on target TX2, but can not on host machine.
can anyone help me ? Plz.