NVIDIA Jetson TK1学习与开发(四):一些细节问题

本文把自己在学习或开发Jetson TK1过程中遇到的一些细节性的问题罗列出来,并提供解决方案。

首先就是wiki上提供的一些注意事项,网址:http://elinux.org/Jetson_TK1

1、An important step before connecting the Jetson to Internet

It is really important to tell "apt" not to overwrite the file "libglx.so" if you upgrade the system. "libglx.so" is a specific file in NVIDIA's graphics driver that might get replaced by an incorrect version from Ubuntu that stops you from being able to
boot into the graphical environment! So please execute this command on your Jetson before you connect it to Internet or perform an update:

sudo apt-mark hold xserver-xorg-core

Now you can allow Ubuntu to update itself automatically or you can run "sudo apt-get upgrade" without problems.

2、Add the Universe package repositories, since you will often need packages from Universe for code development

sudo apt-add-repository universe
sudo apt-get update

3、If you will use the shell command-line a lot

Install "bash-completion" (it allows you to hit the "Tab" key to auto-complete your shell commands) and "command-not-found" (it shows which package you probably need to install if you run an unavailable command). These 2 tools are extremely useful when using
the commandline, but were not installed by default in Ubuntu 14.04. Simply run this:

sudo apt-get install bash-completion command-not-found
exit

4、change the shell prompt

You probably should also change the shell prompt (by adjusting "PS1" in the ".bashrc" file in your home directory) to be more useful, such as getting the shell prompt to have a different color than regular commands, and make it obvious if a command returned
with an error. There are thousands of custom .bashrc configurations on the web, including Shervin's that provides a different colored shell prompt depending on whether a command was succesful or returned an error.

5、If you will use the graphical environment (Unity) a lot

turn off the desktop shopping suggestions that are enabled by default in Ubuntu 14.04 (despite the spyware concerns discussed by huge numbers of people) by running this:

gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', \
    'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', \
    'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"

6、If you need more disk space on the eMMC

The eMMC on the Jetson has a capacity of 16GB, however some instructions or boards default to only using 8GB of the drive (or 12GB, see discussion). If you require more disk space in your rootfs such as for installing toolkits or compiling large projects,
you can flash the Jetson (from a Linux desktop) to have a larger filesystem (note that this will erase all data on the Jetson TK1, and it takes roughly 1 hour to flash the whole eMMC!):

sudo ./flash.sh -S 14580MiB jetson-tk1 mmcblk0p1

结果截图如下:(注意:慎重使用此命令。因为会清空你的所有数据)

The maximum value of the flash.sh -S flag that works successfully is 14580MiB. Greater values (like 16GiB) are beyond the capacity of the eMMC when the other system-required partitions are included.

7、Shutting down Jetson TK1 safely

Just like any Linux computer, the recommended way to shut-down or turn off Jetson TK1 is to click Shutdown in the GUI or run this in a terminal, to ensure the filesystem will not be corrupt:

sudo shutdown -h now

相信仍然有很多细节性的问题亟待发现并解决,待续。。。。

时间: 2024-04-26 06:02:25

NVIDIA Jetson TK1学习与开发(四):一些细节问题的相关文章

NVIDIA Jetson TK1学习与开发(三):图文详解Jetson TK1平台搭建

图文详解Jetson TK1平台搭建 在<NVIDIA Jetson TK1学习与开发(一)>和<NVIDIA Jetson TK1学习与开发(二)>中已经对TK1的基本资源进行了简单介绍,并且推荐了一些很有用的网址供大家学习.本文将图文详解Jetson TK1平台的搭建. 1.开箱第一步 开箱后进入唯一的目录下, 会看到installer.sh,在当前路径执行以下命令: sudo ./installer (注意:此命令只能执行一次) 重启, sudo reboot 重启后进入开机

NVIDIA Jetson TK1学习与开发(一):NVIDIA Jetson TK1介绍

经同学推荐,向NVIDIA申请了一套NVIDIA Jetson TK1,首先感谢NVIDIA的慷慨,申请地址为:https://registration.nvidia.com/ahr.aspx.考虑到我的TK1将于本月底邮寄到我手中,为了好好利用该资源做研究,故提前熟悉下. 从今天开始,将记录个人学习开发TK1的点点滴滴,首先呢,就是对TK1做个简单介绍了. 下图是官网上的介绍: 下表是TEGRA K1 处理器规格参数:

NVIDIA Jetson TK1学习与开发(八):图文详解OpenGL在Jetson TK1上的安装和使用

图文详解OpenGL在Jetson TK1上的安装和使用 1.入门介绍与资源推介 OpenGL(全写Open Graphics Library)是个定义了一个跨编程语言.跨平台的编程接口规格的专业的图形程序接口.它用于三维图像(二维的亦可),是一个功能强大,调用方便的底层图形库. OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL 三维图形 API 的子集,针对手机.PDA和游戏主机等嵌入式设备而设计.该API由Khronos集团定义推广,Khron

NVIDIA Jetson TK1学习与开发(二):入门指导

  对于第一次使用TK1的童鞋们,可以仔细阅读以下网址提供的资料:http://elinux.org/Jetson_TK1 TK1开发板的一些资料下载网址:https://developer.nvidia.com/jetson-tk1 入门视频教学:http://www.iqiyi.com/a_19rrhc0aql.html 需要注意的是: 1.由于Jetson TK1只提供一个USB接口,因此若想连接鼠标.键盘.优盘等外设,可以自己购买一个USB扩展接口来使用. 2.Jetson TK1提供的

NVIDIA Jetson TK1学习与开发(六):如何安装CUDA

本文介绍如何安装CUDA,以CUDA6.0为例介绍. 1.Installing the CUDA Toolkit onto your device for native CUDA development Download the .deb file for the CUDA Toolkit for L4T either using a web browser on the device, or download on your PC then copy the file to your devi

NVIDIA Jetson TK1学习与开发:如何解决输入和输出音频问题

若Jetson TK1的音频不能用,可以在终端输入以下命令,再次测试,就可以使用了.(注意:在Jetson TK1硬件上音频处,上面的是话筒,下面的是听筒). amixer cset name="Stereo ADC MIXL ADC2 Switch" 0 amixer cset name="Stereo ADC MIXR ADC2 Switch" 0 amixer cset name="Int Mic Switch" 0 amixer cset

NVIDIA Jetson TK1学习与开发(十):人脸检测(Face Detection)

本文介绍如何使用OpenCV检测人脸,并且给出示例,本平台仍然采用的是 Jetson TK1. 1.测试摄像头 为了能够从摄像头中实时检测出人脸,首先要做的就是判断你的摄像头是否可以工作,其基本方法如下: sudo apt-get install luvcview luvcview 如果摄像头可以正常工作,则出现如下界面: 2.安装OpenCV 参考网址:图文详解OpenCV在Jetson TK1上的安装和使用 3.新建工作文件夹并拷贝源码编译 mkdir ~/faceActivatedGPIO

NVIDIA Jetson TK1学习与开发(五):helloworld的C版本与C++版本

从本篇博文开始,将一一探索Jetson TK1的开发过程,那就从最简单的hello world开始吧. 本次将介绍hello world的两种写法. 1.C版本hello world 新建helloworld.c: 输入代码: 编译链接运行: 2.C++版本hello world 新建helloworld.cpp: 输入代码: 编译链接运行: 对,就是这么简单!大家都会的...

NVIDIA Jetson TK1学习与开发(九):基于GPU加速的OpenCV人体检测(Full Body Detection)

基于GPU加速的OpenCV人体检测(Full Body Detection) 1.CUDA和OpenCV的安装 首先,确定一下自己的平台是否安装好了CUDA和OpenCV. CUDA的安装可以参考:http://blog.csdn.net/frd2009041510/article/details/42042807和http://blog.csdn.net/frd2009041510/article/details/42925205 OpenCV的安装可以参考:http://blog.csdn