您尚未登录。

楼主 #1 2019-11-22 09:58:15

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

试一试 Ubuntu 18.04 编译f1c200s tina 3.x

0. 只记录编译填坑过程, 不提供, 不分享 tina sdk包

1. 根据 tina 教程, 他们使用的是 ubuntu 14.04 64bit, 由于我的环境是 18.04 64bit, 所以出现了很多大大小小的坑

1. 编译准备

sudo apt-get install vim git-core gawk flex bison texinfo lib32ncurses5 lib32z1 u-boot-tools lib32stdc++6 zlib1g* libssl1.0-dev -y

2. 编译指令:

$ source build/envsetup.sh
$ lunch 方案名
$ make
$ pack

上面太啰嗦了, 一行搞定吧(脚本有问题,请勿用,原因看后面跟帖):

source build/envsetup.sh;echo 68 | lunch;make;pack

离线

楼主 #2 2019-11-22 10:02:50

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -I/opt/Tina_rel/tina/out/host/include -I/opt/Tina_rel/tina/out/host/usr/include -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -fvisibility=hidden -O2 -I/opt/Tina_rel/tina/out/host/include -I/opt/Tina_rel/tina/out/host/usr/include -MT libglib_2_0_la-gdate.lo -MD -MP -MF .deps/libglib_2_0_la-gdate.Tpo -c gdate.c -o libglib_2_0_la-gdate.o
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
cc1: some warnings being treated as errors
Makefile:1386: recipe for target 'libglib_2_0_la-gdate.lo' failed
make[10]: *** [libglib_2_0_la-gdate.lo] Error 1
make[10]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib'
Makefile:1933: recipe for target 'all-recursive' failed
make[9]: *** [all-recursive] Error 1
make[9]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib'
Makefile:952: recipe for target 'all' failed
make[8]: *** [all] Error 2
make[8]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib'
Makefile:1045: recipe for target 'all-recursive' failed
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib'
Makefile:769: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib'
Makefile:697: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29'
Makefile:456: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29'
Makefile:39: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/.built' failed
make[3]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/pkg-config-0.29/.built] Error 2
make[3]: Leaving directory '/opt/Tina_rel/tina/tools/pkg-config'
tools/Makefile:138: recipe for target 'tools/pkg-config/compile' failed
make[2]: *** [tools/pkg-config/compile] Error 2
make[2]: Leaving directory '/opt/Tina_rel/tina'

第一个错误, 解决方式:

修改 out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib/gdate.c

2494 行附件修改:

tmpbuf[0] = '\1';
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
      tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
#pragma GCC diagnostic pop

参考: https://www.right.com.cn/forum/forum.php?mod=viewthread&action=printable&tid=191683

离线

楼主 #3 2019-11-22 10:10:02

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

make[3]: Entering directory '/opt/Tina_rel/tina/tools/automake'
(cd /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/automake-1.15; AUTOM4TE=/opt/Tina_rel/tina/out/host/bin/autom4te AUTOCONF=/opt/Tina_rel/tina/out/host/bin/autoconf AUTOMAKE=/opt/Tina_rel/tina/out/host/bin/automake ACLOCAL=/opt/Tina_rel/tina/out/host/bin/aclocal AUTOHEADER=/opt/Tina_rel/tina/out/host/bin/autoheader LIBTOOLIZE=/opt/Tina_rel/tina/out/host/bin/libtoolize LIBTOOL=/opt/Tina_rel/tina/out/host/bin/libtool M4=/opt/Tina_rel/tina/out/host/bin/m4 AUTOPOINT=true STAGING_DIR_HOST="" ./bootstrap.sh)
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at ./bin/automake.tmp line 3938.
Makefile:50: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/automake-1.15/.configured' failed
make[3]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/automake-1.15/.configured] Error 255
make[3]: Leaving directory '/opt/Tina_rel/tina/tools/automake'
tools/Makefile:138: recipe for target 'tools/automake/compile' failed
make[2]: *** [tools/automake/compile] Error 2
make[2]: Leaving directory '/opt/Tina_rel/tina'
tools/Makefile:137: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy' failed
make[1]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/opt/Tina_rel/tina'
/opt/Tina_rel/tina/build/toplevel.mk:275: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (32 seconds) ####

修改 ./out/violin-F1C200s/compile_dir/host/automake-1.15/bin/automake.in 3883 行

  $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;

改为:

  $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;

参考 https://github.com/lede-project/source/commit/92c80f38cff3c20388f9ac13d5196f2745aeaf77

离线

楼主 #4 2019-11-22 10:16:49

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
*** Default configuration is based on 'sandbox_defconfig'
make[4]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10'
make -C /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10 tools-only  HOSTCFLAGS="-I/opt/Tina_rel/tina/out/host/include -I/opt/Tina_rel/tina/out/host/usr/include  -O2 -I/opt/Tina_rel/tina/out/host/include -I/opt/Tina_rel/tina/out/host/usr/include " HOSTLDFLAGS="-L/opt/Tina_rel/tina/out/host/lib -L/opt/Tina_rel/tina/out/host/usr/lib "
make[4]: Entering directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10'
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
In file included from include/linux/compiler.h:54:0,
                 from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/arch/sandbox/include/asm/bitops.h:20,
                 from include/linux/bitops.h:110,
                 from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc7.h: No such file or directory
 #include gcc_header(__GNUC__)
 ^~~~
compilation terminated.
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/scripts/Makefile.autoconf:64: recipe for target 'include/autoconf.mk' failed
make[6]: *** [include/autoconf.mk] Error 1
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/Makefile:464: recipe for target 'silentoldconfig' failed
make[5]: *** [silentoldconfig] Error 1
make[4]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make[4]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10'
Makefile:46: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/.built' failed
make[3]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/opt/Tina_rel/tina/tools/mkimage'
tools/Makefile:138: recipe for target 'tools/mkimage/compile' failed
make[2]: *** [tools/mkimage/compile] Error 2
make[2]: Leaving directory '/opt/Tina_rel/tina'
tools/Makefile:137: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy' failed
make[1]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/opt/Tina_rel/tina'
/opt/Tina_rel/tina/build/toplevel.mk:275: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (03:04 (mm:ss)) ####
cp ./out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc5.h ./out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc7.h

瞒天过海不知道行不行

离线

楼主 #5 2019-11-22 10:19:24

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

In file included from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/compiler.h:46:0,
                 from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/libfdt_env.h:12,
                 from <command-line>:0:
/opt/Tina_rel/tina/out/host/include/byteswap.h:2:2: warning: #include_next is a GCC extension
 #include_next <byteswap.h>
  ^~~~~~~~~~~~
  WRAP    tools/lib/rsa/rsa-checksum.c
  HOSTCC  tools/lib/rsa/rsa-checksum.o
  WRAP    tools/lib/rsa/rsa-sign.c
  HOSTCC  tools/lib/rsa/rsa-sign.o
In file included from tools/lib/rsa/rsa-sign.c:1:0:
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_remove':
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:156:2: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations]
  ERR_remove_thread_state(NULL);
  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/evp.h:13:0,
                 from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/image.h:860,
                 from /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:10,
                 from tools/lib/rsa/rsa-sign.c:1:
/usr/include/openssl/err.h:259:1: note: declared here
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
 ^
In file included from tools/lib/rsa/rsa-sign.c:1:0:
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_sign_with_key':
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:213:2: warning: implicit declaration of function 'EVP_MD_CTX_cleanup'; did you mean 'EVP_MD_CTX_create'? [-Wimplicit-function-declaration]
  EVP_MD_CTX_cleanup(context);
  ^~~~~~~~~~~~~~~~~~
  EVP_MD_CTX_create
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':
/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
  if (BN_num_bits(key->e) > 64)
                     ^~
scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed
make[5]: *** [tools/lib/rsa/rsa-sign.o] Error 1
Makefile:1195: recipe for target 'tools-only' failed
make[4]: *** [tools-only] Error 2
make[4]: Leaving directory '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10'
Makefile:46: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/.built' failed
make[3]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/opt/Tina_rel/tina/tools/mkimage'
tools/Makefile:138: recipe for target 'tools/mkimage/compile' failed
make[2]: *** [tools/mkimage/compile] Error 2
make[2]: Leaving directory '/opt/Tina_rel/tina'
tools/Makefile:137: recipe for target '/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy' failed
make[1]: *** [/opt/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyynnnyyyyyyyyyynnyyyyyyynynyyynnyyyy] Error 2
make[1]: Leaving directory '/opt/Tina_rel/tina'
/opt/Tina_rel/tina/build/toplevel.mk:275: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (10 seconds) ####

试一试这样:

sudo apt install libssl1.0-dev -y

参考 https://github.com/hi-wooya/openwrt-hiwooya-stable/issues/3

离线

楼主 #6 2019-11-22 10:29:30

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

In file included from scripts/kconfig/zconf.tab.c:2503:0:
scripts/kconfig/menu.c: In function 'get_symbol_str':
scripts/kconfig/menu.c:567:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized]
     jump->offset = r->len - 1;
     ~~~~~~~~~~~~~^~~~~~~~~~~~
scripts/kconfig/menu.c:528:19: note: 'jump' was declared here
  struct jump_key *jump;
                   ^~~~
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
.config:877:warning: override: DEBUG_SUNXI_UART1 changes choice state
*
* Restart config...
*
*
* Touchscreens
*
Touchscreens (INPUT_TOUCHSCREEN) [Y/n/?] y
  ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens (TOUCHSCREEN_ADS7846) [N/m/y/?] n
  AD7877 based touchscreens (TOUCHSCREEN_AD7877) [N/m/y/?] n
  Analog Devices AD7879-1/AD7889-1 touchscreen interface (TOUCHSCREEN_AD7879) [N/m/y/?] n
  Atmel mXT I2C Touchscreen (TOUCHSCREEN_ATMEL_MXT) [N/m/y/?] n
  AUO in-cell touchscreen using Pixcir ICs (TOUCHSCREEN_AUO_PIXCIR) [N/m/y/?] n
  BU21013 based touch panel controllers (TOUCHSCREEN_BU21013) [N/m/y/?] n
  cy8ctmg110 touchscreen (TOUCHSCREEN_CY8CTMG110) [N/m/y/?] n
  Cypress TTSP touchscreen (TOUCHSCREEN_CYTTSP_CORE) [N/m/y/?] n
  Dynapro serial touchscreen (TOUCHSCREEN_DYNAPRO) [N/m/y/?] n
  Hampshire serial touchscreen (TOUCHSCREEN_HAMPSHIRE) [N/m/y/?] n
  EETI touchscreen panel support (TOUCHSCREEN_EETI) [N/m/y/?] n
  EETI eGalax multi-touch panel support (TOUCHSCREEN_EGALAX) [N/m/y/?] n
  Fujitsu serial touchscreen (TOUCHSCREEN_FUJITSU) [N/m/y/?] n
  Ilitek ILI210X based touchscreen (TOUCHSCREEN_ILI210X) [N/m/y/?] n
  Gunze AHL-51S touchscreen (TOUCHSCREEN_GUNZE) [N/m/y/?] n
  Elo serial touchscreens (TOUCHSCREEN_ELO) [N/m/y/?] n
  Wacom W8001 penabled serial touchscreen (TOUCHSCREEN_WACOM_W8001) [N/m/y/?] n
  Wacom Tablet support (I2C) (TOUCHSCREEN_WACOM_I2C) [N/m/y/?] n
  MAX11801 based touchscreens (TOUCHSCREEN_MAX11801) [N/m/y/?] n
  MELFAS MCS-5000 touchscreen (TOUCHSCREEN_MCS5000) [N/m/y/?] n
  MELFAS MMS114 touchscreen (TOUCHSCREEN_MMS114) [N/m/y/?] n
  MicroTouch serial touchscreens (TOUCHSCREEN_MTOUCH) [N/m/y/?] n
  iNexio serial touchscreens (TOUCHSCREEN_INEXIO) [N/m/y/?] n
  ICS MicroClock MK712 touchscreen (TOUCHSCREEN_MK712) [N/m/y/?] n
  Penmount serial touchscreen (TOUCHSCREEN_PENMOUNT) [N/m/y/?] n
  EDT FocalTech FT5x06 I2C Touchscreen support (TOUCHSCREEN_EDT_FT5X06) [N/m/y/?] n
  Touchright serial touchscreen (TOUCHSCREEN_TOUCHRIGHT) [N/m/y/?] n
  Touchwin serial touchscreen (TOUCHSCREEN_TOUCHWIN) [N/m/y/?] n
  PIXCIR I2C touchscreens (TOUCHSCREEN_PIXCIR) [N/m/y/?] n
  USB Touchscreen Driver (TOUCHSCREEN_USB_COMPOSITE) [N/m/y/?] n
  Sahara TouchIT-213 touchscreen (TOUCHSCREEN_TOUCHIT213) [N/m/y/?] n
  TSC-10/25/40 serial touchscreen support (TOUCHSCREEN_TSC_SERIO) [N/m/y/?] n
  TSC2005 based touchscreens (TOUCHSCREEN_TSC2005) [N/m/y/?] n
  TSC2007 based touchscreens (TOUCHSCREEN_TSC2007) [N/m/y/?] n
  W90P910 touchscreen driver (TOUCHSCREEN_W90X900) [N/m/y/?] n
  Sitronix ST1232 touchscreen controllers (TOUCHSCREEN_ST1232) [N/m/y/?] n
  TPS6507x based touchscreens (TOUCHSCREEN_TPS6507X) [N/m/y/?] n
  gt82x touchscreen driver (TOUCHSCREEN_GT82X) [N/m/y/?] n
  sun6i-ts touchscreen driver (TOUCHSCREEN_SUN6I_TS) [N/m/y/?] n
  sun3i-rtp resistive touchpanel driver (TOUCHSCREEN_SUN3I_RTP) [N/m/y/?] (NEW) y
  ft5x touchscreen driver (TOUCHSCREEN_FT5X_TS) [N/m/y/?] n
  gt9xx touchscreen driver (TOUCHSCREEN_GT9XX_TS) [N/m/y/?] n
  gt9XXF touchscreen driver (TOUCHSCREEN_GT9XXF_TS) [N/m/y/?] n
  gslX680 touchscreen driver (TOUCHSCREEN_GSLX680) [N/m/y/?] n
  gslX680NEW touchscreen driver (TOUCHSCREEN_GSLX680NEW) [N/m/y/?] n
  gt9xxnew touchscreen driver (TOUCHSCREEN_GT9XXNEW_TS) [N/m/y/?] n
  aw5x06 touchscreen driver (TOUCHSCREEN_AW5X06_TS) [N/m/y/?] n
  gt818 touchscreen driver (TOUCHSCREEN_GT818_TS) [N/m/y/?] n
  tu_ts touchscreen driver (TOUCHSCREEN_TU_TS) [N/m/y/?] n
  icn83xx touchscreen driver (TOUCHSCREEN_ICN83XX_TS) [N/m/y/?] n
  icn85xx touchscreen driver (TOUCHSCREEN_ICN85XX_TS) [M/n/y/?] m
*
* V4L platform devices
*
V4L platform devices (V4L_PLATFORM_DRIVERS) [Y/n/?] y
  EVE driver (SUNXI_EVE) [N/m/y/?] n
  Support for timberdale Video In/LogiWIN (VIDEO_TIMBERDALE) [N/m/y/?] n
  SoC camera support (SOC_CAMERA) [N/m/y/?] n
  sunxi video front end (camera and etc)driver (VIDEO_SUNXI_VFE) [M/n/y] m
    v4l2 driver for SUNXI (CSI_VFE) [M/n] m
  sunxi video input (camera csi/mipi isp vipp)driver (VIDEO_SUNXI_VIN) [N/m/y] n
  sun3i tvd driver (VIDEO_SUN3I_TVD) [M/n/y/?] (NEW) y
*
* Video support for sunxi
*
Framebuffer Console Support(sunxi) (FB_CONSOLE_SUNXI) [Y/n/?] y
DISP Driver Support(sunxi-disp2) (DISP2_SUNXI) [N/m/y/?] n
DISP Driver Support(sunxi) (FB_SUNXI) [Y/n/m/?] y
  GM7121 driver Support(sunxi) (TV_GM7121) [N/m/y/?] n
  LCD Driver Support(sunxi) (LCD_SUNXI) [Y/n/m/?] y
  tv Driver Support(sunxi) (TV_SUNXI) [M/n/y/?] (NEW) y
#
# configuration written to .config
#
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h

开始编译 Linux 了, 驱动很完整啊, RTP, TV 都有了。

离线

#7 2019-11-22 11:06:01

ffplay
会员
注册时间: 2019-08-31
已发帖子: 92
积分: 92

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

围观:16.04的编译
此为root模式下编译:
1.error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}
解决方法:https://blog.csdn.net/rainforest_c/article/details/82722333
在tina\tools\mkimage\patches下添加对应的文件。

2.error:you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
解决方法:https://www.cnblogs.com/djiankuo/p/6230792.html
输入指令:export  FORCE_UNSAFE_CONFIGURE=1
不在root下编译则无2错误,其他错误照着提示安装对应的依赖库。

离线

楼主 #8 2019-11-22 11:36:20

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

@ffplay 感谢分享




  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  SHIPPED arch/arm/boot/compressed/ashldi3.S
  AS      arch/arm/boot/compressed/ashldi3.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  DTC     arch/arm/boot/dts/sun3iw1p1-violin-F1C200s.dtb
  Building modules, stage 2.
  MODPOST 63 modules
make[5]: Leaving directory '/opt/Tina_rel/tina/lichee/linux-3.10'
cmp -s /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/vmlinux /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/vmlinux.debug || { arm-openwrt-linux-muslgnueabi-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/vmlinux /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/vmlinux; arm-openwrt-linux-muslgnueabi-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/vmlinux /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/vmlinux.elf; cp -fpR /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/vmlinux /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/vmlinux.debug; cp -fpR /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/arch/arm/boot//Image /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/bImage;  cp -fpR /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/arch/arm/boot//zImage /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/zImage;  }
touch /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/.image
make -C ../generic/image compile install TARGET_BUILD=
make[5]: Entering directory '/opt/Tina_rel/tina/target/allwinner/generic/image'
make[5]: Nothing to be done for 'compile'.
mkdir -p /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/tmp
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
find /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs -type f -not -perm /0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
find /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs -type f -perm /0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
find /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs/tmp /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs/overlay
chmod 1777 /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs/tmp
cp -fpR /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/zImage /opt/Tina_rel/tina/out/violin-F1C200s/violin-F1C200s-zImage
mkimage -A arm -O linux -T kernel -C  none -a  0x80008000 -e  0x80008000 -n 'ARM OpenWrt Linux-3.10.65' -d  /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/zImage  /opt/Tina_rel/tina/out/violin-F1C200s/violin-F1C200s-uImage
Image Name:   ARM OpenWrt Linux-3.10.65
Created:      Thu Jan  1 00:00:00 1970
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2845432 Bytes = 2778.74 kB = 2.71 MB
Load Address: 80008000
Entry Point:  80008000
rm -f /opt/Tina_rel/tina/out/violin-F1C200s/boot.img
rm -f /opt/Tina_rel/tina/out/violin-F1C200s/boot_initramfs.img
cp -fpR /opt/Tina_rel/tina/out/violin-F1C200s/violin-F1C200s-uImage /opt/Tina_rel/tina/out/violin-F1C200s/boot.img
/opt/Tina_rel/tina/out/host/bin/mksquashfs4 /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/root.squashfs -noappend -root-owned -comp gzip -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs/dev".
Ignoring, exclude it (-e/-ef) to override.
[===================================================================================================================================/] 627/627 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are removed
Filesystem size 8085.82 Kbytes (7.90 Mbytes)
        44.11% of uncompressed filesystem size (18332.89 Kbytes)
Inode table size 7972 bytes (7.79 Kbytes)
        27.95% of uncompressed inode table size (28526 bytes)
Directory table size 8736 bytes (8.53 Kbytes)
        50.37% of uncompressed directory table size (17343 bytes)
Number of duplicate files found 9
Number of inodes 859
Number of files 603
Number of fragments 46
Number of symbolic links  177
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 78
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
rm -f /opt/Tina_rel/tina/out/violin-F1C200s/rootfs.img
rm -f /opt/Tina_rel/tina/out/violin-F1C200s/usr.img
dd if=/opt/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/root.squashfs of=/opt/Tina_rel/tina/out/violin-F1C200s/rootfs.img bs=128k conv=sync
63+1 records in
64+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.00546685 s, 1.5 GB/s
( cd /opt/Tina_rel/tina/out/violin-F1C200s ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs md5sum --binary > md5sums )
( cd /opt/Tina_rel/tina/out/violin-F1C200s ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums )
make[5]: Leaving directory '/opt/Tina_rel/tina/target/allwinner/generic/image'
make[4]: Leaving directory '/opt/Tina_rel/tina/target/allwinner/violin-F1C200s'
make[3]: Leaving directory '/opt/Tina_rel/tina/target/allwinner'
make[2]: Leaving directory '/opt/Tina_rel/tina'
export MAKEFLAGS= ;make -w -r package/index
make[2]: Entering directory '/opt/Tina_rel/tina'
Generating package index...
Signing key has not been configured
make[2]: Leaving directory '/opt/Tina_rel/tina'
make[1]: Leaving directory '/opt/Tina_rel/tina'

#### make completed successfully (25:54 (mm:ss)) ####

test@ubuntu:/opt/Tina_rel/tina$

终于编译完了, 接下来打包试一试。

离线

楼主 #9 2019-11-22 11:37:30

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

test@ubuntu:/opt/Tina_rel/tina$ pack
No kernel param, parse it from violin
copying tools file
copying configs file
storage_type value is 6
rm /opt/Tina_rel/tina/out/violin-F1C200s/image/sys_partition_nor.fex
rm /opt/Tina_rel/tina/out/violin-F1C200s/image/image_nor.cfg
image/arisc.fex
image/aultls32.fex
image/aultools.fex
image/bootlogo.fex
image/boot_package.cfg
image/boot_package.fex
image/boot_package_nor.cfg
image/cardscript.fex
image/cardscript_secure.fex
image/cardtool.fex
image/diskfs.fex
image/env-3.4.cfg
image/env-4.4.cfg
image/env-4.9.cfg
image/env_burn.cfg
image/env.cfg
image/image.cfg
image/image_linux.cfg
image/split_xxxx.fex
image/sunxi.fex
image/sys_config.fex
image/sys_partition_dump.fex
image/sys_partition.fex
image/sys_partition_private.fex
image/toc0.fex
image/toc1.fex
image/usbtool.fex
image/usbtool_test.fex
image/writable.fex
/opt/Tina_rel/tina
copying boot resource

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
copying boot file
make user resource for : /opt/Tina_rel/tina/out/violin-F1C200s/image/sys_partition.fex
handle partition user-res
no user resource partitions
this is not a partition key
update mbr file ok
APP_PART_DOWNLOAD_FILE = /opt/Tina_rel/tina/out/violin-F1C200s/image/app.fex
Need size of filesystem
/opt/Tina_rel/tina
this is not a partition key
update mbr file ok
DATA_PART_DOWNLOAD_FILE = /opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex
Need size of filesystem
/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex is not ext4 img
/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex: cannot open `/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex' (No such file or directory)
/opt/Tina_rel/tina
this is not a partition key
update mbr file ok
sys_config exist
Multiconfig num:0
copying tools file
copying configs file
storage_type value is 6
rm /opt/Tina_rel/tina/out/violin-F1C200s/image/sys_partition_nor.fex
rm /opt/Tina_rel/tina/out/violin-F1C200s/image/image_nor.cfg
image/arisc.fex
image/aultls32.fex
image/aultools.fex
image/boot0_nand.fex
image/boot0_sdcard.fex
image/boot0_spinor.fex
image/bootlogo.fex
image/boot_package.cfg
image/boot_package.fex
image/boot_package_nor.cfg
image/cardscript.fex
image/cardscript_secure.fex
image/cardtool.fex
image/diskfs.fex
image/dlinfo.fex
image/env-3.4.cfg
image/env-4.4.cfg
image/env-4.9.cfg
image/env_burn.cfg
image/env.cfg
image/fes1.fex
image/image.cfg
image/image_linux.cfg
image/split_xxxx.fex
image/sunxi.fex
image/sunxi_mbr_tmp_app.fex
image/sunxi_mbr_tmp_data.fex
image/sys_config.fex
image/sys_partition_dump.fex
image/sys_partition.fex
image/sys_partition_private.fex
image/sys_partition_tmp_app.fex
image/sys_partition_tmp_data.fex
image/toc0.fex
image/toc1.fex
image/u-boot.fex
image/u-boot-spinor.fex
image/usbtool.fex
image/usbtool_test.fex
image/writable.fex
/opt/Tina_rel/tina
copying boot resource

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
copying boot file
make user resource for : /opt/Tina_rel/tina/out/violin-F1C200s/image/sys_partition.fex
handle partition user-res
no user resource partitions
this is not a partition key
update mbr file ok
APP_PART_DOWNLOAD_FILE = /opt/Tina_rel/tina/out/violin-F1C200s/image/app.fex
Need size of filesystem
/opt/Tina_rel/tina
this is not a partition key
update mbr file ok
DATA_PART_DOWNLOAD_FILE = /opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex
Need size of filesystem
/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex is not ext4 img
/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex: cannot open `/opt/Tina_rel/tina/out/violin-F1C200s/image/data.fex' (No such file or directory)
/opt/Tina_rel/tina
this is not a partition key
update mbr file ok
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=norflash state=0
p=soc c=power_sply state=0
p=soc c=pwr_ctrl state=0
p=soc c=card_boot state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=card1_boot_para state=0
p=soc c=twi_para state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=dram state=0
p=soc c=twi0 state=0
p=soc c=twi1 state=0
p=soc c=twi2 state=0
p=soc c=io_expand state=0
p=soc c=uart0 state=0
p=soc c=uart1 state=0
p=soc c=spi0 state=0
p=soc c=spi1 state=0
p=soc c=rtp_para state=0
p=soc c=ctp state=0
p=twi0 c=touchscreen1 state=0
p=soc c=tkey_para state=0
p=soc c=motor_para state=0
p=soc c=nand0 state=0
p=soc c=disp state=0
p=soc c=lcd0 state=0
p=soc c=pwm0_para state=0
p=soc c=pwm1_para state=0
p=soc c=vip0 state=0
p=soc c=tvout_para state=0
p=soc c=tvin_para state=0
p=soc c=di state=0
p=soc c=sdc0 state=0
p=soc c=sdc1 state=0
p=soc c=smc state=0
p=soc c=usbc0 state=0
p=soc c=gsensor_para state=0
p=soc c=gps_para state=0
p=soc c=wlan state=0
p=soc c=gy_para state=0
p=soc c=ls_para state=0
p=soc c=compass_para state=0
p=soc c=bt_para state=0
p=soc c=audiospdif state=0
p=soc c=spdif_machine state=0
p=soc c=audiohdmi state=0
p=soc c=hdmi_machine state=0
p=soc c=pmu0 state=0
p=soc c=pmu0_regu state=0
p=soc c=dvfs_table state=0
p=soc c=Vdevice state=0
p=soc c=fel_key state=0
p=soc c=partitions state=0
p=partitions c=bootlogo state=0
p=partitions c=env state=0
p=partitions c=boot state=0
p=partitions c=rootfs state=0
p=partitions c=rootfs_data state=0
p=partitions c=misc state=0
p=partitions c=private state=0
p=partitions c=UDISK state=0
Conver script to dts ok.
pack boot package
GetPrivateProfileSection read to end
content_count=3

toc1 file Path=/opt/Tina_rel/tina/out/violin-F1C200s/image/boot_package.fex
script file Path=/opt/Tina_rel/tina/out/violin-F1C200s/image/sys_config.bin

cant get board_id_enable
script update toc1 ok
packing for tina linux
normal
this is not a partition key
update mbr file ok
/opt/Tina_rel/tina/out/host/bin/
/opt/Tina_rel/tina/out/violin-F1C200s/image
Begin Parse sys_partion.fex
Add partion bootlogo.fex BOOTLOGO_FEX0000
Add partion very bootlogo.fex BOOTLOGO_FEX0000
FilePath: bootlogo.fex
FileLength=4b036Add 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=2b6b38Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=800000sys_config.fex Len: 0xb94a
config.fex Len: 0x7000
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xbf4
sunxi.fex Len: 0xc200
boot0_nand.fex Len: 0x4000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0xa0000
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x2d80
boot_package.fex Len: 0xb4000
usbtool.fex Len: 0x24200
aultools.fex Len: 0x28943
aultls32.fex Len: 0x2517f
cardtool.fex Len: 0x11e00
cardscript.fex Len: 0x6de
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0xf
bootlogo.fex Len: 0x4b036
Vbootlogo.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x2b6b38
Vboot.fex Len: 0x4
rootfs.fex Len: 0x800000
Vrootfs.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is for nand/emmc----------
----------image is at----------

/opt/Tina_rel/tina/out/violin-F1C200s/tina_violin-F1C200s_uart0.img

pack finish
test@ubuntu:/opt/Tina_rel/tina$

打包完成了 ^_^

还算挺顺利的。




有时候需要手动执行:

export TINA_BUILD_TOP=/opt/f1c100s/Tina_rel/tina
export TINA_TARGET_ARCH=arm
export TARGET_PRODUCT=violin_F1C200s
export TARGET_PLATFORM=violin
export TARGET_BOARD=violin-F1C200s
export TARGET_BUILD_VARIANT=tina
export TARGET_BUILD_TYPE=release
export TARGET_KERNEL_VERSION=3.10
export TARGET_UBOOT=u-boot-2014.07
export TARGET_CHIP=sun3iw1p1

离线

#10 2019-11-22 12:06:17

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 780
积分: 731

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

好贴,留个爪印。






歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

#11 2019-11-22 12:11:39

kekemuyu
会员
注册时间: 2018-12-13
已发帖子: 849
积分: 720

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

能不能把tina的驱动移植到主线

离线

#12 2019-11-22 15:07:44

阿黄
会员
注册时间: 2018-10-03
已发帖子: 299
积分: 134

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

我记得tina默认的串口跟lichee的不一样

离线

#13 2019-11-22 15:21:13

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 780
积分: 731

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

对了,问下楼主,如何查看tina代码版本?






歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

#14 2019-11-23 20:49:16

林ღ梦曦
会员
注册时间: 2019-01-15
已发帖子: 37
积分: 191.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

mango 说:

对了,问下楼主,如何查看tina代码版本?

git log

离线

#15 2019-11-23 20:50:01

林ღ梦曦
会员
注册时间: 2019-01-15
已发帖子: 37
积分: 191.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

楼主的方法tina3.5也可以顺利编译成功

最近编辑记录 林ღ梦曦 (2019-11-23 20:54:14)

离线

#16 2019-11-29 09:58:53

1066950103
会员
注册时间: 2017-11-17
已发帖子: 61
积分: 46

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

tina 来源留下一个联系方式撒

离线

#17 2019-12-28 11:30:42

tina123456
会员
注册时间: 2019-12-28
已发帖子: 13
积分: 13

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

哇,厉害,楼主是怎么做到的?我搞了两天,差点就放弃治疗,还好看到这个帖子。

离线

#18 2019-12-28 11:55:21

达克罗德
会员
注册时间: 2018-04-10
已发帖子: 1,138
积分: 1090.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

Tina编出来的跑起来开机时间怎么样

离线

#19 2019-12-28 11:55:29

tina123456
会员
注册时间: 2019-12-28
已发帖子: 13
积分: 13

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

感谢楼主, 用了两小时,终于成功了:

Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/rootfs/dev".
Ignoring, exclude it (-e/-ef) to override.
[==================================================================================================================================/] 393/393 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are removed
Filesystem size 2712.83 Kbytes (2.65 Mbytes)
        45.45% of uncompressed filesystem size (5969.16 Kbytes)
Inode table size 5569 bytes (5.44 Kbytes)
        27.01% of uncompressed inode table size (20615 bytes)
Directory table size 6182 bytes (6.04 Kbytes)
        52.11% of uncompressed directory table size (11864 bytes)
Number of duplicate files found 6
Number of inodes 617
Number of files 389
Number of fragments 13
Number of symbolic links  163
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 64
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
rm -f /opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/rootfs.img
rm -f /opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/usr.img
dd if=/opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/root.squashfs of=/opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/rootfs.img bs=128k conv=sync
21+1 records in
22+0 records out
2883584 bytes (2.9 MB, 2.8 MiB) copied, 0.00159815 s, 1.8 GB/s
( cd /opt/f1c100s/Tina_rel/tina/out/violin-F1C200s ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs md5sum --binary > md5sums )
( cd /opt/f1c100s/Tina_rel/tina/out/violin-F1C200s ; find -maxdepth 1 -type f \! -name 'md5sums'  -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums )
make[5]: Leaving directory '/opt/f1c100s/Tina_rel/tina/target/allwinner/generic/image'
make[4]: Leaving directory '/opt/f1c100s/Tina_rel/tina/target/allwinner/violin-F1C200s'
make[3]: Leaving directory '/opt/f1c100s/Tina_rel/tina/target/allwinner'
make[2]: Leaving directory '/opt/f1c100s/Tina_rel/tina'
export MAKEFLAGS= ;make -w -r package/index
make[2]: Entering directory '/opt/f1c100s/Tina_rel/tina'
Generating package index...
Signing key has not been configured
make[2]: Leaving directory '/opt/f1c100s/Tina_rel/tina'
make[1]: Leaving directory '/opt/f1c100s/Tina_rel/tina'

#### make completed successfully (20:00 (mm:ss)) ####

tina@ubuntu:/opt/f1c100s/Tina_rel/tina$

烧录怎么搞呢?

最近编辑记录 tina123456 (2019-12-28 11:55:48)

离线

#20 2019-12-28 11:59:52

tina123456
会员
注册时间: 2019-12-28
已发帖子: 13
积分: 13

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

输入pack命令:

/opt/f1c100s/Tina_rel/tina/out/host/bin/
/opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/image
Begin Parse sys_partion.fex
Add partion bootlogo.fex BOOTLOGO_FEX0000
Add partion very bootlogo.fex BOOTLOGO_FEX0000
FilePath: bootlogo.fex
FileLength=4b036Add 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=276680Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=2c0000sys_config.fex Len: 0xb944
config.fex Len: 0x7000
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xbf2
sunxi.fex Len: 0xc400
boot0_nand.fex Len: 0x4000
boot0_sdcard.fex Len: 0x8000
boot0_spinor.fex Len: 0x4000
u-boot.fex Len: 0xa4000
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x2d80
boot_package_nor.fex Len: 0x54000
usbtool.fex Len: 0x24200
aultools.fex Len: 0x2849b
aultls32.fex Len: 0x24d3f
cardtool.fex Len: 0x11e00
cardscript.fex Len: 0x6de
sunxi_mbr_nor.fex Len: 0x4000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0xf
bootlogo.fex Len: 0x4b036
Vbootlogo.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x276680
Vboot.fex Len: 0x4
rootfs.fex Len: 0x2c0000
Vrootfs.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is for nor----------
----------image is at----------

/opt/f1c100s/Tina_rel/tina/out/violin-F1C200s/tina_violin-F1C200s_uart0_nor.img

pack finish

生成 tina_violin-F1C200s_uart0_nor.img

怎么烧呢?犯愁了。

离线

#21 2019-12-28 14:30:39

tina123456
会员
注册时间: 2019-12-28
已发帖子: 13
积分: 13

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

感谢 @湘楚浪子 https://whycan.cn/t_917.html#p30343

tina_violin-F1C200s_uart0_nor.img 解压成功:

E:\xxxx\imgRePacker_206>imgrepacker ..\tina_violin-F1C200s_uart0_nor.img

        imgRePacker (version 2.05 windows)
        LiveSuit's & PhoenixSuit's firmware image unpacker/packer

        (c) RedScorpio, Moscow, 2012-2014
            RedScorpio@land.ru

        ==========================[ START ]==========================

        --- Firmware unpacking ---

        PhoenixSuit image format detected

        - image.cfg creating -
        image.cfg created

        - Files extracting -
        "\sys_config.fex"               extracted (format: unknown)
        "\config.fex"           extracted (format: unknown)
        "\split_xxxx.fex"               extracted (format: unknown)
        "\sys_partition.fex"            extracted (format: unknown)
        "\sunxi.fex"            extracted (format: unknown)
        "\boot0_nand.fex"               extracted (format: Allwinner BOOT0 file)

        "\boot0_sdcard.fex"             extracted (format: Allwinner BOOT0 file)

        "\boot0_spinor.fex"             extracted (format: Allwinner BOOT0 file)

        "\u-boot.fex"           extracted (format: unknown)
        "\toc1.fex"             extracted (format: unknown/empty?)
        "\toc0.fex"             extracted (format: unknown/empty?)
        "\fes1.fex"             extracted (format: Allwinner BOOT0 file)
        "\boot_package_nor.fex"         extracted (format: unknown)
        "\usbtool.fex"          extracted (format: Windows PE file)
        "\aultools.fex"         extracted (format: Compiled lua file)
        "\aultls32.fex"         extracted (format: Compiled lua file)
        "\cardtool.fex"         extracted (format: Windows PE file)
        "\cardscript.fex"               extracted (format: unknown)
        "\sunxi_mbr_nor.fex"            extracted (format: unknown)
        "\dlinfo.fex"           extracted (format: unknown)
        "\arisc.fex"            extracted (format: unknown/empty?)
        "\bootlogo.fex"         extracted (format: bitmap image file)
        "\Vbootlogo.fex"                extracted (format: unknown/empty?)
        "\env.fex"              extracted (format: unknown)
        "\Venv.fex"             extracted (format: unknown/empty?)
        "\boot.fex"             extracted (format: unknown)
        "\Vboot.fex"            extracted (format: unknown/empty?)
        "\rootfs.fex"           extracted (format: unknown)
        "\Vrootfs.fex"          extracted (format: unknown/empty?)

        ==========================[ STOP  ]==========================

2019-12-28_142521.png

离线

#22 2019-12-28 14:39:30

tina123456
会员
注册时间: 2019-12-28
已发帖子: 13
积分: 13

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

2019-12-28_143855.png

烧写成功, 不知道能不能启动。

离线

#23 2019-12-28 19:11:07

Biftor
会员
注册时间: 2019-11-28
已发帖子: 34
积分: 34

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

tina123456 说:

哇,厉害,楼主是怎么做到的?我搞了两天,差点就放弃治疗,还好看到这个帖子。

Hey, can you please tell me where can I get Tina 3 sources, for compiling?
I couldn't find the what you are compiling anywhere .
thanks.

离线

#24 2019-12-28 19:23:04

并夕夕
会员
注册时间: 2019-11-24
已发帖子: 32
积分: 32

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

Biftor 说:

Hey, can you please tell me where can I get Tina 3 sources, for compiling?
I couldn't find the what you are compiling anywhere .
thanks.

tina是要签保密协议才能拿到吧?

离线

#25 2019-12-28 19:31:22

Biftor
会员
注册时间: 2019-11-28
已发帖子: 34
积分: 34

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

并夕夕 说:

tina是要签保密协议才能拿到吧?

I have no idea, where can i get the tina 3, what they were mentioning here.
there is in only a github https://github.com/tinalinux
but what i am seeing, what they were using here is different from what ever in github.

离线

#26 2020-01-24 12:05:52

joyhope
会员
注册时间: 2020-01-16
已发帖子: 39
积分: 39

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

一直看到tina这个名字,不知是什么东西,和linux的版本的功能差别在哪里?

离线

#27 2020-01-24 12:26:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

joyhope 说:

一直看到tina这个名字,不知是什么东西,和linux的版本的功能差别在哪里?

tina 驱动比较全, mp4解码器/声卡/CVBS in out/USB 都驱动了





离线

#28 2020-03-21 01:34:39

qinxiongxu
会员
注册时间: 2018-12-13
已发帖子: 88
积分: 75.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

求购tina 3.x SDK 有的请联系575895057,感谢!!

离线

#29 2020-04-13 09:54:47

LinjieGuo
Moderator
注册时间: 2019-07-24
已发帖子: 581
积分: 585
个人网站

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

mark!

离线

#30 2020-04-13 10:41:14

gdfsli
会员
注册时间: 2018-07-11
已发帖子: 28
积分: 28

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

启动时间多少秒?

离线

#31 2020-04-14 14:57:28

LinjieGuo
Moderator
注册时间: 2019-07-24
已发帖子: 581
积分: 585
个人网站

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

编译的结果是这样的:
FluxBB make_result 测试
输入pack指令,出现这种情况。
FluxBB Error_pack 测试
进去发现,根本就找不到lichee/linux-3.10/arch/arm/boot/dts/.sun3iw1p1-violin-F1C200s.dtb.dts.tmp文件
请问如何解决呢?

最近编辑记录 LinjieGuo (2020-04-14 15:02:37)

离线

#32 2020-04-15 12:14:46

LinjieGuo
Moderator
注册时间: 2019-07-24
已发帖子: 581
积分: 585
个人网站

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

找到原因了,不能再NTFS格式的文件系统下编译,否则会出现上面情况

离线

#33 2020-04-16 17:15:03

xingjxuan
会员
注册时间: 2020-04-07
已发帖子: 7
积分: 7

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

后悔没早点看到。。。已经换成16.04编过去了。。。

离线

#34 2020-04-18 23:36:17

binbin
会员
注册时间: 2020-04-08
已发帖子: 15
积分: 4.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

今天来折腾  ubuntu 18.04 编译tina  按楼住的方法,得出的问题不尽相同,大部份装 sudo apt-get install 解决,到最还是卡住了

make[4]: Entering directory '/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1'
 cd . && automake-1.15 --foreign
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:30: error: required file './compile' not found
configure.ac:30:   'automake --add-missing' can install 'compile'
modules/mixer/simple/Makefile.am:3: warning: pkglibdir was already defined in condition TRUE, which includes condition BUILD_PYTHON ...
/media/bin1/data1/tina/Tina_rel/tina/out/host/share/automake-1.15/am/header-vars.am: ... 'pkglibdir' previously defined here
parallel-tests: error: required file './test-driver' not found
parallel-tests:   'automake --add-missing' can install 'test-driver'
Makefile:290: recipe for target 'Makefile.in' failed
make[4]: *** [Makefile.in] Error 1
make[4]: Leaving directory '/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1'
Makefile:118: recipe for target '/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1/.built' failed
make[3]: *** [/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1/.built] Error 2
make[3]: Leaving directory '/media/bin1/data1/tina/Tina_rel/tina/package/libs/alsa-lib'
package/Makefile:192: recipe for target 'package/libs/alsa-lib/compile' failed
make[2]: *** [package/libs/alsa-lib/compile] Error 2
make[2]: Leaving directory '/media/bin1/data1/tina/Tina_rel/tina'
package/Makefile:189: recipe for target '/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/media/bin1/data1/tina/Tina_rel/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/media/bin1/data1/tina/Tina_rel/tina'
/media/bin1/data1/tina/Tina_rel/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (35 seconds) ####


不知有那位见过这个问题

离线

#35 2020-04-20 11:12:32

binbin
会员
注册时间: 2020-04-08
已发帖子: 15
积分: 4.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

今天重新安装个系统 ,参照楼住的方法,终于可以通过了,感谢楼住指引

离线

#36 2020-05-22 15:38:36

twig
会员
注册时间: 2020-01-06
已发帖子: 3
积分: 3

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

稳定吗?

离线

#37 2020-05-22 16:52:49

秦皇岛岛主
会员
注册时间: 2020-05-22
已发帖子: 59
积分: 38

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

标记一下,期待公司能早日签下NDA,拿到资料按照楼主的方法玩玩

离线

#38 2020-05-27 14:10:54

jamdy72
会员
注册时间: 2019-12-16
已发帖子: 0
积分: 0

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

按照楼主的方式试一下。

离线

#39 2020-05-27 14:27:40

lhc200
会员
注册时间: 2020-05-09
已发帖子: 8
积分: 8

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

error: required file './test-driver' not found ;这里有错
你看这个目录;从makefile里面删除

离线

#40 2020-06-09 22:00:45

xyzijk
会员
注册时间: 2019-08-23
已发帖子: 31
积分: 19.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

非常好,很有参考价值,  直接帮助跳出坑口!

离线

#41 2020-08-04 22:31:31

aaayao
会员
注册时间: 2019-10-30
已发帖子: 84
积分: 54

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

楼主:
       你好,烧录时提示这个错误,nor flash为25Q128;试过插入TF卡也一样提示这个错误,这个有办法解决吗?
QQ图片20200804222838.png

离线

#42 2020-08-06 09:28:54

aaayao
会员
注册时间: 2019-10-30
已发帖子: 84
积分: 54

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

tina123456 说:

输入pack命令:
...

你好!这个image is for nor的配置能分享一下吗?谢谢了!
我用默认配置编译出来的是image is for nand/emmc,这个没有办法烧录成功。

离线

#43 2021-04-02 15:15:07

无根浮萍
会员
注册时间: 2021-01-14
已发帖子: 62
积分: 31

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

感谢楼主, 我把这几个文件备份出来了

tar czvf ubuntu1804_build_tina35_path.tgz \
 out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib/gdate.c \
 out/violin-F1C200s/compile_dir/host/automake-1.15/bin/automake.in \
 out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc7.h \

大家也不用费事去找了: ubuntu1804_build_tina35_patch_files.tgz

直接解压就好了。

离线

楼主 #44 2021-04-08 11:30:12

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

一行打包搞定了 ^_^

source build/envsetup.sh;\
export TINA_BUILD_TOP=/opt/f1c100s/tina/tina;\
export TINA_TARGET_ARCH=arm;\
export TARGET_PRODUCT=violin_F1C200s;\
export TARGET_PLATFORM=violin;\
export TARGET_BOARD=violin-F1C200s;\
export TARGET_BUILD_VARIANT=tina;\
export TARGET_BUILD_TYPE=release;\
export TARGET_KERNEL_VERSION=3.10;\
export TARGET_UBOOT=u-boot-2014.07;\
export TARGET_CHIP=sun3iw1p1;\
make -j5;\
pack;

感谢原帖作者:

全志Tina开发的朋友们, 一个百思不得其解shell脚本问题请教大家
http://whycan.com/t_6239.html#p61520

离线

楼主 #45 2021-04-08 11:33:28

匆匆过客
会员
注册时间: 2019-11-22
已发帖子: 11
积分: 10

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

tiny200s 测试声音输入输出OK:

#MIC增益使能
tinymix set 27 1

#取消MIC静音
tinymix set 35 1

#录音
tinycap /tmp/test.wav

#播放
tinplay /tmp/test.wav

#播放音量更大一点, 最大63
tinymix set 22 63

离线

#46 2021-06-19 14:43:52

abin
会员
注册时间: 2021-04-25
已发帖子: 6
积分: 14

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

匆匆过客 说:

tiny200s 测试声音输入输出OK:

#MIC增益使能
tinymix set 27 1

#取消MIC静音
tinymix set 35 1

#录音
tinycap /tmp/test.wav

#播放
tinplay /tmp/test.wav

#播放音量更大一点, 最大63
tinymix set 22 63

tiny3.5 声卡怎么配置?
怎么我按官方给的文档配置出来以后 未发现audiocodec的声卡,还需要配置哪里吗?(我是F1C100S的芯片,这个声卡跟F1C200S有区别吗?不知道驱动能否通用)

打印如下 :

[0]HELLO! BOOT0 is starting!
[2]boot0 commit : 80628dcde5dc4ecdc757a9e782c58d7cf1abf959
 
[60]dram size =32
[62]Reg pull reg_val=0x00000000,read=0x00000010
[66]Succeed in reading toc file head.
[69]The size of toc is 00054000.
[127]Reg pull reg_val=0x00000000,read=0x00000010
[136]Ready to disable icache.
[138]Jump to secend Boot.


U-Boot 2014.07 (Aug 21 2019 - 14:53:43) Allwinner Technology 

uboot commit : 78cb55af380c57c0278162e241a9999cdc16e1d6
 
i2c_init: by cpux
[I2C-DEBUG]:i2c_set_clock() 354 
[I2C-ERROR]:twi_send_clk_9pulse() 136 SDA is still Stuck Low, failed. 
i2c_init ok
[0.187]pmbus:   ready
axp: get node[/soc/pmu0] error
axp_probe error
[0.193]PMU: cpux 408 Mhz,AXI=408 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz 
key value = 4294967295, fel_key = [256,426]
DRAM:  32 MiB
Relocation Offset is: 01580000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
workmode = 0,storage type = 3
[0.260]spinor:	 0
flash size =0x8000 sectors
sunxi spinor is initing...int sunxi_dma_init---
irq enable
sunxi_dma_install_int ok
sunxi_dma_install_int ok
OK
spinor id:0x18400b
spi_freq = 40000000
[0.278]sunxi flash init ok
spinor read: start 0x3e0, sector 0x20
used mbr [0], count = 8
spinor read: start 0x800, sector 0x200
env size is 256
env partition is too small!
can't enabled backup env functions
logo addr = 0x81f00000
spinor read: start 0x400, sector 0x400
sunxi_read_bootlogo: read bootlogo partition successful
do not find fastboot status flag
--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-      
bootlogo    : 4000          80000       
env         : 84000         20000       
boot        : a4000         280000      
rootfs      : 324000        340000      
rootfs_data : 664000        80000       
misc        : 6e4000        10000       
private     : 6f4000        10000       
UDISK       : 704000        0           
-----------------------------------
spinor read: start 0x3b00, sector 0x4
disable nand error: FDT_ERR_BADPATH
disable nand error: FDT_ERR_BADPATH
## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
PowerBus = 0( 2:vBus 3:acBus other: not exist)
no battery exist
sunxi_bmp_logo_display
Hit any key to stop autoboot:  0 
spinor read: start 0x900, sector 0x40
spinor read: start 0x940, sector 0x121a
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   ARM OpenWrt Linux-3.10.65
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2405200 Bytes = 2.3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   XIP Kernel Image ... OK
   reserving fdt memory region: addr=81000000 size=10000
   Using Device Tree in place at 81000000, end 8100f27f

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65 (abin@czjh) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #33 Sat Jun 19 06:10:13 UTC 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Allwinner A1X (Device Tree), model: sun3iw1p1
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] cma: CMA: failed to reserve 32 MiB
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat c045b68c, node_mem_map c0487000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: enforcing=1 earlyprintk=sunxi-uart,0x01c25000 initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mtdblock4 init=/pseudo_init rdinit=/rdinit partitions=bootlogo@mtdblock1:env@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:rootfs_data@mtdblock5:misc@mtdblock6:private@mtdblock7:UDISK@mtdblock8 cma=32M fb_base=0x81f00000 androidboot.serialno=<NULL> boot_type=3
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 32MB = 32MB total
[    0.000000] Memory: 27696k/27696k available, 5072k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc2800000 - 0xff000000   ( 968 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc040ef84   (4124 kB)
[    0.000000]       .init : 0xc040f000 - 0xc042cb9c   ( 119 kB)
[    0.000000]       .data : 0xc042e000 - 0xc045bfa8   ( 184 kB)
[    0.000000]        .bss : 0xc045bfa8 - 0xc0486180   ( 169 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] of_sunxi_clocks_init : sunxi_clk_base[0xf1c20000]
[    0.000000] pll_cpu-set_default_rate=552000000 success!
[    0.000000] pll_video-set_default_rate=297000000 success!
[    0.000000] pll_ddr-set_default_rate=312000000 success!
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.005327] Calibrating delay loop... 275.25 BogoMIPS (lpj=1376256)
[    0.075247] pid_max: default: 32768 minimum: 301
[    0.080427] Mount-cache hash table entries: 512
[    0.086407] CPU: Testing write buffer coherency: ok
[    0.092190] Setting up static identity map for 0xc031aed8 - 0xc031af30
[    0.101466] devtmpfs: initialized
[    0.106968] pinctrl core: initialized pinctrl subsystem
[    0.112820] NET: Registered protocol family 16
[    0.117982] DMA: failed to allocate 256 KiB pool for atomic coherent allocation
[    0.126015] dump_class_init,844, success
[    0.134823] sun3iw1p1-pinctrl pio: initialized sunXi PIO driver
[    0.158463] bio: create slab <bio-0> at 0
[    0.163892] pwm module init!
[    0.168672] SCSI subsystem initialized
[    0.172982] usbcore: registered new interface driver usbfs
[    0.178753] usbcore: registered new interface driver hub
[    0.184622] usbcore: registered new device driver usb
[    0.195814] Linux video capture interface: v2.00
[    0.201107] Advanced Linux Sound Architecture Driver Initialized.
[    0.209296] cfg80211: Calling CRDA to update world regulatory domain
[    0.216793] Switching to clocksource sun3i high-res couter
[    0.242180] get det_vbus is fail, 84
[    0.247619] NET: Registered protocol family 2
[    0.254285] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.261397] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.268057] TCP: Hash tables configured (established 512 bind 512)
[    0.274629] TCP: reno registered
[    0.278024] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.284134] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.291191] NET: Registered protocol family 1
[    0.309196] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.315846] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[    0.322279] msgmni has been set to 54
[    0.329391] io scheduler noop registered
[    0.333688] io scheduler cfq registered (default)
[    0.338563] [pm]aw_pm_init!
[    0.341833] [pm]valid
[    0.344323] [pm]valid
[    0.361302] uart1: ttyS1 at MMIO 0x1c25400 (irq = 104) is a SUNXI
[    0.367746] sw_console_setup()1324 - console setup baud 115200 parity n bits 8, flow n
[    0.375965] console [ttyS1] enabled, bootconsole disabled
[    0.375965] console [ttyS1] enabled, bootconsole disabled
[    0.388495] misc dump reg init
[    0.393131] lradc_battery_probe:lradc_battery_probe ++++++
[    0.399237] lradc_battery_dts_parse:lradc_battery_dts_parse ++++++
[    0.406215] key base: f1c23400
[    0.409743] irq num: 115 !
[    0.412814] battery_data_hw_init:battery_data_hw_init ++++++
[    0.419148] lradc_battery_probe:lradc_battery_probe ------
[    0.427768] spi spi0: master is unqueued, this is deprecated
[    0.435451] m25p80 spi0.0: found xt25f128, expected m25p64
[    0.441583] m25p80 spi0.0: xt25f128 (16384 Kbytes) - fast mode
[    0.452529] 9 sunxipart partitions found on MTD device (null)
[    0.459011] Creating 9 MTD partitions on "(null)":
[    0.464389] 0x000000000000-0x000000080000 : "uboot"
[    0.471869] 0x000000080000-0x000000100000 : "bootlogo"
[    0.479644] 0x000000100000-0x000000120000 : "env"
[    0.486963] 0x000000120000-0x0000003a0000 : "boot"
[    0.494454] 0x0000003a0000-0x0000006e0000 : "rootfs"
[    0.501791] 0x0000006e0000-0x000000760000 : "rootfs_data"
[    0.509708] 0x000000760000-0x000000770000 : "misc"
[    0.517065] 0x000000770000-0x000000780000 : "private"
[    0.524628] 0x000000780000-0x000001000000 : "UDISK"
[    0.532405] usbcore: registered new interface driver rtl8150
[    0.538948] usbcore: registered new interface driver r8152
[    0.545136] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.553857] /soc/usbc0@0: could not find phandle
[    0.559005] get regulator_io is no nocare
[    0.563731] sunxi_hcd_host0 1c13000.otghci0-controller: sunxi_hcd host driver
[    0.571678] sunxi_hcd_host0 1c13000.otghci0-controller: new USB bus registered, assigned bus number 1
[    0.583563] hub 1-0:1.0: USB hub found
[    0.587787] hub 1-0:1.0: 1 port detected
[    0.592741] wrn: hcd is not enable, need not stop hcd
[    0.599108] sunxi_keyboard_startup: keyboard has no clk.
[    0.605668] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.613727] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    0.620598] twi_start()387 - [i2c0] START can't sendout!
[    0.626831] twi_start()387 - [i2c0] START can't sendout!
[    0.632997] twi_start()387 - [i2c0] START can't sendout!
[    0.639088] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[    0.646378] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    0.654037] sunxi cedar version 0.1 
[    0.658162] VE: install start!!!
[    0.658162] 
[    0.663636] cedar_ve: cedar-ve the get irq is 103
[    0.669486] VE: install end!!!
[    0.669486] 
[    0.676318] sunxi-mmc sdc0: SD/MMC/SDIO Host Controller Driver(v0.91 2018-5-29 14:19) Compiled in Jun 19 2021 at 03:55:17
[    0.688971] sunxi-mmc sdc0: Can't get vmmc regulator string
[    0.695276] sunxi-mmc sdc0: Can't get vqmmc regulator string
[    0.701565] sunxi-mmc sdc0: Can't get vdmmc regulator string
[    0.707897] sunxi-mmc sdc0: Failed getting OCR mask: 0
[    0.714134] sunxi-mmc sdc0: Failed to allocate DMA descriptor mem
[    0.721298] sunxi-mmc: probe of sdc0 failed with error -12
[    0.731716] failed to get gpio-spk and gpio_num
[    0.738855] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[    0.746917] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[    0.754904] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[    0.762686] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[    0.770418] sunxi-codec-machine sound.2: ASoC: DAPM unknown pin External Speaker
[    0.778855] sunxi-internal-cpudai 1c23c00.cpudai0-controller: ASoC: pcm constructor failed: -12
[    0.788628] sunxi-codec-machine sound.2: ASoC: can't create pcm SUNXI-CODEC :-12
[    0.796899] sunxi-codec-machine sound.2: ASoC: failed to instantiate card -12
[    0.805323] snd_soc_register_card failed -12
[    0.810108] sunxi-codec-machine: probe of sound.2 failed with error -12
[    0.818381] ipip: IPv4 over IPv4 tunneling driver
[    0.824972] gre: GRE over IPv4 demultiplexor driver
[    0.830405] ip_gre: GRE over IPv4 tunneling driver
[    0.838262] TCP: cubic registered
[    0.841961] Initializing XFRM netlink socket
[    0.846845] NET: Registered protocol family 17
[    0.851857] NET: Registered protocol family 15
[    0.857339] VFP support v0.3: not present
[    0.863632] usb_serial_number:20080411
[    0.868351] file system registered
[    0.874682] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    0.882332] android_usb gadget: Number of LUNs=3
[    0.887566]  lun0: LUN: removable file: (no medium)
[    0.893055]  lun1: LUN: removable file: (no medium)
[    0.898472]  lun2: LUN: removable file: (no medium)
[    0.904644] android_usb gadget: android_usb ready
[    0.910082] twi_start()387 - [i2c0] START can't sendout!
[    0.916314] twi_start()387 - [i2c0] START can't sendout!
[    0.922432] twi_start()387 - [i2c0] START can't sendout!
[    0.928481] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[    0.935191] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[    0.943060] ALSA device list:
[    0.946364]   No soundcards found.
[    0.958985] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.974532] devtmpfs: mounted
[    0.978553] Freeing unused kernel memory: 116K (c040f000 - c042c000)
mount: mounting none on /dev failed: Resource busy
mount: mounting pstore on /sys/fs/pstore failed: No such file or directory
-- run rc.preboot --
-- set volume --
Failed to open mixer
-- play music --
-- end --
failed to open for pcm 0,0
-- run rc.final --
insmod F1C200s-board
-- wifi connect --
insmod wifi kernel module --------------------
insmod: can't insert '/lib/modules/3.10.65/xradio_wlan.ko': No such file or directory
start wpa_supplicant ------------------------
[    4.501971] android_usb: already disabled
[    4.611154] adb_open
[    4.614897] adb_bind_config
Successfully initialized wpa_supplicant
Line 6: Invalid passphrase length 6 (expected: 8..63) '******"'.
Line 6: failed to parse psk '"******"'.
Line 7: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
start udhcpc ----------------
-- end --


BusyBox v1.27.2 () built-in shell (ash)

 _____  _              __     _
|_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
  | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
  | |  | || | || _ |  |_____||_||_|_||___||_,_|
  |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
 ----------------------------------------------
 Tina Linux (Neptune, 5C1C9C53)
 ----------------------------------------------
udhcpc: SIOCGIFINDEX: No such device
root@TinaLinux:/# ^C
root@TinaLinux:/# ^C
root@TinaLinux:/# 

可以看到打印里面有几处信息:

[    0.731716] failed to get gpio-spk and gpio_num
[    0.738855] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[    0.746917] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[    0.754904] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[    0.762686] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[    0.770418] sunxi-codec-machine sound.2: ASoC: DAPM unknown pin External Speaker
[    0.778855] sunxi-internal-cpudai 1c23c00.cpudai0-controller: ASoC: pcm constructor failed: -12
[    0.788628] sunxi-codec-machine sound.2: ASoC: can't create pcm SUNXI-CODEC :-12
[    0.796899] sunxi-codec-machine sound.2: ASoC: failed to instantiate card -12
[    0.805323] snd_soc_register_card failed -12
[    0.810108] sunxi-codec-machine: probe of sound.2 failed with error -12
[    0.943060] ALSA device list:
[    0.946364]   No soundcards found.
-- set volume --
Failed to open mixer
-- play music --
-- end --
failed to open for pcm 0,0

