您尚未登录。

#1 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-12-18 10:33:47

有没有裁减过的 A33  SDK   ? ?
可以付费

#2 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-12-18 10:21:44

如果有人能帮忙裁减内核 ,
删除全志特有的功能 ,
跳过 gen_check_code 的步骤 ,
那就该多好啊  ! !  !

#4 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-23 19:19:08

大概知道是什么回事了 。

前面说到 gen_check_code , 这是一个工具软件 ,相当于WINDOWS的EXE ,

这个工具是由厂家以源代码的形式提供的,

然后用户用 GCC 编译产生 gen_check_code 这个工具

用户编译 gen_check_code 的过程当中,又需要某个库文件 ,

这个库文件需要用户自己下载 。

再运行 gen_check_code , 由gen_check_code去产生内核的影像文件 。

差不多是这样吧 !!!

#5 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-23 19:00:48

A33环境搭建编译手册

oria2006 2015-11-16 14:09:08   3092   收藏
A33环境搭建编译手册


说明

目录

Ubuntu安装 4

制作Ubuntu的USB启动盘 4

安装Ubuntu 6

配置ssh 15

配置vim 15

开启Ubuntu图形界面的root权限 16

配置WINDOWS可用XRDP远程桌面 17

搭建安卓编译开发环境 18

JAVA库下载、安装与配置 19

编译器下载、安装与配置 19

Uboot镜像制作工具下载安装 20

安装编译环境需要的库 20

编译指南 21

编译内核 21

编译lichee 22

编译brandy 23

编译android 24

Android打包 25


Ubuntu安装
制作Ubuntu的USB启动盘
登陆http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/,下载USB启动盘制作工具

找到DOWNLOAD UUI,下载

下载后,插入U盘运行(Universal-USB-Installer-1.9.5.9.exe 目前在技术部服务器有提供)

同意协议,下一步

如下图设置,

Step1:选着Linux发行版

Step2:选择ubuntu镜像所在的路径

Step3:选择插入的U盘

Step4:默认选项

确认

制作完成


安装Ubuntu
插入制作好的U盘到电脑,重启,按F12(根据实际情况)进入启动选项菜单,选择从U盘启动。


一路不用操作,默认的“ Try Ubuntu without Installing ”
直至进入Ubuntu试用系统,双击Install Ubuntu图标开始安装,如下图

选择中文

勾选下载更新,勾选安装第三方软件

询问安装类型,建议使用其他选项,可以更好的进行自定义

选择要安装的硬盘进行分区,这里安排是:

500G大小的硬盘

分区

挂载点

容量

第一个分区

/ (根分区)

30G

第二个分区

SWAP

4G

第三个分区

/opt

466G(即剩余的容量)

这么处理,考虑到以后开发相关的都放在opt上,如需重装、升级操作系统,无需破坏开发的资料

操作如下,点击选择目标硬盘的空闲空间,点击添加

如下图设置第一个分区

重复上一步,再添加第二个分区


重复上一步,再添加第三个分区

选择安装启动引导器的设备为硬盘的引导区,点击现在安装


接下来设置时区

设置键盘布局


设置账户信息和计算机信息

等待安装完成


直至提示安装完成,点击重启

重启之后进入系统,弹出更新管理器,选择不升级为14.04,选择安装更新

更新完重启系统


配置ssh
Ctrl+Alt+T打开终端

自动下载配置ssh

sudo apt-get install ssh

在Windows下使用PuTTY即可使用SSH远程登录

配置vim
vm是vi的升级版本

自动下载配置vim

sudo apt-get install vim


开启Ubuntu图形界面的root权限
快捷键打开终端

Ctrl+Alt+T

获取root权限

输入sudo  -s    输入普通用户登陆的密码,回车获得root权限

修改配置文件/etc/lightdm/lightdm.conf 

试用vim打开或者试用gedit打开

vim /etc/lightdm/lightdm.conf 

或:

gdit /etc/lightdm/lightdm.conf 

编辑后文档内容如下(添加下面加底纹内容):

     [SeatDefaults]
     greeter-session=unity-greeter
     user-session=Ubuntu
     greeter-show-manual-login=true
     allow-guest=false

设置root用户密码

sudo passwd root

重启后选择登陆root登陆帐号

注:下文开始,如无特殊说明都是在root用户下进行操作


配置WINDOWS可用XRDP远程桌面


打开终端,自动配置安装xrdp和vnc

apt-get install xrdp vnc4server tightvncserver

打开要远程登录用户的home目录,root用户即/root

cd ~

创建.xsession文件

echo "gnome-session --session=ubuntu-2d" > .xsession

重启xrdp

/etc/init.d/xrdp restart

在Windows下使用远程桌面连接(请根据实际情况输入ip)

输入账号密码

即可登录


搭建安卓编译开发环境
JAVA库下载、安装与配置
登陆:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

下载jdk-6u45-linux-x64.bin (技术部服务器上有保存)

需要注意的是,现在官方网站上最新的版本的JDK7, 但是这个这个版本是不能用于Android的编译的,一定要去下载JDK6

下载后,修改权限

chmod 777 jdk-6u45-linux-x64.bin

./jdk-6u45-linux-x64.bin

安装后产生jdk1.6.0_45目录,把它拷贝到/opt/lib/jvm/jdk6/下面

设置环境变量

vim /etc/environment

添加上底纹部分内容

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/lib/jvm/jdk6/jdk1.6.0_45/bin:/opt/lib/jvm/jdk6/jdk1.6.0_45/jre/bin"

JAVA_HOME=/opt/lib/jvm/jdk6/jdk1.6.0_45

CLASSPATH=/opt/lib/jvm/jdk6/jdk1.6.0_45/lib

Source环境变量

source /etc/environment

查看JAVA版本验证安装,若能看到版本信息则一般安装完成

java -version

版本信息如下

java version "1.6.0_45"

Java(TM) SE Runtime Environment (build 1.6.0_45-b06)

Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

Uboot镜像制作工具下载安装
apt-get install uboot-mkimage

安装编译环境需要的库
apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx-lts-trusty:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

编译器下载、安装与配置
编译器下载、替换4.4版本

apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib

mv -f /usr/bin/gcc /usr/bin/bak_gcc

mv -f /usr/bin/g++ /usr/bin/bak_g++

ln -s /usr/bin/gcc-4.4 /usr/bin/gcc

ln -s /usr/bin/g++-4.4 /usr/bin/g++

测试一下gcc版本号

gcc -v

版本信息如下

Using built-in specs.

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.4.7-1ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-1ubuntu2)


编译指南

创建项目文件夹

mkdir /opt/item_A33

解压lichee.tar.gz压缩包

tar -zxvf lichee.tar.gz -C /opt/item_A33/

解压android.tar.gz压缩包

tar -zxvf android.tar.gz -C /opt/item_A33/

进入lichee目录

cd /opt/item_A33/lichee

编译内核
source buildroot/scripts/mksetup.sh

出现以下设置选项,请依照设置

Welcome to mkscript setup progress

All available chips:

   0. sun8iw5p1

Choice: 0

All available platforms:

   0. android

   1. dragonboard

   2. linux

Choice: 0

All available kernel:

   0. linux-3.4

Choice: 0

All available boards:

   0. evb

   1. maple

   2. redwood

   3. y2

   4. y3

Choice: 4

编译lichee
mklichee

编译过程

INFO: ----------------------------------------

INFO: build lichee ...

INFO: chip: sun8iw5p1

INFO: platform: android

INFO: kernel: linux-3.4

INFO: board: y3

INFO: output: out/sun8iw5p1/android/y3

INFO: ----------------------------------------

INFO: build buildroot ...

external toolchain has been installed

INFO: build buildroot OK.

INFO: build kernel ...

INFO: prepare toolchain ...

Building kernel

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: “include/generated/mach-types.h”是最新的。

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  CC      arch/arm/mach-sunxi/pm/standby/common.o

省略大部分编译过程...

make: Leaving directory `/opt/item_A33/lichee/linux-3.4/modules/mali'

regenerate rootfs cpio

8772 blocks

9475 blocks

build_ramfs

Copy boot.img to output directory ...

Copy modules to target ...

INFO: build kernel OK.

INFO: build rootfs ...

INFO: skip make rootfs for android

INFO: build rootfs OK.

INFO: ----------------------------------------

INFO: build lichee OK.

INFO: ----------------------------------------

(至此编译成功)

单独编译buildroot

mkbr

编译过程

INFO: build buildroot ...

external toolchain has been installed

INFO: build buildroot OK.

单独编译内核

mkkernel

编译过程

INFO: build kernel ...

INFO: prepare toolchain ...

Building kernel

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: “include/generated/mach-types.h”是最新的。

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  CC      arch/arm/mach-sunxi/pm/standby/common.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_clock.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_ir.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_key.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_power.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_twi.o

  CC      arch/arm/mach-sunxi/pm/standby/standby_usb.o

  AS      arch/arm/mach-sunxi/pm/standby/standby_delay.o

  CC      arch/arm/mach-sunxi/pm/standby/./arisc/standby_arisc.o

  CC      arch/arm/mach-sunxi/pm/standby/./arisc/arisc_hwmsgbox.o

(省略编译过程.,.)

make: Leaving directory `/opt/item_A33/lichee/linux-3.4/modules/mali'

regenerate rootfs cpio

8772 blocks

9475 blocks

build_ramfs

Copy boot.img to output directory ...

Copy modules to target ...

INFO: build kernel OK.

(至此,内核编译完成)

编译brandy
Bandy目录中存放的是A33平台的bootloader,该目录为A33启动代码,默认不编译。

编译u-boot

cd lichee/brandy/u-boot-2011.09/

make distclean

make sun8iw5p1_config

make -j2

当编译成功,生成的u-boot-sun8iw5pl.bin文件会自动拷贝到对应的tool目录下,这时候可以直接打包或者其他操作。U-boot-sun8iw5pl.bin启动时是uboot核心可执行程序。

"u-boot-sun8iw5p1.bin" -> "/opt/item_A33/lichee/brandy/u-boot-2011.09/../../tools/pack/chips/sun8iw5p1/bin/u-boot-sun8iw5p1.bin"

编译android
编译android前请先编译内核

选择方案

souece build/envsetup.sh

lunch

出现以下设置选项,请依照设置

You're building on Linux

 

Lunch menu... pick a combo:

     1. aosp_arm-eng

     2. aosp_x86-eng

     3. aosp_mips-eng

     4. vbox_x86-eng

     5. aosp_manta-userdebug

     6. aosp_deb-userdebug

     7. aosp_flo-userdebug

     8. aosp_grouper-userdebug

     9. aosp_tilapia-userdebug

     10. mini_armv7a_neon-userdebug

     11. mini_x86-userdebug

     12. mini_mips-userdebug

     13. aosp_mako-userdebug

     14. aosp_hammerhead-userdebug

     15. astar_y3-eng

     16. astar_y3-user

 

Which would you like? [aosp_arm-eng] 15

 

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.4.2

TARGET_PRODUCT=astar_y3

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a7

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.13.0-46-generic-x86_64-with-Ubuntu-12.04-precise

HOST_BUILD_TYPE=release

BUILD_ID=KVT49L

OUT_DIR=out

============================================



拷贝kenrel和modules

extract-bsp

编译android

make -j?

(?表示启用几个进程编译,一般不要超过cpu的核数)

最后显示信息

Install system fs image: out/target/product/astar-y3/system.img

out/target/product/astar-y3/system.img+out/target/product/astar-y3/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=822163584 blocksize=4224 total=591028141 reserve=8308608

Android打包
cd到android根目录用pack打包

pack

显示以下信息

copying tools file

copying configs file

copying boot resource

copying boot file

packing for android

normal

/opt/item_A33/lichee/tools/pack/pctools/linux/eDragonEx/

/opt/item_A33/lichee/tools/pack/out

Begin Parse sys_partion.fex

Add partion boot-resource.fex BOOT-RESOURCE_FEX

Add partion very boot-resource.fex BOOT-RESOURCE_FEX

FilePath: boot-resource.fex

FileLength=4bec00Add partion env.fex ENV_FEX000000000

Add partion very env.fex ENV_FEX000000000

FilePath: env.fex

FileLength=20000Add partion boot.fex BOOT_FEX00000000

Add partion very boot.fex BOOT_FEX00000000

FilePath: boot.fex

FileLength=afa000Add partion system.fex SYSTEM_FEX000000

Add partion very system.fex SYSTEM_FEX000000

FilePath: system.fex

FileLength=23175bdcAdd partion recovery.fex RECOVERY_FEX0000

Add partion very recovery.fex RECOVERY_FEX0000

FilePath: recovery.fex

FileLength=db2000Add partion diskfs.fex DISKFS_FEX000000

Add partion very diskfs.fex DISKFS_FEX000000

FilePath: diskfs.fex

FileLength=200sys_config.fex Len: 0xf397

config.fex Len: 0x9ac4

split_xxxx.fex Len: 0x200

sys_partition.fex Len: 0xf0a

boot0_nand.fex Len: 0x8000

boot0_sdcard.fex Len: 0x8000

u-boot.fex Len: 0xbc000

fes1.fex Len: 0x1f60

usbtool.fex Len: 0x20600

aultools.fex Len: 0x25d92

aultls32.fex Len: 0x2295a

cardtool.fex Len: 0x14000

cardscript.fex Len: 0x6ea

sunxi_mbr.fex Len: 0x10000

dlinfo.fex Len: 0x4000

arisc.fex Len: 0x2bee9

boot-resource.fex Len: 0x4bec00

Vboot-resource.fex Len: 0x4

env.fex Len: 0x20000

Venv.fex Len: 0x4

boot.fex Len: 0xafa000

Vboot.fex Len: 0x4

system.fex Len: 0x23175bdc

Vsystem.fex Len: 0x4

recovery.fex Len: 0xdb2000

Vrecovery.fex Len: 0x4

diskfs.fex Len: 0x200

Vdiskfs.fex Len: 0x4

BuildImg 0

Dragon execute image.cfg SUCCESS !

----------image is at----------

 

/opt/item_A33/lichee/tools/pack/sun8iw5p1_android_y3.img

 

pack finish

#6 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-23 17:21:48

你的问题貌似就是缺一个32bit c库兼容包,20楼的方法试了吗?


晚一些时间,再试验。

#9 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-23 16:07:21

然后安装一个叫做  deepin 深度系统

还是失败

20211023035919.png

20211023035742.png

20211023030044.png

#10 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-23 16:02:40

从早上忙碌到现在 , 还没有编译成功 。

安装了一个叫KALI的linux 系统,然后编译 , 没有成功。

还是 Syntax error: end of file unexpected (expecting ")")

KALI.jpg

#11 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-22 15:53:32

哇酷小二 说:
0123456789 说:

用命令行解压 tar xvf xxx.tagz




我现在解压没有错误 ,但是编译有错误

#12 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-22 15:51:05

我已经使用另外一台WIN7下载 A33_vstar_linux.tar  ,
再次编译 ,还是 

Syntax error: end of file unexpected (expecting ")")

语法错误

#13 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-22 15:48:50

多试验几次,虽然解压没有错误,

但是 arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")

语法错误


1.png0.png

#15 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-22 14:38:24

哇酷小二 说:

你的Linux发行版是什么版本?

试一下这个:
链接:  https://pan.baidu.com/s/11M0L00b4Mjwulp71-5u5eA 提取码: 417j



所以邀请你帮我下载 A33_vstar_linux.tar 一次 ,

下载了之后,看看这个文件的大小事多少。

#16 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-22 14:35:46

你的Linux发行版是什么版本?


我前面是使用UBUNTU 16.04 32位版本

==============================================


我是在下面的连接下载软件包的 ,下载 A33_vstar_linux.tar

https://whycan.com/t_3617.html

https://blog.csdn.net/jklinux/article/details/78108623

BSP开发包下载链接: https://pan.baidu.com/s/1jIvJiOu 密码: p6w7

据说这个 A33 vstar 开发板不错.

淘宝购买地址: https://item.taobao.com/item.htm?id=541595349035

得到

文件大小 1.26 GB (1,361,456,761 字节)

文件占用空间 1.26 GB (1,361,457,152 字节)

==============================================


另外我按照你提供的连接

链接:  https://pan.baidu.com/s/11M0L00b4Mjwulp71-5u5eA 提取码: 417j

再次下载  A33_vstar_linux.tar

得到

文件大小 1.26 GB (1,361,456,761 字节)

文件占用空间 1.26 GB (1,361,457,152 字节)

==============================================

所以我感觉我在深圳锐尔威视下载的 A33_vstar_linux.tar

和 你提供的 A33_vstar_linux.tar , 都是同一个文件。

#17 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-21 12:01:37

root@xxmm:/home/xxmm/A33# cd  dragonboard
root@xxmm:/home/xxmm/A33/dragonboard# ls
brandy  buildroot  build.sh  clean.sh  linux-3.4  out  README  tools
root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw5p1
INFO: platform: dragonboard
INFO: kernel: linux-3.4
INFO: board: vstar
INFO: output: out/sun8iw5p1/dragonboard/vstar
INFO: ----------------------------------------
INFO: build buildroot ...
external toolchain has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/arm/mach-sunxi/pm/standby/common.o

  CC      arch/arm/mach-sunxi/pm/standby/../mem_clk.o
arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/Makefile:85: recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2
make: *** 正在等待未完成的任务....
  CC      mm/fadvise.o
  LD      mm/built-in.o
ERROR: build kernel Failed
root@xxmm:/home/xxmm/A33/dragonboard# 




其中很关键的几个信息

Syntax error: end of file unexpected (expecting ")")

recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed

make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2

/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70:

recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed

scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed

#18 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-21 11:21:00

我已经100%按照深圳锐尔威视的说明书来操作了

再次失败

root@xxmm:/home/xxmm/A33# cd dragonboard
root@xxmm:/home/xxmm/A33/dragonboard# ls
brandy  buildroot  build.sh  clean.sh  linux-3.4  README  tools
root@xxmm:/home/xxmm/A33/dragonboard# cd  linux-3.4
root@xxmm:/home/xxmm/A33/dragonboard/linux-3.4# ls
a33_vstar_defconfig  e_build.sh  MAINTAINERS     samples
android              firmware    Makefile        scripts
arch                 fs          mm              security
block                include     modules         sound
build.sh             init        net             tinyandroid.tar.gz
COPYING              ipc         old_config      tools
CREDITS              Kbuild      output          usr
crypto               Kconfig     README          virt
Documentation        kernel      REPORTING-BUGS
drivers              lib         rootfs.cpio.gz
root@xxmm:/home/xxmm/A33/dragonboard/linux-3.4# cp a33_vstar_defconfig .config
root@xxmm:/home/xxmm/A33/dragonboard/linux-3.4# cd ..
root@xxmm:/home/xxmm/A33/dragonboard# ls
brandy  buildroot  build.sh  clean.sh  linux-3.4  README  tools
root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh config

Welcome to mkscript setup progress
All available chips:
   0. sun8iw5p1
Choice: 0
All available platforms:
   0. android
   1. dragonboard
   2. linux
Choice: 1
All available kernel:
   0. linux-3.4
Choice: 0
All available boards:
   0. evb
   1. maple
   2. redwood
   3. vstar
   4. y2
   5. y3
Choice: 3
root@xxmm:/home/xxmm/A33/dragonboard# ls
brandy  buildroot  build.sh  clean.sh  linux-3.4  out  README  tools
root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw5p1
INFO: platform: dragonboard
INFO: kernel: linux-3.4
INFO: board: vstar
INFO: output: out/sun8iw5p1/dragonboard/vstar
INFO: ----------------------------------------
INFO: build buildroot ...
installing external toolchain
please wait for a few minutes ...
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
  HOSTCC  scripts/basic/fixdep
  SHIPPED scripts/kconfig/zconf.tab.c
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:43:warning: defaults for choice values not supported
  WRAP    arch/arm/include/generated/asm/auxvec.h
  WRAP    arch/arm/include/generated/asm/bitsperlong.h
  WRAP    arch/arm/include/generated/asm/cputime.h
  WRAP    arch/arm/include/generated/asm/emergency-restart.h
  WRAP    arch/arm/include/generated/asm/errno.h
  WRAP    arch/arm/include/generated/asm/ioctl.h
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  WRAP    arch/arm/include/generated/asm/irq_regs.h
  WRAP    arch/arm/include/generated/asm/kdebug.h
  WRAP    arch/arm/include/generated/asm/local.h
  WRAP    arch/arm/include/generated/asm/local64.h
  WRAP    arch/arm/include/generated/asm/percpu.h
  WRAP    arch/arm/include/generated/asm/poll.h
  WRAP    arch/arm/include/generated/asm/resource.h
  CHK     include/generated/utsrelease.h
  WRAP    arch/arm/include/generated/asm/sections.h
  WRAP    arch/arm/include/generated/asm/siginfo.h
  WRAP    arch/arm/include/generated/asm/sizes.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/genksyms/genksyms.o
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  SHIPPED scripts/genksyms/parse.tab.c
  HOSTCC  scripts/genksyms/lex.lex.o
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/genksyms/parse.tab.o
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/selinux/genheaders/genheaders
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/recordmcount
  HOSTLD  scripts/mod/modpost
  CC      init/main.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/arm/vfp/vfpmodule.o
  AS      arch/arm/vfp/entry.o
  AS      arch/arm/vfp/vfphw.o
  CC      arch/arm/vfp/vfpsingle.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/do_mounts.o
  CC      arch/arm/vfp/vfpdouble.o


  LD      kernel/built-in.o
ERROR: build kernel Failed
root@xxmm:/home/xxmm/A33/dragonboard#

#19 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-21 11:03:33

感觉你的SDK不全, 或者解压的时候丢了文件? 你是不是windows解压,然后复制过去的?

=========================================

我是在 UBUNTU,使用提取到此处来解压的

我已经再次下载 A33_vstar_linux.tar 

再次解压,

再次编译

再次失败

失败的信息

arch/arm/mach-sunxi/pm/standby/gen_check_code: 1: arch/arm/mach-sunxi/pm/standby/gen_check_code: Syntax error: end of file unexpected (expecting ")")
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/Makefile:85: recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 2
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2

=========================================

上一次失败

make[3]: arch/arm/mach-sunxi/pm/standby/gen_check_code:命令未找到
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/Makefile:85: recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 127
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2

缺少  gen_check_code:命令

=========================================

#20 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-21 09:01:24

==================================

All available chips:
   0. sun8iw5p1
Choice: 0
All available platforms:
   0. android
   1. dragonboard
   2. linux
Choice: 1
All available kernel:
   0. linux-3.4
Choice: 1
Invalid input ...
Choice: 0
All available boards:
   0. evb
   1. maple
   2. redwood
   3. vstar
   4. y2
   5. y3
Choice: 3

编译选项 0 1  0  3     ,  失败

==================================

root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh config

Welcome to mkscript setup progress
All available chips:
   0. sun8iw5p1
Choice: 0
All available platforms:
   0. android
   1. dragonboard
   2. linux
Choice: 2
All available kernel:
   0. linux-3.4
Choice: 0
All available boards:
   0. evb
   1. maple
   2. redwood
   3. vstar
   4. y2
   5. y3
Choice: 3
root@xxmm:/home/xxmm/A33/dragonboard#

编译选项 0 2  0  3     ,  失败

ERROR: build kernel Failed

==================================

编译选项 0 1  0  5     ,  失败

ERROR: build kernel Failed

==================================

编译选项 0 1  0  4     ,  失败

ERROR: build kernel Failed

==================================

编译选项 0 1  0  2     ,  失败

ERROR: build kernel Failed

==================================

编译选项 0 1  0  0     ,  失败

ERROR: build kernel Failed

==================================

编译选项 0 2  0  5     ,  失败

ERROR: build buildroot Failed

==================================

编译选项 0 2  0  4     ,  失败

ERROR: build buildroot Failed

==================================

编译选项 0 2  0  3     ,  失败

ERROR: build buildroot Failed

==================================

编译选项 0 2  0  2     ,  失败

ERROR: build buildroot Failed

==================================

编译选项 0 2  0  1     ,  失败

ERROR: build buildroot Failed

==================================

编译选项 0 2  0  0     ,  失败

ERROR: build buildroot Failed

==================================

#21 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-21 08:42:25

是不是这个文件 dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/gen_check_code 不存在?

回答是的

==================================

今天早上再次编译全志A33  vstar , 再次失败 ,

信息 , 操作命令在下面

root@xxmm:/home/xxmm/A33/dragonboard/linux-3.4# cp  a33_vstar_defconfig  .config

root@xxmm:/home/xxmm/A33/dragonboard/linux-3.4# cd ..

root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh config

Welcome to mkscript setup progress
All available chips:
   0. sun8iw5p1
Choice: 0
All available platforms:
   0. android
   1. dragonboard
   2. linux
Choice: 1
All available kernel:
   0. linux-3.4
Choice: 1
Invalid input ...
Choice: 0
All available boards:
   0. evb
   1. maple
   2. redwood
   3. vstar
   4. y2
   5. y3
Choice: 3
root@xxmm:/home/xxmm/A33/dragonboard# ./build.sh
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw5p1
INFO: platform: dragonboard
INFO: kernel: linux-3.4
INFO: board: vstar
INFO: output: out/sun8iw5p1/dragonboard/vstar
INFO: ----------------------------------------
INFO: build buildroot ...
external toolchain has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:43:warning: defaults for choice values not supported
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      kernel/fork.o
  CC      arch/arm/mach-sunxi/pm/standby/common.o
  CC      arch/arm/mach-sunxi/pm/standby/standby_clock.o

在这里,省略了若干信息

  CC      arch/arm/mach-sunxi/pm/standby/./../mem_hwspinlock.o
  CC      kernel/exec_domain.o
  CC      arch/arm/mach-sunxi/pm/standby/standby.o

  rm -rf *.o arch/arm/mach-sunxi/pm/standby/../*.o

  CC      arch/arm/mach-sunxi/pm/standby/super/common.o

在这里,省略了若干信息

  CC      kernel/printk.o
  AS      arch/arm/mach-sunxi/pm/standby/../mem_mmu_pc_asm.o

在这里,省略了若干信息

  CC      arch/arm/mach-sunxi/pm/standby/../mem_hwspinlock.o
  CC      arch/arm/mach-sunxi/pm/standby/../mem_clk.o
make[3]: arch/arm/mach-sunxi/pm/standby/gen_check_code:命令未找到
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/Makefile:89: recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 127
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2
make: *** 正在等待未完成的任务....
  CC      kernel/cpu.o

在这里,省略了若干信息

  CC      kernel/sched/fair.o
kernel/time/alarmtimer.c: In function ‘alarmtimer_shutdown’:
kernel/time/alarmtimer.c:298:13: warning: unused variable ‘i’ [-Wunused-variable]
  CC      kernel/time/clockevents.o

在这里,省略了若干信息

  CHK     kernel/config_data.h
  UPD     kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
ERROR: build kernel Failed
root@xxmm:/home/xxmm/A33/dragonboard#

#22 Re: 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-20 17:51:45

多谢楼上两位的解答

今天我尝试编译A33的SDK了

入坑失败

make[3]: arch/arm/mach-sunxi/pm/standby/gen_check_code:命令未找到
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/standby/Makefile:85: recipe for target 'arch/arm/mach-sunxi/pm/standby/resume1.code' failed
make[3]: *** [arch/arm/mach-sunxi/pm/standby/resume1.code] Error 127
/home/xxmm/A33/dragonboard/linux-3.4/arch/arm/mach-sunxi/pm/Makefile:70: recipe for target 'arch/arm/mach-sunxi/pm/standby/standby.code' failed
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
scripts/Makefile.build:443: recipe for target 'arch/arm/mach-sunxi/pm' failed
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
Makefile:945: recipe for target 'arch/arm/mach-sunxi' failed
make: *** [arch/arm/mach-sunxi] Error 2

缺少  gen_check_code:命令

#24 全志 SOC » 全志A33 , 4核,1.2G主频 » 2021-10-15 09:35:11

0123456789
回复: 36

请教一下 ,
是4个核心 ,累计起来,一共1.2G主频 ,
还是每个核心1.2G主频  ???

#25 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 【github项目】给大家介绍一个非常不错的GUI ---- littlevgl » 2021-10-14 11:10:20

@晕哥


晕哥你说到

虽然用MSVC编译有难度, 但是如果使用 mingw编译基本还是没坑的。

下面我使用Ubuntu14.04LTS的mingw,交叉出windows平台的littlevgl:

1. Ubuntu安装mingw 64位编译: sudo apt-get install mingw-w64

===========

我提问

mingw 好像是一个在WINDOWS运行的软件啊啊??

为什么你在 Ubuntu安装mingw 64

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn