MiniGUI + Hi3531 笔记 .

一.移动光驱安装Ubuntu 10.04

     1.   重新启动系统按住Delete进入BIOS界面!

     2.   退出/高级模式 --> 启动 --> 启动设备选择. 移动光驱正常被识别后这里应该是有2个选项的:

           (1)SATA :WOC WD6401AALS-00E3A0 (默认硬盘)

           (2)TSSTcorp CDDVDW SE-208AB TS00 (移动光驱)

           我们直接点击(2)启动读取移动光驱中的光盘, 耐心等待数分钟就进入了Ubuntu安装欢迎界面, 默认安装!

二.相关工具安装

     1.  电信网去网易镜像源http://mirrors.163.com/ 下载Ubuntu镜像使用帮助显演示样例如以下:

           hardy(8.04)

           lucid(10.04)

           maverick(10.10)

           natty(11.04)

           oneiric(11.10)

           precise(12.04)

           quantal(12.10)

          选择对应的sources.list替换/etc/apt/sources.list文件, 本来我的是要用natty(11.04)可是试验不行干脆用precise(12.04)能够!

          #apt-get update

     2.  安装SSH

           #ssh localhost

          #apt-get install openssh-server

          #/etc/init.d/ssh start

     3.  转换bash

          #ls -al /bin/sh

         #dpkg-reconfigure dash

          弹出提示框选择 no

    4. 安装完整版的vim

         #apt-get install vim

三.配置NFSserver

     1.创建须要共享的目录

         #mkdir /home/Share

      2.安装NFS

        #apt-get install nfs-kernel-server

        (这里并未安装nfs-common和portmap)

      3.配置/etc/exports

        #vi /etc/exports

        加入 /home/Share 172.27.48.*(rw,sync,no_root_squash)

      4.重新启动NFSserver

        #/etc/init.d/nfs-kernel-server restart

三.编译Hi3531SDK包

       单独编译内核遇到例如以下2个问题!

      1.  问题:Unable to find the ncurses libraries

           解决:#apt-get insatll ncurses-dev

      2.  问题:“mkimage” command not found - U0Boot images will not be built

           解决:第一步:编译uboot,这时将会在uboot/tools下生成mkimage工具;

                      第二步:(1)将生成的mkimage复制到 /usr/bin 下,

                                    (2)声明环境变量,在/etc/bash.bashrc中加入例如以下语句:

                                             export PATH=/.../tools:$PATH  (uboot中tools目录绝对路径)

                                    (3)然后更新bashrc脚本:#source /etc/bash.bashrc

四.MiniGUI移植Hi3531

       1.  编译zlib库

            CC=arm-hisiv100nptl-linux-gcc \  
            CXX=arm-hisiv100nptl-linux-g++ \   
            LD=arm-hisiv100nptl-linux-ld \  
            AS=arm-hisiv100nptl-linux-as \   
            AR=arm-hisiv100nptl-linux-ar \  
           ./configure \  
           --prefix=/opt/hisi-linux-nptl/arm-hisiv100-linux/arm-hisiv100-linux-uclibcgnueabi \   
           --shared

         

网络參考:

http://blog.sina.com.cn/s/blog_43bc29e70100yi6k.html

http://blog.csdn.net/armeasy/article/details/6540593

http://blog.csdn.net/i46614161/article/details/4953975

http://www.alaiblog.com/minigui/porting-minigui3-0-12-to-hi3531.html

posted on 2017-07-09 21:53  wgwyanfs  阅读(286)  评论(0编辑  收藏  举报

导航