Petrunin Alex

  • Posts

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Petrunin Alex got a reaction from danman in How to install, enable and start watchdog in H3   
    Hi - easiest way i found
    1) In /etc/systemd/system.conf set\uncomment
    (max seconds on H3 you can see in g_timeout in 'dmesg | grep "sunxi_wdt_probe"'.
    On H2 'dmesg | grep "watchdog"'.
    Its ok to set to 16 - it try to send "pings" every half of seted timer)
    2) reboot, after it check output of "sudo lsof | grep /dev/watchdog" - if it say about systemd - all work
    3) (DONT RUN THIS ON PRODUCTION SERVERS) test with fork-bomb with and without
    P.S. - work ok on H2\H3
  2. Like
    Petrunin Alex reacted to pcconsult in X96 MAX (S905X2) with Armbian-ubuntu   
    All working now. My steps:
    1. Download from this link: Armbian_20.02.0-rc1.038_Aml-s9xxx_bullseye_current_5.5.0-rc6_desktop_20200205.img.xz
    2. Image size after extraction is 5000MB - do not extract it. If you using PC for burning image on USB drive or micro sd card, please use this program USBimager from here:
    3. Boot on X96 MAX. Insert prepared with image USB drive or memory card. From Android select UPDATE...  from applications. Select file From your /Boot/ on the bottom. Then press Update.
    4. X96 Max rebooted and you are booting Linux. Follow steps for login: user root, password 1234. Change root password. Create new user.
    5. Graphical interface - no sound, only two cores. Be happy - keep reading!
    6. Touch with mouse Application in top left corner and select Terminal Emulator. Go to /root with this command: "sudo su -" (without quotes). Enter your user password. In this directory you have two files. One of them install this armbian on internal memory and delete your android. Other file is named and after execution you have working sound card (I use it from HDMI port).
    7. If you install armbian to internal ssd on your X96 MAX follow instructions and reboot after completed execution of copy process. In terminal use command halt and detach installation device for boot from internal ssd drive.
    8. Unplug and plug power cable. Remote is not working. Linux is booting. Login as root and edit file /boot/uEnv.txt. Replace row FDT=/dtb/amlogic/meson-g12b-odroid-n2.dtb with FDT=/dtb/amlogic/meson-g12a-x96-max.dtb
    9. Save file and reboot. You have four working cores. Bluetooth is working. Firefox is not work now. Open Terminal. "sudo su -", enter your password, insert lan cable. Set network settings. After that use command apt update && apt upgrade && apt remove gcc-9 && apt install gcc-10
    10. Firefox is working
    11. Enjoy
  3. Like
    Petrunin Alex got a reaction from lanefu in FFmpeg with Cedrus H264 HW Encoder (H3 - CMOS Camera)   
    Hi all, for today this work ok on H3 (recording from webcam here)
    git clone
    git clone
    cp /root/ffmpeg_h264_H3/cedrus264.c /root/FFmpeg-Cedrus/libavcodec/cedrus264.c
    cp -R /root/ffmpeg_h264_H3/sunxi /root/FFmpeg-Cedrus/libavcodec/arm
    apt-get install libpulse-dev libv4l-dev libmp3lame-dev libx264-dev
    cd FFmpeg-Cedrus
    ./configure --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2 
    make -j 4
    make install
    ffmpeg -version
    ffmpeg -h encoder=cedrus264
    ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -pix_fmt nv12 -r 25 -c:v cedrus264 -vewait 5 -qp 30 -t 60 -f mp4 test.mp4 -y
    And you can use software-encoder, it work better then you expect. Example for slow CPU and bitrate limits
     ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -pix_fmt nv12 -r 25 -c:v libx264 -b:v 4M -maxrate 4M -bufsize 1M -preset ultrafast -t 60  -f mp4 test.mp4 -y