Jump to content

mantouboji

Members
  • Posts

    111
  • Joined

  • Last visited

Posts posted by mantouboji

  1. On 2017/8/19 at 3:43 AM, martinayotte said:

     

    no works:

     

    yaofei@opione1:~$ dmesg  | grep usb0
    [    3.165900] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc/pinctrl@01f02c00/usb0_vbus_pin@0, deferring probe
    [    3.906582] usb0-vbus: disabling
    yaofei@opione1:~$ uname -a
    Linux opione1 4.11.12-sun8i #19 SMP Wed Aug 23 23:51:57 CST 2017 armv7l armv7l armv7l GNU/Linux

  2. I use the OrangePi Zero.  But it is similar to other model.

     

    It's very simple:

     

    1) use the mainline 4.11.x kernel 

    2) enable the uart1 and pps-gpio in /boot/armbianEnv.txt  like this :

      

    overlays=uart1 pps-gpio
    param_pps_pin=PA7

     

    3) edit /etc/default/gpsd  to use ttyS1 as gps device

    # Devices gpsd should collect to at boot time.
    # They need to be read/writeable, either by user gpsd or the group dialout.
    DEVICES="/dev/ttyS1"
    # Other options you want to pass to gpsd
    GPSD_OPTIONS="-G -n "

     

    4) If you use ntpd,  edit /etc/ntpd.conf like this:

    # GPS Serial data reference
    server 127.127.28.0 minpoll 4 maxpoll 4 prefer
    fudge 127.127.28.0 time1 0.135 refid GPS
    
    server 127.127.22.0 maxpoll 4         # ATOM(PPS)
    fudge 127.127.22.0 flag3 1            # enable PPS API

     

    5) Or if you prefer crony rather than ntp, install chrony instead of ntp, edit /etc/chrony/chrony.conf , add this to end of it:

    refclock SHM 0 refid GPS precision 1e-1 offset 0.134 delay 0.2 noselect
    refclock PPS /dev/pps0 lock GPS

    6) connect GPS module to UART1 

        GPS      Zero

    ---------------------

       TXD        UART1_RX PIN10

       RXD        UART1_TX  PIN8

      PPS          IO-1  PIN12

     

    7)  use ntpq -p  or chrony sources. to check it.

     

    IMG_8535.JPG

  3. 1 hour ago, kutysam said:

    Yeap. I'm the OP in that thread. Do try plugging in the otg,  only after your pi has fully loaded. It may work for the momment.

     

    dmesg | grep usb0

     

    [    3.165850] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc/pinctrl@01f02c00/usb0_vbus_pin@0, deferring probe
    [    3.906543] usb0-vbus: disabling

     

     

  4. On 2017/7/31 at 0:29 AM, kutysam said:

    nano /boot/armbianEnv.txt

     

    add in this overlay

    overlays=usbhost0

     

    but there is a bug if you reboot. I'm posting the bug right now.

     

    Thanks, but don't works. 

     

    In fact I've tried every usbhostX overlay before post this topic.

  5. There are two USB dongles on my Orange Pi One box, one is a USB Bluetooth in USB-OTG port and other is a mu7601 USB WiFi in the USB port. When I switched it from legacy kernel to lastest development kernel 4.11.x, the bluetooth card disappeared. So I exchange two dongles each other , the one in USB port works, and the one in USB-OTG port always failed.

     

    Is there any solution?

  6. I'm testing the GPS PPS function.

     

    If I use PA7 (GPIO PIN 12 in OrangePI Zero),  get nothing.

     

    But if change to PA3, (GPIO PIN 15), it works well ether pps-gpio module or gpsd itself.

     

    Is any strange stuff on PA7?

  7. What's the FDT_NO_SPACE error? 

     

    
    U-Boot SPL 2017.05-armbian (May 19 2017 - 04:11:50)
    DRAM: 512 MiB
    Trying to boot from MMC1
    
    
    U-Boot 2017.05-armbian (May 19 2017 - 04:11:50 +0200) Allwinner Technology
    
    CPU:   Allwinner H3 (SUN8I 1680)
    Model: Xunlong Orange Pi Zero
    DRAM:  512 MiB
    MMC:   SUNXI SD/MMC: 0
    *** Warning - bad CRC, using default environment
    
    In:    serial
    Out:   serial
    Err:   serial
    Net:   phy interface0
    eth0: ethernet@1c30000
    Hit any key to stop autoboot:  0 
    38518 bytes read in 162 ms (231.4 KiB/s)
    Unknown command 'bmp' - try 'help'
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    Found U-Boot script /boot/boot.scr
    3559 bytes read in 228 ms (14.6 KiB/s)
    ## Executing script at 43100000
    U-boot loaded from SD
    Boot script loaded from mmc
    268 bytes read in 197 ms (1000 Bytes/s)
    6666433 bytes read in 861 ms (7.4 MiB/s)
    5817752 bytes read in 808 ms (6.9 MiB/s)
    Found mainline kernel configuration
    24379 bytes read in 683 ms (34.2 KiB/s)
    799 bytes read in 534 ms (1000 Bytes/s)
    Applying kernel provided DT overlay sun8i-h3-w1-gpio.dtbo
    fdt_overlay_apply(): FDT_ERR_NOSPACE
    506 bytes read in 657 ms (0 Bytes/s)
    Applying kernel provided DT overlay sun8i-h3-uart1.dtbo
    fdt_overlay_apply(): FDT_ERR_BADMAGIC
    796 bytes read in 696 ms (1000 Bytes/s)
    Applying kernel provided DT overlay sun8i-h3-pps-gpio.dtbo
    fdt_overlay_apply(): FDT_ERR_BADMAGIC
    Error applying DT overlays, restoring original DT
    24379 bytes read in 682 ms (34.2 KiB/s)
    ## Loading init Ramdisk from Legacy Image at 43300000 ...
       Image Name:   uInitrd
       Image Type:   ARM Linux RAMDisk Image (gzip compressed)
       Data Size:    6666369 Bytes = 6.4 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 43000000
       Booting using the fdt blob at 0x43000000
       Loading Ramdisk to 499a4000, end 49fff881 ... OK
       Loading Device Tree to 4999b000, end 499a3f3a ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    

     

  8. modify fex file like this:

     

    [uart1]

    uart_used = 1
    uart_port = 1
    # 2 for 2-wire
    uart_type = 2
    uart_tx = port:PG06<2><1><default><default>
    uart_rx = port:PG07<2><1><default><default>
     
    [gpio_para]
    gpio_used = 1
    gpio_num = 16
    ...
    #gpio_pin_17 = port:PG09<0><default><default><0>
     
    #for UART1
    #gpio_pin_18 = port:PG06<1><default><default><default>
    #gpio_pin_19 = port:PG07<1><default><default><default>
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines