Eror Building OpenWrt for amlogic s805

for conffile in /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files}" /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files/CONTROL/conffiles || echo "${conffile##/home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files}" >> /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files/CONTROL/conffiles; fi done
grep: /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files/CONTROL/conffiles: No such file or directory
SHELL= /home/amlogics9/amlogic/openwrt/staging_dir/host/bin/flock /home/amlogics9/amlogic/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files/. /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/'
rm -rf /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/tmp-base-files
touch /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/root-meson/stamp/.base-files_installed
if [ -f /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/pkginfo/base-files.default.install.clean ]; then rm -f /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/pkginfo/base-files.default.install /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/pkginfo/base-files.default.install.clean; fi; echo "base-files" >> /home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/pkginfo/base-files.default.install
make[3]: Leaving directory `/home/amlogics9/amlogic/openwrt/package/base-files'
make[3]: Entering directory `/home/amlogics9/amlogic/openwrt/package/boot/uboot-meson'
make -C /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33 m8b_m200_1G_config
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
make[4]: Entering directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/mkconfig -A m8b_m200_1G
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
cat: customer/board/boards.cfg: No such file or directory
m8b_m200_1G arm aml_meson m8b_m200_v1 amlogic m8b amlogic/m8b_m200_v1:DDR3_1GB,NON_32K
Configuring for m8b_m200_1G - Board: amlogic/m8b_m200_v1, Options: DDR3_1GB,NON_32K
make[4]: Leaving directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
rm -f /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/.configured_
touch /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/.configured_
make -C /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33 
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
make[4]: Entering directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
Generating /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/include/autoconf.mk
/bin/bash: line 3: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
Generating /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/include/autoconf.mk.dep
/bin/bash: line 3: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
make[4]: Leaving directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
make[4]: Entering directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-ld: No such file or directory
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>
fatal: Not a git repository (or any of the parent directories): .git
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
arm-none-eabi-gcc -DDO_DEPS_ONLY \
-g  -Os   -D__KERNEL__ -I/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/include2 -I/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/include -I/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__          -Werror -Wall -Wstrict-prototypes    \
-o /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/lib/asm-offsets.s /home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/lib/asm-offsets.c -c -S
/bin/bash: /opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc: No such file or directory
make[4]: *** [/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/build/lib/asm-offsets.s] Error 127
make[4]: Leaving directory `/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33'
make[3]: *** [/home/amlogics9/amlogic/openwrt/build_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/linux-meson_m8b/uboot-meson-next-2015-04-01-a77c4dec33/.built] Error 2
make[3]: Leaving directory `/home/amlogics9/amlogic/openwrt/package/boot/uboot-meson'
make[2]: *** [package/boot/uboot-meson/compile] Error 2
make[2]: Leaving directory `/home/amlogics9/amlogic/openwrt'
make[1]: *** [/home/amlogics9/amlogic/openwrt/staging_dir/target-arm_cortex-a5+neon_eglibc-2.19_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/amlogics9/amlogic/openwrt'
make: *** [world] Error 2
amlogics9@amlogics9:~/amlogic/openwrt$ cd ..                                                            amlogics9@amlogics9:~/amlogic$ ls

Probably best to contact your vendor if that’s a vendor toolchain. “eglibc” and “CodeSorcery” doesn’t look like OpenWrt, although your toolchain may be based on OpenWrt.

1 Like

thanks for the input, I just followed the tutorial at this link http://openlinux.amlogic.com/wiki/index.php/Arm/Buildroot/OpenWrt

Not that running firmware from 2015 is wise, but my guess is that you didn’t install the compiler (which isn’t detailed in those instructions)

I have followed all the tutorials that are in pdf and I have included pdf photos, there are file links that I cannot use gnutools, codesourcery and arc_4.8 amlogic and I looked for them on google there are none available

For which specific device are you looking at building OpenWRT ?

I cant find any more recent OpenWRT notes for ARMlogic 805 devices either since ARMlogic device support dont exist in the current OpenWRT project

however

Here is for the La Frite board S805X as an example a more recent Board Support Package Buildroot guide

http://openlinux.amlogic.com:8000/download/doc/Linux_BSP_Kernel4.9_Buildroot_OpenLinux_Release_Notes_V20171201.pdf

This at least provides the current cross compiler support for the board but further development would be needed to build a recent/current OpenWRT

You probably want to wait until 5.4 is released before expecting it to be stable, at least that's my guess looking at http://linux-meson.com/doku.php

I followed the tutorial in this pdf
https://www.google.com/url?sa=t&source=web&rct=j&url=http://openlinux.amlogic.com:8000/download/doc/linux-3.10-openwrt-pkg-201504-release-v0.2.pdf&ved=2ahUKEwi10pa0jcbkAhXXbCsKHcjDCy0QFjAAegQIBhAB&usg=AOvVaw0Epn7EO-XEhZhpzJmAxkIF

there have been successful making it but it was discussed in the china forum. I want to join the discussion there, but for the forum account it's hard, I attach the link
https://right.com.cn/forum/archiver/tid-858287.html

it too old ,kernel 3.10 has many security issues