Orangepi 3 h6 allwiner chip


Recommended Posts

I hope I can ask here (I'm new so it won't let me post a question on the main H6 page).

 

What's the difference between the images for Orange Pi 3 and Orange Pi Lite 2?

I have both boards, downloaded both images. The Lite 2 image (Armbian_20.02.1_Orangepilite2_buster_current_5.4.20.img) works on both boards, flawlessly (well as flawlessy as Armbian and Orange Pi ever do). Both boards boot just fine with that image.

However the OPi3 does not display anything with the 3 image (Armbian_20.02.1_Orangepi3_buster_current_5.4.20.img). I can connect to the board via serial console and I can see it booting fine and I can interact with it, but it does not display anything at all.  So there's some difference between those images that prevents the OPi3 from displaying anything.

 

I haven't yet tried to boot the Lite2 with the OPi3 image, will get to that later.

Edited by Anna Vahtera
wrong filename
Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

10 minutes ago, Anna Vahtera said:

What's the difference between the images for Orange Pi 3 and Orange Pi Lite 2?

OPi3 has eMMC while OPiLite2 doesn't .

11 minutes ago, Anna Vahtera said:

So there's some difference between those images that prevents the OPi3 from displaying anything.

HDMI is working fine on my OPi3 using 5.6.0-rc3, although I don´t have "desktop" and stay at "headless".

So, maybe try another HDMI monitor ...

Link to post
Share on other sites
1 minute ago, martinayotte said:

OPi3 has eMMC while OPiLite2 doesn't .

HDMI is working fine on my OPi3 using 5.6.0-rc3, although I don´t have "desktop" and stay at "headless".

So, maybe try another HDMI monitor ...

Well, the OPi3 has the option of having an eMMC, it doesn't necessarily have it - mine doesn't. I don't even have a slot for it, just solder markers on the board. So maybe that's the problem? If the OPi3 image assumes the board has eMMC when it doesn't, and then that doesn't work?

 

It would be too weird if it was the monitor, as both the boards work well with the same monitor when booting the Lite2 image. It works on the OPi3 when booting either OPi3 Android 7 or OPi1+ Android 9. It works with RPi and Rasbian, RetroPie. I highly doubt it would be the monitor if the Lite2 image works with both boards just fine. It's just the OPi3 image that doesn't work.

 

ps. The Lite2 does not boot with the OPi3 image either, just tested. 

Link to post
Share on other sites
Quote

The Lite2 does not boot with the OPi3 image either, just tested

You need to change the dtb file

I did the same with LibreElec image, and had success only after I changed dtb file

 

Btw.

Has anyone had success with HDMI audio using 5.6 kernel?

Link to post
Share on other sites
1 hour ago, Anna Vahtera said:

If the OPi3 image assumes the board has eMMC when it doesn't, and then that doesn't work?

No, since all Allwinner's SoC has boot priority on SD.

1 hour ago, Anna Vahtera said:

It would be too weird if it was the monitor

I know it is a bit weird, but in my case, HDMI is working ...

Link to post
Share on other sites
6 hours ago, martinayotte said:

No, since all Allwinner's SoC has boot priority on SD.

I know it is a bit weird, but in my case, HDMI is working ...

Mine too, HDMI *is* working, perfectly. With Android 7/9 AND the same Armbian version with the Lite2 image - that's why I said I highly doubt it's the monitor. HDMI *is* working, it's just the OPi3 image that won't display anything. It displays everything just perfectly if I boot it with the Lite2 image (since the hardware is pretty much identical, the OPi3 just has the option for eMMC and it has more ports, that's pretty much it)

 

EDIT: Here's too captures (via serial) of the board booting:

OPi3 booting Lite2 image: https://pastebin.com/tRgtehHA (HDMI Out IS working with this image)

OPi3 booting OPi3 image: https://pastebin.com/4yig6Pd9 (HDMI Out is NOT working with this image)

 

The Lite2 has UART3 enabled, otherwise it is the same. I noted that there is a bunch of voltage info at the top which is missing from the OPi3 image. I don't know if this is relevant.

I also don't know what to make of this, but just noting that both of the boards boot well with the Lite2 image and neither of the boards boot with the OPi3 image. There's GOTTA be a difference there, it's not hardware.

 

EDIT2: Here's 'dmesg' from the two images booted on the OPi3::

Image "Lite2", Working HDMI: https://pastebin.com/gNrFBj1G

Image "OPi3", No HDMI: https://pastebin.com/MBiueDe0

Edited by Anna Vahtera
Added links to pastebin for booting captures | EDIT2: Added dmesg info
Link to post
Share on other sites

Good afternoon, tell me what to do! Armbian ceased to be sad and constantly reboots (an example in the attached file). It does not boot from a flash drive, I made it with Etcher. I don't understand much about Linux, but I can follow the step-by-step instructions. Thank you in advance.

IMG_4354.jpg

Link to post
Share on other sites
14 hours ago, maxpyeha said:

but I can follow the step-by-step instructions

 

Its always the same:

https://docs.armbian.com/User-Guide_Getting-Started/

 

14 hours ago, maxpyeha said:

tell me what to do! Armbian ceased to be sad and constantly reboots


Tell us exactly what you did. Tell us everything, perhaps make a photo of a board, SD card, cablings. Did you try different SD cards, which images, ... 

 

The picture you added, only tells something is wrong with a file system - it / SD card can't be found.

Link to post
Share on other sites

Hi , i have a Orange Pi One plus and i have some problem : 

1)video resolution stuck on 1024x768 and less colore bit instead of 1920x1080 in my TV

2)Hardware acceleration in h264 encoding , i don't know how i have to use it

3) when i try ti update kernel i got an error "test install failed"

 

Edited by andydj
Correction
Link to post
Share on other sites
15 minutes ago, andydj said:

Hi , i have a Orange Pi One plus and i have some problem : 

1)video resolution stuck on 1024x768 and less colore bit instead of 1920x1080 of May TV

2)Hardware acceleration on h264 codec , i don't know how i have to use it

 

For 1) try

 

For 2) modprobe cedrus. Everything above is beyond Armbian's part.

 

For 3) armbianmonitor -u

And complete console log from installation

Link to post
Share on other sites
1 hour ago, andydj said:

Hi , i have a Orange Pi One plus and i have some problem : 

1)video resolution stuck on 1024x768 and less colore bit instead of 1920x1080 in my TV

 


For the problem, my solution is:

1. Boot the board.
2. cd /boot
3. sudo nano armbianEnv.txt
4. Add

extraargs=video=HDMI-A-1:1920x1080@60
5. Save file.
6. sudo  mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
7. reboot

It is worked for me with Orangepi lite2.

Edited by fsb4000
Link to post
Share on other sites
16 hours ago, Werner said:

For 1) try

 

For 2) modprobe cedrus. Everything above is beyond Armbian's part.

 

For 3) armbianmonitor -u

And complete console log from installation

Many thanks to all

1)Resolution fixed to 1920x1080 , less video artifact but i have no audio and slow on youtube

2) modprobe: FATAL: Module cedrus not found in directory /lib/modules/5.4.28-sunxi64

3) http://ix.io/2jpr

Link to post
Share on other sites
6 hours ago, andydj said:

Many thanks to all

1)Resolution fixed to 1920x1080 , less video artifact but i have no audio and slow on youtube

2) modprobe: FATAL: Module cedrus not found in directory /lib/modules/5.4.28-sunxi64

3) http://ix.io/2jpr

[    4.909501] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[    4.912325] cedrus 1c0e000.video-codec: Device registered as /dev/video0

Maybe due to missing hardware acceleration. But that is another story. Maybe retry later with kernel 5.6.

Cedrus is loaded at boot it seems and therefore available.

 

Cannot find a cause why the kernel update should fail. try again and copy the full console output including the update command.

Link to post
Share on other sites
  • Igor pinned this topic
14 hours ago, Werner said:

[    4.909501] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[    4.912325] cedrus 1c0e000.video-codec: Device registered as /dev/video0

Maybe due to missing hardware acceleration. But that is another story. Maybe retry later with kernel 5.6.

Cedrus is loaded at boot it seems and therefore available.

 

 

14 hours ago, Werner said:

Cannot find a cause why the kernel update should fail. try again and copy the full console output including the update command.

 

For encoding i think i use wrong command ; i use in ffmpeg the option -c:v h264_vaapi and pix-fmt nv12 but i get error

This is the output of ffmpeg -ecoders

ffmpeg version 3.2.14-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Encoders:
 V..... = Video
 A..... = Audio
 S..... = Subtitle
 .F.... = Frame-level multithreading
 ..S... = Slice-level multithreading
 ...X.. = Codec is experimental
 ....B. = Supports draw_horiz_band
 .....D = Supports direct rendering method 1
 ------
 V..... a64multi             Multicolor charset for Commodore 64 (codec a64_multi)
 V..... a64multi5            Multicolor charset for Commodore 64, extended with 5th color (colram) (codec a64_multi5)
 V..... alias_pix            Alias/Wavefront PIX image
 V..... amv                  AMV Video
 V..... apng                 APNG (Animated Portable Network Graphics) image
 V..... asv1                 ASUS V1
 V..... asv2                 ASUS V2
 V..... avrp                 Avid 1:1 10-bit RGB Packer
 V..X.. avui                 Avid Meridien Uncompressed
 V..... ayuv                 Uncompressed packed MS 4:4:4:4
 V..... bmp                  BMP (Windows and OS/2 bitmap)
 V..... cinepak              Cinepak / CVID
 V..... cljr                 Cirrus Logic AccuPak
 V.S... vc2                  SMPTE VC-2 (codec dirac)
 V.S... dnxhd                VC3/DNxHD
 V..... dpx                  DPX (Digital Picture Exchange) image
 VFS... dvvideo              DV (Digital Video)
 V.S... ffv1                 FFmpeg video codec #1
 VF.... ffvhuff              Huffyuv FFmpeg variant
 V..... flashsv              Flash Screen Video
 V..... flashsv2             Flash Screen Video Version 2
 V..... flv                  FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)
 V..... gif                  GIF (Graphics Interchange Format)
 V..... h261                 H.261
 V..... h263                 H.263 / H.263-1996
 V.S... h263p                H.263+ / H.263-1998 / H.263 version 2
 V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
 V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
 V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
 V..... h264_vaapi           H.264/AVC (VAAPI) (codec h264)
 V..... hap                  Vidvox Hap encoder
 V..... libx265              libx265 H.265 / HEVC (codec hevc)
 V..... hevc_vaapi           H.265/HEVC (VAAPI) (codec hevc)
 VF.... huffyuv              Huffyuv / HuffYUV
 V..... jpeg2000             JPEG 2000
 VF.... libopenjpeg          OpenJPEG JPEG 2000 (codec jpeg2000)
 VF.... jpegls               JPEG-LS
 VF.... ljpeg                Lossless JPEG
 VFS... mjpeg                MJPEG (Motion JPEG)
 V..... mjpeg_vaapi          MJPEG (VAAPI) (codec mjpeg)
 V.S... mpeg1video           MPEG-1 video
 V.S... mpeg2video           MPEG-2 video
 V.S... mpeg4                MPEG-4 part 2
 V..... libxvid              libxvidcore MPEG-4 part 2 (codec mpeg4)
 V..... msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 V..... msmpeg4              MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)
 V..... msvideo1             Microsoft Video-1
 V..... pam                  PAM (Portable AnyMap) image
 V..... pbm                  PBM (Portable BitMap) image
 V..... pcx                  PC Paintbrush PCX image
 V..... pgm                  PGM (Portable GrayMap) image
 V..... pgmyuv               PGMYUV (Portable GrayMap YUV) image
 VF.... png                  PNG (Portable Network Graphics) image
 V..... ppm                  PPM (Portable PixelMap) image
 VF.... prores               Apple ProRes
 VF.... prores_aw            Apple ProRes (codec prores)
 V.S... prores_ks            Apple ProRes (iCodec Pro) (codec prores)
 V..... qtrle                QuickTime Animation (RLE) video
 V..... r10k                 AJA Kona 10-bit RGB Codec
 V..... r210                 Uncompressed RGB 10-bit
 V..... rawvideo             raw video
 V..... roqvideo             id RoQ video (codec roq)
 V..... rv10                 RealVideo 1.0
 V..... rv20                 RealVideo 2.0
 V..... sgi                  SGI image
 V..... snow                 Snow
 V..... sunrast              Sun Rasterfile image
 V..... svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 V..... targa                Truevision Targa image
 V..... libtheora            libtheora Theora (codec theora)
 VF.... tiff                 TIFF image
 VF.... utvideo              Ut Video
 V..... v210                 Uncompressed 4:2:2 10-bit
 V..... v308                 Uncompressed packed 4:4:4
 V..... v408                 Uncompressed packed QT 4:4:4:4
 V..... v410                 Uncompressed 4:4:4 10-bit
 V..... libvpx               libvpx VP8 (codec vp8)
 V..... libvpx-vp9           libvpx VP9 (codec vp9)
 V..... libwebp_anim         libwebp WebP image (codec webp)
 V..... libwebp              libwebp WebP image (codec webp)
 V..... wmv1                 Windows Media Video 7
 V..... wmv2                 Windows Media Video 8
 V..... wrapped_avframe      AVFrame to AVPacket passthrough
 V..... xbm                  XBM (X BitMap) image
 V..... xface                X-face image
 V..... xwd                  XWD (X Window Dump) image
 V..... y41p                 Uncompressed YUV 4:1:1 12-bit
 V..... yuv4                 Uncompressed packed 4:2:0
 VF.... zlib                 LCL (LossLess Codec Library) ZLIB
 V..... zmbv                 Zip Motion Blocks Video
 A..... aac                  AAC (Advanced Audio Coding)
 A..... ac3                  ATSC A/52A (AC-3)
 A..... ac3_fixed            ATSC A/52A (AC-3) (codec ac3)
 A..... adpcm_adx            SEGA CRI ADX ADPCM
 A..... g722                 G.722 ADPCM (codec adpcm_g722)
 A..... g726                 G.726 ADPCM (codec adpcm_g726)
 A..... adpcm_ima_qt         ADPCM IMA QuickTime
 A..... adpcm_ima_wav        ADPCM IMA WAV
 A..... adpcm_ms             ADPCM Microsoft
 A..... adpcm_swf            ADPCM Shockwave Flash
 A..... adpcm_yamaha         ADPCM Yamaha
 A..... alac                 ALAC (Apple Lossless Audio Codec)
 A..... comfortnoise         RFC 3389 comfort noise generator
 A..X.. dca                  DCA (DTS Coherent Acoustics) (codec dts)
 A..... eac3                 ATSC A/52 E-AC-3
 A..... flac                 FLAC (Free Lossless Audio Codec)
 A..... g723_1               G.723.1
 A..... libgsm               libgsm GSM (codec gsm)
 A..... libgsm_ms            libgsm GSM Microsoft variant (codec gsm_ms)
 A..X.. mlp                  MLP (Meridian Lossless Packing)
 A..... mp2                  MP2 (MPEG audio layer 2)
 A..... mp2fixed             MP2 fixed point (MPEG audio layer 2) (codec mp2)
 A..... libtwolame           libtwolame MP2 (MPEG audio layer 2) (codec mp2)
 A..... libmp3lame           libmp3lame MP3 (MPEG audio layer 3) (codec mp3)
 A..... libshine             libshine MP3 (MPEG audio layer 3) (codec mp3)
 A..... nellymoser           Nellymoser Asao
 A..... libopus              libopus Opus (codec opus)
 A..... pcm_alaw             PCM A-law / G.711 A-law
 A..... pcm_f32be            PCM 32-bit floating point big-endian
 A..... pcm_f32le            PCM 32-bit floating point little-endian
 A..... pcm_f64be            PCM 64-bit floating point big-endian
 A..... pcm_f64le            PCM 64-bit floating point little-endian
 A..... pcm_mulaw            PCM mu-law / G.711 mu-law
 A..... pcm_s16be            PCM signed 16-bit big-endian
 A..... pcm_s16be_planar     PCM signed 16-bit big-endian planar
 A..... pcm_s16le            PCM signed 16-bit little-endian
 A..... pcm_s16le_planar     PCM signed 16-bit little-endian planar
 A..... pcm_s24be            PCM signed 24-bit big-endian
 A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
 A..... pcm_s24le            PCM signed 24-bit little-endian
 A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
 A..... pcm_s32be            PCM signed 32-bit big-endian
 A..... pcm_s32le            PCM signed 32-bit little-endian
 A..... pcm_s32le_planar     PCM signed 32-bit little-endian planar
 A..... pcm_s64be            PCM signed 64-bit big-endian
 A..... pcm_s64le            PCM signed 64-bit little-endian
 A..... pcm_s8               PCM signed 8-bit
 A..... pcm_s8_planar        PCM signed 8-bit planar
 A..... pcm_u16be            PCM unsigned 16-bit big-endian
 A..... pcm_u16le            PCM unsigned 16-bit little-endian
 A..... pcm_u24be            PCM unsigned 24-bit big-endian
 A..... pcm_u24le            PCM unsigned 24-bit little-endian
 A..... pcm_u32be            PCM unsigned 32-bit big-endian
 A..... pcm_u32le            PCM unsigned 32-bit little-endian
 A..... pcm_u8               PCM unsigned 8-bit
 A..... real_144             RealAudio 1.0 (14.4K) (codec ra_144)
 A..... roq_dpcm             id RoQ DPCM
 A..X.. s302m                SMPTE 302M
 A..X.. sonic                Sonic
 A..X.. sonicls              Sonic lossless
 A..... libspeex             libspeex Speex (codec speex)
 A..X.. truehd               TrueHD
 A..... tta                  TTA (True Audio)
 A..X.. vorbis               Vorbis
 A..... libvorbis            libvorbis (codec vorbis)
 A..... wavpack              WavPack
 A..... libwavpack            (codec wavpack)
 A..... wmav1                Windows Media Audio 1
 A..... wmav2                Windows Media Audio 2
 S..... ssa                  ASS (Advanced SubStation Alpha) subtitle (codec ass)
 S..... ass                  ASS (Advanced SubStation Alpha) subtitle
 S..... dvbsub               DVB subtitles (codec dvb_subtitle)
 S..... dvdsub               DVD subtitles (codec dvd_subtitle)
 S..... mov_text             3GPP Timed Text subtitle
 S..... srt                  SubRip subtitle (codec subrip)
 S..... subrip               SubRip subtitle
 S..... text                 Raw text subtitle
 S..... webvtt               WebVTT subtitle
 S..... xsub                 DivX subtitles (XSUB)

What can i do to captere the console output ? I'm trying to update kernel from armbian-config from my user with sudo or directly from user root

 

Link to post
Share on other sites
8 hours ago, andydj said:

What can i do to captere the console output ? I'm trying to update kernel from armbian-config from my user with sudo or directly from user root

 

Good question, I do not use this tool much :D

You could try to execute it this way: bash -x armbian-config

This will get a bit spammy but might help to track it down. For the output you could use a service like https://paste.debian.net/

Link to post
Share on other sites
3 hours ago, Werner said:

Hm nothing spectacular...I guess the 2nd paste is this mentioned log file? "Test install failed. Can't change firmware[12;18HCheck /tmp/switch_kernel.log"

Switched to nightly and kernel update , now remain hdmiaudio and h264 encoding

Link to post
Share on other sites

Do you need special VAAPI or VDPAU packages for decoding/encoding or has that been upstreamed? Sunxi-linux wiki mentions libvdpau-cedrus but that package is not available on Armbian.

 

I have yet to try video decoding but as far as I'm aware LibreELEC has cedrus fully working, does that use VDPAU?

Link to post
Share on other sites

Ubuntu Bionic, kernel 5.6.5 #trunk.120 not detect of UAS JMicron (USB ID 152d:0561). I use two controllers for NAS and both dissapearing. After reverting to kernel #trunk.111 all is working. Tested two times, there is something weird, JMicron is not detected on second (and next) boot on kernel #trunk.120. Also, when changed kernel to #trunk.111 JMicron is correctly detected on second boot also.