执行 ls /dev/snd 也未发现有声卡的设备被识别到

root@TinaLinux:/# ls /dev/snd/
timer
root@TinaLinux:/#
root@TinaLinux:/# tinymix contents
Failed to open mixer
root@TinaLinux:/# 

我现在的配置

6.1 内核配置 make kernel_menuconfig
Device Drivers ---->
     Sound card support ---->
            Advanced Linux Sound Architecture --->
                  ALSA for SoC audio support --->
                         ASoC support for SUNXI --->
                                  <*> ASoC support for sun3iw1 audiocodec
                                  <*> ASoC support for internal-codec cpudai
                                  <*> ASoC support for sun3iw1 audiocodec machine

dts 配置内部 codec dts 配置

     codec:codec@0x01c23c00 {
                        compatible = "allwinner,sunxi-internal-codec";
                        reg = <0x0 0x01c23c00 0x0 0x9c>;/*digital baseadress*/
                        clocks = <&clk_pll_audio>, <&clk_codec>;
                        /*gpio-spk=<&pio 6 7 0>;*/
                        /*gpio-spk = <&pio PB 1 1 1 1 1>;*/
                        /*gpio_num = <2040>;*/
                        gpio_shdn = <0>;
                        headphonevol = <0x3b>;
                        spkervol = <0x1b>;
                        maingain = <0x4>;
                        hp_dirused = <0x1>;
                        pa_sleep_time = <0x15e>;
                        status = "okay";
                };
 

能帮忙看下是不是还漏了什么没配置吗?

最近编辑记录 abin (2021-06-19 14:45:17)

离线

#47 2021-06-20 18:34:51

xiaoqianxiansheng
会员
注册时间: 2021-05-26
已发帖子: 35
积分: 12.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

一会去尝试一下,感谢

离线

#48 2021-10-07 17:05:30

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

#34 @binbin


rt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" ;
make[4]: Entering directory '/opt/v3s/tina/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1'
 cd . && automake-1.15 --foreign
configure.ac:39: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:39: the top level
configure.ac:30: error: required file './compile' not found
configure.ac:30:   'automake --add-missing' can install 'compile'
modules/mixer/simple/Makefile.am:3: warning: pkglibdir was already defined in condition TRUE, which includes condition BUILD_PYTHON ...
/opt/v3s/tina/tina/out/host/share/automake-1.15/am/header-vars.am: ... 'pkglibdir' previously defined here
modules/mixer/simple/Makefile.am:9: error: Libtool library used but 'LIBTOOL' is undefined
modules/mixer/simple/Makefile.am:9:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
modules/mixer/simple/Makefile.am:9:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
modules/mixer/simple/Makefile.am:9:   If 'LT_INIT' is in 'configure.ac', make sure
modules/mixer/simple/Makefile.am:9:   its definition is in aclocal's search path.
src/Makefile.am:16: error: Libtool library used but 'LIBTOOL' is undefined
src/Makefile.am:16:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/Makefile.am:16:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/Makefile.am:16:   If 'LT_INIT' is in 'configure.ac', make sure
src/Makefile.am:16:   its definition is in aclocal's search path.
src/alisp/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/alisp/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/alisp/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/alisp/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/alisp/Makefile.am:1:   its definition is in aclocal's search path.
src/control/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/control/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/control/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/control/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/control/Makefile.am:1:   its definition is in aclocal's search path.
src/hwdep/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/hwdep/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/hwdep/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/hwdep/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/hwdep/Makefile.am:1:   its definition is in aclocal's search path.
src/mixer/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/mixer/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/mixer/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/mixer/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/mixer/Makefile.am:1:   its definition is in aclocal's search path.
src/pcm/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
src/pcm/Makefile.am:4:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/pcm/Makefile.am:4:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/pcm/Makefile.am:4:   If 'LT_INIT' is in 'configure.ac', make sure
src/pcm/Makefile.am:4:   its definition is in aclocal's search path.
src/pcm/scopes/Makefile.am:5: error: Libtool library used but 'LIBTOOL' is undefined
src/pcm/scopes/Makefile.am:5:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/pcm/scopes/Makefile.am:5:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/pcm/scopes/Makefile.am:5:   If 'LT_INIT' is in 'configure.ac', make sure
src/pcm/scopes/Makefile.am:5:   its definition is in aclocal's search path.
src/rawmidi/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/rawmidi/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/rawmidi/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/rawmidi/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/rawmidi/Makefile.am:1:   its definition is in aclocal's search path.
src/seq/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/seq/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/seq/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/seq/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/seq/Makefile.am:1:   its definition is in aclocal's search path.
src/timer/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/timer/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/timer/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/timer/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/timer/Makefile.am:1:   its definition is in aclocal's search path.
src/topology/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/topology/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/topology/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/topology/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/topology/Makefile.am:1:   its definition is in aclocal's search path.
src/ucm/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
src/ucm/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/ucm/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/ucm/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
src/ucm/Makefile.am:1:   its definition is in aclocal's search path.
parallel-tests: error: required file './test-driver' not found
parallel-tests:   'automake --add-missing' can install 'test-driver'
Makefile:290: recipe for target 'Makefile.in' failed
make[4]: *** [Makefile.in] Error 1
make[4]: Leaving directory '/opt/v3s/tina/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1'
Makefile:118: recipe for target '/opt/v3s/tina/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1/.built' failed
make[3]: *** [/opt/v3s/tina/tina/out/violin-F1C200s/compile_dir/target/alsa-lib-1.1.4.1/.built] Error 2
make[3]: Leaving directory '/opt/v3s/tina/tina/package/libs/alsa-lib'
package/Makefile:192: recipe for target 'package/libs/alsa-lib/compile' failed
make[2]: *** [package/libs/alsa-lib/compile] Error 2
make[2]: Leaving directory '/opt/v3s/tina/tina'
package/Makefile:189: recipe for target '/opt/v3s/tina/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/opt/v3s/tina/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/opt/v3s/tina/tina'
/opt/v3s/tina/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (14 seconds) ####

解决方案:

sudo apt-get install git-core gnupg flex bison gperf build-essential \
 zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \
 libgl1-mesa-dev libxml2-utils xsltproc unzip u-boot-tools gawk \
build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev -y

然后清除alsa-lib,然后再编译他:

make package/libs/alsa-lib/clean
make package/libs/alsa-lib/compile

离线

#49 2021-10-07 18:07:40

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

/opt/v3s/tina/tina$ FORCE_UNSAFE_CONFIGURE=1 FORCE=1 make
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/opt/v3s/tina/tina'
make[2]: Entering directory '/opt/v3s/tina/tina'
make[3]: Entering directory '/opt/v3s/tina/tina/target/allwinner'
make[4]: Entering directory '/opt/v3s/tina/tina/target/allwinner/bangu-h300'
/opt/v3s/tina/tina/scripts/kconfig.pl  + /opt/v3s/tina/tina/target/allwinner/generic/config-4.9 /opt/v3s/tina/tina/target/allwinner/bangu-h300/config-4.9 > /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /opt/v3s/tina/tina/.config >> /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target
/opt/v3s/tina/tina/scripts/metadata.pl kconfig /opt/v3s/tina/tina/tmp/.packageinfo /opt/v3s/tina/tina/.config 4.9 > /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.override
/opt/v3s/tina/tina/scripts/kconfig.pl 'm+' '+' /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.target /dev/null /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.override > /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set
mv /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.old
grep -v INITRAMFS /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.old > /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set
rm -rf /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/modules
cmp -s /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.prev || { cp /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config; cp /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.prev; }
export MAKEFLAGS= ; [ -d /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/user_headers ] || make -C /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118 HOSTCFLAGS="-O2 -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="arm-openwrt-linux-muslgnueabi-gcc" INSTALL_HDR_PATH=/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/user_headers headers_install
. /opt/v3s/tina/tina/build/shell.sh; grep '=[ym]' /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.config.set | LC_ALL=C sort | md5s > /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.vermagic
touch /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.configured
rm -f /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/vmlinux /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/System.map
make -C /opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118 HOSTCFLAGS="-O2 -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="arm-openwrt-linux-muslgnueabi-gcc" modules
make[5]: Entering directory '/opt/v3s/tina/tina/lichee/linux-4.9'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
drivers/char/sunxi-di//Makefile:43: *** Too many open files.  Stop.
scripts/Makefile.build:648: recipe for target 'drivers/char/sunxi-di' failed
make[7]: *** [drivers/char/sunxi-di] Error 2
scripts/Makefile.build:648: recipe for target 'drivers/char' failed
make[6]: *** [drivers/char] Error 2
Makefile:1083: recipe for target 'drivers' failed
make[5]: *** [drivers] Error 2
make[5]: Leaving directory '/opt/v3s/tina/tina/lichee/linux-4.9'
Makefile:26: recipe for target '/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.modules' failed
make[4]: *** [/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/linux-bangu-h300/linux-4.9.118/.modules] Error 2
make[4]: Leaving directory '/opt/v3s/tina/tina/target/allwinner/bangu-h300'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/opt/v3s/tina/tina/target/allwinner'
target/Makefile:21: recipe for target 'target/allwinner/compile' failed
make[2]: *** [target/allwinner/compile] Error 2
make[2]: Leaving directory '/opt/v3s/tina/tina'
target/Makefile:16: recipe for target '/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.target_compile' failed
make[1]: *** [/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.target_compile] Error 2
make[1]: Leaving directory '/opt/v3s/tina/tina'
/opt/v3s/tina/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (6 seconds) ####

