imx6q yocto+yocto+qt5+xenomai 怎么玩法

2203人阅读
嵌入式开发(5)
使用软件:
VMware-workstation-full-v10.0.0-1295980
ubuntu-14.04.1LTS-desktop-amd64
1、安装虚拟机
2、安装系统,空间设置至少100G
2.1 安装好后,若输入密码进入系统后出现黑屏,那么关闭掉 虚拟机-》设置-》显示器-》3D图形加速
3、设置root用户
3.1 设置root用户密码
3.2 设置root用户登录显示
sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf,在文件后面添加greeter-show-manual-login=true 保存关闭,重启。
3.3 root用户登录显示
Ubuntu 12.04默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录。以普通身份登陆Ubuntu后我们需要做一些修改,普通用户登录后,修改系统配置文件需要切换到超级用户模式,在终端窗口里面输入: sudo &-s.然后输入普通用户登陆的密码,回车即可进入 root用户权限模式。
然后执行: vi /etc/lightdm/lightdm.conf.
增加 greeter-show-manual-login=true &allow-guest=false &. 修改完的整个配置文件是
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
allow-guest=false
#不允许guest登录
然后我们启动root帐号:
sudo passwd root
根据提示输入roott帐号密码。
重启ubuntu,登录窗口会有“登录”选项,这时候我们就可以通过root登录了。
4、设置系统为自己熟悉的模式
5、安装vmwaretool,以便设置全屏,共享文件
5.1 点击安装VMware tool
5.2 cd /media/root/VMware\ Tools/
5.3 解压文件到/tmp
5.4 cd /tmp/vm...trib/ &| & ./vm....pl &安装
6、设置网络,连接无线
不同于有线网络,用笔记本无线上网,问题出来了,主机为无线上网,虚拟机该怎么设定呢?
在主机为无线上网,虚拟机设定的时候最好用“桥接模式”(有些资料说用NAT模式,我试了很久,都没有成功),方法如下:
& & & 1. 关闭正在运行的虚拟机ubuntu,将其联网方式设定为“桥接模式”。
& & & 2. 在vmare菜单edit中找到VMware的虚拟网络编辑器,如果是绿色版,直接找到vmnetcfg.exe,双击就可以了。
& & & 3. 找到“主机虚拟网络映射”选项(host virtual network mapping),在vmnet0 上的下拉列表中,找到自己本本的无线网卡。
& & & 4. 启动ubuntu虚拟机即可。
7、apt-get update &可忽略 apt-get upgrade
8、Host Setup
8.1 Host packages
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat
i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup:
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils
python-pysqlite2
help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop
asciidoc{文件太大,直接下载下来手动安装 dpkg -i *.deb}
i.MX layers host packages for a Ubuntu 14.04 host setup only:
$ sudo apt-get install u-boot-tools
8.2 Setting up the repo utility
1. Create a bin folder in the home directory.
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl /git-repo-downloads/repo & ~/bin/repo
curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo & ~/bin/repo
$ chmod a+x ~/bin/repo
2. Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable.
export PATH=~/bin:$PATH
9、Yocto Project Setup
$ mkdir fsl-release-bsp
$ cd fsl-release-bsp
$ git config --global user.name &name&
$ git config --global user.email &&
$ git config --list
$ repo init -u git:///imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
$ repo sync
//日 17:33:06
source setup-environment
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build -e fb
source fsl-setup-release.sh
bitbake core-image-minimal
echo &UBOOT_CONFIG = \&emmc\&& && conf/local.conf
MACHINE=imx6qsabresd bitbake -c deploy u-boot-imx
MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-wayland -e wayland
bitbake fsl-image-qt5
MACHINE=imx6qsabresd source fsl-setup-release.sh –b build-dfb –e dfb
bitbake fsl-image-gui
10、Porting U-Boot from an i.MX 6 Reference Board to an i.MX 6 Custom Board
10.1 cp -R board/freescale/mx6sabresd/ board/freescale/mx6qtest
10.2 cp include/configs/mx6sabresd.h include/configs/mx6qtest.h
10.3 gedit boards.cfg&
Active arm armv7 mx6 freescale
mx6qtest mx6qtest
:IMX_CONFIG=board/freescale/mx6qtest/mx6q.cfg,MX6Q,DEFAULT_FDT_FILE=
&imx6q-test.dtb&,DDR_MB=2048 -10.4 board/freescale/mx6&reference board name&/mx6&reference board name&.c
& & & & &to
& & & & &board/freescale/mx6&custom board name&/mx6&custom board name&.c.
10.5 COBJS := mx6&reference board name&.o (inside board/freescale/mx6&custom board name&/Makefile)
10.6 增加make.sh文件以下内容
#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=/home/lhj/fsl-release-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
make distclean
make mx6qtest_config
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:104193次
积分:1411
积分:1411
排名:千里之外
原创:82篇
数据结构与算法:
/l/strucalgo
(1)(2)(3)(1)(4)(6)(8)(7)(7)(2)(11)(8)(11)(1)(11)(1)(2)
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'

我要回帖

更多关于 qt5.9.1 yocto imx6 的文章

 

随机推荐