Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libre Computer AML-S905X-CC (Le Potato) #17

Open
geerlingguy opened this issue Mar 2, 2023 · 10 comments
Open

Libre Computer AML-S905X-CC (Le Potato) #17

geerlingguy opened this issue Mar 2, 2023 · 10 comments

Comments

@geerlingguy
Copy link
Owner

Basic information

Linux/system information

# output of `neofetch`
       _,met$$$$$gg.          pi@raspberrypi 
    ,g$$$$$$$$$$$$$$$P.       -------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) aarch64 
 ,$$P'              `$$$.     Host: aml-s905x-cc 
',$$P       ,ggs.     `$$b:   Kernel: 6.0.12-00858-gb98721ea4575 
`d$$'     ,$P"'   .    $$$    Uptime: 6 mins 
 $$P      d$'     ,    $$P    Packages: 1419 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4 
 $$;      Y$b._   _,d$P'      Resolution: 720x576i 
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/0 
 `$$b      "-.__              CPU: (4) @ 1.512GHz 
  `Y$$                        Memory: 362MiB / 1924MiB 
   `Y$$.
     `$$b.                                            
       `Y$$b.                                         
          `"Y$b._
              `"""

# output of `uname -a`
Linux raspberrypi 6.0.12-00858-gb98721ea4575 #1 SMP PREEMPT_DYNAMIC Thu Dec 8 19:08:19 UTC 2022 aarch64 GNU/Linux

Benchmark results

CPU

Power

  • Idle power draw (at wall): 1.3 W
  • Maximum simulated power draw (stress-ng --matrix 0): 2.4 W
  • During Geekbench multicore benchmark: TODO W
  • During top500 HPL benchmark: TODO W

Disk

MANUFACTURER_AND_MODEL_OF_DISK_HERE

Benchmark Result
fio 1M sequential read TODO MB/s
iozone 1M random read TODO MB/s
iozone 1M random write TODO MB/s
iozone 4K random read TODO MB/s
iozone 4K random write TODO MB/s

curl https://raw.githubusercontent.com/geerlingguy/pi-cluster/master/benchmarks/disk-benchmark.sh | sudo bash

Run benchmark on any attached storage device (e.g. eMMC, microSD, NVMe, SATA) and add results under an additional heading. Download the script with curl -o disk-benchmark.sh [URL_HERE] and run sudo DEVICE_UNDER_TEST=/dev/sda DEVICE_MOUNT_PATH=/mnt/sda1 ./disk-benchmark.sh (assuming the device is sda).

Also consider running PiBenchmarks.com script.

Network

iperf3 results:

  • iperf3 -c $SERVER_IP: 94.7 Mbps
  • iperf3 --reverse -c $SERVER_IP: 88.2 Mbps
  • iperf3 --bidir -c $SERVER_IP: 92.6 Mbps up, 63.9 Mbps down

(Be sure to test all interfaces, noting any that are non-functional.)

GPU

  • TODO: Haven't determined standardized benchmark yet. See Issue #2.

Memory

  • TODO: Haven't determined standardized benchmark yet. See Issue #2.
@geerlingguy
Copy link
Owner Author

One fun issue I've run into: I can't detect events like rising or falling edge (so gpiomon won't work) with the default Raspbian OS image. I can't seem to get it working with Armbian either, even though Libre computer says there should be a patch there for gpio_to_irq to make it work (you can only do up to 8 devices).

@geerlingguy
Copy link
Owner Author

I also had trouble using the i2c bus with a relay HAT, but found from this forum thread that I needed to manually grab and compile the overlay for the i2c bus from Libre Computer's own wiring project:

wget https://raw.githubusercontent.com/libre-computer-project/libretech-wiring-tool/master/libre-computer/aml-s905x-cc/dt/i2c-ao.dts
sudo armbian-add-overlay i2c-a.dts  # this compiles the overlay into /boot/overlay-user/i2c-a.dtbo
sudo reboot

And after that, I see the bus with i2cdetect:

pi@lepotato:~$ i2cdetect -l
i2c-0	i2c       	Meson I2C adapter               	I2C adapter
i2c-1	i2c       	DesignWare HDMI                 	I2C adapter

@geerlingguy
Copy link
Owner Author

To shutdown the board, you can't just run sudo shutdown now or sudo poweroff, you have to run sudo shutdown -H now to really halt it (otherwise it'll just reboot).

@github-actions
Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@geerlingguy
Copy link
Owner Author

Not too stale.

@dsx724
Copy link

dsx724 commented Oct 11, 2023

Hi @geerlingguy

  1. The IRQ stuff has been fixed on the latest 6.1.57 kernel on our images.
  2. Shutdown auto-restart was disabled a few months ago.
  3. We added support low power suspend state and resume.
  4. Wake from shutdown/suspend by UART RX activity, Magic Packet, IR (code not configurable yet but we might do it in the future), or by pulling GPIOH_6 to ground.

Thanks for bring up the issues. Let us know if you run into any other issues.

@geerlingguy
Copy link
Owner Author

@dsx724 - That's awesome, thank you so much!

@pugboy1321
Copy link

Bump!

@dsx724
Copy link

dsx724 commented Nov 11, 2024

@pugboy1321 Bump?

@geerlingguy
Copy link
Owner Author

@dsx724 I had asked @pugboy1321 to bump this thread so I would remember to get it added to the project README... which it now is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants