Do you mean this? https://source.denx.de/u-boot/custodi…ot.dtsi#L32-L36
Also, are you testing boot from an SD card or the eMMC module?
Exactly. I booted from SD card.
Do you mean this? https://source.denx.de/u-boot/custodi…ot.dtsi#L32-L36
Also, are you testing boot from an SD card or the eMMC module?
Exactly. I booted from SD card.
QuoteNanoPi-K2 is the one GXBB device that I don't have so it's untested from a boot perspective (but should work the same as any other GXBB board). Feedback is welcome.
Hello Chewitt,
Finally I found time to do a test on NanoPi-K2. Applying the same u-boot patch as for the Odroid-C2 (eth0 delay) works fine for me.
I also have an Onkyo TX-NR626 connected to an Tanix TX6 with Allwinner H6. For me it works out of the box:
Code Display More2022-01-02 15:42:11.156 T:691 WARNING <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail 2022-01-02 15:42:11.156 T:691 INFO <general>: Found 2 Lists of Devices 2022-01-02 15:42:11.156 T:691 INFO <general>: Enumerated ALSA devices: 2022-01-02 15:42:11.156 T:691 INFO <general>: Device 1 2022-01-02 15:42:11.156 T:691 INFO <general>: m_deviceName : default 2022-01-02 15:42:11.156 T:691 INFO <general>: m_displayName : Default (allwinner-hdmi 5091000.i2s-i2s-hifi i2s-hifi-0) 2022-01-02 15:42:11.156 T:691 INFO <general>: m_displayNameExtra: 2022-01-02 15:42:11.156 T:691 INFO <general>: m_deviceType : AE_DEVTYPE_PCM 2022-01-02 15:42:11.156 T:691 INFO <general>: m_channels : FL, FR, LFE, UNKNOWN1, FC, BC, BL, BR, BLOC, BROC, FLOC, FROC 2022-01-02 15:42:11.156 T:691 INFO <general>: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000 2022-01-02 15:42:11.157 T:691 INFO <general>: m_dataFormats : AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE 2022-01-02 15:42:11.157 T:691 INFO <general>: m_streamTypes : No passthrough capabilities 2022-01-02 15:42:11.157 T:691 INFO <general>: Device 2 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceName : sysdefault:CARD=allwinnerhdmi 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayName : allwinner-hdmi 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayNameExtra: 5091000.i2s-i2s-hifi i2s-hifi-0 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceType : AE_DEVTYPE_PCM 2022-01-02 15:42:11.157 T:691 INFO <general>: m_channels : FL, FR, LFE, UNKNOWN1, FC, BC, BL, BR, BLOC, BROC, FLOC, FROC 2022-01-02 15:42:11.157 T:691 INFO <general>: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000 2022-01-02 15:42:11.157 T:691 INFO <general>: m_dataFormats : AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE 2022-01-02 15:42:11.157 T:691 INFO <general>: m_streamTypes : No passthrough capabilities 2022-01-02 15:42:11.157 T:691 INFO <general>: Device 3 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceName : hdmi:CARD=allwinnerhdmi,DEV=0 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayName : allwinner-hdmi 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayNameExtra: ONK TX-NR626 on HDMI 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceType : AE_DEVTYPE_HDMI 2022-01-02 15:42:11.157 T:691 INFO <general>: m_channels : FL, FR, LFE, FC, BL, BR, BLOC, BROC 2022-01-02 15:42:11.157 T:691 INFO <general>: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000 2022-01-02 15:42:11.157 T:691 INFO <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW 2022-01-02 15:42:11.157 T:691 INFO <general>: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_MA,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD 2022-01-02 15:42:11.157 T:691 INFO <general>: Enumerated PULSE devices: 2022-01-02 15:42:11.157 T:691 INFO <general>: Device 1 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceName : Default 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayName : Default 2022-01-02 15:42:11.157 T:691 INFO <general>: m_displayNameExtra: Bluetooth Audio (PULSEAUDIO) 2022-01-02 15:42:11.157 T:691 INFO <general>: m_deviceType : AE_DEVTYPE_PCM 2022-01-02 15:42:11.157 T:691 INFO <general>: m_channels : FL, FR 2022-01-02 15:42:11.157 T:691 INFO <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000 2022-01-02 15:42:11.157 T:691 INFO <general>: m_dataFormats : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT 2022-01-02 15:42:11.157 T:691 INFO <general>: m_streamTypes : No passthrough capabilities 2022-01-02 15:42:11.157 T:692 INFO <general>: CActiveAESink::OpenSink - initialize sink 2022-01-02 15:42:11.157 T:692 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=allwinnerhdmi,DEV=0" 2022-01-02 15:42:11.162 T:692 INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=allwinnerhdmi,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00" 2022-01-02 15:42:11.163 T:692 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats 2022-01-02 15:42:11.163 T:692 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
I use the VP9 test image and playing movies, music and Youtube all works well. But I remember that I once had problems with Onkyo and HDMI and resolved it with a new HDMI cable.
Thank you. Changing the HDMI cable: same as before. But I have a Q6+ TV-Box. Built the latest custom image and... it works! So I build more images with following results:
R40 (BananaPi): no sound
H3 (Libretech ALL-H3): no sound
H5 (Libretech ALL-H5): no sound and no picture (Reminder: Only over Onkyo Receiver)´
H6 (OrangePi 3): working, even passthrough working.
This leaves me puzzled. Maybe only *.dtb issue? Next step maybe trying Armbian...
With newly flashed SD-card sound works fine on TV. Connected to my AV-Receiver (Onkyo TX-NR626) after booting: On surface there is a click every now and then, but HDMI and sound indicators flashing (handshake problem?). Playing video no sound at all. This affects all Allwinner chips, H3, H5, H6 and R40. I tried several options (Sound always on, fixed samplerate to 44.1 kHz...) but no change at all.
Kodi log (ALSA):
CAESinkALSA::Initialize - Opened device "hdmi:CARD=allwinnerhdmi,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
CAESinkALSA::InitializeHW - Unable to open the required number of channels
CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
(the same with other devices)
Any suggestions?
I tried to run the system on rk3399-roc-pc, but it stopped when it reached "Starting kernel ...".
I also had troubles getting this to work. My working SD: LibreELEC from 20210429. Also I burned a brand new SD-Card. In extlinux.conf replace rk3399-roc-pc with rk3399-roc-pc-mezzanine (if under windows you musn't use standard editor, please use notepad++ or something equivalent). I hope it will work for you...
Did a little bit of testing over Easter. As far as I can tell, the Linux part is working, but on the dtb side there seems to be some patching to do. My testings (Images from yesterday):
ROC-RK3399-PC: Booting. Libreelec Logo, Resizing ok. Reboot: Libreelec Logo...and nothing. (See attached File)
NanoPC-T4: everything's fine
Nanopi-M4V2: Bootloop, as I had in 9.2 until rk3399-nanopi-m4v2 was available.
Khadas Edge-V: Booting and starting. Ethernet took long to configure and leads to adress 169.xxx.xxx.xxx => no ethernet. Wifi fine.
RockPro64: After removing emmc everything's fine.
Rockpi 4: Everything's fine.
Quote from balbes150Try the latest version image 20191008. Preferably with UART output.
Hello balbes150,
Nanopi-K2 booting again.
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
no sdio debug board detected
TE: 317760
BL2 Built : 12:06:06, Jun 13 2016.
gxb g176ecdb - laiyin.mo@droid12-sz
set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 8
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 792MHz
DDR0: 2048MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK.
Run bl30...
Load bl31 from SD, src: 0x00020200, des: 0x101000[00, size: 0x00013140
Image: gxb_v1.1.3134-b387442 2016-06-16 14:48:44 yun.cai@droid06]
OPS=0x13
f0 8c d5 21 23 9f ab d1 5e e4 dd 45 [0.413206 Inits done]
secure task start!
high task start!
low task start!
Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0007c300
NOTICE: BL3-1: v1.0(debug):c813a61
NOTICE: BL3-1: Built : 14:47:05, Jun 16 2016
INFO: BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR: Error initializing runtime service opteed_fast
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9
U-Boot 2019.07 (Oct 08 2019 - 15:37:28 +0300) nanopi-k2
Model: Unknown
Soc: Amlogic Meson GXBB (S905) Revision 1f:c (13:1)
DRAM: 2 GiB
MMC: mmc@70000: 0, mmc@72000: 1
In: serial@4c0
Out: serial@4c0
Err: serial@4c0
Net:
Warning: ethernet@c9410000 (eth0) using random MAC address - 42:a2:51:d6:ad:8a
eth0: ethernet@c9410000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
161 bytes read in 5 ms (31.3 KiB/s)
1: LibreELEC
Retrieving file: /KERNEL
17723400 bytes read in 856 ms (19.7 MiB/s)
append: boot=LABEL=LIBREELEC disk=LABEL=STORAGE quiet console=ttyAML0,115200n8 console=tty0
Retrieving file: /dtb/meson-gxbb-nanopi-k2.dtb
27379 bytes read in 6 ms (4.4 MiB/s)
## Flattened Device Tree blob at 08008000
Booting using the fdt blob at 0x8008000
Loading Device Tree to 000000007df58000, end 000000007df61af2 ... OK
Starting kernel ...
[ 0.146241] debugfs: Directory 'c1105400.audio' with parent 'regmap' already present!
Quote from balbes150To check the reasons I don't post the image for nanopi-k2. Can you specify the exact version of the image (full name) that runs from the SD card ?
I don't test every single Version. Last build that was booting: LibreELEC-AMLGX.arm-9.80-devel-20190821172816-07b919f-nanopi-k2.img.
Hello Balbes150,
Both Images for Nanopi-K2 won't boot on freshly burned SD: 20191010 and 20190911.
Quote from patrickkfkanWhen you say Kodi crashes, does it simply show an error message or does it reboot? In my case, it reboots and my Kodi crash log also has those lines you quoted but goes further than that:
Sorry, I misunderstood. Yes, Kodi will restart (here was my mistake, reading reboot means for me rebooting LibreELEC).
Quote from patrickkfkan
Since you have this board, could you verify #5 as well? If you have a Netflix account you can also test (and most likely get the same results) with the Netflix Add-On. Thanks!
Since I don't have a Netflix account i tried it with Amazon prime. I can confirm that Kodi crashes. Kodi Crash Log is available, but maybe you will find this useful (from Kodi.old.log):
2019-09-07 06:51:46.618 T:4045398896 NOTICE: Creating InputStream
2019-09-07 06:51:46.691 T:4045398896 ERROR: GetDirectory - Error getting /usr/lib/kodi/addons/inputstream.adaptive/
Hello Balbes150,
Burning Nanopi-K2 20190902 Image to SD-Card won't boot again. Updating 20190821 Image is ok.
Quote from balbes150The new version of the LE images 20190820.
Hi,
just wanted to test new Image on nanopi-k2. As for older Images (since June) Nanopi won't boot. Unfortunately my Computer crashed, so I am not able to do an update from May Image (not longer on my Computer or yandex). Is it possible to upload an May Image (before 16.05) on yandex, so that I can make further Tests with update Images? Thanks for your kindness.
Quote from balbes150Can you show UART log ?
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:1;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:2;EMMC:800;NAND:81;SD:0;READ:0;CHK:F3;USB:8;LOOP:3;EMMC:8;
Quote from balbes150
I temporarily stopped building aarch64. What exact version of the image was used ?
I did a git pull today on your amlogic-master branch. Compiling (ARCH=arm) leads to the same result as above.
Hello Balbes150,
For Nanopi-K2 Building u-boot.bin (U-Boot? fip?) seems to be broken. LibreELEC does not boot from a freshly burned sd-card (Monitoring U-Boot via minicom: U-Boot bin loaded and halt)., but update from a working Card (from 26.05) will boot (branch amlogic-master).
Now the bad News (build aarch64 amlogic-master):
- TV (pvr.vdr.vnsi from branch amlogic master): leads to reboot (w/o HW-accerleration: playing with stutters)
- Video Playback: leads to reboot (w/o HW-accerleration: ok)
- Music Playback via UPNP: ok
- installing addon (weather yahoo): ok
All in all LibreELEC "feels" slower, maybe depending on LAN?
Hi Balbes150,
did a quick check for Nanopi-K2:
booting: ok
config: ok
Ethernet: ok; no WiFi (no driver, I assume)
edit advancedsetting.xml + Passwords.xml; reboot : ok, everything noticed.
installed pvr.vnsiserver: test HD: ok; SD ok (after setting aspect ratio to 16:9 manually)
Video H264 1980x1080p: ok
Video H264 720x576i self-encoded ok, downloaded: for a few seconds picture and sound are far too quick (picture quicker than sound). This leads to Audio/Video async. Another test with h/w acceleration disabled: sound ok, no picture, just plain white screen.
Video at all times: skipping for- / backwards leads mostly into crash (Kodi.log.old: ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true).
That's for now. If you need futher information, let me know.