-
Posts
111 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by mantouboji
-
-
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.
-
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 -
16 hours ago, kutysam said:
overlays=usbhost0 usbhost1 usbhost2 usbhost3
still not working??
dmesg?
Yeah, OTG port is usbhost0, but there is a power switch controlled by PL2, it is not enabled. martinayotte said he will release a patch.
-
It seems the usb0_vbus pin (PL2) not active to open the power.
-
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.
-
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?
-
use the main-line kernel
-
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?
-
that's all right. Thx.
-
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.
-
Wow
What is then the algorithm counting pins?
PA = 0
PB = 1
PC = 2
PD = 3
PE = 4
PF = 5
PG = 6
Physical pin 18 this PC07 pin H3
PC07 = 32*2 + 7 = 71
This is the correct understanding?
Yeah, you're so smart .
-
o, PG09 is GPIO 201, so
yaofei@opigps:/etc$ more modprobe.d/pps-gpio.conf #PG9 = 32*6 + 9 = 201 options pps-gpio gpio_pin=201
-
modify fex file like this:
[uart1]
uart_used = 1uart_port = 1# 2 for 2-wireuart_type = 2uart_tx = port:PG06<2><1><default><default>uart_rx = port:PG07<2><1><default><default>[gpio_para]gpio_used = 1gpio_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> -
-
You're so humor.
The default kernel for Armbian on H3 is 3.4.112 .
At last, I found this https://github.com/infinet/bananapi.git , very amazing.
-
I plug the GPS module PPS output to OPiOne's GPIO pin PG09,
modify fex file to release PG09 from GPIO,
and then run gpsd, PPS worked!
It's very strange, no any device tree setup.
-
Thank you for your advice.
-
Maybe I can add a pps-gpio section in .dts file in u-boot source?
-
whatever,is there any method?
-
I want to build a GPS timeserver like
http://rdlazaro.info/compu-Raspberry_Pi-RPi-stratum0.html
I modified the kernel config to use the pps-gpio module in kernel , but since H3 linux kernel don't support device tree yet, Is there any method to assign a GPIO pin to this module ? I don't want to hard-code in the source code .
-
You can try to play some Hires movie including DTS-HD soundtrack.
-
Now. I use 'h3disp -m 1080p60' to use only with HDMI and TV, no DVI, then speaker-test -c 2 -D hw:1 runs well.
but use gst123 -a alsa=hw:1 and no any sounds yet.
mplayer2 is OK as you said.
-
OK, I add a console=ttyS0,115200 to boot.cmd, and rebuild boot.scr, now serial console is working. I can login . but Ethernet is not working, no any IP
从我的 iPad å‘é€ï¼Œä½¿ç”¨ Tapatalk
-
I connect it to my TV directly by HDMI, no any text displayed.
Yes, I find a new IP address after the One boot, but it has only one service, port 80, and use browser to access it, get a blank page "not found". No ssh service.
Orange Pi One USB-OTG
in Allwinner sunxi
Posted
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