Link to post
Share on other sites

More to above. Problem is after every reboot, JMicron is not detected. But when Bionic is cold booted JMicron's detecting is OK.

Tested on kernel 5.6.8 #trunk.120 and #trunk.122. After reverting to "good" 5.6.5 #trunk.111 must be also cold booted to detect JMicron, then UAS is properly detected after each reboot.

Link to post
Share on other sites

The trunk.111 must have been built around April 22th. Though besides upstream patches I do not think there were any relevant changes at the sunxi-dev branch.

Did you try to put usbstorage quirks on your Jmicron? UAS is known for issues...

Link to post
Share on other sites

Werner, thank you for suggestion. I checked usb-storage but no luck, same result like uas. I'm starting to think if this is something with voltage control on USB lines? Or stuck USB state when reboot and not reset properly? Both JMicron's controllers have own power supply, so normal reboot not cut them off. When cold booted, I turn off entire power strip with connected powers to OPi3, both JMicron's and external fan.  

Link to post
Share on other sites

I made more checking of latest kernels. Last non-problematic compiled kernel was 5.6.5 trunk.117. First problematic was 5.6.5 trunk.118. DTB files are same for both. So there must be something new in 118 or something with kernel's config. Is there a changelog for kernel trunks?

Link to post
Share on other sites
14 hours ago, dziobak said:

So there must be something new in 118 or something with kernel's config. Is there a changelog for kernel trunks?


Each kernel has its config packed inside deb file. Its location is /boot /config-* ... if you will do comparisons. Nightly kernels and images are regularly purged. We don't keep a lot of historical versions. Not at this moment.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...