Jump to content

jonokoi

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by jonokoi

  1. I have followed this guide and I can boot my Orange Pi Zero from SSD without the need for an SD card inserted.

     

    I want to keep a bootable backup for my system in case the SSD gets corrupted.

    I was thinking to clone my system in a USB stick (just like I did to clone from SD to SSD) and then use rsync once a week to keep everything up to date with a script like that.

    If I go in armbian-config > system > install I can see only one option: "Install/Update the bootloader on SD/eMMC".

     

    How could I clone from SSD to a USB stick? Is there a command like `sudo nand-sata-install`?

  2. I installed buster (5.10.21-sunxi) on an Orange Pi zero.

    I'm trying to install a package using a python venv which required python 3.8 but buster comes with python 3.7.

    I tried to update using this set of commands

    sudo wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
    sudo tar xzf Python-3.8.2.tgz
    cd Python-3.8.2
    ./configure --enable-optimizations
    make -j 4
    sudo make altinstall

    I tried to create a virtual environment with 

    python3.8 -m venv /srv/myapp

    but I get this error

    Error: Command '['/srv/myapp/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

     

    What does it mean? How could I fix this?

  3. Armbianmonitor:

    I used armbianmonitor -r on my OPi Zero just like I did previously on OPi One. On OPi One everything is working fine. On my zero it doesn't display all the information for CPU. It shows:

    CPU total: undefined% (Sys: undefined%, User: undefined%, I/O wait: undefined%, Nice: undefined%)
    
    CPU frequency: 1.008GHz  DRAM frequency: Not available
    
    Governor: ondemand  Active CPU cores: 4  Vcore: undefined

     

    If I run armbianmonitor -m it shows these data

    1871278521_Screenshot2021-02-16at20_24_11.png.f2cec94ec625be4f2ca4bc719d3f1575.png

     

    I checked Allwinner_H3_Extended.conf and I noticed that it reads files from /tmp (/tmp/cpustat, /tmp/disktemp, e.t.c)

    On my OPi One I see these files

    1711779607_Screenshot2021-02-16at20_34_04.png.b3b5d3fba891a65afb5e2bb6e2156e2b.png

     

    On OPi Zero there is no rpimonitor folder. I only see these

    armbian-hardware-optimization.OkJBzI
    systemd-private-0b4c896481294542b7b1cd8e7a270133-chrony.service-SHnE1R
    systemd-private-0b4c896481294542b7b1cd8e7a270133-haveged.service-qSLdic

     

    What could be the issue? 

     

  4. On 12/22/2018 at 8:40 PM, DoubleHP said:

    Random tips :
    - orange pi zero all have 2 SPI bus: one in the main GPIO port, and one for the flash on the back side. If you don't have the plus model, you can unsolder the FLASH and use the port. FLASH is port 1, so, GPIO is port 1. This is very important when you follow tutorials written for other opis
    - before you start following a tutorial, you need to understand which kernel you are using. If the turial is written after jan 2017, and mentions adding an overlay in armbianEnv.txt, then it's for kernel 4; if the tuto is before feb 2018, and does not mention altering armbianEnv.txt for SPI compatibility, author is using kernel 3. This is critical.
    - I got adressable LEDs working on both kernels, 3 and 4. Easier on 4.
    - SPI LCDs work only on kernel 3; I have spend days on kernel 4, just forget them; drivers exist, but they are broken.
    - con2fbmap is required only on kernel 3
    - to get X working, you need to create /etc/X11/xorg.conf.d/99-fbturbo.conf
    - check your FB number with a command like this: dmesg | grep ili | grep graphics | grep -i fb . I have seen people using 0, 1 and 8.

     

    Now, I have ili9486 working perfectly fine ... with image Armbian_5.35_Orangepizero_Ubuntu_xenial_default_3.4.113 (kernel 3.4.113).

     

    Hello friend,
    I know it's an old discussion but I have read many posts on many forums and I couldn't find a clear answer.
    I have an orange pi zero and I am not sure which version of armbian is compatible with SPI LCDs. I have a chinese waveshare clone 3.5" which is working fine on raspberry pi with waveshare drivers (both lcd and touchscreen).
    Which armbian and kernel version should I use? You mention that we should use kenrel 3.x but you had some success with 4.x as well (on another forum).
    Did you manage to enable touchscreen? I read that it could be done if we unsolder the flash rom so we could use the second SPI bus with touchscreen. Is it possible? Is there any other workaround?
    Thank you

  5. I try to update my jessie installation on orange pi one but I get errors.

    My kernel version is 3.4.113-sun8i

    My armbian.list file is this

    deb http://apt.armbian.com jessie main utils jessie-desktop

    My sources.list file is

    deb http://httpredir.debian.org/debian jessie main contrib non-free
    #deb-src http://httpredir.debian.org/debian jessie main contrib non-free
    
    deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
    #deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free
    
    deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
    #deb-src http://httpredir.debian.org/debian jessie-backports main contrib non-free
    
    deb http://security.debian.org/ jessie/updates main contrib non-free
    #deb-src http://security.debian.org/ jessie/updates main contrib non-free

    When I execute 'sudo apt-get update' I get these errors

    Hit http://security.debian.org jessie/updates InRelease                                                                                 
    Ign http://httpredir.debian.org jessie InRelease                                                                                        
    Hit http://httpredir.debian.org jessie-updates InRelease                                                         
    Ign http://httpredir.debian.org jessie-backports InRelease                                                       
    Hit http://httpredir.debian.org jessie Release.gpg                                          
    Ign http://httpredir.debian.org jessie-backports Release.gpg                                            
    Ign http://apt.armbian.com jessie InRelease                                                             
    Get:1 http://security.debian.org jessie/updates/main armhf Packages [953 kB]                            
    Hit http://httpredir.debian.org jessie Release                                                          
    Hit http://download.mono-project.com wheezy InRelease                                                                     
    Get:2 http://httpredir.debian.org jessie-updates/main armhf Packages [20 B]                                               
    Ign http://apt.armbian.com jessie Release.gpg                                                               
    Hit http://download.mono-project.com wheezy-apache24-compat InRelease           
    Hit https://apt.sonarr.tv master InRelease                                      
    Get:3 http://httpredir.debian.org jessie-updates/contrib armhf Packages [20 B]                        
    Hit http://download.mono-project.com wheezy-libjpeg62-compat InRelease                                                                        
    Get:4 http://httpredir.debian.org jessie-updates/non-free armhf Packages [20 B]                                               
    Get:5 http://download.mono-project.com wheezy/main armhf Packages [60.5 kB]                                                                    
    Ign http://httpredir.debian.org jessie-backports Release                                                      
    Ign http://apt.armbian.com jessie Release                                                
    Get:6 https://apt.sonarr.tv master/main armhf Packages [85.0 kB]                                                         
    Get:7 http://httpredir.debian.org jessie/main armhf Packages [8,898 kB]                                                                                   
    Get:8 http://download.mono-project.com wheezy-apache24-compat/main armhf Packages [589 B]                                                  
    Get:9 http://download.mono-project.com wheezy-libjpeg62-compat/main armhf Packages [591 B]                                                                
    Get:10 http://security.debian.org jessie/updates/contrib armhf Packages [994 B]                                                                         
    Get:11 http://security.debian.org jessie/updates/non-free armhf Packages [4,393 B]                          
    Get:12 http://apt.armbian.com jessie/jessie-desktop armhf Packages [178 B]                                                                                
    Err http://apt.armbian.com jessie/jessie-desktop armhf Packages                                                                                           
      
    Get:13 http://apt.armbian.com jessie/main armhf Packages [178 B]                                                                                          
    Err http://apt.armbian.com jessie/main armhf Packages                                                                                                     
      
    Get:14 http://apt.armbian.com jessie/utils armhf Packages [178 B]                                                                                         
    Err http://apt.armbian.com jessie/utils armhf Packages                                                                                                    
      
    Get:15 http://apt.armbian.com jessie/jessie-desktop armhf Packages [178 B]                                                                                
    Err http://apt.armbian.com jessie/jessie-desktop armhf Packages                                                                                           
      
    Get:16 http://apt.armbian.com jessie/main armhf Packages [178 B]                                                                                          
    Err http://apt.armbian.com jessie/main armhf Packages                                                                                                     
      
    Get:17 http://apt.armbian.com jessie/utils armhf Packages [178 B]                                                                                         
    Get:18 http://apt.armbian.com jessie/jessie-desktop armhf Packages [178 B]                                                                                
    Err http://apt.armbian.com jessie/jessie-desktop armhf Packages                                                                                           
      
    Get:19 http://apt.armbian.com jessie/main armhf Packages [178 B]                                                                                          
    Err http://apt.armbian.com jessie/main armhf Packages                                                                                                     
      HttpError404
    Get:20 http://apt.armbian.com jessie/utils armhf Packages [178 B]                                                                                         
    Err http://apt.armbian.com jessie/utils armhf Packages                                                                                                    
      HttpError404
    Get:21 http://apt.armbian.com jessie/jessie-desktop armhf Packages [178 B]                                                                                
    Err http://apt.armbian.com jessie/jessie-desktop armhf Packages                                                                                           
      HttpError404
    Get:22 http://httpredir.debian.org jessie/contrib armhf Packages [44.3 kB]                                                                                
    Get:23 http://httpredir.debian.org jessie/non-free armhf Packages [74.9 kB]                                                                               
    Err http://httpredir.debian.org jessie-backports/main armhf Packages                                                                                      
      404  Not Found [IP: 199.232.34.133 80]
    Err http://httpredir.debian.org jessie-backports/contrib armhf Packages                                                                                   
      404  Not Found [IP: 199.232.34.133 80]
    Err http://httpredir.debian.org jessie-backports/non-free armhf Packages                                                                                  
      404  Not Found [IP: 199.232.34.133 80]
    Fetched 10.1 MB in 20s (483 kB/s)                                                                                                                         
    W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-armhf/Packages  404  Not Found [IP: 199.232.34.133 80]
    
    W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/contrib/binary-armhf/Packages  404  Not Found [IP: 199.232.34.133 80]
    
    W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/non-free/binary-armhf/Packages  404  Not Found [IP: 199.232.34.133 80]
    
    W: Failed to fetch http://apt.armbian.com/dists/jessie/main/binary-armhf/Packages  HttpError404
    
    W: Failed to fetch http://apt.armbian.com/dists/jessie/utils/binary-armhf/Packages  HttpError404
    
    W: Failed to fetch http://apt.armbian.com/dists/jessie/jessie-desktop/binary-armhf/Packages  HttpError404
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.

    What is the issue? Is jessie not supported for updates? Could I use other sources to fix it?

  6. I’m trying to use a 3.5 LCD (waveshare clone) with ILI9486 + XPT2046 with my orange pi zero. My display is like this.

    I installed both Debian_buster_next_4.19.59 and Ubuntu_bionic_next_4.19.57 and I followed many guides in here  with no success.

     

    I edited armbianEnv.txt and added these:

    overlays=spi-spidev spi-add-cs1
    param_spidev_spi_bus=1
    param_spidev_spi_cs=1

     

    After that I ran this

    sudo modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1 rotate=90

    and didn’t get any error. I figured that the reset & DC pins on orange pi zero are pin22(GPIO2) and pin18(GPIO18) but I’m not 100% sure about these.

     

    With dmesg I see these:

    [  179.174013] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
    [  179.181645] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
    [  179.183696] spidev spi1.1: spidev spi1.1 1000kHz 8 bits mode=0x00
    [  179.184295] fbtft_device: GPIOS used by 'fb_ili9486':
    [  179.184307] fbtft_device: 'dc' = GPIO18
    [  179.184314] fbtft_device: 'reset' = GPIO2
    [  179.184331] spidev spi1.1: spidev spi1.1 1000kHz 8 bits mode=0x00
    [  179.184347] spi spi1.0: fb_ili9486 spi1.0 16000kHz 8 bits mode=0x00
    [  179.202576] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned.
    [  179.749873] Console: switching to colour frame buffer device 60x40
    [  179.751385] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB buffer memory, fps=20, spi1.0 at 16 MHz

     

    I tried

    con2fbmap 1 0

    but the screen remains white

     

    What else could I try? How could I debug the issue?

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines