https://blog.csdn.net/colin_lisicong/article/details/70193539
输入 sudo passwd 命令,输入一般用户密码并设定root用户密码。
设定root密码成功后,输入 su 命令,并输入刚才设定的root密码,就可以切换成root了。
提示符$代表一般用户,提示符#代表root用户。
输入 exit 命令,退出root并返回一般用户。
https://blog.csdn.net/w88193363/article/details/79400932
https://www.cnblogs.com/chenfool/p/7985909.html
#vi /etc/eth0-setting
在打开的文件中修改相应的IP、Mask、DNS等信息;然后:wq保存、退出。
# /etc/init.d/ifconfig-eth0 restart
https://www.linuxidc.com/Linux/2017-10/147467.htm
将 arm-linux-gcc-4.3.2.tgz解压到 usr/local/arm
在终端中执行gedit /etc/profile
将四行添加到文件中:
export PATH=/usr/local/arm/4.3.2/bin:$PATH
export TOOLCHAIN=/usr/local/arm/4.3.2
export TB_CC_PREFIX=arm-linux-
export PKG_CONFIG_PREFIX=$TOOLCHAIN/arm-none-linux-gnueabi
重启系统, 执行arm-linux-gcc -v 查看编译器版本。
将文件系统解压到指定文件夹/forlinx/root下
在Ubuntu 上新建一个终端,依次输入以下命令:
#sudo apt-get install portmap
#sudo apt-get install nfs-kernel-server
#sudo gedit /etc/exports
在弹出的文本编辑器中编辑exports 文件,在最后一行添加:
/forlinx *(rw,sync,no_root_squash)
启动NFS服务
#sudo /etc/init.d/portmap restart
#sudo /etc/init.d/nfs-kernel-server restart
在开发板的u-boot 命令行下输入以下命令设置U-boot 启动参数:
#setenv bootargs"root=/dev/nfsnfsroot=192.168.0.231:/forlinx/root/FileSystem-Yaffs2
ip=192.168.0.232:192.168.0.231:192.168.0.201:255.255.255.0:witech.com.
cn:eth0:off console=ttySAC0,115200"
保存:
#saveenv
192.168.0.231 PC 端Ubuntu 的IP
192.168.0.232 平台IP,平台的IP必须和PC端的IP在同一个网段,这里都是0网段
192.168.0.201 网关
255.255.255.0 子网掩码
安装autoconf、automake、libtool包
进入tslib运行脚本./autogen.sh
配置安装参数:
./configure --host=arm-linux --cache-file=arm-linux.cache --enable-input=no -prefix=/usr/local/arm/tslib/build
make
make install
编译完后进入build目录编辑ts.conf文件
cd build/etc gedit ts.conf
去掉‘module_raw input’前面的#号和空格
https://blog.csdn.net/andylauren/article/details/51996310
以上过程是对Qt开发环境搭建的记录,资料大部分来自以上网站,《OK6410用户手册》,《Qt移植百科全书》。