ubuntu:/opt/v3s/tina/tina$

编译V3s tina出错,找到一个过期的网站:
https://webcache.googleusercontent.com/search?q=cache:k_4fXMgHGI0J:https://shengqian001.com/less/linux%25E9%2599%258D%25E4%25BD%258Emake%25E7%2589%2588%25E6%259C%25AC.html+&cd=2&hl=zh-CN&ct=clnk&gl=jp

linux降低make版本,【Linux】ubuntu 16.04版本上,降低make版本为3.81版本
最近编译服务器崩了,导致又重新搭建编译服务器。以往用的是ubuntu 12.04版本,重新安装后使用的是ubuntu 16.04版本,导致很多都不对了。具体什么情况我们来看下一。

安装make命令
sudo apt-get install make

编译报错
环境:全志H5芯片

但是编译Linux内核是报错如下:

Cleaning kernel ...drivers/video/sunxi/disp2/disp/de//Makefile:18: 
*** Too many open files.Stop.scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi/disp2/disp' failed
make[3]: *** [drivers/video/sunxi/disp2/disp] 
Error 2scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi' failed
make[2]: *** [drivers/video/sunxi] Error 2scripts/Makefile.clean:94: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2Makefile:1038: recipe for target '_clean_drivers' failed
make: *** [_clean_drivers] Error 2Building kernel/home/hudson/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee/linux-3.10/output/lib/modules/3.10.65
Copy rootfs.cpio.gz for arm64
HOSTCCscripts/basic/fixdep/bin/sh: 1: gcc: not foundscripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' faile
d
make[2]: *** [scripts/basic/fixdep] Error 127/home/hudson/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee/linux-3.10/Makefile:419: recipe for target 'scripts_basic' failed
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'.Stop. 

解决方案
降低make命令版本

1、查看make版本命令
make -v

hudson@hudson121:~/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee$ make -vGNU Make 4.1Built for x86_64-pc-linux-gnuCopyright (C) 1988-2014 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. 2、下载
地址:http://ftp.gnu.org/gnu/make/

命令:wget http://ftp.gnu.org/gnu/make/make-3.81.tar.gz

3、解压
命令: tar xf make-3.81.tar.gz

4、配置
./configure --prefix=/usr/local/make-3.81

5、编译
sh build.sh

6、替换
sudo cp make /usr/bin/make

结束语
再通过命令(make -v)查看你就会发现版本降到了3.81。这样就完成了make版本的降低。有什么不懂的,可以通过在下面留言。觉得对你有帮助,请留个小赞,谢谢!

离线

#50 2021-10-07 18:32:55

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

make降到3.81版本,没什么卵用。

最终修改 lichee/linux-4.9/drivers/char/sunxi-di/Makefile 屏蔽 -include $(obj)/$(sub_dir)/Makefile

最近编辑记录 X3 (2021-10-07 18:57:54)

离线

#51 2021-10-07 19:02:02

X3
会员
注册时间: 2020-04-08
已发帖子: 85
积分: 73.5

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

gcc -pthread -fno-strict-aliasing -O2 -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include  -DPy_BUILD_CORE  -c ./Modules/zlibmodule.c -o Modules/zlibmodule.o
gcc -pthread -fno-strict-aliasing -O2 -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include  -DPy_BUILD_CORE  -c ./Modules/xxsubtype.c -o Modules/xxsubtype.o
gcc -pthread -c -fno-strict-aliasing -O2 -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/v3s/tina/tina/out/host/include -I/opt/v3s/tina/tina/out/host/usr/include -I/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/host/include  -DPy_BUILD_CORE \
      -DGITVERSION="\"`LC_ALL=C `\"" \
      -DGITTAG="\"`LC_ALL=C `\"" \
      -DGITBRANCH="\"`LC_ALL=C `\"" \
      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
./Modules/getbuildinfo.c: In function 'Py_GetBuildInfo':
./Modules/getbuildinfo.c:47:19: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799
                   DATE, TIME);
                   ^~~~
Makefile:661: recipe for target 'Modules/getbuildinfo.o' failed
make[4]: *** [Modules/getbuildinfo.o] Error 1
make[4]: Leaving directory '/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15'
Makefile:246: recipe for target '/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15/.built' failed
make[3]: *** [/opt/v3s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15/.built] Error 2
make[3]: Leaving directory '/opt/v3s/tina/tina/package/lang/python'
package/Makefile:192: recipe for target 'package/lang/python/host/compile' failed
make[2]: *** [package/lang/python/host/compile] Error 2
make[2]: Leaving directory '/opt/v3s/tina/tina'
package/Makefile:189: recipe for target '/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/opt/v3s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/opt/v3s/tina/tina'
/opt/v3s/tina/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (14:20 (mm:ss)) ####

参考: https://blog.csdn.net/avit04322/article/details/106616424

原因: 查看 tina目录下 scripts/get_source_date_epoch.sh

解决方案: 可以修改在tina目录执行 date +%s > version.date 来生成一个日期值

离线

#52 2022-02-27 20:45:13

tigger
Moderator
注册时间: 2021-06-18
已发帖子: 172
积分: 111

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

nst-pkg; echo "[ -z \"\$IPKG_INSTROOT\" ] || exit 0" >> /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core/CONTROL/postinst-pkg; echo ". /lib/functions.sh" >> /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core/CONTROL/postinst-pkg; echo "insert_modules $modules" >> /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core/CONTROL/postinst-pkg; chmod 0755 /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core/CONTROL/postinst-pkg; fi


SHELL= flock /opt/f1c100s/tina2/tina/tmp/.root-copy.flock -c 'cp -fpR /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core/. /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/'
rm -rf /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/tmp-kmod-video-core
touch /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/rootfs/stamp/.kmod-video-core_installed
NOTICE: module '/opt/f1c100s/tina2/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/drivers/media/v4l2-core/v4l2-common.ko' is built-in.
NOTICE: module '/opt/f1c100s/tina2/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/drivers/media/v4l2-core/videodev.ko' is built-in.
if [ -f /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/pkginfo/linux.default.install.clean ]; then rm -f /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/pkginfo/linux.default.install /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/pkginfo/linux.default.install.clean; fi; echo "kmod-video-core" >> /opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/pkginfo/linux.default.install
ERROR: module '/opt/f1c100s/tina2/tina/out/violin-F1C200s/compile_dir/target/linux-violin-F1C200s/linux-3.10.65/drivers/net/wireless/rtl8723bs/8723bs.ko' is missing.
modules/wireless.mk:46: recipe for target '/opt/f1c100s/tina2/tina/out/violin-F1C200s/packages/kernel/kmod-net-rtl8723bs_3.10.65-1_sunxi.ipk' failed
make[3]: *** [/opt/f1c100s/tina2/tina/out/violin-F1C200s/packages/kernel/kmod-net-rtl8723bs_3.10.65-1_sunxi.ipk] Error 1
make[3]: Leaving directory '/opt/f1c100s/tina2/tina/package/kernel/linux'
package/Makefile:192: recipe for target 'package/kernel/linux/compile' failed
make[2]: *** [package/kernel/linux/compile] Error 2
make[2]: Leaving directory '/opt/f1c100s/tina2/tina'
package/Makefile:189: recipe for target '/opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/opt/f1c100s/tina2/tina/out/violin-F1C200s/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/opt/f1c100s/tina2/tina'
/opt/f1c100s/tina2/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (27 seconds) ####

tigger@ubuntu:/opt/f1c100s/tina2/tina$ 

解决方案,修改 target/allwinner/violin-F1C200s/config-3.10

改为:

CONFIG_RTL8723BS=m

离线

#53 2022-07-10 17:37:24

yixiuge
会员
注册时间: 2022-04-07
已发帖子: 56
积分: 66

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

@无根浮萍

大家也不用费事去找了: ubuntu1804_build_tina35_patch_files.tgz

直接解压就好了。

cp out/violin-F1C200s/compile_dir/host/pkg-config-0.29/glib/glib/gdate.c out/bangu-86panelA/compile_dir/host/pkg-config-0.29/glib/glib/gdate.c
cp out/violin-F1C200s/compile_dir/host/automake-1.15/bin/automake.in out/bangu-86panelA/compile_dir/host/automake-1.15/bin/automake.in
cp ./out/violin-F1C200s/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc5.h ./out/bangu-86panelA/compile_dir/host/u-boot-2014.10/include/linux/compiler-gcc7.h

借用借用

离线

#54 2022-07-29 12:55:45

ronz
会员
注册时间: 2021-11-19
已发帖子: 31
积分: 31

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

X3 说:

make降到3.81版本,没什么卵用。

最终修改 lichee/linux-4.9/drivers/char/sunxi-di/Makefile 屏蔽 -include $(obj)/$(sub_dir)/Makefile

对的,感谢大佬!

离线

#55 2023-11-13 16:44:30

小默叔叔
会员
注册时间: 2021-10-20
已发帖子: 1
积分: 1

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

@LinjieGuo
我理解这个应该是编译过程的文件,你可能需要clean,再重新编译?

离线

#56 2023-12-27 20:36:03

Nicholas
会员
注册时间: 2023-11-23
已发帖子: 6
积分: 3

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

@tina123456
怎么能编译出nor版本的?

离线

#57 2023-12-27 20:39:55

Nicholas
会员
注册时间: 2023-11-23
已发帖子: 6
积分: 3

Re: 试一试 Ubuntu 18.04 编译f1c200s tina 3.x

aaayao 说:
tina123456 说:

输入pack命令:
...

你好!这个image is for nor的配置能分享一下吗?谢谢了!
我用默认配置编译出来的是image is for nand/emmc,这个没有办法烧录成功。

大佬解决了吗?可以分享一下吗?

离线

页脚

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

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