hajupiko49 Posted August 18, 2022 Posted August 18, 2022 Good day, for my Orangepi PC+ I installed Armbian Ubuntu Jammy on a µSD card. Up until Armbian Ubuntu Strech I was able to use a PCM510A for sound output. The settings for this were easy. With all updated OS after Strech, I can't install the PCM. Unfortunately, the help that was published in the forum wasn't helpful or I couldn't take it over. On the eMMC I have installed Armbian5.59 Orangepipcplus Ubuntu xenial default 3.4.113 desktop. Because of the advanced age of this OS, there are no updates and upgrades. Luckily my internet radio still works. Can someone explain to me how I can install the PCM510A at Jammy? Kind regards hajupiko49 0 Quote
Werner Posted August 23, 2022 Posted August 23, 2022 No idea if this is possible with mainline if that needs vendor adjustments. Make sure to read here to understand why https://docs.armbian.com/User-Guide_FAQ/#why-does-hardware-feature-xy-work-in-old-kernel-but-not-in-more-recent-one 0 Quote
MacBreaker Posted August 24, 2022 Posted August 24, 2022 @hajupiko49It should work! Read this tread "https://forum.armbian.com/topic/9009-info-friendlyarm-pcm5102a-hat-with-nanopi-neo-under-mainline-4xx-and-dev-5xx/" (Thanks Guido) I dit it on a Orangepi-Plus with bullseye, kernel 5.15. Use this steps: sudo apt update && sudo apt upgrade -y freeze updates in armbian-config dtb Than you can begin changeing your dtb. You have only to replace "sun8i-h3-orangepi-plus" to your needs.. Spoiler hers ny notes: - Sound i2s --- h3-sound-overlay OrangePiPlus BCK -> PA19 (27) black LRCK -> PA18 (28) red DATA -> PA20 (37) white GND -> PA18 (34) yellow MCLK wird nicht benötigt! --- Expansion Port --- GPIO #---------------------------------------------------------------------------------------# |\/ Makierung bei 1 | Oben Orange Pi | PC | PC+ | Plus | +---------------------------------------------------------------------------------------+ | 1 | 3.3V | 2 | 5V | | 3 | PA12 (TWI0_SDA/DI_RX/PA_EINT12) | 4 | 5V | | 5 | PA11 (TWI0_SCK/DI_TX/PA_EINT11) | 6 | GND | | 7 | PA6 (SIM_PWREN/PWM1/PA_EINT6) | 8 | PA13 (SPI1_CS/UART3_TX/PA_EINT13) | | 9 | GND | 10 | PA14 (SPI1_CLK/UART3_RX/PA_EINT14) | | 11 | PA1 (UART2_RX/JTAG_CK/PA_EINT1) | 12 | PD14 | | 13 | PA0 (UART2_TX/JTAG_MS/PA_EINT0) | 14 | GND | | 15 | PA3 (UART2_CTS/JTAG_DI/PA_EINT3) | 16 | PC4 | | 17 | 3.3V | 18 | PC7 | | 19 | PC0 (SPI0_MOSI) | 20 | GND | | 21 | PC1 (SPI0_MISO) | 22 | PA2 (UART2_RTS/JTAG_DO/PA_EINT2) | | 23 | PC2 (SPI0_CLK) | 24 | PC3 (SPI0_CS) | | 25 | GND | 26 | PA21 (PCM0_DIN/SIM_VPPPP/PA_EINT21) | | 27 | PA19 (PCM0_CLK/TWI1_SDA/PA_EINT19) * | 28 | PA18 (PCM0_SYNC/TWI1_SCK/PA_EINT18) *| | 29 | PA7 (SIM_CLK/PA_EINT7) | 30 | GND | | 31 | PA8 (SIM_DATA/PA_EINT8) | 32 | PG8 (UART1_RTS/PG_EINT8) | | 33 | PA9 (SIM_RST/PA_EINT9) | 34 | GND | | 35 | PA10 (SIM_DET/PA_EINT10) | 36 | PG9 (UART1_CTS/PG_EINT9) | | 37 | PA20 (PCM0_DOUT/SIM_VPPEN/PA_EINT20 *| 38 | PG6 (UART1_TX/PG_EINT6) | | 39 | GND | 40 | PG7 (UART1_RX/PG_EINT7) | +---------------------------------------------------------------------------------------+ | Unten \/ | +---------------------------------------------------------------------------------------+ | 2xUSB | LAN | 1xUSB | #---------------------------------------------------------------------------------------# /boot/dtb/sun8i-h3-orangepi-plus.dtb - sudo cp /boot/dtb/sun8i-h3-orangepi-plus.dtb /boot/dtb/sun8i-h3-orangepi-plus.dtb_org sudo dtc -I dtb -O dts /boot/dtb/sun8i-h3-orangepi-plus.dtb -o /boot/dtb/sun8i-h3-orangepi-plus.dts sudo nano /boot/dtb/sun8i-h3-orangepi-plus.dts okay i2s@1c22000 { #sound-dai-cells = <0x00>; compatible = "allwinner,sun8i-h3-i2s"; reg = <0x1c22000 0x400>; interrupts = <0x00 0x0d 0x04>; clocks = <0x03 0x38 0x03 0x54>; clock-names = "apb\0mod"; dmas = <0x1a 0x03 0x1a 0x03>; resets = <0x03 0x2b>; dma-names = "rx\0tx"; status = "okay"; phandle = <0x66>; }; sudo dtc -I dts -O dtb /boot/dtb/sun8i-h3-orangepi-plus.dts -o /boot/dtb/sun8i-h3-orangepi-plus.dts_I2S_okay sudo cp /boot/dtb/sun8i-h3-orangepi-plus.dts_I2S_okay /boot/dtb/sun8i-h3-nanopi-neo.dtb sun8i-h3-I2S-out.dts nach /home/master kopieren... sudo armbian-add-overlay sun8i-h3-I2S-out.dts sudo reboot --- sudo nano /etc/asound.conf pcm.sftvol { type softvol slave.pcm "plughw:1" control { name "PCM" card 1 } } pcm.!default { type plug slave.pcm "sftvol" } ctl.!default { type hw card 1 } speaker-test -D default -c 2 -twav you should here some noise on your speakers.. Best wishes Markus 0 Quote
Recommended Posts
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.