Jump to content

haajee

Members
  • Posts

    113
  • Joined

  • Last visited

Posts posted by haajee

  1. I read a few instructions for building a kernel. But because better safe than sorry. ;)

     

    I want to upgrade the kernel of my Orange Pi 4 to a newer one. it runs now:

    4-OrangePi:~:# uname -a
    Linux 4-OrangePi 5.10.63-rockchip64 #21.08.2 SMP PREEMPT Wed Sep 8 10:57:23 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

     

    So, for me as beginner with my headless setup it's:

    1. run compile.sh

    2. Choose U-boot and kernel packages

    3. Do not change the kernel configuration

    4. Choose the board. Orange Pi 4

    5. There we go. Output goes to output/debs/

    6. Copy all the debs files to my Orange Pi 4 and run sudo dpkg -i *.deb

     

     

  2. Hi all,

     

    I think i have made a mistake but i don't know what. Do someone know what goes wrong?

     

    Yesterday i have played with the PCIe port on the Orange Pi 4 with the original extension module. Plugged in a Dell (Ericsson) 5560 HSPA in the board and it works all fine. It was detected. Did not get the connection working with sim tray but ok. It works and reacts on AT commands. So far so good. Then i tries to plugin a wifi card (doesn't know exactly wich one. I thought Intel 6230) but didn't want to boot and a green led lights up on the PCIe board what i has never seen before. After that i thought: ''hmm, there is here laying a old Dell Latitude D630. There is a PCIe wifi card inside'' so i removed the WLAN board from the laptop (Intel 4965 MM2) and disconnect the 3 cables and plugged the standard wifi cable back that is delivered with the Orange Pi. Boot up but when i was just sitting did hear *pop* and smells like electronics leave there magic smoke.

     

    Clearly a chip on the Intel 4965 MM2 board is fried up. Luckely the PCIe and the Orange Pi 4 works normally. But i don't know what happen! Maybe i pushed on the reset button what broke it? I don't really know! Has someone a suggestion? Are the mini PCIe cards what you should not put in?

  3. Hi all,

     

    Maybe there are a lot people who got this working but for me was today the day. I buyed a time a go a cheap but fast NVME SSD from Aliexpress. The smallest one a 128GB. I have also a 512GB in my laptop and for the price they are really good. :) But i needed also a USB-NVME external housing. That is the Ugreen NVME 10GBps to USB adapter.

     

    In very short but i will explain more in the future.

     

    1. Flash a MicroSD card with your favourite Armbian to the MicroSD. Update with sudo apt-get update.  Also with a SSH session not a problem.

    2. Place the USB disk in a USB 3.0 port of the Orange Pi. By the OrangePi 4 it´s the blue one on the top.

    3. run the command lsusb

    4. Notice the dev id. In my situation it´s 174c:2362

    5. Run the command with off course your dev id. Notice the :u at the end that must be added.

    echo "174c:2362:u" | sudo tee /sys/module/usb_storage/parameters/quirks

    6. Replug the USB drive. I see the activity led on the drive short flashing.

    7. Run the following command

    sudo nano /boot/armbianEnv.txt

    8. Add the dev id after usbstoragequirks and close and save the file. By my system is the complete row:

    usbstoragequirks=174c:2362:u,0x2537:0x1066:u,0x2537:0x1068:u

    7. Logout and in with your root account! This is very important. With sudo is this not possible.

    8. Open armbian-config. Select System->Update Bootloader-> Boot from SD, root from NVME/eMMC etc.

    9. The tool will ask you the directory to the disk. Most of time is this standard correct. You get a question about the filesystem. Select EXT4. You get a warning that the disk would be erased. Click on Ok.

    10. Wait patiently to finish

    11. And without failures you could click reboot and boot from USB/NVME! :)

     

    By my is the Orange:Pi a  lot faster! Booting, updating copy files. Everything. I am really happy with this! :)

  4. On 8/8/2020 at 11:47 AM, firedgje said:

    Another solution to avoid noise and fan management for orange pi 4 is to use a big heatsink (fanless solution):

     

    Orange Pi 4 Heatsink

     

    I tried it and it works well.

     

    The temperature can rise to 85°C in peak (and 82°C in average) when I tried to stress the cpu with benchmark or with high resolution youtube video, but I never stayed stuck due to a overheat.

    In normal use, I have more something between 58 to 65 °C.

     

    IMHO is 85 celsius really hot. I don´t also know how a big themalpad could work. Is the heatsink warm when you run?

     

    On 8/3/2020 at 2:04 PM, VyacheslavS said:

     

    I also bought the same one, about 15 Euros.  I configured the script and now it starts to rotate from +35, the rotation speed is floating. The maximum spin speed starts at +60 . This cooler is really quiet and worth it money.

     

    Mine have i running really slow and the temperature is arround 32 degrees on normal day with normal load. Full speed about 50 degrees. But i need to say that i have also a heatsink on the CPU from an old Fritzbox router. But even on fullspeed is the fan really quiet and you need to listen very well to here it run. In my opinion is 15 euros a really good deal when i compare with a lot of noisie fans i have. The only problem is that the fan is a little bit bigger than the fan opening of the Geekworm case... So i din´t have the original cover on the case...

     

    temperatuur-laatste-maan.thumb.jpeg.681e4f8d8484fd9b70a60660060cc496.jpeg

  5. On 7/11/2020 at 2:25 PM, VyacheslavS said:

    @haajee , This is a problem with my cooler.  It starts rotating with 3.3 V. If the tension is less, then silence.

    I took voltage measurements from 7 pin.  The voltage on this pin is: min=1.0 V, max=2.9 V.

    Tell me please did you connect Noctua NF-A4x20 5V PWM directly or via MOSFET?

    In Noctua cooler with 4 pins or 3 pins?

     

    Very sorry for my always late anwsers. I have my nf-a4x20-5v-pwm directly connected to gnd and 5V pin on the orange pi. The PWM pin do i have connected to pin 7. The RPM pin did i have not connected. I have bought the Noctua in a local internet store for arround €12,- without shipping. The fan is also on full speed so much silent than al the fans i got. I am a really Fanboy now of Noctua ;) I could advice you to buy. :) more specifications are here https://noctua.at/en/products/fan/nf-a4x20-5v-pwm

     

    All what you post is exactly the same what i have... I don´t see a different.

     

  6. Oh i found just the solution in this topic: https://unix.stackexchange.com/questions/239782/connection-problem-with-usb3-external-storage-on-linux-uas-driver-problem

     

    i need to run

    
    echo "174c:2362:u" | sudo tee /sys/module/usb_storage/parameters/quirks
    
    

     

    And after reinsert it works and i could mount the drive! :)

     

    And for the people who are interested. A small test on the disk:

    
    sudo hdparm -tT /dev/disk/by-label/WinToUSB /dev/disk/by-label/WinToUSB
    
    
    /dev/disk/by-label/WinToUSB:
     Timing cached reads:   2662 MB in  2.00 seconds = 1331.48 MB/sec
    SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     Timing buffered disk reads: 1034 MB in  3.00 seconds = 344.54 MB/sec
    
    /dev/disk/by-label/WinToUSB:
     Timing cached reads:   2764 MB in  2.00 seconds = 1382.84 MB/sec
    SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     Timing buffered disk reads: 1028 MB in  3.01 seconds = 341.88 MB/sec
    
    
  7. Hmm, sorry for the kick of this topic. But i trie to connect a USB 3.0 to NVME adapter on the USB 3.0 port. But just after insert it´s detected, But when i trie lsusb -v i got errors and lsusb hangs. After that the nvme disk is not detected anymore. On USB 2.0 it works ok but slow. When i connect on a USB 3.0 hub with external power the same problem happen.

     

    When the USB 3.0 lsusb -v hangs:

    
    $ sudo lsusb -v
    
    Bus 004 Device 030: ID 174c:2362 ASMedia Technology Inc.
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               3.20
      bDeviceClass            0
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0         9
      idVendor           0x174c ASMedia Technology Inc.
      idProduct          0x2362
      bcdDevice            1.00
      iManufacturer           2 (error)
      iProduct                3 (error)
      iSerial                 1 (error)
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0079
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xc0
          Self Powered
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     80 Bulk-Only
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst              15
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst              15
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       1
          bNumEndpoints           4
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     98
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst              15
            MaxStreams             32
            Data-in pipe (0x03)
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst              15
            MaxStreams             32
            Data-out pipe (0x04)
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x83  EP 3 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst              15
            MaxStreams             32
            Status pipe (0x02)
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x04  EP 4 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0400  1x 1024 bytes
            bInterval               0
            bMaxBurst               0
            Command pipe (0x01)
    can't get debug descriptor: Resource temporarily unavailable
    
    

     

    On USB 2.0 port:

    
    Bus 002 Device 002: ID 174c:2362 ASMedia Technology Inc.
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.10
      bDeviceClass            0
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x174c ASMedia Technology Inc.
      idProduct          0x2362
      bcdDevice            1.00
      iManufacturer           2 Ugreen
      iProduct                3 Ugreen Storage Device
      iSerial                 1
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0020
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xc0
          Self Powered
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     80 Bulk-Only
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0040  1x 64 bytes
            bInterval               0
    Binary Object Store Descriptor:
      bLength                 5
      bDescriptorType        15
      wTotalLength       0x002a
      bNumDeviceCaps          3
      USB 2.0 Extension Device Capability:
        bLength                 7
        bDescriptorType        16
        bDevCapabilityType      2
        bmAttributes   0x0000f41e
          BESL Link Power Management (LPM) Supported
        BESL value     1024 us
        Deep BESL value    61440 us
      SuperSpeed USB Device Capability:
        bLength                10
        bDescriptorType        16
        bDevCapabilityType      3
        bmAttributes         0x00
        wSpeedsSupported   0x000e
          Device can operate at Full Speed (12Mbps)
          Device can operate at High Speed (480Mbps)
          Device can operate at SuperSpeed (5Gbps)
        bFunctionalitySupport   1
          Lowest fully-functional device speed is Full Speed (12Mbps)
        bU1DevExitLat          10 micro seconds
        bU2DevExitLat        2047 micro seconds
      SuperSpeedPlus USB Device Capability:
        bLength                20
        bDescriptorType        16
        bDevCapabilityType     10
        bmAttributes         0x00000001
          Sublink Speed Attribute count 1
          Sublink Speed ID count 0
        wFunctionalitySupport   0x1100
        bmSublinkSpeedAttr[0]   0x000a4030
          Speed Attribute ID: 0 10Gb/s Symmetric RX SuperSpeedPlus
        bmSublinkSpeedAttr[1]   0x000a40b0
          Speed Attribute ID: 0 10Gb/s Symmetric TX SuperSpeedPlus
    can't get debug descriptor: Resource temporarily unavailable
    Device Status:     0x0001
      Self Powered
    
    

  8. On 4/19/2020 at 6:25 AM, VyacheslavS said:

    @haajee,

    I have for some reason does not work, there is no signal from the 7 pin.

    Kernel 5.6.3 Buster.

    What else do I need to do to make it work?

     

    Oh sorry i didn´t saw your post. My fan script is now:

     

    #!/bin/bash
    
    if [ ! -d /sys/class/pwm/pwmchip1/pwm0 ]; then
        echo 0 > /sys/class/pwm/pwmchip1/export
    fi
    sleep 1
    while [ ! -d /sys/class/pwm/pwmchip1/pwm0 ];
    do
        sleep 1
    done
    ISENABLE=`cat /sys/class/pwm/pwmchip1/pwm0/enable`
    if [ $ISENABLE -eq 1 ]; then
        echo 0 > /sys/class/pwm/pwmchip1/pwm0/enable
    fi
    echo 50000 > /sys/class/pwm/pwmchip1/pwm0/period
    echo 1 > /sys/class/pwm/pwmchip1/pwm0/enable
    
    # max speed run 60s
    echo 0 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle
    sleep 5
    echo 50000 > /sys/class/pwm/pwmchip1/pwm0/duty_cycle
    
    declare -a CpuTemps=(45000 40000 38000 30000 28000 0)
    declare -a PwmDutyCycles=(1000 5000 10000 15000 30000)
    
    while true
    do
            temp=$(cat /sys/class/thermal/thermal_zone0/temp)
            for i in 0 1 2 3 4 5; do
                    if [ $temp -gt ${CpuTemps[$i]} ]; then
                            DUTY=${PwmDutyCycles[$i]}
                            echo $DUTY > "/sys/class/pwm/pwmchip1/pwm0/duty_cycle";
                            echo "temp: $temp, target: ${CpuTemps[$i]}, duty: $DUTY"
                            break
                    fi
            done
            sleep 1s;
    done

    Do you see something if you go to /sys/class/pwm/pwmchip1?  And do you have installed wiring orangepi from:  https://github.com/orangepi-xunlong/wiringOP ?? what does the command gpio readall shows?

  9. Hmm this week i thought i has restored the driver HCD file with the other mac adress. Restored again and it´s ok, But better: i have bluetooth now working i wanted. I stream from my orangepi music to a bluetooth device and it works like a charm. I have used this 2 site for reference:

    https://wiki.archlinux.org/index.php/Bluetooth_headset

    http://mygeeks014.blogspot.com/2017/05/audio-streaming-to-bluetooth-speaker.html

     

    Very very nice! Thank you all.

     

  10. On 6/2/2020 at 9:42 PM, piter75 said:

    It is fixed for some time already. It's just that there were no releases built for the board in the meantime.

    It is however part of v20.05.1 - after you upgrade you should not see it disappearing again.

     

    I has upgraded and even with a clean image Focal Desktop from here doesn´t Bluetooth works... Bleutoothctl list doesn´t show the bluetooth module also. hciconfig shows the adapter but with status down. When i try to start with hciconfig hci0 up i got the error messge: Can't init device hci0: Operation not supported (95).

  11. Hi all,

     

    I wanna try to use the hardware PWM on pin 7 of my orange pi one plus. Connect the fan. Toggle the SPI to enable, install wiring orangepi and all looks ok. But when in go to /sys/class/pwm i got a empty directory. I thought the should be a device pwmchip0 or something. I searched on the internet but can´t find a solution.

     

    This is what WiringOrangePi shows:

     

    pwm.png.3e4e7bb131575dea6836d7a43751e8d5.png

     

    Is there someone who knows what i do wrong or hwat i should do? Thank you! :)

  12. The bluetooth of the OPI4 drives me a little bit crazy. Try for a week to connect a bluetooth speaker but can´t get it working. I know that directly after a reboot i could start a scan: sudo bluetoothctl scan on. But after a few minutes i got contineusly ..

     

    @4-OrangePi:~ $ sudo bluetoothctl             
    Agent registered
    [bluetooth]# scan on
    [bluetooth]# power on
    Changing power on succeeded
    [bluetooth]# scan on
    Failed to start discovery: org.bluez.Error.InProgress
    [bluetooth]# scan on
    Failed to start discovery: org.bluez.Error.InProgress
    Failed to start discovery: org.freedesktop.DBus.Error.NoReply
    [bluetooth]# 

     

  13. On 4/19/2020 at 2:18 PM, Jack953 said:

    Happy to see a new image, can you guys make a buster / buster minimal please ?

     

    You mean an buster with the 5.x kernel without desktop i think? I am waiting also therefore. There is a version with kernel 4.x and i i try to upgrade the kernel there goes something wrong.

     

    So from me also the question for a buster server version with kernel 5.x :) And yes i have donated ;)

     

    For the people who are interested, Geekworm have a metal case for the OrangePi 4. https://nl.aliexpress.com/item/4000899514401.html

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines