geerlingguy / sbc-reviews

Jeff Geerling's SBC review data - Raspberry Pi, Radxa, Orange Pi, etc.
MIT License
350 stars 9 forks source link

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

Open geerlingguy opened 1 year ago

geerlingguy commented 1 year ago

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

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:

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

GPU

Memory

geerlingguy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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[bot] commented 11 months ago

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 commented 11 months ago

Not too stale.

dsx724 commented 8 months ago

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 commented 8 months ago

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