Jump to content

appz

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

2230 profile views
  1. http://ix.io/1Ps7 sudo apt-get install motion sudo nano /etc/motion/motion.conf Edit line bellow: stream_localhost off width 640 height 480 framerate 2 If crash is happened: mkdir ~/motion chmod 777 motion Start motion server: sudo /etc/init.d/motion start Here you are: More detail But ! DO NOT touch /etc/modules. Leave it like that: #w1-sunxi #w1-gpio #w1-therm #gc2035 #vfe_v4l2 Here my /etc/rc.local modprobe gc2035 modprobe vfe_v4l2 sunxi-pio -m "PG11<1><0><1><1>" #DOVDD sunxi-pio -m "PE15<1><0><1><0>" #Power_Down sunxi-pio -m "PE14<1><0><1><1>" #reset
  2. http://ix.io/1Ph7 It is work $ sudo modinfo lima filename: /lib/modules/4.19.57-sunxi/kernel/drivers/gpu/drm/lima/lima.ko license: GPL v2 description: Lima DRM Driver author: Lima Project Developers alias: of:N*T*Carm,mali-450C* alias: of:N*T*Carm,mali-450 alias: of:N*T*Carm,mali-400C* alias: of:N*T*Carm,mali-400 depends: ttm,gpu-sched intree: Y name: lima vermagic: 4.19.57-sunxi SMP mod_unload ARMv7 thumb2 p2v8 parm: sched_timeout_ms:task run timeout in ms (0 = no timeout (default)) (int) parm: sched_max_tasks:max queued task num in a context (default 32) (int) parm: max_mem:Max memory size in MB can be used (<0 = auto) (int) But billard is slow sudo apt-get -y install billard-gl simple@orangepiplus2e:~ $ /usr/lib/globs/benchmarks/GL_pointz/gl_pointz fps = 3.2 Why it is so slow?
  3. Finally I am found out how it is do I made changes in linux-sun8i-mainline/sun8i-emac-wip-v5/arch/arm/boot/dts/sun8i-h3.dtsi status = "okay"; Also should be FORCE_CHECKOUT="no" because checkout reset all changes After this I finally get long time waiting strings # ls /dev/ | grep i2c i2c-0 i2c-1 Sometime I building chromium but it is " it is slightly more complicated" Probably its possible do over lib/patch/kernel/ Will try. So few documentation. I dont hard in script [update] Move next: i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0 $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: [ 2238.449569] i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0 -- [ 2240.529620] i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0 -- [ 2242.609667] i2c i2c-1: mv64xxx: I2C bus locked, block: 1, time_left: 0 The same situation on i2c-0 Ok. I am on empty line (i2c line not connected any device). Try do pull pin to SUN4I_PINCTRL_PULL_UP according advice: https://groups.google.com/forum/#!topic/linux-sunxi/RDPRFgUx0KY i2c0 { allwinner,pins = "PA11", "PA12"; allwinner,function = "i2c0"; allwinner,drive = <0x0>; allwinner,pull = <0x1>; linux,phandle = <0xd>; phandle = <0xd>; } $ sudo i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: [ 2544.633505] i2c i2c-0: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x4, status: 0x0, addr: 0x3, flags: 0x0 -- [ 2544.672563] i2c i2c-0: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x4, status: 0x0, addr: 0x4, flags: 0x0 -- [ 2544.712434] i2c i2c-0: mv64xxx_i2c_fsm: Ctlr Error -- state: 0x4, status: 0x0, addr: 0x5, flags: 0x0 Something doing wrong? Orange pi 2e have different action on empty line $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ..... Linux nanopineo 4.9.0-sun8i #10 SMP Fri Nov 4 19:10:34 ICT 2016 armv7l armv7l armv7l GNU/Linux Really curios board NanoPi Neo [update] $ i2cdetect -l i2c-1 unknown mv64xxx_i2c adapter N/A i2c-0 unknown mv64xxx_i2c adapter N/A Maybe I should look in modules? Thanks
  4. Many thanks! I try it on $ dtc --version Version: DTC 1.4.0 Have some error $ dtc -@ -I dts -O dtb -o i2c-enable.dtb i2c-enable.dts dtc: invalid option -- '@' Usage: dtc [options] <input file> In my case change directly into the main DTS status to 'okay' is enough. Although, overlay approach look very interesting in any case. Thanks!
  5. I have Orange Pi Plus 2e, Its working ok but not work on nanopineo. I want use nanopineo board with new vanilla kernel if it possible. Now I try switch on i2c via device tree. I found section in /boot/dtb/sun8i-h3-nanopi-neo.dtb. switch status from disable to okay. Still don`t sucessfull. Maybe need change compatible = "allwinner,sun8i-h3"; ? i2c@01c2ac00 { compatible = "allwinner,sun6i-a31-i2c"; reg = <0x1c2ac00 0x400>; interrupts = <0x0 0x6 0x4>; clocks = <0x5 0x3b>; resets = <0x5 0x2e>; pinctrl-names = "default"; pinctrl-0 = <0xd>; status = "okay"; #address-cells = <0x1>; #size-cells = <0x0>; linux,phandle = <0x31>; phandle = <0x31>; }; I found example here: http://forum.armbian.com/index.php/topic/1537-397-maintainfix-dts-entries-for-some-devices-such-i2cspiw1/?p=14454
  6. Trying from toolchain. deleted /plugin/; line and close tags but still have error. Sorry for bothering.. I novice in dtc Which what I should start? I need switch on i2c/SPI/UART # dtc -f -I dts -O dtb -o i2c-enable.dtb i2c-enable.dts ERROR (phandle_references): Reference to non-existent node or label "i2c0" ERROR (phandle_references): Reference to non-existent node or label "i2c1" ERROR (phandle_references): Reference to non-existent node or label "i2c2" Warning: Input tree has errors, output forced --------------------------------------------------------------------------- Found section in sun8i-h3-nanopi-neo : i2c@01c2ac00 { compatible = "allwinner,sun6i-a31-i2c"; reg = <0x1c2ac00 0x400>; interrupts = <0x0 0x6 0x4>; clocks = <0x5 0x3b>; resets = <0x5 0x2e>; pinctrl-names = "default"; pinctrl-0 = <0xd>; status = "okay"; #address-cells = <0x1>; #size-cells = <0x0>; linux,phandle = <0x31>; phandle = <0x31>; }; Is it enough set status = "okay"; ?
  7. I trying but have error: # dtc -I dts -O dtb i2c-enable.dts Error: i2c-enable.dts:2.2-8 syntax error FATAL ERROR: Unable to parse input tree root@nanopineo:/boot/dtb# # dtc -v Version: DTC 1.4.0 Linux nanopineo 4.9.0-sun8i #4 SMP Mon Oct 31 04:12:20 CST 2016 armv7l armv7l armv7l GNU/Linux
  8. Trying Core Linux nanopineo 4.9.0-sun8i #4 SMP Mon Oct 31 04:12:20 CST 2016 armv7l armv7l armv7l GNU/Linux [twi0] twi_used = 1 twi_scl = port:PA11<2><default><default><default> twi_sda = port:PA12<2><default><default><default> [twi1] twi_used = 1 twi_scl = port:PA18<3><default><default><default> twi_sda = port:PA19<3><default><default><default> [twi2] twi_used = 1 twi_scl = port:PE12<3><default><default><default> twi_sda = port:PE13<3><default><default><default> No one i2c $ls /dev | grep i2c $sudo i2cdetect -y 1 Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory 0,1,2 Nothing found
  9. Just try new core Module connect to internal USB: USB-DP1 USB-DM1 Core; Linux nanopineo 4.9.0-sun8i #4 SMP Mon Oct 31 04:12:20 CST 2016 armv7l armv7l armv7l GNU/Linux --------------------------------------------------------------------------------- $ ifconfig wlx009f13d0a14d Link encap:Ethernet HWaddr 00:9f:13:d0:a1:4d inet addr:192.168.0.110 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::29f:13ff:fed0:a14d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:491 errors:0 dropped:0 overruns:0 frame:0 TX packets:302 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:549938 (549.9 KB) TX bytes:33758 (33.7 KB) ------------------------------------------------------------------------------------- /etc/network/interfaces allow-hotplug wlx009f13d0a14d iface wlx009f13d0a14d inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf ------------------------------------------------------------------------------------ /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your sid" psk="your pass" key_mgmt=WPA-PSK } --------------------------------------- ~$ lsmod Module Size Used by ccm 7767 1 rtl8192cu 60443 0 rtl_usb 9530 1 rtl8192cu rtl8192c_common 40018 1 rtl8192cu rtlwifi 59200 3 rtl_usb,rtl8192c_common,rtl8192cu mac80211 408281 3 rtl_usb,rtlwifi,rtl8192cu cfg80211 244332 2 mac80211,rtlwifi rfkill 12189 3 cfg80211 cpufreq_dt 3887 0 uio_pdrv_genirq 3591 0 thermal_sys 49978 1 cpufreq_dt uio 8953 1 uio_pdrv_genirq ---------------------------------------------------------- lsusb Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Its work! But need restart one time. NanoPi Neo
  10. Hi check it on Orange Pluse 2e with library https://github.com/Schrottratte/sh1106. Still dont have display but Analyzer Salea correct show command Setup write to [x] + NAK But cant run it with NanoPi Neo for any twi channel I try tune it in fex file but not sucessful All time see $ dmesg | grep i2c [ 2.254642] i2c /dev entries driver [ 2.265067] twi_start()434 - [i2c0] START can't sendout! [ 2.271245] twi_start()434 - [i2c0] START can't sendout! [ 2.293422] twi_start()434 - [i2c0] START can't sendout! .. core: Linux nanopineo 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 armv7l armv7l armv7l GNU/Linux Still dont update it. Because fixed build of driver module 8192cu.ko get problem. Its not connected with question
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines