• Posts

  • Joined

  • Last visited

 Content Type 


Member Map




Posts posted by chocho

  1. chocho,


    Could you explain to this noob (me), how to create an image with mainline 4.9 and the montjoie ethernet patch?

    The fastest way is to change lib/config/sources/sun8i.conf from



  2. Sorry for the late answer, but my free time is very limited.

    To be honest, I used copy/paste of make script from @150balbes u-boot repo.

    There is it:

    make distclean
    export PATH=$PATH:/opt/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin/
    export PATH=$PATH:/opt/CodeSourcery/Sourcery_G++_Lite/bin
    ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- make  gxm_q201_v1_config
    ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- make

    And it's compiles without errors, but after uninstall gcc-arm-none-eabi

    This is the end result:

    Building board/amlogic/gxm_q201_v1/acs.bin
      CC      acs.c
      AS      acs_entry.S
      PP      acs.ld.S
      LD      /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/acs.elf
      OD      /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/acs.dump
      BIN     /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/acs.bin
    Built /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/acs.bin successfully
      DEPS    /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21.ld.d
      DEPS    /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21_entrypoint.d
      DEPS    /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/timer.d
      DEPS    /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/serial.d
      DEPS    /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21_main.d
    Building board/amlogic/gxm_q201_v1/bl21.bin
      CC      bl21_main.c
      CC      serial.c
      CC      timer.c
      AS      bl21_entrypoint.S
      PP      bl21.ld.S
      LD      /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21.elf
      OD      /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21.dump
      BIN     /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21.bin
    Built /opt/Amlogic_u-boot/build/board/amlogic/gxm_q201_v1/firmware/bl21.bin successfully
            CPP task_entry.s
            CC task_entry.o
            CC user_task.o
            CPP misc.s
            CC misc.o
            CC uart.o
            CC suspend.o
            CC dvfs.o
            CC lib/string.o
            CC lib/delay.o
            LD /opt/Amlogic_u-boot/build/scp_task/bl301.out
            OBJDUMP /opt/Amlogic_u-boot/build/scp_task/bl301.dis
            OBJCOPY /opt/Amlogic_u-boot/build/scp_task/bl301.bin
    9848+0 records in
    9848+0 records out
    9848 bytes (9.8 kB, 9.6 KiB) copied, 0.0149399 s, 659 kB/s
    3764+0 records in
    3764+0 records out
    3764 bytes (3.8 kB, 3.7 KiB) copied, 0.00593117 s, 635 kB/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=0x140D0
    - Non-Trusted Firmware BL3-3: offset=0x2C000, size=0xA7F38
    ACS tool process done.
    11840+0 records in
    11840+0 records out
    11840 bytes (12 kB, 12 KiB) copied, 0.0181297 s, 653 kB/s
    5825+0 records in
    5825+0 records out
    5825 bytes (5.8 kB, 5.7 KiB) copied, 0.00897931 s, 649 kB/s
    ../fip/gxl/u-boot.bin build done!
  3. I just saw there is a error in building u-boot

      x Building board/amlogic/gxm_q201_v1/bl21.bin                                                                          x
      x   CC      serial.c                                                                                                   x
      x   CC      bl21_main.c                                                                                                x
      x   CC      timer.c                                                                                                    x
      x   PP      bl21.ld.S                                                                                                  x
      x   AS      bl21_entrypoint.S                                                                                          x
      x   LD      /opt/fork-lib/sources/u-boot-beelinkgt1/master/build/board/amlogic/gxm_q201_v1/firmware/bl21.elf           x
      x   OD      /opt/fork-lib/sources/u-boot-beelinkgt1/master/build/board/amlogic/gxm_q201_v1/firmware/bl21.dump          x
      x   BIN     /opt/fork-lib/sources/u-boot-beelinkgt1/master/build/board/amlogic/gxm_q201_v1/firmware/bl21.bin           x
      x                                                                                                                      x
      x Built /opt/fork-lib/sources/u-boot-beelinkgt1/master/build/board/amlogic/gxm_q201_v1/firmware/bl21.bin successfully  x
      x                                                                                                                      x
      x make clean                                                                                                           x
      x make /opt/fork-lib/sources/u-boot-beelinkgt1/master/build/scp_task/bl301.out                                         x
      x        CC user_task.o                                                                                                x
      x        CPP                                                                                             x
      x        CPP task_entry.s                                                                                              x
      x        CC uart.o                                                                                                     x
      x        CPP misc.s                                                                                                    x
      x        CC suspend.o                                                                                                  x
      x        CC dvfs.o                                                                                                     x
      x        CC lib/string.o                                                                                               x
      x        CC lib/delay.o                                                                                                x
      x        CC misc.o                                                                                                     x
      x        CC task_entry.o
    In file included from suspend.c:6:0:
    ./scp_remote.c: In function 'resume_remote_register':
    ./scp_remote.c:196:6: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable] int tmp = 0;
    ./scp_remote.c: In function 'ir_remote_init_32k_mode':
    ./scp_remote.c:209:6: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
    Makefile:147: recipe for target 'sub-make' failed
    [sub-make] Error 2or 2
    cc1: all warnings being treated as errors
    make[3]: *** [/opt/fork-lib/sources/u-boot-beelinkgt1/master/build/scp_task/suspend.o] Error 1
    [ o.k. ] Building deb [ linux-u-boot-beelinkgt1_5.21_arm64.deb ]
    dpkg-deb: building package 'linux-u-boot-beelinkgt1-default' in 'linux-u-boot-beelinkgt1_5.21_arm64.deb'
  4. Try this steps with root permissions :

    dpkg-reconfigure tzdata
    dpkg-reconfigure locales
    apt install build-essential git pkg-config libssl-dev bzip2 wget libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libcurl4-gnutls-dev liburiparser-dev debhelper
    cd /opt
    git clone -b release/4.0
    cd tvheadend/
    AUTOBUILD_CONFIGURE_EXTRA=--disable-libav_static ./
    cd ..
    dpkg -i tvheadend_4.0.xxx_armhf.deb

    It will ask for admin user and pass

    Then open in browser http://OPI_IP_ADDRESS:9981

  5. Thanks for the tips.

    Unfortunately I can't make it boot from SD.

    Can you tell me for changing boot.img it's need to be the original Android forked one or can be a compiled from Amlogic u-boot source.
    And if is the second how can I transform u-boot.bin to boot.img

    Thank you again!

  6. Hi,

    First I want to say thanks for this amazing project.

    Also English is not my native language, so please excuse me for misspell :)


    Last week I received my shiny new Beelink GT1 with Amlogic S912 CPU.

    And now I have a itching in my hands to break it.


    So I forked @150balbes repo and start messing with it.

    Dowloaded original firmware from here:!bIVGFaKY!Om3XTxlHmjPB4x2_jukFYw


    Extracted original device tree and kernel config (attached below) and after little tuning I was able to build a Ubuntu 16.04 CLI image (only build, not tested)

    I use a LibreELEC linux-amlogic repo.


    But there is still some problems to solve and I will appreciate any help for them.


    1. Where to put this device tree and in which config to address it

    2. How to fork original boot.img, so the device to boot from sd card


    Still didn't open the device, but of course it is a matter of time



  7. I followed the steps in the documentation to let it boot itself, tried changing the sd cards with no luck (chocho image)


    It still says in putty "Connection refused" although I could ping it :/


    Any image for orangepi pc with vanilla kernel 4.7 available that I could try?



    This is a new freshly compiled img: Armbian_5.20_Orangepipc_Debian_jessie_4.7.4

    (Link removed. There is a oficial Armbian beta images: )

    but I don't think the problem is with img


    If I understand correctly, the only difference is that PC+ has additional eMMC and WiFi. So a system with vanilla kernel for Opi PC+ should also work on the PC. Or are there other hardware differences?
    The page states: "serial console only, no HDMI." Does this vanilla system support Ethernet yet, so one can login via ssh after installation? My targeted use would be a tvheadend server (without local video for the moment).



    This is a img with vanilla kernel: Armbian_5.17_Orangepipc_Debian_jessie_4.7.2

    (Link removed. There is a oficial Armbian beta images: )

    After a year collecting dust my Orange Pi PC is finaly in biznes with tvheadend install.

    And a can say it is working better then my current RPI2 setup.

    OPI PC, Geniatech Mygica T230 DVB-T2, tvheadend 4.0.9-12