Having troubles building TinaLinux on Ubuntu


(nico) #1

I am having troubles building TinaLinux on Ubuntu 64-bit. I followed the build instructions called “R16_Tina_Linux_Quick_Start.md” under the “docs” repository with slight modifications to avoid some previous build errors I have had.

My sequence of commands goes somewhat like this:

$ curl https://raw.githubusercontent.com/tinalinux/repo/stable/repo > repo
$ chmod +x repo
$ ./repo init -u https://github.com/tinalinux/manifest -b r16-v2.1.y -m r16/v2.1.y.xml
$ ./repo sync
$ ./repo start r16-v2.1.y --all
$ cd lichee
$ git clone https://github.com/tinalinux/linux-3.10 # needed becuase part of the build process uses linux-3.10 instead of linux-3.4
$ cd ..
$ source build/envsetup.sh
$ lunch azalea_m2ultra-tina
$ make menuconfig # I've tried without this step too
$ make -j

And my current build errors are:

/home/naw/Work/tinalinux/build/board.mk:9: /home/naw/Work/tinalinux/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
/home/naw/Work/tinalinux/build/board.mk:10: /home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk: No such file or directory
make[3]: *** No rule to make target '/home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk'.  Stop.
/home/naw/Work/tinalinux/build/board.mk:9: /home/naw/Work/tinalinux/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
/home/naw/Work/tinalinux/build/board.mk:10: /home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk: No such file or directory
make[3]: *** No rule to make target '/home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk'.  Stop.
/home/naw/Work/tinalinux/build/board.mk:9: /home/naw/Work/tinalinux/target/allwinner/-common/BoardConfigCommon.mk: No such file or directory
/home/naw/Work/tinalinux/build/board.mk:10: /home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk: No such file or directory
make[2]: *** No rule to make target '/home/naw/Work/tinalinux/target/allwinner//BoardConfig.mk'.  Stop.
/home/naw/Work/tinalinux/build/toplevel.mk:205: recipe for target 'prereq' failed
make[1]: *** [prereq] Error 2
/home/naw/Work/tinalinux/build/toplevel.mk:219: recipe for target 'world' failed
make: *** [world] Error 2

I would appreciate to see other’s sequence of commands in order to build TinaLinux successfully or any hints into what I am doing wrong. Thanks in advance!


(nico) #2

I don’t believe I changed anything but after building again, I get this error now:

...
if [ -d /home/naw/Work/tinalinux/tmp/stage-zlib ]; then (cd /home/naw/Work/tinalinux/tmp/stage-zlib; find ./ >     /home/naw/Work/tinalinux/tmp/stage-zlib.files);  mv /home/naw/Work/tinalinux/tmp/stage-zlib.files /home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/packages/zlib.list && cp -fpR /home/naw/Work/tinalinux/tmp/stage-zlib/* /home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/; ; fi
bash: -c: line 0: syntax error near unexpected token `;'
bash: -c: line 0: `if [ -d /home/naw/Work/tinalinux/tmp/stage-zlib ]; then (cd /home/naw/Work/tinalinux/tmp/stage-zlib; find ./ > /home/naw/Work/tinalinux/tmp/stage-zlib.files);  mv /home/naw/Work/tinalinux/tmp/stage-zlib.files /home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/packages/zlib.list && cp -fpR /home/naw/Work/tinalinux/tmp/stage-zlib/* /home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/; ; fi'
Makefile:103: recipe for target '/home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/stamp/.zlib_installed' failed
make[3]: *** [/home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/stamp/.zlib_installed] Error 1
make[3]: Leaving directory '/home/naw/Work/tinalinux/package/libs/zlib'
package/Makefile:192: recipe for target 'package/libs/zlib/compile' failed
make[2]: *** [package/libs/zlib/compile] Error 2
make[2]: Leaving directory '/home/naw/Work/tinalinux'
package/Makefile:189: recipe for target '/home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/home/naw/Work/tinalinux/out/azalea-m2ultra/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/naw/Work/tinalinux'
/home/naw/Work/tinalinux/build/toplevel.mk:219: recipe for target 'world' failed
make: *** [world] Error 2

(nico) #3

I was able to fix this issue by disabling COMPAT_WIRELESS, when building enter ‘n’:

Compat Wireless for Xradio driver (COMPAT_WIRELESS) [Y/n/m/?] (NEW) n