Port Buildroot on Khadas VIM

Hi, Folks:
Today I tried to port buildroot on Khadas VIM, and here share the steps and instructions.

Actually, there are two

And here what I tried to port on Khadas VIM is Amlogic Buildroot, I just think this will save a lot porting work :slight_smile:

Following is a step-by-step instrcutions:

1. Get the source code from Amlogic Openlinux Website:

$ wget -c http://openlinux.amlogic.com:8000/download/ARM/filesystem/buildroot-openlinux-20170310.tar.gz

Tips: there are two different buildroot from Amlogic openlinux website, but I just got stuck on Linux-4.9 one.

Extract the source code:

$ tar xvzf  buildroot-openlinux-20170310.tar.gz
$ cd buildroot-openlinux-20170310

##2. Modify to support VIM

$ vim bootloader/uboot-2015-dev/board/amlogic/configs/gxl_p212_v1.h +254

modify CONFIG_DDR_CLK to 768.

--- a/gxl_p212_v1.h
+++ b/gxl_p212_v1.h
@@ -251,7 +251,7 @@
 
 /* ddr */
 #define CONFIG_DDR_SIZE                                        0 //MB //0 means ddr size auto-detect
-#define CONFIG_DDR_CLK                                 912  //MHz, Range: 384-1200, should be multiple of 24
+#define CONFIG_DDR_CLK                                 768  //MHz, Range: 384-1200, should be multiple of 24
 #define CONFIG_DDR4_CLK                                        1008  //MHz, for boards which use different ddr chip
 /* DDR type setting
  *    CONFIG_DDR_TYPE_LPDDR3   : LPDDR3

$ vim kernel/aml-3.14/arch/arm64/boot/dts/amlogic/gxl_p212_2g.dts +217

delete line 217 and line 218.

--- a/gxl_p212_2g.dts
+++ b/gxl_p212_2g.dts
@@ -214,8 +214,6 @@
                        interrupts = <0 8 1
                                                  0 9 1>;
                        phy-mode= "rmii";
-                       pinctrl-names = "internal_eth_pins";
-                       pinctrl-0 = <&internal_eth_pins>;
                        mc_val = <0x1800>;
                        resets = <&clock GCLK_IDX_ETHERNET>;
                        reset-names = "ethpower";


##3. Bulid

$ source buildroot/build/setenv.sh

You're building on Linux
Lunch menu...pick a combo:
1. mesongxl_p212_32_kernel49_release
2. mesongxl_p212_kernel49_release
3. mesongxm_q200_32_kernel49_release
4. mesongxm_q200_kernel49_release
5. mesongxb_p200_release
6. mesongxb_p200_32_release
7. mesongxb_p201_release
8. mesongxb_p201_32_release
9. mesongxl_p212_release
10. mesongxl_p212_32_release
11. mesongxl_p230_release
12. mesongxl_p230_32_release
13. mesongxm_q200_release
14. mesongxm_q200_32_release
15. meson8_k200_release
16. meson8_k200b_release
17. meson8b_m200_release
18. meson8b_m201_release
19. meson8m2_n200_release

Which would you like? [5] 9

select 9 (mesongxl_p212_release).

$ make

images(uboot,kernel,rootfs…) will be generated in diractory “output/mesongxl_p212/images”.

##4. Installing linux on SD card

1. Create an SD card with one partition in ext2 format

$ umount /dev/sdb1
$ sudo mkfs.ext2 /dev/sdb1
$ sudo mount /dev/sdb1 /mnt/ 

2. Copy boot.img, rootfs.tar.gz to this partition

$ sudo cp output/mesongxl_p212/images/boot.img /mnt/
$ sudo cp output/mesongxl_p212/images/rootfs.tar.gz /mnt/
$ sudo sync

3. Extract rootfs.tar.gz on SD card

$ cd /mnt/
$ sudo tar xvzf rootfs.tar.gz
$ sudo sync

4. Write uboot to SD card

$ sudo dd if=output/mesongxl_p212/images/u-boot.bin.sd.bin of=/dev/sdb bs=1 count=442
$ sudo dd if=output/mesongxl_p212/images/u-boot.bin.sd.bin of=/dev/sdb bs=512 skip=1 seek=1

5. If there’s some old data on the flash, you might wish to erase them all

# store init 3
# reset

6. When running into uboot, set bootcmd:

# env default -a
# env save
#setenv bootcmd "run bootsdcard"
#save
#reset
6 Likes

Thank you for writing this howto. Just a few notes from my side.

Download is really slow and took here:

Downloaded 1,8 Gigabyte in 6:36:18 hour(s). (77,68 KB/s)`

archive size:

1,8G buildroot-openlinux-20170310.tar.gz`

md5sum:

# md5sum buildroot-openlinux-20170310.tar.gz
77af1279bd63c3607d04aed00dc7c253  buildroot-openlinux-20170310.tar.gz

needed space to unpack this archive:

# du -sh *
6,8G    buildroot-openlinux-20170310

Good to know. And for such huge tarball file, I think upload to TaoBao NetDisk would make it really convenient to us in China.
And is there a function list to show what items are the function well in VIM?

does anyone have clue why it fails to compile here

under archlinux x86_64 i needed to enable multilib and install following packages

pacman -Sy multilib-devel gcc-libs-multilib lib32-zlib

This is end compile error:
RuntimeError: Bad magic number in .pyc file

If I understand correctly. To build u-boot, you need to install on the host PC for additional library, as described in the PDF file with the documentation for BUILDROOT. As a workaround, You can collect u-boot (run menuconfig and remove it from the Assembly), it is not required to run from external media. If You then need to u-boot , You can use the which GIT KHADAS.

We only try to build on Ubuntu-14.04/16.04 :wink:

@balbes150 u-boot compiles now fine but it fails with: RuntimeError: Bad magic number in .pyc file (log above)

@Gouwa so you tried this amlogic buildroot stuff under ubuntu 14.04/16.04 and it worked? should not be pined to ubuntu only…

Build failed on Ubuntu 14.04 X64, below is the info.

$ uname -a
Linux XXXXX 4.4.0-72-generic #93~14.04.1-Ubuntu SMP Fri Mar 31 15:05:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The GCC:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-2ubuntu1~14.04.1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.5 (Ubuntu 4.8.5-2ubuntu1~14.04.1) 

fail log:

$ make 
umask 0022 && make -C /ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/buildroot O=/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212 
>>> cairo 1.14.8 Building
PATH="/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/host/bin:/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/host/sbin:/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/host/usr/bin:/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/host/usr/sbin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/home/hexiongjun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/hexiongjun/.010editor_installed:/home/hexiongjun/tc32/bin:/home/hexiongjun/github/pidcat:/ExtDisk/Projects/nRF52/Tools/nrfjprog:/ExtDisk/Projects/nRF52/Tools/mergehex"  /usr/bin/make -j9  -C /ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/build/cairo-1.14.8/
Makefile:1496: warning: overriding commands for target `recheck'
Makefile:1134: warning: ignoring old commands for target `recheck'
/usr/bin/make  all-recursive
Makefile:1496: warning: overriding commands for target `recheck'
Makefile:1134: warning: ignoring old commands for target `recheck'
Making all in src
/usr/bin/make  all-am
  CC       cairo-analysis-surface.lo
  CC       cairo-arc.lo
  CC       cairo-array.lo
  CC       cairo-atomic.lo
  CC       cairo-base64-stream.lo
  CC       cairo-base85-stream.lo
  CC       cairo-bentley-ottmann-rectangular.lo
  CC       cairo-bentley-ottmann.lo
  CC       cairo-bentley-ottmann-rectilinear.lo
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann.c:39:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-analysis-surface.c:37:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann.c:39:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-analysis-surface.c:37:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann.c:39:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-analysis-surface.c:37:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectilinear.c:39:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-base85-stream.c:37:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-base85-stream.c:37:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-base85-stream.c:37:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectilinear.c:39:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectilinear.c:39:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-array.c:39:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-base64-stream.c:39:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-array.c:39:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-base64-stream.c:39:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-array.c:39:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-base64-stream.c:39:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-arc.c:37:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectangular.c:39:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-atomic.c:34:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
 # error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
   ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-arc.c:37:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectangular.c:39:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:422,
                 from cairo-atomic.c:34:
cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-arc.c:37:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-bentley-ottmann-rectangular.c:39:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:422,
                 from cairo-atomic.c:34:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
 # error "CAIRO_MUTEX_IMPL_LOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
 # error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
   ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
cairo-mutex-type-private.h:161:9: error: unknown type name ‘cairo_mutex_impl_t’
 typedef cairo_mutex_impl_t cairo_mutex_t;
         ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-base64-stream.c:39:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-bentley-ottmann-rectangular.c:39:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-atomic.c:34:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-base85-stream.c:37:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-bentley-ottmann.c:39:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-bentley-ottmann-rectilinear.c:39:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-analysis-surface.c:37:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-arc.c:37:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2042,
                 from cairo-array.c:39:
cairo-wideint-private.h:121:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline cairo_int64_t I _cairo_double_to_int64 (double i) { return i; }
 ^
cairo-wideint-private.h:122:1: warning: ‘__visibility__’ attribute ignored [-Wattributes]
 static cairo_always_inline double I _cairo_int64_to_double (cairo_int64_t i) { return i; }
 ^
make[5]: *** [cairo-array.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [cairo-arc.lo] Error 1
make[5]: *** [cairo-bentley-ottmann-rectangular.lo] Error 1
make[5]: *** [cairo-base85-stream.lo] Error 1
make[5]: *** [cairo-base64-stream.lo] Error 1
make[5]: *** [cairo-bentley-ottmann-rectilinear.lo] Error 1
make[5]: *** [cairo-bentley-ottmann.lo] Error 1
make[5]: *** [cairo-atomic.lo] Error 1
make[5]: *** [cairo-analysis-surface.lo] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [/ExtDisk2/Projects/LinuxRC/Khadas_buildroot-openlinux-20170310/output/mesongxl_p212/build/cairo-1.14.8/.stamp_built] Error 2
make: *** [_all] Error 2

Can you update the generation rootfs and kernel, uboot to firmware page? So we can download to use it.

seems like there is new buildroot for S905X at amlogic buildroot-2017-05-15
amlogic buildroot

It seems in that version, the kernel is updated to Linux 4.9, they also list the Video decode test.

May be it’s time to update to that version. Is someone has the amlogic git account to download it?

you can download whole package but without git info like written on that page
http://openlinux.amlogic.com/wiki/index.php/Arm/Buildroot/buildroot-2017-05-15/buildroot-openlinux-20170515_(kernel_4.9)

2.You can download the tar package freely, but it has no git info.

$ wget -c  http://openlinux.amlogic.com:8000/download/ARM/filesystem/Linux_BSP/buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz
$ tar xvzf  buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz

Can someone confirm md5sum of this file as amlogic dont publish these information.

[buildhost vim]$ md5sum buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz
191260400ae5dbb70b0e8d01cfad805d  buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz
[buildhost vim]$ ls -al
-rw-r--r-- 1 user users 2333446387 May 18 01:07 buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz
[buildhost vim]$

File size and how much space is needed to unpack:

8,3G    buildroot_openlinux_kernel_4.9
2,2G    buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz
1 Like

Today I tested buildroot_openlinux_kernel_4.9 on Other S905X device , Linux GPU Hardware support render Video 4K + HDMI working .
Use kplayer
# ls -la
total 2343345
drwxr-xr-x 2 root root 16384 Jan 1 01:02 .
drwxr-xr-x 20 root root 1024 Jan 1 00:12 …
-rwxr-xr-x 1 root root 725960869 May 25 2016 Samsung_SUHD_Picture_Quality.mp4
-rwxr-xr-x 1 root root 34555984 Jun 26 2016 VP9.mp4
-rwxr-xr-x 1 root root 543139268 May 21 2016 samsung_colorful_food_uhd-DWEU.mkv
-rwxr-xr-x 1 root root 1095871239 May 21 2016 sony_another_world_2_uhd-DWEU.mkv
# kplayer sony_another_world_2_uhd-DWEU.mkv

1 Like

Can someone tell me what the hell is this “Bad magic number in .pyc file” error.

Building board/amlogic/gxl_p212_v1/acs.bin
  CC      acs.c
  AS      acs_entry.S
  PP      acs.ld.S
  LD      /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/acs.elf
  OD      /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/acs.dump
  BIN     /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/acs.bin
Built /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/acs.bin successfully
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  DEPS    /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21.ld.d
  DEPS    /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21_entrypoint.d
  DEPS    /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/timer.d
  DEPS    /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/serial.d
  DEPS    /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21_main.d
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Building board/amlogic/gxl_p212_v1/bl21.bin
  CC      bl21_main.c
  CC      serial.c
  CC      timer.c
  AS      bl21_entrypoint.S
  PP      bl21.ld.S
  LD      /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21.elf
  OD      /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21.dump
  BIN     /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21.bin
Built /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/build/board/amlogic/gxl_p212_v1/firmware/bl21.bin successfully
2172+0 records in
2172+0 records out
2172 bytes (2.2 kB, 2.1 KiB) copied, 0.00221261 s, 982 kB/s
3236+0 records in
3236+0 records out
3236 bytes (3.2 kB, 3.2 KiB) copied, 0.00317076 s, 1.0 MB/s
Amlogic img found, use new FIP structure!
Creating "../fip/gxl/fip.bin"
Firmware Image Package ToC:
---------------------------
- SCP Firmware BL3-0: offset=0x4000, size=0xD400
- EL3 Runtime Firmware BL3-1: offset=0x14000, size=0x1C130
- Non-Trusted Firmware BL3-3: offset=0x34000, size=0xB8840
---------------------------
RuntimeError: Bad magic number in .pyc file
make[3]: *** [/opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/Makefile:933: boot.bin] Error 1
make[2]: *** [Makefile:147: sub-make] Error 2
make[1]: *** [package/pkg-generic.mk:219: /opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/build/uboot-next-2015-dev/.stamp_built] Error 2
make: *** [/opt/vim/buildroot_openlinux_kernel_4.9/output/mesongxl_p212_32_kernel49/Makefile:16: _all] Error 2

@vrabac

fe04e1c8bd7fd5fbb28f234287f2f3b5  buildroot-openlinux-20170310.tar.gz
191260400ae5dbb70b0e8d01cfad805d  buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz

@numbqq
@hungphutho

I’ve tried 4K video decoding too, with the HDMI output set to 2160p60hz (it defaults to 720p60hz):

Is anyone at Khadas, at Amlogic, or anywhere else working on these issues?

[1]:

# gst-play-1.0 /mnt/4K/Sony_4K_HDR_Camp.mp4
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/4K/Sony_4K_HDR_Camp.mp4
[  213.096117@2] the demux           clock on, ref cnt: 1
[  213.096152@2] the parser_top      clock on, ref cnt: 1
c[  213.101858@2] Audio stbuf alloced at 0000000063400000, size = 1572864
[  213.107589@2] audio first pts = 0
[  213.110514@2] vdec_request_irq ffffff8001dc6390, parser
odec_init amstream version : 2.0
[codec_init[  213.122010@2] audio_dsp: codec_fatal_err value:0
 ]-[associate_dec_supported:0]
[  213.127233@3] first check in apts <0x0:0x780> ok!
[  213.140963@2] vfm_map_store:rm default
[  213.141053@2] vfm_map_store:add default decoder ppmgr deinterlace amvideo
[  213.143240@3] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, same source mode(1)
[  213.143243@3] aml_spdif_dai: share the same clock
[  213.143249@3] aml_spdif_dai: iec958 mode PCM16
[  213.143257@3] aml_audio_hw: IEC958 16bit
[  213.143263@3] hdmitx: audio: aout notify rate 48000
[  213.143266@3] hdmitx: audio: aout notify size 16
[  213.143269@3] hdmitx: audio: no update
[  213.143281@3] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  213.144186@3] audio first pts = 780
[  213.144457@3] amstream_do_ioctl error :fffffffffffffdfd, 80085309
[  213.144524@3] audio pts started::::::: 0
[  213.200748@2] the demux           clock on, ref cnt: 2
[  213.204776@2] the parser_top      clock on, ref cnt: 2
[  213.209852@2] the vdec            clock on, ref cnt: 1
[  213.214935@2] the clk_vdec_mux    clock on, ref cnt: 1
[  213.220068@2] the clk_hcodec_mux  clock on, ref cnt: 1
[  213.225139@2] the clk_hevc_mux    clock on, ref cnt: 1
[  213.230218@2] hevc mux clock is 500000000 Hz
[  213.234472@2] vdec_create instance ffffff800cd75000, total 1
[  213.240476@2] HEVC stbuf alloced at 0000000063580000, size = 6291456
[  213.246352@2] vdec_init, dev_name:amvdec_h265, vdec_type=VDEC_TYPE_SINGLE
[  213.253058@2] vdec_init set vfm decoder ffffff800cd75000
[  213.258310@2] free_alloced_keep_buffer           (null).          (null).          (null)
[  213.266420@2] vdec_dev_reg.mem[0x0 -- 0x0]
[  213.271859@2] vdec base memory alloced [0000000063b80000 -- 0000000065c7ffff]
[  213.305470@2] end: cached pages: 16384, speed 28 ms
[  213.305536@2] [0]h265:pts_unstable=0
[  213.308249@2] [0]h265: ver (201602101,0) decinfo: 3840x2160 rate=1601
[  213.314893@2] [0]vh265 mmu ucode loaded!
[  213.329144@2] video_receiver_event_fun: sent uevent FRAME_RATE_HINT=1601
[  213.330556@2] success set parent hevc_p1_composite rate to 666666666
[  213.336605@2] hevc mux clock is 666666666 Hz
[  213.340807@2] hevc video changed to 3840 x 2160 60 fps clk->667MHZ
[  213.346976@2] vdec_init, vf_provider_name =
[  213.351473@2] video first pts = 0
[  213.355006@2] fb: osd[0] enable: 0 (multiqueue0:src)
[  213.359403@2] fb: osd[1] enable: 0 (multiqueue0:src)
[  213.375779@2] vout: osd0=> x:0,y:0,w:0,h:0
[  213.375779@2] osd1=> x:0,y:0,w:0,h:0
[  213.382605@2] fb: current vmode=2160p60hz, cmd: 0x40000
[audio_dec_init]BuildDate--May 22 2017  BuildTime--15:46:16MyFaadDecoder init first in
begin audio_decoder_init,buf size 768
enter NeAACDecInit
check the loas frame failed
[NeAACDec[  213.544439@3] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  213.549627@3] aml_meson_snd_card aml_sound_meson: IEC958 playback enable
Init 1203]aac init finished. cost bits0
init sucess cost 0
[audio_decoder_init] Init OK adif_present :0 adts_present:1 latm_present:0,sr 48000,ch 2
 MyFaadDecoder decoder init finished total cost 0 bytes,consumed time 4 ms
Redistribute latency...
[  213.614468@2] video first checkin pts = 5de
[  213.614496@2] first check in vpts <0x0:0x5de> ok!
[  213.618078@3] timestamp_apts_enable enable:1,
[  213.621993@3] audio pts started::::::: 1
[  213.680938@3] [0]Bit depth luma = 10
[  213.680967@3] [0]Bit depth chroma = 10
[  213.682680@3] [0]set pic_list_init_flag 1
[  213.682692@0] [0]allocate begin
[  213.682697@0] [0]allocate end
[  213.683967@0] [0]init_decode_head_hw: (3840, 2160) body_size 0xff0000 header_size 0x7f80
[  213.683972@0] [0]init_buf_spec2 3840 2160
[  213.683974@0] [0]set pic_list_init_flag to 2
[  213.708889@3] [0]set pic_list_init_flag to 3
[  213.741776@3] video first pts = 290f
[  213.749532@0] pre_de_buf_config: source change: 0x0/0/0/0=>0x501000/3840/2160/0
[  213.751203@0] DI:5912 disable post.
[  213.758994@0]
[  213.758994@0] [amvideo..] saturation_pre:0 hue_pre:0 mab:1000000
[  213.833370@3] [0]HEVC: switch to n_d mode.
[  214.593527@2] success set parent hevc_p0_composite rate to 666666666
[  214.594245@2] hevc mux clock is 666666666 Hz
[  214.598503@2] hevc video changed to 3840 x 2160 59 fps clk->667MHZ
[  222.406930@3] threadrw add more buffer from 32 -> 64 for size 2097152
[  238.966000@1] threadrw add more buffer from 64 -> 96 for size 2097152
[  239.342929@3] threadrw add more buffer from 96 -> 128 for size 2097152
[  301.367431@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.376027@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.392589@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.393260@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.399224@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.405187@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.411452@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.417166@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.423103@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.429306@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.435033@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.440900@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.447117@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.452893@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.458712@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.465015@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.470744@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.480070@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.485114@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  301.491080@0] [0]cur lcu idx = 987, (total 2040), set error_mark
[  330.667024@1] threadrw add more buffer from 128 -> 160 for size 2097152
0:02:07.1 / 0:02:07.1
Reached end of play list.
[  340.632709@2] aml_meson_snd_card aml_sound_meson: I2S playback disable
[  340.633596@2] aml_meson_snd_card aml_sound_meson: IEC958 playback disable
[  346.148008@2] aml_spdif_dai: share the same clock
[  346.148046@2] aml_audio_hw: IEC958 16bit
[  346.151023@2] hdmitx: audio: aout notify rate 48000
[  346.155844@2] hdmitx: audio: aout notify size 16
[  346.160389@2] hdmitx: audio: no update
[  346.245680@3] audio first pts = 0
[codec_close]audio stop OK!
[  346.246142@3] adec_release
[  346.248930@3] the parser_top      clock off, ref cnt: 1
[  346.253831@3] the demux           clock off, ref cnt: 1
[  346.541633@1] video_receiver_event_fun: sent uevent FRAME_RATE_END_HINT
[  346.542763@2] disbled keep video before free keep buffer.
[  346.547948@2] disbled video for next before free keep buffer!
[  346.553642@2] free_alloced_keep_buffer           (null).          (null).          (null)
[  346.561745@2] free_alloced_keep_buffer           (null).          (null).          (null)
[  346.570015@2] video first pts = 0
[  346.580573@0] [0]uninit list
[  346.605537@2] success set parent hevc_p1_composite rate to 200000000
[  346.606251@2] hevc mux clock is 200000000 Hz
[  346.610506@2] hevc video changed to 0 x 0 0 fps clk->200MHZ
[  346.625832@2] the clk_hevc_mux    clock off, ref cnt: 0
[  346.625882@2] the clk_vdec_mux    clock off, ref cnt: 0
[  346.630636@2] the vdec            clock off, ref cnt: 0
[  346.635803@2] the clk_hcodec_mux  clock off, ref cnt: 0
[  346.640969@2] the parser_top      clock off, ref cnt: 0
[  346.646157@2] the demux           clock off, ref cnt: 0
[  346.651486@2] fb: osd[0] enable: 1 (gst-play-1.0)
[  346.659076@2] fb: osd[1] enable: 1 (gst-play-1.0)

[2]:

# gst-play-1.0 /mnt/4K/SES.Astra.UHD.Test.1.2160p.UHDTV.AAC.HEVC.x265-LiebeIst.m
kv
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/4K/SES.Astra.UHD.Test.1.2160p.UHDTV.AAC.HEVC.x265-LiebeIst.mkv
[  401.405505@3] the demux           clock on, ref cnt: 1
[  401.405538@3] the parser_top      clock on, ref cnt: 1
c[  401.411176@3] Audio stbuf alloced at 0000000063400000, size = 1572864
[  401.416959@3] audio first pts = 0
[  401.419949@3] vdec_request_irq ffffff8001dc6390, parser
odec_init amstream version : 2.0
[codec_[  401.429640@3] audio_dsp: codec_fatal_err value:0
 init]-[associate_dec_supported:0]
[  401.439082@1] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, same source mode(1)
[  401.444293@1] aml_spdif_dai: share the same clock
[  401.448954@1] aml_spdif_dai: iec958 mode PCM16
[  401.453335@1] aml_audio_hw: IEC958 16bit
[  401.457225@1] hdmitx: audio: aout notify rate 44100
[  401.462057@1] hdmitx: audio: aout notify size 16
[  401.466624@1] hdmtix: set audio
[  401.469726@1] hdmitx tx_aud_src = 0
[  401.473177@1] hdmitx: fs = 2, cd = 4, tmds_clk = 594000
[  401.478358@1] hdmitx aud_n_para = 9408
[  401.482068@1] hdmitx set channel status
[  401.485936@1] hdmitx: audio: Audio Type: PCM
[  401.490070@1] hdmitx: audio: set audio param
[  401.494318@1] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  401.539474@2] first check in apts <0x0:0x126f7> ok!
[  401.547465@0] vfm_map_store:rm default
[  401.547556@0] vfm_map_store:add default decoder ppmgr deinterlace amvideo
[  401.553543@0] the demux           clock on, ref cnt: 2
[  401.557413@0] the parser_top      clock on, ref cnt: 2
[  401.562625@0] the vdec            clock on, ref cnt: 1
[  401.567623@0] the clk_vdec_mux    clock on, ref cnt: 1
[  401.572706@0] the clk_hcodec_mux  clock on, ref cnt: 1
[  401.577843@0] the clk_hevc_mux    clock on, ref cnt: 1
[  401.582952@0] success set parent hevc_p0_composite rate to 500000000
[  401.589173@0] hevc mux clock is 500000000 Hz
[  401.593550@0] vdec_create instance ffffff800d704000, total 1
[  401.599472@0] HEVC stbuf alloced at 0000000063580000, size = 6291456
[  401.601396@1] audio first pts = 126f7
[  401.601822@1] amstream_do_ioctl error :fffffffffffffdfd, 80085309
[  401.601897@1] audio pts started::::::: 0
[  401.618859@0] vdec_init, dev_name:amvdec_h265, vdec_type=VDEC_TYPE_SINGLE
[  401.625646@0] vdec_init set vfm decoder ffffff800d704000
[  401.630837@0] free_alloced_keep_buffer           (null).          (null).          (null)
[  401.638948@0] vdec_dev_reg.mem[0x0 -- 0x0]
[  401.644596@0] vdec base memory alloced [0000000063b80000 -- 0000000065c7ffff]
[  401.677470@0] end: cached pages: 16384, speed 28 ms
[  401.677546@0] [0]h265:pts_unstable=0
[  401.680258@0] [0]h265: ver (201602101,0) decinfo: 3840x2160 rate=1600
[  401.686928@0] [0]vh265 mmu ucode loaded!
[  401.701178@0] video_receiver_event_fun: sent uevent FRAME_RATE_HINT=1600
[  401.702334@0] success set parent hevc_p1_composite rate to 666666666
[  401.708617@0] hevc mux clock is 666666666 Hz
[  401.712839@0] hevc video changed to 3840 x 2160 60 fps clk->667MHZ
[  401.718966@0] vdec_init, vf_provider_name =
[  401.723487@0] video first pts = 0
[  401.727211@0] fb: osd[0] enable: 0 (multiqueue0:src)
[  401.742440@0] fb: osd[1] enable: 0 (multiqueue0:src)
[  401.759097@0] vout: osd0=> x:0,y:0,w:0,h:0
[  401.759097@0] osd1=> x:0,y:0,w:0,h:0
[  401.765916@0] fb: current vmode=2160p60hz, cmd: 0x40000
[audio_dec_init]BuildDate--May 22 2017  BuildTime--15:46:16MyFaadDecoder init first in
begin audio_decoder_init,buf size 768
enter NeAACDecInit
check the loas fram[  401.909858@1] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  401.914908@1] aml_meson_snd_card aml_sound_meson: IEC958 playback enable
e failed
[NeAACDecInit 1203]aac init finished. cost bits0
init sucess cost 0
[audio_decoder_init] Init OK adif_present :0 adts_present:1 latm_present:0,sr 44100,ch 2
 MyFaadDecoder decoder init finished total cost 0 bytes,consumed time 0 ms
Redistribute latency...
[  401.979427@0] video first checkin pts = 11ee1
[  401.979458@0] first check in vpts <0x0:0x11ee1> ok!
[  401.984489@2] timestamp_apts_enable enable:1,
[  401.987298@2] audio pts started::::::: 1
[  402.046748@1] [0]Bit depth luma = 10
[  402.046779@1] [0]Bit depth chroma = 10
[  402.048422@1] [0]set pic_list_init_flag 1
[  402.048445@0] [0]allocate begin
[  402.048450@0] [0]allocate end
[  402.049555@0] [0]init_decode_head_hw: (3840, 2160) body_size 0xff0000 header_size 0x7f80
[  402.049559@0] [0]init_buf_spec2 3840 2160
[  402.049562@0] [0]set pic_list_init_flag to 2
[  402.074714@1] [0]set pic_list_init_flag to 3
[  402.119986@1] video first pts = 14208
[  402.120143@0] pre_de_buf_config: source change: 0x0/0/0/0=>0x501000/3840/2160/0
[  402.125273@0] DI:5912 disable post.
[  402.128802@0]
[  402.128802@0] [amvideo..] saturation_pre:0 hue_pre:0 mab:1000000
[  402.204980@1] [0]HEVC: switch to n_d mode.
[  406.603211@3] aml_meson_snd_card aml_sound_meson: I2S playback disable
[  406.604099@3] aml_meson_snd_card aml_sound_meson: IEC958 playback disable
xun in4.8 / 0:01:49.2
[  406.862865@0] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, same source mode(1)
[  406.866087@0] aml_spdif_dai: share the same clock
[  406.870686@0] aml_spdif_dai: iec958 mode PCM16
[  406.875105@0] aml_audio_hw: IEC958 16bit
[  406.879214@0] hdmitx: audio: aout notify rate 44100
[  406.883787@0] hdmitx: audio: aout notify size 16
[  406.888335@0] hdmitx: audio: no update
[  406.892039@0] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  406.898810@0] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  406.904760@0] aml_meson_snd_card aml_sound_meson: IEC958 playback enable
[  409.413458@0] aml_meson_snd_card aml_sound_meson: I2S playback disable
[  409.414340@0] aml_meson_snd_card aml_sound_meson: IEC958 playback disable
xun in7.3 / 0:01:49.2
[  410.295712@3] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, same source mode(1)
[  410.299142@3] aml_spdif_dai: share the same clock
[  410.303542@3] aml_spdif_dai: iec958 mode PCM16
[  410.307930@3] aml_audio_hw: IEC958 16bit
[  410.311880@3] hdmitx: audio: aout notify rate 44100
[  410.316584@3] hdmitx: audio: aout notify size 16
[  410.321151@3] hdmitx: audio: no update
[  410.324913@3] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  410.331500@3] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  410.337604@3] aml_meson_snd_card aml_sound_meson: IEC958 playback enable
[  411.245466@3] aml_meson_snd_card aml_sound_meson: I2S playback disable
[  411.246351@3] aml_meson_snd_card aml_sound_meson: IEC958 playback disable
xun in8.2 / 0:01:49.2
[  411.989263@3] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, same source mode(1)
[  411.992446@3] aml_spdif_dai: share the same clock
[  411.997060@3] aml_spdif_dai: iec958 mode PCM16
[  412.001479@3] aml_audio_hw: IEC958 16bit
[  412.005282@3] hdmitx: audio: aout notify rate 44100
[  412.010218@3] hdmitx: audio: aout notify size 16
[  412.014707@3] hdmitx: audio: no update
[  412.018419@3] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  412.025016@3] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  412.031157@3] aml_meson_snd_card aml_sound_meson: IEC958 playback enable
[  412.125462@3] aml_meson_snd_card aml_sound_meson: I2S playback disable
[  412.126351@3] aml_meson_snd_card aml_sound_meson: IEC958 playback disable
xun in8.3 / 0:01:49.2
[  413.058820@3] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, same source mode(1)
[  413.061977@3] aml_spdif_dai: share the same clock
[  413.066653@3] aml_spdif_dai: iec958 mode PCM16
[  413.071014@0] aml_audio_hw: IEC958 16bit
[  413.074969@0] hdmitx: audio: aout notify rate 44100
[  413.079869@0] hdmitx: audio: aout notify size 16
[  413.084263@0] hdmitx: audio: no update
[  413.087984@0] aml_meson_snd_card aml_sound_meson: i2s/958 same source
[  413.094837@0] aml_meson_snd_card aml_sound_meson: I2S playback enable
[  413.100708@0] aml_meson_snd_card aml_sound_meson: IEC958 playback enable

[3]:

# gst-play-1.0 /mnt/4K/Samsung_HDR_Wonderland.ts
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/4K/Samsung_HDR_Wonderland.ts
[  156.100856@0] vfm_map_store:rm default
[  156.100945@0] vfm_map_store:add default decoder ppmgr deinterlace amvideo
[  156.107015@0] the demux           clock on, ref cnt: 1
[  156.110864@0] the parser_top      clock on, ref cnt: 1
[  156.115984@0] the vdec            clock on, ref cnt: 1
[  156.121005@0] the clk_vdec_mux    clock on, ref cnt: 1
[  156.126102@0] the clk_hcodec_mux  clock on, ref cnt: 1
[  156.131178@0] the clk_hevc_mux    clock on, ref cnt: 1
[  156.136387@0] success set parent hevc_p0_composite rate to 500000000
[  156.142563@0] hevc mux clock is 500000000 Hz
[  156.146848@0] vdec_create instance ffffff800cc2a000, total 1
c[  156.153355@0] HEVC stbuf alloced at 0000000063400000, size = 6291456
[  156.158873@0] vdec_init, dev_name:amvdec_h265, vdec_type=VDEC_TYPE_SINGLE
[  156.165621@0] vdec_init set vfm decoder ffffff800cc2a000
[  156.170774@0] vdec_dev_reg.mem[0x0 -- 0x0]
[  156.175776@0] vdec base memory alloced [0000000063a00000 -- 0000000065afffff]
odec_init amstream version : 2.0
[  156.210126@0] end: cached pages: 16384, speed 28 ms
[  156.210195@0] [0]h265:pts_unstable=0
[  156.212905@0] [0]h265: ver (201602101,0) decinfo: 1920x1080 rate=3600
[  156.219678@0] [0]vh265 mmu ucode loaded!
[  156.233817@0] video_receiver_event_fun: sent uevent FRAME_RATE_HINT=3600
[  156.234985@0] success set parent hevc_p1_composite rate to 666666666
[  156.241247@0] hevc mux clock is 666666666 Hz
[  156.245411@0] hevc video changed to 3840 x 2160 60 fps clk->667MHZ
[  156.251703@0] vdec_init, vf_provider_name =
[  156.256477@0] video first pts = 0
[  156.259076@0] vdec_request_irq ffffff8001dc6390, parser
[  156.265212@2] fb: osd[0] enable: 0 (multiqueue0:src)
[  156.269273@2] fb: osd[1] enable: 0 (multiqueue0:src)
[  156.282410@2] vout: osd0=> x:0,y:0,w:0,h:0
[  156.282410@2] osd1=> x:0,y:0,w:0,h:0
[  156.289187@2] fb: current vmode=2160p60hz, cmd: 0x40000
[  156.302249@2] video first checkin pts = 19a31
[  156.302278@2] first check in vpts <0x0:0x19a31> ok!

[4]:

# gst-play-1.0 /mnt/4K/sample-Elysium.2013.2160p.mkv
Press 'k' to see a list of keyboard shortcuts.
Now playing /mnt/4K/sample-Elysium.2013.2160p.mkv
[  605.880354@0] vfm_map_store:rm default
[  605.880453@0] vfm_map_store:add default decoder ppmgr deinterlace amvideo
[  605.886451@0] the demux           clock on, ref cnt: 1
[  605.890361@0] the parser_top      clock on, ref cnt: 1
[  605.895491@0] the vdec            clock on, ref cnt: 1
[  605.900509@0] the clk_vdec_mux    clock on, ref cnt: 1
[  605.905595@0] the clk_hcodec_mux  clock on, ref cnt: 1
[  605.910730@0] the clk_hevc_mux    clock on, ref cnt: 1
[  605.915851@0] success set parent hevc_p1_composite rate to 500000000
[  605.922078@0] hevc mux clock is 500000000 Hz
[  605.926433@0] vdec_create instance ffffff800e091000, total 1
[  605.926678@3] the demux           clock on, ref cnt: 2
[  605.926682@3] the parser_top      clock on, ref cnt: 2
[  605.937625@3] Audio stbuf alloced at 0000000063400000, size = 1572864
[  605.938228@3] audio first pts = 0
[  605.938235@3] vdec_request_irq ffffff8001dc6390, parser
[  605.939768@3] audio_dsp: codec_fatal_err value:0
[  605.939768@3]
[  605.939769@3] multiqueue0:src[3781]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x82000006
[  605.939774@3] pgd = ffffffc076c7a000
[  605.939778@3] [00000000] *pgd=000000001032a003
[  605.939781@3] , *pud=000000001032a003
[  605.939783@3] , *pmd=0000000000000000
[  605.939783@3]
[  605.939785@3]
[  605.939794@3] CPU: 3 PID: 3781 Comm: AmadecArmdecLP Tainted: G           O    4.9.26 #1
[  605.939797@3] Hardware name: Amlogic (DT)
[  605.939801@3] task: ffffffc076078000 task.stack: ffffffc076608000
[  605.939808@3] PC is at 0x0
[  605.939811@3] LR is at 0x7f72295980
[  605.939814@3] pc : [<0000000000000000>] lr : [<0000007f72295980>] pstate: 60000000
[  605.939817@3] sp : 0000007f715998d0
[  605.939823@3] x29: 0000007f715998d0 x28: 0000007f72277558
[  605.939829@3] x27: 0000007f722a3000 x26: 00000000ffffffff
[  605.939835@3] x25: 0000007f722a2f90 x24: 0000007f722a3670
[  605.939841@3] x23: 0000007f722a3060 x22: 0000007f722a3698
[  605.939847@3] x21: 0000007f722a2000 x20: 0000007f722b6000
[  605.939852@3] x19: 0000007f68017c00 x18: 0000007f72db2330
[  605.939858@3] x17: 0000007f78b2ddc0 x16: 0000007f722b6a50
[  605.939864@3] x15: 0000000000000006 x14: 0000000000000006
[  605.939870@3] x13: ffffffffffffffff x12: 0000000000000005
[  605.939875@3] x11: 000000000000000a x10: 1999999999999999
[  605.939881@3] x9 : 0000000000000000 x8 : 0000000000000000
[  605.939887@3] x7 : 4455444b5e464e4b x6 : 0080808080808080
[  605.939893@3] x5 : 0000007fdcccfdc4 x4 : 0000007f78c3a328
[  605.939899@3] x3 : 0000000000000000 x2 : 0000000000000000
[  605.939905@3] x1 : 0000000000000000 x0 : 0000007f722b95e8
[  605.939906@3]
codec_init amstream version : 2.[  606.113487@3] adec_release
[  606.115286@3] the parser_top      clock off, ref cnt: 1
[  606.120103@3] the demux           clock off, ref cnt: 1
[  606.125408@3] the clk_hevc_mux    clock off, ref cnt: 0
[  606.130462@3] the clk_vdec_mux    clock off, ref cnt: 0
[  606.135695@3] the vdec            clock off, ref cnt: 0
[  606.140805@3] the clk_hcodec_mux  clock off, ref cnt: 0
[  606.146005@3] the parser_top      clock off, ref cnt: 0
[  606.151146@3] the demux           clock off, ref cnt: 0
0
[codec_init]-[associate_dec_supported:0]
Segmentation fault
1 Like

There is new release from Amlogic
Buildroot-openlinux-20170619 (S905X) kernel_4.9).

@Gouwa you do have git access? could you upload the Linux Kernel ubuntu source to github but this time with “commits”? But not import like with previews release where we see only “Extract from <buildroot_openlinux_kernel_4.9_fbdev_20170515.tar.gz>” as commit message… And we actually don’t see right commits messages and can only guess changes…

Hi vrabac,

We don’t have git access now,so we don’t see history commits, too.

@Joseph Try to apply the Git access permission from Amlogic.

Amlogic released new buildroot for (S905X S905D S805X) but with kernel Linux 3.14.29

1 Like

THey mention a linux version of the image burner tool : aml_update_whole_package.sh
where to find it ?
Prefer to stay on linux for the whole system building and deployment process