Jump to content

Orange Pi3 lts


igorh

Recommended Posts

Только что, Ukhellfire сказал:

No way!!! So moving over to i2c fixed the boot completely??? That's it?

 

Yes without axp chip - regulators not working - many devices not working - enable debugging - this is first stage what you loose..

Without - this is finger to the sky :)

Link to comment
Share on other sites

4 minutes ago, sekil said:

 

Yes without axp chip - regulators not working - many devices not working - enable debugging - this is first stage what you loose..

Without - this is finger to the sky :)

Oh I will be! Thank you!

Finally getting somewhere! Maybe I can push to armbian at some point soon! 

Link to comment
Share on other sites

3 минуты назад, Ukhellfire сказал:

Maybe I can push to armbian at some point soon! 

 

Yes please push all needed commits to armbian for lts version:

 

1. uwe5622

2. r_i2c

3. ac200 audio codec

4. yt8531c 

5. sunxi-addr driver

6. dump_reg and sunxi-sysinfo drivers

7. sunxi_get_soc_chipid() and sunxi_get_serial

 

:)

 

But while testing linux with 5.16 orangepi kernel - xfce and mate desktops crashing related to panfrost driver (((

Maybe lxde better for panfrost..

Link to comment
Share on other sites

1 hour ago, sekil said:

 

Yes please push all needed commits to armbian for lts version:

 

1. uwe5622

2. r_i2c

3. ac200 audio codec

4. yt8531c 

5. sunxi-addr driver

6. dump_reg and sunxi-sysinfo drivers

7. sunxi_get_soc_chipid() and sunxi_get_serial

 

:)

 

But while testing linux with 5.16 orangepi kernel - xfce and mate desktops crashing related to panfrost driver (((

Maybe lxde better for panfrost..

I believe there is a workaround for panfrost. I'll look I to this... is it the constant error your getting? Looping?

 

https://github.com/orangepi-xunlong/u-boot-orangepi/commit/11f8b71080f8311264ec7098f0be7c0b9ea459b7

 

Not sure if this is the right fix?

 

I'll be tidying my repos up, and pushing all the commits once I've had a few people confirm it boots etc...

 

I'm running a build now with all my patches, and the i2c config. Without panfrost though 😞

Link to comment
Share on other sites

7 минут назад, Ukhellfire сказал:

Yeah it is. Bur surely it can be adapted

 

Never - h616 have different gpu different cpu regs and different bugs - so no...

Errors - 

[  121.584328] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x715ec00, tail=0x715ec00
[  121.635491] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x715de00, tail=0x715de00
[  121.637797] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x71724c0, tail=0x71724c0
[  181.666563] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x7171280, tail=0x7171280
[  181.687731] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x7173bc0, tail=0x7173bc0
[  241.728792] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x7172900, tail=0x7172900
[  241.744175] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x711f8c0, tail=0x711f8c0
[  241.750813] panfrost 1800000.gpu: js fault, js=0, status=INSTR_INVALID_PC, head=0x7172f00, tail=0x7172f00
 

Link to comment
Share on other sites

10 hours ago, Ukhellfire said:

So guys... 

Who fancies a test??

 

https://drive.google.com/file/d/1NAFxJAj9CgHNkrPICbQIKsLXZhutQbCo/view?usp=drivesdk

 

This is a bit of a dirty build with the above mentioned fix in place. 

@Kamileon @orangepifan @Rockford the Roe

It works! Nice work. Ethernet and wifi work. Only tested for a few minutes but no problems at this point.

Link to comment
Share on other sites

4 hours ago, amaethon said:

It works! Nice work. Ethernet and wifi work. Only tested for a few minutes but no problems at this point.

Good news! Would be interesting to see if anything arises! 

 

3 hours ago, Rockford the Roe said:

Happy to say that I'm posting this via my pi!qmzYsoR.png

We're finally getting somewhere! Good to see! 

59 minutes ago, sekil said:

Yes working desktop, but ac200 codec not working - maybe you loose config in kernel for acx00 chip?

This means it's never been working on my build. It's not something I've tested. Wanted to get it at least booting! Haha! With a stable I ternet connection. Think this is the most important!

There's more configs that I need to ad to the build directory to enable the sound...

I'll get this all merged and run another build off and upload! 

 

I'll keep everyone posted! 

Link to comment
Share on other sites

Boots on my end also :) Ethernet works

 

                                 root@orangepi3-lts
                                 ------------------
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (22.05.0-trunk) aarch64
     ███████████████████████     Host: OrangePi 3 LTS
   ▄▄██                   ██▄▄   Kernel: 5.15.32-sunxi64
   ▄▄██    ███████████    ██▄▄   Uptime: 3 mins
   ▄▄██   ██         ██   ██▄▄   Packages: 1315 (dpkg)
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.0.17
   ▄▄██   ██         ██   ██▄▄   Resolution: 3840x2160
   ▄▄██   █████████████   ██▄▄   Terminal: /dev/pts/0
   ▄▄██   ██         ██   ██▄▄   CPU: (4) @ 1.800GHz
   ▄▄██   ██         ██   ██▄▄   Memory: 172MiB / 1989MiB
   ▄▄██   ██         ██   ██▄▄
   ▄▄██                   ██▄▄                           
     ███████████████████████                             
      █ █ █ █ █ █ █ █ █ █ █

 

Link to comment
Share on other sites

4 hours ago, Kamileon said:

Boots on my end also :) Ethernet works

 

                                 root@orangepi3-lts
                                 ------------------
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (22.05.0-trunk) aarch64
     ███████████████████████     Host: OrangePi 3 LTS
   ▄▄██                   ██▄▄   Kernel: 5.15.32-sunxi64
   ▄▄██    ███████████    ██▄▄   Uptime: 3 mins
   ▄▄██   ██         ██   ██▄▄   Packages: 1315 (dpkg)
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.0.17
   ▄▄██   ██         ██   ██▄▄   Resolution: 3840x2160
   ▄▄██   █████████████   ██▄▄   Terminal: /dev/pts/0
   ▄▄██   ██         ██   ██▄▄   CPU: (4) @ 1.800GHz
   ▄▄██   ██         ██   ██▄▄   Memory: 172MiB / 1989MiB
   ▄▄██   ██         ██   ██▄▄
   ▄▄██                   ██▄▄                           
     ███████████████████████                             
      █ █ █ █ █ █ █ █ █ █ █

 

I'm so glad to be hearing all these positive things! Been a long time coming! Haha!

 

Well sorry to say guys, but another new build!

This time ( @sekil), hopefully with working sound! Audio jack that is. 

Please note, I haven't tested this build myself. Having a bit of a chilled day today with the family. I'll be doing more later tonight and tomorrow! 

 

https://drive.google.com/file/d/1ht9CnWaoTUTx4btbVgFPZrFeiZTVbl3J/view?usp=drivesdk

 

Once this has been tested, and I can safely say everyone is happy, I'll push my changes to armbian for everyone else to use! 

At the moment, I don't think bluetooth is working? It crashes when you try turning it on. 

This I believe to be low priority at the moment. But once things are stable, I'll look into these lower end bugs. Very probably just a config issue or something. Never know! 

Link to comment
Share on other sites

28 минут назад, Ukhellfire сказал:

hopefully with working sound!

Im not testing new build but Im think no :(

Im trying with proper kernel config - mfd ac200 running but codec - no.. no logs in dmesg about codec. Very strange ((

 

What changes you made in new build - only config?

Link to comment
Share on other sites

1 hour ago, sekil said:

Im not testing new build but Im think no :(

Im trying with proper kernel config - mfd ac200 running but codec - no.. no logs in dmesg about codec. Very strange ((

 

What changes you made in new build - only config?

Ironically I've enabled the codec and added a whole load of configs for it! So fingers crossed it's sorted! I only ever just enabled the build for opi3 lts in the build. Only now have I enabled the audio...

Link to comment
Share on other sites

2 hours ago, Ukhellfire said:

This time ( @sekil), hopefully with working sound! Audio jack that is.

Audio from Jack output works for me :) did speaker-test

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default:CARD=allwinnerac200c
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Default Audio Device
sysdefault:CARD=allwinnerac200c
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Default Audio Device
dmix:CARD=allwinnerac200c,DEV=0
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Direct sample mixing device
dsnoop:CARD=allwinnerac200c,DEV=0
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Direct sample snooping device
hw:CARD=allwinnerac200c,DEV=0
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Direct hardware device without any conversions
plughw:CARD=allwinnerac200c,DEV=0
    allwinner,ac200-codec, 508f000.i2s-acx00-dai acx00-codec-0
    Hardware device with all software conversions
usbstream:CARD=allwinnerac200c
    allwinner,ac200-codec
    USB Stream Output
default:CARD=sun9ihdmi
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Default Audio Device
sysdefault:CARD=sun9ihdmi
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Default Audio Device
dmix:CARD=sun9ihdmi,DEV=0
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Direct sample mixing device
dsnoop:CARD=sun9ihdmi,DEV=0
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Direct sample snooping device
hw:CARD=sun9ihdmi,DEV=0
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Direct hardware device without any conversions
plughw:CARD=sun9ihdmi,DEV=0
    sun9i-hdmi, SUN9I-HDMI PCM i2s-hifi-0
    Hardware device with all software conversions
usbstream:CARD=sun9ihdmi
    sun9i-hdmi
    USB Stream Output
root@orangepi3-lts:~# speaker-test

speaker-test 1.2.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 256 to 262144
Period size range from 128 to 32768
Using max buffer size 262144
Periods = 4
was set period_size = 32768
was set buffer_size = 262144
 0 - Front Left
Time per period = 2.740674
 0 - Front Left
Time per period = 2.757094
 0 - Front Left
Time per period = 2.740576

 

Link to comment
Share on other sites

2 hours ago, sekil said:

Great! Im install it and using :)

 

Yes i'm tst and codec working! 

Good :)

Good to hear! We got there! Well I guess I'll submit a pull request now then!

Then I'll look into the Bluetooth! It crashes everytime you try turn it on. Haven't looked at logs or anything yet though, so haven't got a clue what's going on! 

And at some point, look into the panfrost issue!

 

DONE!

https://github.com/armbian/build/pull/3628

Link to comment
Share on other sites

@Ukhellfire Hi, thanks for your hard work. About bluetooth in orange pi firmware repository they use ini files for bluetooth configuration. But in armbian firmware files I couldn't find that configuration files. Maybe problem it is. 

 

Orange pi firmware: https://github.com/orangepi-xunlong/firmware bt_configure_pskey.ini, bt_configure_rf.ini.

Armbian firmware: https://github.com/armbian/firmware

 

Also I know orange pi zero 2 using same wifi-bt chip and armbian support orange pi zero2.

 

But I don't know how to connect these dots because I don't fully understand the firmware logic. Maybe it helps.

Link to comment
Share on other sites

And I tested your armbian-build repository with orangepi 3 lts:

Here the dmesg output (I attached full dmesg output.):

$ dmesg | grep "WCN"

 

Spoiler

[    5.719903] WCN: marlin_init entry!
[    5.720466] WCN: wcn config bt wake host
[    5.720738] WCN_ERR: dts node for bt_wake not found
[    5.720743] WCN: marlin2 parse_dt some para not config
[    5.726542] WCN: marlin_probe ok!
[    5.745541] WCN: marlin power state:0, subsys: [MARLIN_BLUETOOTH] power 0
[    5.866430] WCN: start_marlin [MARLIN_WIFI]
[    5.866455] WCN: marlin power state:0, subsys: [MARLIN_WIFI] power 1
[    5.866462] WCN: the first power on start
[    5.973497] WCN: marlin chip en dummy pull up -- need manually set GPIO 
[    6.001836] WCN: marlin_scan_finish!
[    6.001974] WCN: then marlin start to download
[    6.002190] WCN: marlin_get_wcn_chipid: chipid: 0x2355b001
[    6.002202] WCN: marlin_request_firmware from /lib/firmware/wcnmodem.bin start!
[    6.855652] WCN: combin_img 0 marlin_firmware_write finish and successful
[    6.855945] WCN: marlin_start_run read reset reg val:0x1
[    6.855952] WCN: after do marlin_start_run reset reg val:0x0
[    6.856119] WCN: s_marlin_bootup_time=6856119014
[    6.861907] WCN: clock mode: TSX
[    6.862252] WCN: marlin_write_cali_data sync init_state:0x7923f405
[    6.889800] WCN: marlin_write_cali_data sync init_state:0x7923f405
[    6.919142] WCN: marlin_write_cali_data sync init_state:0xf0f0f0f1
[    6.919173] WCN: sdio_config bt_wake_host trigger:[high]
[    6.919177] WCN: sdio_config irq:[inband]
[    6.919180] WCN: sdio_config wake_host_level_duration_time:[20ms]
[    6.919185] WCN: sdio_config wake_host_data_separation:[bt/wifi reuse]
[    6.919188] WCN: marlin_send_sdio_config_to_cp sdio_config:0x80f01 (enable config)
[    6.919617] WCN: marlin_write_cali_data finish
[    6.919865] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[    6.945833] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[    6.973847] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[    7.002644] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[    7.029731] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0
[    7.057746] WCN: check_cp_ready sync val:0xf0f0f0f6, prj_type val:0x0
[    7.057772] WCN: marlin_bind_verify confuse data: 0xcfe38251b04db73419dc5cae40581e72
[    7.057790] WCN: marlin_bind_verify verify data: 0x1ed7454972563e2294bc7cf590020acc
[    7.058307] WCN: check_cp_ready sync val:0xf0f0f0f7, prj_type val:0x0
[    7.085749] WCN: check_cp_ready sync val:0xf0f0f0ff, prj_type val:0x0
[    7.092404] WCN: get_cp2_version entry!
[    7.134884] WCN: WCND at cmd read:WCN_VER:Platform Version:MARLIN3_19B_W20.37.4~Project Version:sc2355_marlin3_lite_ott~09-11-2020 21:27:32~
[    7.134920] WCN: switch_cp2_log - close entry!
[    7.136147] WCN: WCND at cmd read:OK
[    7.136197] WCN: then marlin download finished and run ok
[    7.136212] WCN: start_loopcheck
[    7.136222] WCN: marlin power state:4, subsys: [MARLIN_BLUETOOTH] power 0
[    7.136233] WCN: can not power off, other module is on
[    7.169655] WCN: get_board_ant_num [one_ant]
 

 

As you can see there is an error about bluetooth.

 

dmesg.txt

Edited by Eemeien
added last sentence
Link to comment
Share on other sites

47 minutes ago, Eemeien said:

And I tested your armbian-build repository with orangepi 3 lts:

Here the dmesg output (I attached full dmesg output.):

$ dmesg | grep "WCN"

 

There's actuslly a second branch for the bt-fix. It is something I'm working on slowly. Didn't notice the config firmware files though! Thank you'll I'll have a play with those!

Link to comment
Share on other sites

23 minutes ago, Ukhellfire said:

 

There's actuslly a second branch for the bt-fix. It is something I'm working on slowly. Didn't notice the config firmware files though! Thank you'll I'll have a play with those!

OK. I will check second repo soon. 

I'm currently working on bluetooth, I'll let you know if there's any progress.

Link to comment
Share on other sites

47 minutes ago, Eemeien said:

Do we need dts change for BT?

We are using stock dts files from orangepi latest 5.16 kernel. But dependant on if it's the same as armbians kernel (nearly identical I think) something may need changing. Shouldn't do though

 

I do reckon getting them firmware files into place would be the first thing to try. I'll be giving this a go later.

Link to comment
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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines