Jump to content

yogesh

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

1396 profile views
  1. I am using armbian wip config to build . Please correct me and guide. ignore if it sound no sense. uboot and kernel able to find both on board stoarge and sd card ( evo 16gb) . find below given boot and dmesg snippet. Boot log : NAND: metal 28 hwcfg 4286, use eMMC, skip nand init 0 MiB MMC: MMC: registered mmc interface 0 Cannot find the emmc corresponding mclk adj and inv.Now use default zero. Please add it MMC: registered mmc interface 1 ERROR: v7_dcache_inval_range - stop address is not aligned - 0x8dae6aa8 ----------------------------------------- MMC: 0, MMC: 1 dmesg o/p : [ 4.468566] mmc1: card claims to support voltages below the defined range. These will be ignored. [ 4.479980] mmc1: queuing unknown CIS tuple 0x10 (5 bytes) [ 4.481994] rda-mmc rda-mmc.1: set clk = 20000000, bus_clk = 200000000, divider = 4 [ 4.482055] rda-mmc rda-mmc.1: set bus_width = 4 [ 4.482116] mmc1: queuing unknown CIS tuple 0x10 (5 bytes) [ 4.482482] mmc1: new SDIO card at address 4829 RDA8810 has in built toshiba slc 1.8v nand . RDA8810 kerenel needs the patch for 3.10.62 I am learning to hack and not sure how to patch for 3.10.62. https://lkml.org/lkml/2007/3/16/437 https://patchwork.ozlabs.org/patch/222186/ https://patchwork.kernel.org/patch/7467351/
  2. Device used : AC600 ( 7610U chip set) USB device string 0e8d:7610 Armbian 5.05 has driver 7601. README.md says "# DON'T USE!! This driver is old + buggy - use the official Linux driver instead" Tried the drivers from http://www.mediatek.com/AmazonS3/Downloads/linux/mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2. Compiled and installed with armbian kernel 3.4.110-sun8i without issue . Here is the quick steps : modprobe -f mt7610u_sta ifconfig ra0 up iwpriv ra0 set WirelessMode=Managed iwpriv ra0 set AuthMode=WPA2PSK iwpriv ra0 set EncrypType=AES iwpriv ra0 set SSID=xxxxxxxx iwpriv ra0 set WPAPSK=xxxxxx dhclient ra0 root@orangepione:~# iwconfig ra0 ra0 Ralink STA ESSID:"xxxxxxxx" Nickname:"MT7610U_STA" Mode:Managed Frequency=2.412 GHz Access Point: 64:09:80:7B:7E:B6 Bit Rate=48 Mb/s RTS thr:off Fragment thr:off Encryption key:43E2-F2C5-C297-3556-3F48-A7FF-35A9-7B6C Security mode:restricted Security mode:open Link Quality=73/100 Signal level:-70 dBm Noise level:-99 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 root@orangepione:~# ifconfig ra0 ra0 Link encap:Ethernet HWaddr 80:3f:5d:16:47:a4 inet addr:192.168.1.115 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::823f:5dff:fe16:47a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4182 errors:0 dropped:0 overruns:0 frame:0 TX packets:241 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1236394 (1.1 MiB) TX bytes:31385 (30.6 KiB) root@orangepione:~#
  3. Even applying thermal patch cpu temperature stays at 80+C which initiates core shutdown. Currently I am on armbian 5.04 and ambient temperature is 33C which may go upto 45. I am working on video streams with OP that consumes lots of CPU and other resource which triggers temperature. Planning to stream from moving vehicle (OP will be fitted in moving vehicle). Please help/guide me to select heat sink which should accept some vibrations and jerks from vehicle. Note : OP don't have provision like screw hole or attachment for heat sink. Thanks, Yogesh
  4. Thanks ..Let me add more verbose instruction with photo and add this as tutorial to forum.English is not first language so it will take some time I have some interesting stuff in home lab and in coming days I will like to make them working under Armbian.
  5. I have successfully tested i2c on Armbian 5.04 with RTC 3231 module Device used : RTC DS3231 Here is the quick steps. 1. Using out of the box OS settings. Connecting RTC to OPO DS3231 OP One GND ——————————> pin 06 (GND) Vcc ——————————> pin 01 (3.3V) SDA ——————————> pin 03 (I2C SDA) SCL ——————————> pin 05 (I2C SCL) 2. List i2c adapter root@orangepione:/boot# i2cdetect -l i2c-0 i2c twi0 I2C adapter i2c-1 i2c twi1 I2C adapter 3. DS3231 present at address 0x68 on twi0 adapter root@orangepione:/boot# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@orangepione:/boot# i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 4. OS time synchronization over NTP ( OS Default) root@orangepione:/boot# date Tue Mar 1 20:50:24 CET 2016 5. Add ds3231 to system. Add "echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-0/new_device " to /etc/rc.local before exit 0 6. root@orangepione:/boot# reboot 7. UU confirm RTC module is active and ready to use. root@orangepione:~# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 8. Read time in RTC module root@orangepione:~# hwclock -r Thu 01 Jan 1970 01:32:46 AM CET -1.181072 seconds 9.Date will show current time of OS which is sync over internet root@orangepione:~# date Tue Mar 1 20:57:48 CET 2016 10. Let write time to RTC root@orangepione:~# hwclock -w root@orangepione:~# date Tue Mar 1 20:58:33 CET 2016 11. Now read the RTC time again root@orangepione:~# hwclock -r Tue 01 Mar 2016 08:58:47 PM CET -1.362583 seconds To sync OPO time after startup add "hwclock -s " to /etc/ec.local after "echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-0/new_device "
  6. i missed that ... let me try the spi library of orangepi_PC_gpio_pyH3
  7. my bad ... replace the reference import RPi.GPIO as GPIO with import pyA20.gpio as GPIO in MFRC522.py MFRC522-python package use RPi.GPIO and we are replacing it with orangepi_PC_gpio_pyH3 (pA20.gpio ).
  8. I am able to test SPI successfully with 5.04 release. Device used : RFID Reader RC522 Here is the steps to followed : 1. Connection Mifare_RC522_RFID OP One MOSI ——————————> pin 19 MISO ——————————-> pin 21 SCLK ——————————-> pin 23 SDA ——————————–> pin 24 RST ———————————> pin 22 IRQ ———————————-> NONE 2. Check device ls /dev/spidev0.0 ( Armbian 5.04 gives it out of the box) 3) Install python dev apt-get install python-dev 4) Install orangepi_PC_gpio_pyH3 Library git clone https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git cd orangepi_PC_gpio_pyH3 python setup.py install 5) Install SPI-Py Library git clone https://github.com/lthiery/SPI-Py.git cd SPI-Py python setup.py install 6) Install MFRC522-python git clone https://github.com/rasplay/MFRC522-python.git 7)To read id data: cd MFRC522-python edit MFRC522.py and comment out line 108.109.110 and 356( as shown below) # GPIO.setmode(GPIO.BOARD) #GPIO.setup(22, GPIO.OUT) #GPIO.output(self.NRSTPD, 1) #GPIO.output(self.NRSTPD, 1) python read.py root@orangepione:~/MFRC522-python# python read.py Card read UID: 193,11,21,149,74
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines