Artigos‎ > ‎Configuração de Hardware‎ > ‎Orange Pi‎ > ‎

Armbian Tricks

Primeiramente gostaria de salientar que não sou o autor principal do conteúdo deste artigo. A minha intenção é de mostrar o que outros autores tem realizado (referenciando links para o conteúdo original) neste blog até como um guia pessoal para uso próprio e ainda compartilhar minhas anotações e pequenas modificações que realizo no conteúdo, desejando que possa ajudar mais alguém em algum lugar.
First and foremost, I take no credit for any of this post’s content. I am really just taking what others have done (which I have links to bellow) and am putting it on my blog for a personal reference and hopefully the small changes that I made to their guides will help someone somewhere.


Login as root on console (HDMI / serial) or via SSH and use password 1234

check temperature
sudo armbianmonitor -r
nano /etc/rpimonitor/data.conf

sudo armbianmonitor -u
info paste it to an online pasteboard service

nmtui-connect casa

dpkg-reconfigure keyboard-configuration
dpkg-reconfigure locales
dpkg-reconfigure console-setup
dpkg-reconfigure tzdata

    480i        use "-m 480i" or "-m 0"
    576i        use "-m 576i" or "-m 1"
    480p        use "-m 480p" or "-m 2"
    576p        use "-m 576p" or "-m 3"
    720p50      use "-m 720p50" or "-m 4"
    720p60      use "-m 720p60" or "-m 5"
    1080i50     use "-m 1080i50" or "-m 6"
    1080i60     use "-m 1080i60" or "-m 7"
    1080p24     use "-m 1080p24" or "-m 8"
    1080p50     use "-m 1080p50" or "-m 9"
    1080p60     use "-m 1080p60" or "-m 10"
    1080p25     use "-m 1080p25" or "-m 11"
    1080p30     use "-m 1080p30" or "-m 12"
    1080p24_3d  use "-m 1080p24_3d" or "-m 13"
    720p50_3d   use "-m 720p50_3d" or "-m 14"
    720p60_3d   use "-m 720p60_3d" or "-m 15"
    1080p24_3d  use "-m 1080p24_3d" or "-m 23"
    720p50_3d   use "-m 720p50_3d" or "-m 24"
    720p60_3d   use "-m 720p60_3d" or "-m 25"
    1080p25     use "-m 1080p25" or "-m 26"
    1080p30     use "-m 1080p30" or "-m 27"
    4kp30       use "-m 4kp30" or "-m 28"
    4kp25       use "-m 4kp25" or "-m 29"
    800x480     use "-m 800x480" or "-m 31"
    1024x768    use "-m 1024x768" or "-m 32"
    1280x1024   use "-m 1280x1024" or "-m 33"
    1360x768    use "-m 1360x768" or "-m 34"
    1440x900    use "-m 1440x900" or "-m 35"
    1680x1050   use "-m 1680x1050" or "-m 36"

nano /etc/default/cpufrequtils
service cpufrequtils restart

sudo -s
wget -q -O /usr/local/bin/h3consumption ""
chmod 755 /usr/local/bin/h3consumption
h3consumption -H
h3consumption -p
On an Orange Pi Lite 'h3consumption -D 132 -c1 -g off -u off' reduces default idle consumption from 1060 mW by 660 mW to just 400 mW (same low consumption running identical settings possible with NanoPi M1, Orange Pi One/PC/PC Plus and maybe the larger boards too when GBit Ethernet PHY can be completely disabled)


nano /etc/modprobe.d/8189fs.conf

options 8189fs rtw_initmac=00:e0:4c:81:c0:fd

nano /boot/armbianEnv.txt

verbosity=7 #defaults to 1 which means less verbose, maximum value is 7
overlays=sun8i-h3-spdif-out sun8i-h3-analog-codec sun8i-h3-cir sun8i-h3-i2c2

list of overlays
more /boot/dtb/allwinner/overlay/README.sun8i-h3-overlays

overlays=sun8i-h3-uart1 sun8i-h3-uart2 sun8i-h3-uart3 sun8i-h3-i2c0 sun8i-h3-spi0-spidev

cat /boot/dtb/overlay/README.sun8i-h3-overlays This document describes overlays provided in the kernel packages For generic Armbian overlays documentation please see ### Platform: sun8i-h3 (Allwinner H3) ### Platform details: Supported pin banks: PA, PC, PD, PG Both SPI controllers have only one hardware CS pin exposed, adding fixed software (GPIO) chip selects is possible with a separate overlay ### Provided overlays: - analog-codec - cir - i2c0 - i2c1 - i2c2 - pps-gpio - pwm - spdif-out - spi-add-cs1 - spi-jedec-nor - spi-spidev - uart1 - uart2 - uart3 - usbhost0 - usbhost2 - usbhost3 - w1-gpio ### Overlay details: ### analog-codec Activates SoC analog codec driver that provides Line Out and Mic In functionality ### cir Activates CIR (Infrared remote) receiver CIR pin: PL11 ### i2c0 Activates TWI/I2C bus 0 I2C0 pins (SCL, SDA): PA11, PA12 ### i2c1 Activates TWI/I2C bus 1 I2C1 pins (SCL, SDA): PA18, PA19 ### i2c2 Activates TWI/I2C bus 2 I2C2 pins (SCL, SDA): PE12, PE13 On most board this bus is wired to Camera (CSI) socket ### pps-gpio Activates pulse-per-second GPIO client Parameters: param_pps_pin (pin) Pin PPS source is connected to Optional Default: PD14 param_pps_falling_edge (bool) Assert by falling edge Optional Default: 0 When set (to 1), assert is indicated by a falling edge (instead of by a rising edge) ### pwm Activates hardware PWM controller PWM pin: PA5 Pin PA5 is used as UART0 RX by default, so if this overlay is activated, UART0 and kernel console on ttyS0 will be disabled ### spdif-out Activates SPDIF/Toslink audio output SPDIF pin: PA17 ### spi-add-cs1 Adds support for using SPI chip select 1 with GPIO for both SPI controllers Respective GPIO will be claimed only if controller is enabled by another overlay This overlay is required for using chip select 1 with other SPI overlays Due to the u-boot limitations CS1 pin can't be customized by a parameter, but it can be changed by using an edited copy of this overlay A total of 4 chip selects can be used with custom overlays (1 HW + 3 GPIO) SPI 0 pins (CS1): PA21 SPI 1 pins (CS1): PA10 ### spi-jedec-nor Activates MTD support for JEDEC compatible SPI NOR flash chips on SPI bus supported by the kernel SPI NOR driver SPI 0 pins (MOSI, MISO, SCK, CS): PC0, PC1, PC2, PC3 SPI 1 pins (MOSI, MISO, SCK, CS): PA15, PA16, PA14, PA13 Parameters: param_spinor_spi_bus (int) SPI bus to activate SPI NOR flash support on Required Supported values: 0, 1 param_spinor_spi_cs (int) SPI chip select number Optional Default: 0 Supported values: 0, 1 Using chip select 1 requires using "spi-add-cs1" overlay param_spinor_max_freq (int) Maximum SPI frequency Optional Default: 1000000 Range: 3000 - 100000000 ### spi-spidev Activates SPIdev device node (/dev/spidevX.Y) for userspace SPI access, where X is the bus number and Y is the CS number SPI 0 pins (MOSI, MISO, SCK, CS): PC0, PC1, PC2, PC3 SPI 1 pins (MOSI, MISO, SCK, CS): PA15, PA16, PA14, PA13 Parameters: param_spidev_spi_bus (int) SPI bus to activate SPIdev support on Required Supported values: 0, 1 param_spidev_spi_cs (int) SPI chip select number Optional Default: 0 Supported values: 0, 1 Using chip select 1 requires using "spi-add-cs1" overlay param_spidev_max_freq (int) Maximum SPIdev frequency Optional Default: 1000000 Range: 3000 - 100000000 ### uart1 Activates serial port 1 (/dev/ttyS1) UART 1 pins (TX, RX, RTS, CTS): PG6, PG7, PG8, PG9 Parameters: param_uart1_rtscts (bool) Enable RTS and CTS pins Optional Default: 0 Set to 1 to enable ### uart2 Activates serial port 2 (/dev/ttyS2) UART 2 pins (TX, RX, RTS, CTS): PA0, PA1, PA2, PA3 Parameters: param_uart2_rtscts (bool) Enable RTS and CTS pins Optional Default: 0 Set to 1 to enable CTS and RTS pins ### uart3 Activates serial port 3 (/dev/ttyS3) UART 3 pins (TX, RX, RTS, CTS): PA13, PA14, PA15, PA16 Parameters: param_uart3_rtscts (bool) Enable RTS and CTS pins Optional Default: 0 Set to 1 to enable CTS and RTS pins ### usbhost0 Activates USB host controller 0 ### usbhost2 Activates USB host controller 2 ### usbhost3 Activates USB host controller 3 ### w1-gpio Activates 1-Wire GPIO master Requires an external pull-up resistor on the data pin or enabling the internal pull-up Parameters: param_w1_pin (pin) Data pin for 1-Wire master Optional Default: PD14 param_w1_pin_int_pullup (bool) Enable internal pull-up for the data pin Optional Default: 0 Set to 1 to enable the pull-up This option should not be used with multiple devices, parasite power setup or long wires - please use external pull-up resistor instead