imx6q开发环境的搭建(ubuntu+yocoto)
2016-05-29 13:54
190 查看
使用软件:
VMware-workstation-full-v10.0.0-1295980ubuntu-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 tool5.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 packagessudo 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 http://commondatastorage.googleapis.com/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 "name@mail.com" $ git config --list $ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga $ repo sync //2015年12月17日 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/mx6qtest10.2 cp include/configs/mx6sabresd.h include/configs/mx6qtest.h
10.3 gedit boards.cfg
Active arm armv7 mx6 freescale mx6qtest 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 make
相关文章推荐
- 吉香缘公司 Y7 跳跃
- 关系数据库及异常处理
- hdu_2089_不要62(数位DP)
- POJ1005 I Think I Need a Houseboat【π】
- hdu_2089_不要62(数位DP)
- task
- JAVA中获取工程路径的方法
- 算法3—找出字符串中对称的子字符串的最大长度(最长回文)
- WAS(Websphere) 7升级到8.5遇到的头疼Verify Error问题
- Logcat调试信息
- java 利用POI 导入导出初步学习
- 数据库JDBC
- “我的天哪,吉香缘
- androidAnnotation 在androidstudio 中配置的正确配置,绝对可用
- 二叉树打印
- 作业——在线学习Android课程之第十三周(视图优化案例)
- eclipse中使用git
- php笔记(5)——文件操作
- libevent学习笔记(参考libevent深度剖析)
- Oracle默认的用户名和密码