<?xml version="1.0"?>
<rss version="2.0"><channel><title>Banana PI CM4-IO Latest Topics</title><link>https://forum.armbian.com/forum/217-banana-pi-cm4-io/</link><description>Banana PI CM4-IO Latest Topics</description><language>en</language><item><title>Axg card codec dai-link not appearing in user space</title><link>https://forum.armbian.com/topic/51015-axg-card-codec-dai-link-not-appearing-in-user-space/</link><description><![CDATA[<p>
	I’m trying to define a simple sound card where I just have a TDM output on TDMA. Now I have defined my device tree as:
</p>

<p>
	 
</p>

<pre class="ipsCode prettyprint lang-c prettyprinted"><span class="pln">sound </span><span class="pun">{</span><span class="pln">
		compatible </span><span class="pun">=</span><span class="pln"> </span><span class="str">"amlogic,axg-sound-card"</span><span class="pun">;</span><span class="pln">
		model </span><span class="pun">=</span><span class="pln"> </span><span class="str">"BPI-CM4IO"</span><span class="pun">;</span><span class="pln">
		audio</span><span class="pun">-</span><span class="pln">aux</span><span class="pun">-</span><span class="pln">devs </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">tdmout_a</span><span class="pun">&gt;;</span><span class="pln">
		audio</span><span class="pun">-</span><span class="pln">widgets </span><span class="pun">=</span><span class="pln"> </span><span class="str">"Speaker"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"Speaker1 Left"</span><span class="pun">,</span><span class="pln">
					</span><span class="str">"Speaker"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"Speaker1 Right"</span><span class="pun">;</span><span class="pln">
		audio</span><span class="pun">-</span><span class="pln">routing </span><span class="pun">=</span><span class="pln"> </span><span class="str">"TDMOUT_A IN 0"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"FRDDR_A OUT 0"</span><span class="pun">,</span><span class="pln">
				</span><span class="str">"TDM_A Playback"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"TDMOUT_A OUT"</span><span class="pun">,</span><span class="pln">
				</span><span class="str">"Speaker1 Left"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"SPK1 OUT_A"</span><span class="pun">,</span><span class="pln">
				</span><span class="str">"Speaker1 Right"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"SPK1 OUT_B"</span><span class="pun">;</span><span class="pln">

		clocks </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_HIFI_PLL</span><span class="pun">&gt;,</span><span class="pln">
			 </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_MPLL0</span><span class="pun">&gt;,</span><span class="pln">
			 </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_MPLL1</span><span class="pun">&gt;;</span><span class="pln">

		assigned</span><span class="pun">-</span><span class="pln">clocks </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_HIFI_PLL</span><span class="pun">&gt;,</span><span class="pln">
				  </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_MPLL0</span><span class="pun">&gt;,</span><span class="pln">
				  </span><span class="pun">&lt;&amp;</span><span class="pln">clkc CLKID_MPLL1</span><span class="pun">&gt;;</span><span class="pln">
		assigned</span><span class="pun">-</span><span class="pln">clock</span><span class="pun">-</span><span class="pln">parents </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">0</span><span class="pun">&gt;,</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">0</span><span class="pun">&gt;,</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">0</span><span class="pun">&gt;;</span><span class="pln">
		assigned</span><span class="pun">-</span><span class="pln">clock</span><span class="pun">-</span><span class="pln">rates </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">589824000</span><span class="pun">&gt;,</span><span class="pln">
				       </span><span class="pun">&lt;</span><span class="lit">270950400</span><span class="pun">&gt;,</span><span class="pln">
				       </span><span class="pun">&lt;</span><span class="lit">393216000</span><span class="pun">&gt;;</span><span class="pln">

		dai</span><span class="pun">-</span><span class="pln">link</span><span class="pun">-</span><span class="lit">0</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
			sound</span><span class="pun">-</span><span class="pln">dai </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">frddr_a</span><span class="pun">&gt;;</span><span class="pln">
		</span><span class="pun">};</span><span class="pln">

		dai</span><span class="pun">-</span><span class="pln">link</span><span class="pun">-</span><span class="lit">1</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
    		sound</span><span class="pun">-</span><span class="pln">dai </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">tdmif_a</span><span class="pun">&gt;;</span><span class="pln">
    		dai</span><span class="pun">-</span><span class="pln">format </span><span class="pun">=</span><span class="pln"> </span><span class="str">"dsp_a"</span><span class="pun">;</span><span class="pln">
			dai</span><span class="pun">-</span><span class="pln">slot</span><span class="pun">-</span><span class="pln">num</span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">2</span><span class="pun">&gt;;</span><span class="pln">
			dai</span><span class="pun">-</span><span class="pln">tdm</span><span class="pun">-</span><span class="pln">slot</span><span class="pun">-</span><span class="pln">width </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">32</span><span class="pun">&gt;;</span><span class="pln">	
			dai</span><span class="pun">-</span><span class="pln">tdm</span><span class="pun">-</span><span class="pln">slot</span><span class="pun">-</span><span class="pln">tx</span><span class="pun">-</span><span class="pln">mask</span><span class="pun">-</span><span class="lit">0</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;</span><span class="lit">1</span><span class="pln"> </span><span class="lit">1</span><span class="pun">&gt;;</span><span class="pln">
			codec </span><span class="pun">{</span><span class="pln">
				sound</span><span class="pun">-</span><span class="pln">dai </span><span class="pun">=</span><span class="pln"> </span><span class="pun">&lt;&amp;</span><span class="pln">dummy_codec1</span><span class="pun">&gt;;</span><span class="pln">
			</span><span class="pun">};</span><span class="pln">
		</span><span class="pun">};</span><span class="pln">
</span><span class="pun">};</span></pre>

<p>
	 
</p>

<p>
	however, aplay -l gives: **** List of PLAYBACK Hardware Devices **** card 0: BPICM4IO [<abbr title="Banana Pi">BPI</abbr>-CM4IO], device 0: fe.dai-link-0 (*)  Subdevices: 1/1 Subdevice #0: subdevice #0
</p>

<p>
	 
</p>

<p>
	Why am I not seeing the sound dai link 1 ? And how then is the user supposed to select in which TDM slot to play if so. Is this expected ? As I understand it If I have several codecs I would define a different "dai-tdm-slot-tx-mask-xxx " for each dai link with a different codec. The dummy codec I’m using is based on pcm5102 as it does not require i2c for testing and probes with minimum effort.
</p>

<p>
	Any comments are aprecciated 
</p>
]]></description><guid isPermaLink="false">51015</guid><pubDate>Tue, 08 Apr 2025 19:09:33 +0000</pubDate></item><item><title>CanBus MCP2515</title><link>https://forum.armbian.com/topic/40619-canbus-mcp2515/</link><description><![CDATA[
<div class="ipsMargin_top">
    
    
    
</div><p>
	Hi,
</p>

<p>
	 
</p>

<p>
	is posible to add Canbus by a MCP2515 in a spi port ?
</p>

<p>
	 
</p>

<p>
	thanks!
</p>
]]></description><guid isPermaLink="false">40619</guid><pubDate>Mon, 03 Jun 2024 17:30:52 +0000</pubDate></item><item><title>Recommended efficient setup for Kernel modules and dtb development</title><link>https://forum.armbian.com/topic/50730-recommended-efficient-setup-for-kernel-modules-and-dtb-development/</link><description><![CDATA[<p>
	I'm looking for an alternative way (like raspberry pysh...) to quick compile <abbr title="Device tree blob"><abbr title="Device tree blob">dtb</abbr></abbr>, kernel modules and kernel Image to test some custom sound cards with a banana pi cm4 as base board.
</p>

<p>
	 
</p>

<p>
	In principle, I'm following the simplest path for me that it would be, compile and install specific kernel image, <abbr title="Device tree blob"><abbr title="Device tree blob">dtb</abbr></abbr> and modules and of course an initrd image for uBoot and kernel. But I'm a bit confused about all the files in the boot partition below:
</p>

<p>
	 
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">xxxx@bananapicm4io:/boot$ ls
armbianEnv.txt                  Image
boot.bmp                        initrd.img-6.12.0
boot.cmd                        initrd.img-6.12.13-current-meson64
boot.scr                        System.map-6.12.13-current-meson64
config-6.12.0                   uInitrd
config-6.12.13-current-meson64  uInitrd-6.12.0
dtb                             uInitrd-6.12.13-current-meson64
dtb-6.12.13-current-meson64     vmlinuz-6.12.13-current-meson64</span></pre>

<p>
	  
</p>

<p>
	ignore 6.12.0 files because those are the ones I'm trying to compile in a host machine (also aarch64) and then install and copy into the boot partition of the bananapi.
</p>

<p>
	 
</p>

<p>
	So far I'm building and installing:
</p>

<p>
	Image
</p>

<p>
	initrd.img-6.12.0
</p>

<p>
	uInitrd
</p>

<p>
	and the dtbs of the bananapi (already verified those work with the default image 6.12.13)
</p>

<p>
	 
</p>

<p>
	Kernel source is linux mainline
</p>

<p>
	 
</p>

<p>
	So far does not seem to work as I get from uboot:
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">Applying kernel provided DT fixup script (meson-fixup.scr)
## Executing script at 32000000
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    271326524 Bytes = 258.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 04080000
   Booting using the fdt blob at 0x4080000
Working FDT set to 4080000
ERROR: Failed to allocate 0x102c1d3c bytes below 0x40000000.
ramdisk - allocation error
booti - boot Linux kernel 'Image' format from memory</span></pre>

<p>
	 
</p>

<p>
	any suggestions are apreccited.
</p>
]]></description><guid isPermaLink="false">50730</guid><pubDate>Mon, 24 Mar 2025 12:43:27 +0000</pubDate></item><item><title>How do I Enable i2c2 on Armbian 24.11.1 Bookworm Minimal</title><link>https://forum.armbian.com/topic/47842-how-do-i-enable-i2c2-on-armbian-24111-bookworm-minimal/</link><description><![CDATA[
<div class="ipsMargin_top">
    
    
    <div class="cTemplateField">
        <span class="cTemplateField_label"></span>
        <span class="cTemplateField_value">Armbianmonitor: 
<div class='ipsType_break ipsContained'>
<a href='https://paste.next.armbian.com/pugawukefu' target='_blank'  rel="nofollow noreferrer">
	
		
			https://paste.next.armbian.com/pugawukefu
		
	
</a>
</div></span>
    </div>
    
    
</div><p>
	context<br />
	------------<br />
	Hardware: <abbr title="Banana Pi"><abbr title="Banana Pi">BPI</abbr></abbr> CM4 on <abbr title="Banana Pi"><abbr title="Banana Pi">BPI</abbr></abbr> CM4IO board<br />
	OS: Armbian 24.11.1 Bookworm Minimal Build: <a href="https://dl.armbian.com/bananapicm4io/Bookworm_current_minimal" rel="external nofollow">https://dl.armbian.com/bananapicm4io/Bookworm_current_minimal</a><br />
	<br />
	problem
</p>

<p>
	------------
</p>

<p>
	How do i enable i2c2 so i can be able to use the following pins on the <abbr title="Banana Pi"><abbr title="Banana Pi">BPI</abbr></abbr> CM4IO board for i2c<br />
	 
</p>

<pre class="ipsCode">pin 82 (GPIOX_17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (GPIOX_18): (MUX UNCLAIMED) periphs-banks:595</pre>

<p>
	<br />
	Previously on the ubuntu build all i had to do is add the following line to `/boot/env.txt` , `overlays="12c2"`, as stated in this doc <a href="https://wiki.banana-pi.org/Getting_Started_with_CM4#DTB_overlay" rel="external nofollow">https://wiki.banana-pi.org/Getting_Started_with_CM4#DTB_overlay</a><br />
	 
</p>

<pre class="ipsCode">2. Update the overlays env in vfat /boot/env.txt to enable what you want.
 # Device Tree Overlays
 #   uart1           -- Enable UART1 (uart_A, GPIO Header PIN8 &amp; PIN10)
 #   pwm_c           -- Enable PWM_C (GPIO Header PIN7)
 #   i2c2            -- Enable i2c2 (GPIO Header PIN3 &amp; PIN5)
 #   spi0            -- Enable SPI0 (GPIO Header PIN19 &amp; PIN21 &amp; PIN23 &amp; PIN24)
 overlays="i2c2 spi0 uart1"</pre>

<p>
	<br />
	but on the `Armbian 24.11.1 Bookworm Minimal Build` i cant find this overlay<br />
	 
</p>

<pre class="ipsCode">pi@bananapicm4io:~$ sudo ls /boot/dtb-6.6.61-current-meson64/amlogic/overlay/
README.meson-overlays					meson-g12a-radxa-zero-pwmao-a-on-gpioao-11.dtbo		   meson-i2cA.dtbo
meson-fixup.scr						meson-g12a-radxa-zero-spi-spidev.dtbo			   meson-i2cB.dtbo
meson-g12-gxl-cma-pool-896MB.dtbo			meson-g12a-radxa-zero-uart-ao-a-on-gpioao-0-gpioao-1.dtbo  meson-sm1-bananapi-m5-rtl8822cs.dtbo
meson-g12-pwm-gpiox-5-fan.dtbo				meson-g12a-radxa-zero-uart-ao-b-on-gpioao-2-gpioao-3.dtbo  meson-sm1-bananapi-uartA.dtbo
meson-g12a-radxa-zero-gpio-10-led.dtbo			meson-g12a-radxa-zero-uart-ao-b-on-gpioao-8-gpioao-9.dtbo  meson-sm1-bananapi-uartAO_B.dtbo
meson-g12a-radxa-zero-gpio-8-led.dtbo			meson-g12a-radxa-zero-uart-ee-c.dtbo			   meson-sm1-bananapi-uartA_cts_rts.dtbo
meson-g12a-radxa-zero-i2c-ao-m0-gpioao-2-gpioao-3.dtbo	meson-g12b-bananapi-cm4-pwm-gpioh-5-fan.dtbo		   meson-uartA.dtbo
meson-g12a-radxa-zero-i2c-ee-m1-gpioh-6-gpioh-7.dtbo	meson-g12b-bananapi-cm4-wifi-freq-200mhz.dtbo		   meson-uartC.dtbo
meson-g12a-radxa-zero-i2c-ee-m1-gpiox-10-gpiox-11.dtbo	meson-g12b-bananapi-m2s-rtl8822cs.dtbo			   meson-w1-gpio.dtbo
meson-g12a-radxa-zero-i2c-ee-m3-gpioa-14-gpioa-15.dtbo	meson-g12b-odroid-n2-spi.dtbo				   meson-w1AB-gpio.dtbo
meson-g12a-radxa-zero-pwm-c-on-gpiox-8.dtbo		meson-g12b-waveshare-cm4-io-base-usb.dtbo
pi@bananapicm4io:~$ cat /boot/armbianEnv.txt 
verbosity=1
console=both
overlay_prefix=meson
fdtfile=amlogic/meson-g12b-bananapi-cm4-cm4io.dtb
rootdev=UUID=e4b40e17-5d66-4b52-a45e-4a8c6cdee335
rootfstype=ext4
fdt_overlays=
overlays=i2c2 
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
pi@bananapicm4io:~$ </pre>

<p>
	<br />
	<br />
	i2cdetect output on Armbian (on ubuntu image i get a reading on i2cdetect -y 1 but not on armbian)<br />
	 
</p>

<pre class="ipsCode">pi@bananapicm4io:~$ sudo i2cdetect -l
i2c-0	i2c       	Meson I2C adapter               	I2C adapter
i2c-1	i2c       	Meson I2C adapter               	I2C adapter
i2c-2	i2c       	DesignWare HDMI                 	I2C adapter
pi@bananapicm4io:~$ sudo i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@bananapicm4io:~$ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@bananapicm4io:~$</pre>

<p>
	 
</p>
]]></description><guid isPermaLink="false">47842</guid><pubDate>Mon, 02 Dec 2024 16:57:37 +0000</pubDate></item><item><title>Slow WiFi speeds on Banana Pi CM4</title><link>https://forum.armbian.com/topic/44899-slow-wifi-speeds-on-banana-pi-cm4/</link><description><![CDATA[<p>
	I have a Banana Pi CM4 + CM4 IO Board - literally the same one pictured in <a href="https://www.armbian.com/bananapicm4io/" rel="external nofollow">https://www.armbian.com/bananapicm4io/</a>
</p>

<p>
	 
</p>

<p>
	I downloaded and installed Ubuntu 24.04 (Noble) Server Image - "Armbian_24.8.1_Bananapicm4io_noble_current_6.6.47.img"
</p>

<p>
	For convenience, I installed the image to an SD card.
</p>

<p>
	 
</p>

<p>
	Armbianmonitor link: <a href="https://paste.armbian.com/igahozatow" rel="external nofollow">https://paste.armbian.com/igahozatow</a><br />
	<br />
	Everything boots and I can use armbian-config to connect to my local WiFi network, but the speeds are really really slow:
</p>

<p>
	<br />
	iperf3 gives me ~40mbps pretty consistently:
</p>

<p>
	--------------------
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  51.1 MBytes  42.9 Mbits/sec    2             sender
[  5]   0.00-10.20  sec  50.1 MBytes  41.2 Mbits/sec                  receiver</span></pre>

<p>
	 
</p>

<p>
	I'm connected to a 5GHz network, good connection strength/quality (and I do have antennas plugged into the CM4)
</p>

<p>
	--------------------
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">wlan0     IEEE 802.11  ESSID:"unimportant"
          Mode:Managed  Frequency:5.22 GHz  Access Point: 70:A7:41:69:BA:14
          Bit Rate=650 Mb/s   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=68/70  Signal level=-42 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2   Missed beacon:0</span></pre>

<p>
	<br />
	<br />
	Other devices on my network consistently push 300-400mbps iperf3. Also if I install and configure a mini-PCIe network card on the CM4IO board, that also gives me 300-400Mbps. <br />
	<br />
	I suspect the SDIO connection itself might be the bottleneck, though I'm new at this and might be barking up the wrong (device) tree here.<br />
	<br />
	The RTL8822CS module is connected to mmc2 per dmesg output:<br />
	-----------------------
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">[    7.539802] rtw_8822cs mmc2:0001:1: WOW Firmware version 9.9.4, H2C version 15</span></pre>

<p>
	<br />
	<br />
	It appears mmc2 is running at only 25MHz 4-bit mode: cat /sys/kernel/debug/mmc2/ios
</p>

<p>
	-----------------------
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">clock:          25000000 Hz
actual clock:   25000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    0 (legacy)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)</span></pre>

<p>
	<br />
	<br />
	Of note - I came across this review/comparison (<a href="https://bret.dk/banana-pi-cm4-review/" rel="external nofollow">https://bret.dk/banana-pi-cm4-review/</a>) of the <abbr title="Banana Pi">BPi</abbr> CM4 using the same CM4IO board as I'm using, except those iperf3 results make even less sense - 81 Mbps down / 158 Mbps up "bare", 12 Mbps down / 58 Mbps up using antennas. The author suspects that performance is better with "onboard PCB antennas", except I....don't see anything that looks like it would be an onboard PCB antenna - either on the module itself or in the schematic (<a href="https://drive.google.com/file/d/1IXXok1P2OLiW3p8tavkbfEPTGTrM3b-R/view?usp=sharing" rel="external nofollow">https://drive.google.com/file/d/1IXXok1P2OLiW3p8tavkbfEPTGTrM3b-R/view?usp=sharing</a>)<br />
	<br />
	They were using an older kernel / image (unclear where they got it from) so I wasn't able to replicate their findings, but perhaps there was some regression in the mmc controller setup?<br />
	<br />
	I'm not sure if this will help or not, but here are relevant excerpts from device tree on my image for the three mmc controllers: <abbr title="Device tree compiler">dtc</abbr> -I fs /sys/firmware/devicetree/base<br />
	-------------------------------
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">mmc@ffe05000 {
        pinctrl-names = "default\0clk-gate";
        pinctrl-0 = &lt;0x30&gt;;
        clock-names = "core\0clkin0\0clkin1";
        cap-sd-highspeed;
        vqmmc-supply = &lt;0x32&gt;;
        bus-width = &lt;0x04&gt;;
        resets = &lt;0x05 0x2d&gt;;
        interrupts = &lt;0x00 0xbe 0x04&gt;;
        clocks = &lt;0x02 0x22 0x02 0x3d 0x02 0x02&gt;;
        vmmc-supply = &lt;0x2f&gt;;
        compatible = "amlogic,meson-axg-mmc";
        pinctrl-1 = &lt;0x31&gt;;
        status = "okay";
        disable-wp;
        reg = &lt;0x00 0xffe05000 0x00 0x800&gt;;
        phandle = &lt;0x130&gt;;
        max-frequency = &lt;0x2faf080&gt;;
        cd-gpios = &lt;0x07 0x2f 0x01&gt;;
};




mmc@ffe07000 {
        pinctrl-names = "default\0clk-gate";
        pinctrl-0 = &lt;0x33 0x34 0x35&gt;;
        clock-names = "core\0clkin0\0clkin1";
        vqmmc-supply = &lt;0x1f&gt;;
        mmc-hs200-1_8v;
        bus-width = &lt;0x08&gt;;
        resets = &lt;0x05 0x2e&gt;;
        interrupts = &lt;0x00 0xbf 0x04&gt;;
        clocks = &lt;0x02 0x23 0x02 0x3e 0x02 0x02&gt;;
        vmmc-supply = &lt;0x2f&gt;;
        mmc-ddr-1_8v;
        compatible = "amlogic,meson-axg-mmc";
        pinctrl-1 = &lt;0x36&gt;;
        status = "okay";
        disable-wp;
        mmc-pwrseq = &lt;0x37&gt;;
        reg = &lt;0x00 0xffe07000 0x00 0x800&gt;;
        phandle = &lt;0x131&gt;;
        max-frequency = &lt;0xbebc200&gt;;
        cap-mmc-highspeed;
};




mmc@ffe03000 {
        pinctrl-names = "default\0clk-gate";
        #address-cells = &lt;0x01&gt;;
        amlogic,dram-access-quirk;
        pinctrl-0 = &lt;0x2c&gt;;
        clock-names = "core\0clkin0\0clkin1";
        vqmmc-supply = &lt;0x2f&gt;;
        bus-width = &lt;0x04&gt;;
        non-removable;
        resets = &lt;0x05 0x2c&gt;;
        interrupts = &lt;0x00 0xbd 0x04&gt;;
        clocks = &lt;0x02 0x21 0x02 0x3c 0x02 0x02&gt;;
        #size-cells = &lt;0x00&gt;;
        vmmc-supply = &lt;0x2f&gt;;
        keep-power-in-suspend;
        compatible = "amlogic,meson-axg-mmc";
        pinctrl-1 = &lt;0x2d&gt;;
        status = "okay";
        disable-wp;
        mmc-pwrseq = &lt;0x2e&gt;;
        reg = &lt;0x00 0xffe03000 0x00 0x800&gt;;
        phandle = &lt;0x12e&gt;;
        sd-uhs-sdr104;
        max-frequency = &lt;0x2faf080&gt;;

        wifi@1 {
                reg = &lt;0x01&gt;;
                phandle = &lt;0x12f&gt;;
        };

};</span></pre>

<p>
	<br />
	<br />
	<br />
	The RTL8822CS module itself should support SDIO 1.1 / 2.0 / 3.0 up to clock frequency of 208MHz, but it seems like for some reason the controller just isn't running at that speed and I'm not sure what exactly to change to fix that - anyone have any suggestions on what I'm doing wrong or what I should check next to debug this? <br />
	<br />
	<br />
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">44899</guid><pubDate>Fri, 06 Sep 2024 04:45:33 +0000</pubDate></item><item><title>Armbian install on Banana PI CM4 in Big Tree Tech Manta M8P</title><link>https://forum.armbian.com/topic/42639-armbian-install-on-banana-pi-cm4-in-big-tree-tech-manta-m8p/</link><description><![CDATA[<p>
	I am trying to set up a Banana Pi CM4 on a Bigtree Tech Manta M8P, which is a 3D printer board which has a socket for the CM4.<br />
	However, I don't have the option to use a wired connection to the router or plug in a keyboard to interact with the CM4 on initial startup, so I get stuck at the set root password stage.<br />
	<br />
	Is there a way around this? I have tried using WSL to mount the SD card after burning, but I can't seem to access it there to change the files on the card directly. Ideally, I would like to burn Armbian with Wifi credentials already set so I can ssh from the start.<br />
	<br />
	I appreciate any help. Keep in mind that my Linux fu is about good enough to get Klipper going and maintained but little else, so type slowly so I can understand.
</p>
]]></description><guid isPermaLink="false">42639</guid><pubDate>Thu, 18 Jul 2024 16:19:34 +0000</pubDate></item><item><title>Enable UART on BPI-CM4</title><link>https://forum.armbian.com/topic/33369-enable-uart-on-bpi-cm4/</link><description><![CDATA[<p>
	I have just installed an Armbian Jammy CLI on my <abbr title="Banana Pi">BPI</abbr>-CM4. I need to use the UART that is routed to pins 8 and 10 on the 40-pin connector (<strong>UART_EE_B</strong> in the <abbr title="Banana Pi">BPI</abbr>-CM4 schematics).
</p>

<p>
	I have enabled it in the device tree by changing this from disabled to okay:
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">serial@23000 {
	compatible = "amlogic,meson-g12a-uart\0amlogic,meson-gx-uart";
    reg = &lt;0x00 0x23000 0x00 0x18&gt;;
        interrupts = &lt;0x00 0x4b 0x01&gt;;
        clocks = &lt;0x12 0x02 0x2a 0x12&gt;;
        clock-names = "xtal\0pclk\0baud";
        status = "okay";
        phandle = &lt;0x12b&gt;;
};</span></pre>

<p>
	<span> </span> 
</p>

<p>
	Once rebooted, and new UART appears (ttyAML6). However, it does not work. What am I missing?
</p>

<p>
	 
</p>

<p>
	Thanks in advance
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">33369</guid><pubDate>Tue, 23 Jan 2024 08:00:17 +0000</pubDate></item><item><title>panfrost spams dmesg</title><link>https://forum.armbian.com/topic/38712-panfrost-spams-dmesg/</link><description><![CDATA[
<div class="ipsMargin_top">
    
    
    <div class="cTemplateField">
        <span class="cTemplateField_label"></span>
        <span class="cTemplateField_value">Armbianmonitor: 
<div class='ipsType_break ipsContained'>
<a href='https://paste.armbian.com/vezafimilo' target='_blank'  rel="nofollow noreferrer">
	
		
			https://paste.armbian.com/vezafimilo
		
	
</a>
</div></span>
    </div>
    
    
</div><p>
	Hello all,
</p>

<p>
	 
</p>

<p>
	I noticed that since recently (TM) I got loads of spam from <abbr title="driver for Mali Midgard and Bifrost GPUs"><abbr title="driver for Mali Midgard and Bifrost GPUs">panfrost</abbr></abbr> in my dmesg output:
</p>

<p>
	<a class="ipsAttachLink ipsAttachLink_image" data-fileext="png" data-fileid="12359" href="https://forum.armbian.com/uploads/monthly_2024_05/image.png.7a7debad8c55edf0c57f43d046acc4cf.png" rel=""><img alt="image.thumb.png.42dfc3058ec4d471d8f21d8a5d0d738b.png" class="ipsImage ipsImage_thumbnailed" data-fileid="12359" data-ratio="173.61" width="432" src="https://forum.armbian.com/uploads/monthly_2024_05/image.thumb.png.42dfc3058ec4d471d8f21d8a5d0d738b.png" /></a>
</p>

<p>
	 
</p>

<p>
	I understand that this has something todo with graphics.<br />
	The only "graphic" thing I'm doing is running standard Klipper-Screen through HDMI and this seems to be working as always...
</p>

<p>
	 
</p>

<p>
	<br />
	It definately wasn't there like half a year ago.
</p>

<p>
	 
</p>

<p>
	can I get rid of it? Is it something to worry about?
</p>

<p>
	 
</p>

<p>
	my armbian is running on a Banana-Pi CM4 module of of the <abbr title="embedded MultiMediaCard">eMMC</abbr>. It's a rather standard installation with Klipper installed via KIAUH.
</p>

<p>
	 
</p>

<p>
	sincerely 
</p>

<p>
	 - cad435
</p>
]]></description><guid isPermaLink="false">38712</guid><pubDate>Sun, 05 May 2024 22:37:08 +0000</pubDate></item><item><title>How to use wiringpi python for banana pi cm4 io?</title><link>https://forum.armbian.com/topic/35242-how-to-use-wiringpi-python-for-banana-pi-cm4-io/</link><description><![CDATA[<p>
	unable to access <abbr title="General purpose input/output">gpio</abbr> using wiringpi python. I have tried steps available on banana pi wiki. but it throws error "/dev/gpiomem" is not available and then "This board is not odroid".
</p>

<p>
	 
</p>

<p>
	did anyone successfully implemented this?
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">35242</guid><pubDate>Wed, 28 Feb 2024 07:32:16 +0000</pubDate></item><item><title>Unable to access gpio 493</title><link>https://forum.armbian.com/topic/33496-unable-to-access-gpio-493/</link><description><![CDATA[<p>
	Hi,
</p>

<p>
	 
</p>

<p>
	I am using Armbian (latest) image on Banana Pi CM4 and I don't have access to gpio493. I am getting the following error:
</p>

<p>
	 
</p>

<p>
	<img alt="image.png.c390e1815073d21b7083e837c78396ce.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11715" data-ratio="9.80" width="561" src="https://forum.armbian.com/uploads/monthly_2024_01/image.png.c390e1815073d21b7083e837c78396ce.png" />
</p>

<p>
	 
</p>

<p>
	And looks like gpiochip4xx is not available:
</p>

<p>
	 
</p>

<p>
	<img alt="image.png.ade762d8530a65b5df70b69d304c4e94.png" class="ipsImage ipsImage_thumbnailed" data-fileid="11716" data-ratio="18.42" width="771" src="https://forum.armbian.com/uploads/monthly_2024_01/image.png.ade762d8530a65b5df70b69d304c4e94.png" />
</p>

<p>
	 
</p>

<p>
	When I modprobe this <abbr title="General purpose input/output">gpio</abbr> number, I am getting following error:<br />
	<br />
	<em>modprobe: FATAL: Module gpiochip493 not found in directory /lib/modules/6.7.2-edge-meson64</em>
</p>

<p>
	 
</p>

<p>
	Could you please help, how can I enable <abbr title="General purpose input/output"><abbr title="General purpose input/output">gpio</abbr></abbr> 493?
</p>

<p>
	 
</p>

<p>
	Thanks
</p>
]]></description><guid isPermaLink="false">33496</guid><pubDate>Sun, 28 Jan 2024 12:32:46 +0000</pubDate></item><item><title>Raspberry Pi/bigtreettech pi tft DSI screen on Banana Pi CM4 mounted on a BTT Manta M8P I/O 3D Printer board</title><link>https://forum.armbian.com/topic/31861-raspberry-pibigtreettech-pi-tft-dsi-screen-on-banana-pi-cm4-mounted-on-a-btt-manta-m8p-io-3d-printer-board/</link><description><![CDATA[<p>
	Hello everyone,
</p>

<p>
	I am trying to get a Bigtreetech PiTFT70 DSI screen working on my Banana Pi CM4 mounted on a Bigtreetech Manta M8P 3D printer control board. It is supposedly a clone of the Raspberry Pi 7inch DSI display and uses the same display and touch chips.
</p>

<p>
	The DSI port on the M8P is wired to DSI 1 port on the <abbr title="Banana Pi"><abbr title="Banana Pi">Bpi</abbr></abbr> CM4. I have tried hacking together a device tree overlay for it but I don't know enough of what needs turning on and what addresses they require (i2c etc) to get it working.
</p>

<p>
	Can anyone with Amlogic meson knowledge assist me? I am running the latest armbian bookworm 23.8 with all current updates installed.
</p>
]]></description><guid isPermaLink="false">31861</guid><pubDate>Wed, 22 Nov 2023 03:13:55 +0000</pubDate></item><item><title>Is there any good way for hiding mouse on XFCE4 desktop?</title><link>https://forum.armbian.com/topic/30806-is-there-any-good-way-for-hiding-mouse-on-xfce4-desktop/</link><description><![CDATA[<p>
	I tried three way for hiding mouse, but not work:
</p>

<p>
	 
</p>

<p>
	1. Unclutter:
</p>

<p>
	```
</p>

<p>
	unclutter -idle 0 -root -display :0
</p>

<p>
	``
</p>

<p>
	It shows unclutter: could not open display
</p>

<p>
	 
</p>

<p>
	2. startx -nocursor -&gt; not work
</p>

<p>
	 
</p>

<p>
	3. Using xbanish and boot from Systemd:
</p>

<p>
	 
</p>

<p>
	```
</p>

<p>
	~/.config/systemd/user/xbanish.service
</p>

<p>
	```
</p>

<p>
	 
</p>

<pre class="ipsCode prettyprint lang-html prettyprinted"><span class="pln">[Unit]
Description=xbanish
After=default.target

[Service]
Type=simple
ExecStart=/usr/bin/xbanish
Restart=on-failure
StartLimitBurst=10
RestartSec=30

[Install]
WantedBy=default.target</span></pre>

<p>
	 
</p>

<p>
	Is there any good way for hiding mouse on XFCE4 desktop (Armbian) ?
</p>

<p>
	 
</p>

<p>
	Thanks
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">30806</guid><pubDate>Mon, 16 Oct 2023 05:59:21 +0000</pubDate></item><item><title>Vulkan GPU blob for BPI-CM4/CM5/A311D?</title><link>https://forum.armbian.com/topic/30786-vulkan-gpu-blob-for-bpi-cm4cm5a311d/</link><description><![CDATA[<p>
	Is there, or will there be, an Amlogic or Banana Pi issued <abbr title="Graphic processing unit (3D acceleration)">GPU</abbr> blob to run Vulkan?
</p>

<p>
	 
</p>

<p>
	On v6 kernel ideally <img alt=":D" data-emoticon="" height="20" src="https://forum.armbian.com/uploads/emoticons/default_biggrin.png" srcset="https://forum.armbian.com/uploads/emoticons/biggrin@2x.png 2x" title=":D" width="20" />
</p>

<p>
	 
</p>

<p>
	Amlogic does have a history of allowing this, for Odroid and Khadas.
</p>

<p>
	 
</p>

<p>
	Duncan
</p>
]]></description><guid isPermaLink="false">30786</guid><pubDate>Sun, 15 Oct 2023 10:17:41 +0000</pubDate></item><item><title>Support for 480*480 HDMI display</title><link>https://forum.armbian.com/topic/30746-support-for-480480-hdmi-display/</link><description><![CDATA[<p>
	I have a 480*480 HDMI display. Using Armbian image cannot work, but Bananapi Official image support this resolution.
</p>

<p>
	 
</p>

<p>
	I also tried to adjsut /boot/boot.cmd （Using 480p60hz) and add disp_mode=480x480 into ArmbianEnv.txt.
</p>

<p>
	 
</p>

<p>
	Does anyone have any suggestions for a solution?
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">30746</guid><pubDate>Fri, 13 Oct 2023 12:20:06 +0000</pubDate></item><item><title>Bananapi cm4 gpio</title><link>https://forum.armbian.com/topic/30723-bananapi-cm4-gpio/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	 
</p>

<p>
	I tried 
</p>

<p>
	`
</p>

<p>
	echo 463 &gt; /sys/class/<abbr title="General purpose input/output"><abbr title="General purpose input/output">gpio</abbr></abbr>/export
</p>

<p>
	`
</p>

<p>
	and it build gpio464 folder under /sys/class/<abbr title="General purpose input/output"><abbr title="General purpose input/output">gpio</abbr></abbr> , and I cat `value` file to check <abbr title="General purpose input/output"><abbr title="General purpose input/output">gpio</abbr></abbr> status. It seems not work.
</p>

<p>
	The same <abbr title="General purpose input/output"><abbr title="General purpose input/output">gpio</abbr></abbr> was working on Bananapi official debian and Ubuntu mate image. How can I solve this problem? 
</p>

<p>
	 
</p>

<p>
	Thanks
</p>
]]></description><guid isPermaLink="false">30723</guid><pubDate>Thu, 12 Oct 2023 10:51:59 +0000</pubDate></item><item><title>CPU temperature over 100C on Armbain image. (Bananpi cm4)</title><link>https://forum.armbian.com/topic/30724-cpu-temperature-over-100c-on-armbain-image-bananpi-cm4/</link><description><![CDATA[<p>
	hello,
</p>

<p>
	 
</p>

<p>
	I found default armbian image will cause the CPU temperature very high. 
</p>

<p>
	My cpu freq is setting 1Ghz and usage is around 20%, This should not cause the cpu to overheat. 
</p>

<p>
	 
</p>

<p>
	This is my armbianmonitor -m <span>:</span>
</p>

<p>
	 
</p>

<p>
	<span>```</span>
</p>

<p>
	Time    CPU_cl0/CPU_cl1  load %cpu %sys %usr %nice %io %irq   Tcpu  C.St.<br />
	18:55:22  1000/1000 MHz  0.88  17%   6%   9%   0%   0%   1%  103.0 °C  8/8<br />
	18:55:27  1000/1000 MHz  0.89  17%   5%   9%   0%   0%   1%  103.0 °C  8/8<br />
	18:55:32  1000/1000 MHz  0.90  17%   5%   9%   0%   0%   1%  103.1 °C  8/8<br />
	18:55:37  1000/1000 MHz  0.83  17%   5%   9%   0%   0%   1%  103.2 °C  8/8<br />
	18:55:42  1000/1000 MHz  0.76  17%   6%   9%   0%   0%   1%  103.1 °C  8/8<br />
	18:55:47  1000/1000 MHz  0.86  17%   5%   9%   0%   0%   1%  103.2 °C  8/8<br />
	18:55:52  1000/1000 MHz  0.87  17%   5%   9%   0%   0%   1%  103.0 °C  8/8
</p>

<p>
	<span>```</span>
</p>

<p>
	My cpu's governor is `powersave` and I also see  <abbr title="Graphic processing unit (3D acceleration)">gpu</abbr> usage, my <abbr title="Graphic processing unit (3D acceleration)">gpu</abbr> governor is setting `simple_ondemand`. 
</p>

<p>
	 
</p>

<p>
	I also use bananapi officical image (ubuntu mate) No overheating issues. How can I solve this problem? 
</p>

<p>
	 
</p>

<p>
	Thanks
</p>
]]></description><guid isPermaLink="false">30724</guid><pubDate>Thu, 12 Oct 2023 10:59:55 +0000</pubDate></item><item><title>In some hardware path , USB Device was not found</title><link>https://forum.armbian.com/topic/30708-in-some-hardware-path-usb-device-was-not-found/</link><description><![CDATA[<p>
	hello,
</p>

<p>
	 
</p>

<p>
	My image is (Armbian BookwormXFCE desktop 20230831) and download to cm4 moudule.
</p>

<p>
	 
</p>

<p>
	When I using the Bananapi CM4 base board ( https://wiki.banana-pi.org/File:BananaPi_BPI-CM4_base_board_1.jpg) the USB function is working.
</p>

<p>
	But I using the common <abbr title="Raspberry Pi"><abbr title="Raspberry Pi">RPI</abbr></abbr> CM4 base board, such as waveshare's cm4 nano-b (https://www.waveshare.net/wiki/CM4-NANO-B) the USB function is not working.
</p>

<p>
	 
</p>

<p>
	I compare the difference of two board's schematics. Bananapi's base board is connecting the fs1.1 usb hub ic. but waveshare's base board was connecting USB D+/D- to USB host directly . 
</p>

<p>
	I also tried bananapi official image (both Debian and Ubuntu mate) and the wareshare's base board USB function is working.This is a bit confusing to me. Why can’t USB be found when connected USB D+ / D- directly in Armbian image?<br />
	<br />
	How can i solve this problem? 
</p>

<p>
	 
</p>

<p>
	Thanks<br />
	<br />
	PS.
</p>

<p>
	Bananpi base board SCH: https://drive.google.com/file/d/1IErCKqfWdU7gL7kUod2-wlpG7uE9EiVZ/view
</p>

<p>
	waveshare base board SCH: https://www.waveshare.net/w/upload/f/f5/CM4-NANO-B-SCH.pdf
</p>
]]></description><guid isPermaLink="false">30708</guid><pubDate>Wed, 11 Oct 2023 16:33:49 +0000</pubDate></item><item><title>Banana Pi CM4 and IO board interface</title><link>https://forum.armbian.com/topic/29491-banana-pi-cm4-and-io-board-interface/</link><description><![CDATA[<p>
	BananaPi <abbr title="Banana Pi">BPI</abbr>-CM4 new design with Amlogic A311D Quad core ARM Cortex-A73 and dual core ARM Cortex-A53 CPU ,ARM G52 MP4(6EE) <abbr title="Graphic processing unit (3D acceleration)">GPU</abbr>,NPU for AI at 5.0 TOPS, support Camera and MIPI-CSI interface ,HDMI output,2 Gigabit port . 4G RAM and 16 GB <abbr title="embedded MultiMediaCard">eMMC</abbr> flash.
</p>

<p>
	 
</p>

<p>
	<abbr title="Banana Pi">BPI</abbr>-CM4 hardware interface:
</p>

<p>
	 
</p>

<p>
	<img alt="BPI-CM4_230714_Interface%20780.jpg" class="ipsImage" data-ratio="96.15" height="750" width="750" src="https://banana-pi.org/web/userfiles/product/BPI-CM4/BPI-CM4_230714_Interface%20780.jpg" />
</p>

<p>
	 
</p>

<p>
	<abbr title="Banana Pi">BPI</abbr>-CM4 IO baord interface
</p>

<p>
	 
</p>

<p>
	<img alt="CM4IO%20interface%20%20780.jpg" class="ipsImage" data-ratio="96.15" height="750" width="750" src="https://www.banana-pi.org/web/userfiles/product/BPI-CM4/CM4IO%20interface%20%20780.jpg" />
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">29491</guid><pubDate>Tue, 01 Aug 2023 08:00:13 +0000</pubDate></item></channel></rss>
