Jump to content

Search the Community

Showing results for tags 'nanopiair'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • Announcements
    • Feature Requests
  • Using Armbian
    • Beginners
    • Software, Applications, Userspace
    • Advanced users - Development
  • Upcoming Hardware (WIP)
    • News
    • Odroid M1
    • ROCK 5B
    • Orange Pi 5
  • Maintained Hardware
    • Board does not start
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Unmaintained (CSC/EOL/TVB) / Other
    • TV boxes
    • Off-topic
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Matrix


Mastodon


IRC


Website URL


XMPP/Jabber


Skype


Github


Discord


Location


Interests

  1. Hi there, I'm trying to run luma.examples using an SSD1322 display via an SPI interface. I think I got the wiring right but the software is responding with errors. The app is expecting D/C and RESET parameter via a GPIO pin numbers to control the display.. I'm not sure how the Nano PI NEO Air physical pins are mapped to a GPIO port under Armbian. Where can I get a list of mappings for the physical pins to the GPIO pin numbers? How does this work? Is this an OS specific thing? Thanks in advance. PS: `uname -a` : Linux nanopiair 4.14.15-sunxi #23 SMP Sun Jan 28 12:46:39 CET 2018 armv7l GNU/Linux
  2. Hi all. I install Ubuntu_xenial_default with kernel 3.4.113 and want record video from CAM500B with ov5640 image sensor. I had edited camera section in fex file with next options: [csi0] vip_used = 1 vip_mode = 0 vip_dev_qty = 1 vip_define_sensor_list = 0 vip_csi_pck = port:PE00<2><default><default><default> vip_csi_mck = port:PE01<2><default><default><default> vip_csi_hsync = port:PE02<2><default><default><default> vip_csi_vsync = port:PE03<2><default><default><default> vip_csi_d0 = port:PE04<2><default><default><default> vip_csi_d1 = port:PE05<2><default><default><default> vip_csi_d2 = port:PE06<2><default><default><default> vip_csi_d3 = port:PE07<2><default><default><default> vip_csi_d4 = port:PE08<2><default><default><default> vip_csi_d5 = port:PE09<2><default><default><default> vip_csi_d6 = port:PE10<2><default><default><default> vip_csi_d7 = port:PE11<2><default><default><default> vip_csi_sck = port:PE12<2><default><default><default> vip_csi_sda = port:PE13<2><default><default><default> vip_dev0_mname = "ov5640" vip_dev0_pos = "rear" vip_dev0_lane = 4 vip_dev0_twi_id = 2 vip_dev0_twi_addr = 0x78 vip_dev0_isp_used = 1 vip_dev0_fmt = 0 vip_dev0_stby_mode = 1 vip_dev0_vflip = 1 vip_dev0_hflip = 0 vip_dev0_iovdd = "" vip_dev0_iovdd_vol = 2800000 vip_dev0_avdd = "" vip_dev0_avdd_vol = 2800000 vip_dev0_dvdd = "" vip_dev0_dvdd_vol = 1500000 vip_dev0_afvdd = "" vip_dev0_afvdd_vol = 2800000 vip_dev0_power_en = vip_dev0_reset = port:PE14<1><default><default><default> vip_dev0_pwdn = port:PE15<1><default><default><default> vip_dev0_flash_en = vip_dev0_flash_mode = vip_dev0_af_pwdn = vip_dev0_act_used = 0 vip_dev0_act_name = "ad5820_act" vip_dev0_act_slave = 0x18 vip_dev1_pos = "rear" vip_dev1_lane = 1 vip_dev1_twi_id = 0 vip_dev1_twi_addr = vip_dev1_isp_used = 0 vip_dev1_fmt = 1 vip_dev1_stby_mode = 0 vip_dev1_vflip = 0 vip_dev1_hflip = 0 vip_dev1_iovdd = "" vip_dev1_iovdd_vol = 2800000 vip_dev1_avdd = "" vip_dev1_avdd_vol = 2800000 vip_dev1_dvdd = "" vip_dev1_dvdd_vol = 1500000 vip_dev1_afvdd = "" vip_dev1_afvdd_vol = 2800000 vip_dev1_power_en = vip_dev1_reset = vip_dev1_pwdn = vip_dev1_flash_en = vip_dev1_flash_mode = vip_dev1_af_pwdn = And had added to file /etc/modules ov5640 vfe_v4l2 After reboot I can list video0 device in /dev but dmesg | grep ov5640 and dmesg | grep VFE returns nothing. And dmesg | grep OV5640 show [ 7.860317] [OV5640@lex]init_sensor - frame_rate: 0, max_win_size: 11 [ 7.952205] [OV5640@lex]CSI_SUBDEV_PWR_ON! [ 8.020823] [OV5640@lex]sensor_init 0x0 [ 8.065071] [OV5640@lex]CSI_SUBDEV_PWR_OFF! Then ffmpeg -f v4l2 -s 640x480 -i /dev/video0 -r 30 -c:v mpeg4 ./test/test.avi returns error: ioctl(VIDIOCENUMINPUT): invalid argument /dev/video0: Invalid argument. Please help me with this problem.
  3. Quick debugging info, subject says all. Other apps like cap.c or motion or motioneye works perfect and capture and streams live video. Working onliner: ffmpeg -f v4l2 -channel 0 -video_size 640x480 -i /dev/video0 -pix_fmt nv12 -vcodec h264 -preset fast -b:v 2000k -qp 20 ffmpegtest.mkv Working distro Armbian 5.30 root@nanopiair:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=nanopiair BOARD_NAME="NanoPi Air" VERSION=5.30 LINUXFAMILY=sun8i BRANCH=default ARCH=arm IMAGE_TYPE=stable root@nanopiair:~# modinfo vfe_v4l2 filename: /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/vfe_v4l2.ko description: Video front end driver for sunxi license: Dual BSD/GPL author: raymonxiu depends: videobuf-core,vfe_os,vfe_subdev,videobuf-dma-contig,cci intree: Y vermagic: 3.4.113-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 parm: ccm:string parm: i2c_addr:uint parm: act_name:string parm: act_slave:uint parm: define_sensor_list:uint parm: vfe_i2c_dbg:uint parm: isp_log:uint parm: vips:uint root@nanopiair:~# modinfo ov5640 filename: /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/device/ov5640.ko license: GPL description: A low-level driver for ov5640 sensors (H3 / A20) author: @lex author: raymonxiu alias: i2c:ov5640 depends: cci,vfe_subdev intree: Y vermagic: 3.4.113-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 parm: frame_rate:frame_rate=0 (default with no parameters), frame_rate=1 (7.5 FPS), frame_rate=2 (15 FPS), frame_rate=3 (30 FPS) (default=0 - or no parms - default settings) (uint) root@nanopiair:~# ffmpeg -f v4l2 -channel 0 -s 320x240 -i /dev/video0 -c:v libx264 -preset ultrafast -qp 20 ffmpegtest.mkv ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1512652641.063736, bitrate: 27648 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, 27648 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc File 'ffmpegtest.mkv' already exists. Overwrite ? [y/N] After apt update/upgrade, not working distro: root@NanoPiAir:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=nanopiair BOARD_NAME="NanoPi Air" BOARDFAMILY=sun8i VERSION=5.36 LINUXFAMILY=sun8i BRANCH=default ARCH=arm IMAGE_TYPE=user-built BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=zImage root@NanoPiAir:~# root@NanoPiAir:~# modinfo vfe_v4l2 filename: /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/vfe_v4l2.ko description: Video front end driver for sunxi license: Dual BSD/GPL author: raymonxiu depends: videobuf-core,vfe_os,vfe_subdev,videobuf-dma-contig,cci intree: Y vermagic: 3.4.113-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 parm: ccm:string parm: i2c_addr:uint parm: act_name:string parm: act_slave:uint parm: define_sensor_list:uint parm: vfe_i2c_dbg:uint parm: isp_log:uint parm: vips:uint ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [video4linux2,v4l2 @ 0xfaf800] Dequeued v4l2 buffer contains 118784 bytes, but 115200 were expected. Flags: 0x00000001. Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, bitrate: 27648 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, 27648 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc File 'ffmpegtest.mkv' already exists. Overwrite ? [y/N] [libx264 @ 0xfb21c0] using cpu capabilities: ARMv6 NEON [libx264 @ 0xfb21c0] profile Constrained Baseline, level 1.3 [libx264 @ 0xfb21c0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=20 ip_ratio=1.40 aq=0 Output #0, matroska, to 'ffmpegtest.mkv': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 320x240, q=-1--1, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc56.60.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help [video4linux2,v4l2 @ 0xfaf800] Dequeued v4l2 buffer contains 118784 bytes, but 115200 were expected. Flags: 0x00000001. /dev/video0: Invalid data found when processing input frame= 0 fps=0.0 q=0.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown The error: [video4linux2,v4l2 @ 0xfaf800] Dequeued v4l2 buffer contains 118784 bytes, but 115200 were expected. Flags: 0x00000001. Debugging test of FFMPEG: root@NanoPiAir# ffmpeg -loglevel debug -f v4l2 -framerate 30 -video_size 1920x1080 -i /dev/video0 -c:v libx264 -preset ultrafast -crf 10 microcorder.mkv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'. Reading option '-framerate' ... matched as AVOption 'framerate' with argument '30'. Reading option '-video_size' ... matched as AVOption 'video_size' with argument '1920x1080'. Reading option '-i' ... matched as input url with argument '/dev/video0'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'. Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'. Reading option '-crf' ... matched as AVOption 'crf' with argument '10'. Reading option 'microcorder.mkv' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input url /dev/video0. Applying option f (force format) with argument v4l2. Successfully parsed a group of options. Opening an input file: /dev/video0. [video4linux2,v4l2 @ 0x1ec1800] fd:4 capabilities:5000001 [video4linux2,v4l2 @ 0x1ec1800] Current input_channel: 0, input_name: , input_std: 0 [video4linux2,v4l2 @ 0x1ec1800] Setting time per frame to 1/30 [video4linux2,v4l2 @ 0x1ec1800] Dequeued v4l2 buffer contains 3112960 bytes, but 3110400 were expected. Flags: 0x00000001. Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, bitrate: 746496 kb/s Stream #0:0, 0, 1/1000000: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p, 1920x1080 (0x0), 1/1000000, 746496 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc Successfully opened the file. Parsing a group of options: output url microcorder.mkv. Applying option c:v (codec name) with argument libx264. Successfully parsed a group of options. Opening an output file: microcorder.mkv. File 'microcorder.mkv' already exists. Overwrite ? [y/N] Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'time_base' to value '1/1000000' [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'pixel_aspect' to value '0/1' [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x1ec1760] Setting 'frame_rate' to value '30/1' [graph 0 input from stream 0:0 @ 0x1ec1760] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 fr:30/1 sar:0/1 sws_param:flags=2 [format @ 0x1ecea60] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21] [format @ 0x1ecea60] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21' [AVFilterGraph @ 0x1ecde10] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [libx264 @ 0x1ec4230] using mv_range_thread = 88 [libx264 @ 0x1ec4230] using cpu capabilities: ARMv6 NEON [libx264 @ 0x1ec4230] profile Constrained Baseline, level 4.0 [libx264 @ 0x1ec4230] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 Output #0, matroska, to 'microcorder.mkv': Metadata: encoder : Lavf56.40.101 Stream #0:0, 0, 1/1000: Video: h264 (libx264), -1 reference frame (H264 / 0x34363248), yuv420p, 1920x1080, 1/30, q=-1--1, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc56.60.100 libx264 Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Press [q] to stop, [?] for help [video4linux2,v4l2 @ 0x1ec1800] Dequeued v4l2 buffer contains 3112960 bytes, but 3110400 were expected. Flags: 0x00000001. /dev/video0: Invalid data found when processing input [output stream 0:0 @ 0x1ece620] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. [matroska @ 0x1ec2e60] end duration = 0 [matroska @ 0x1ec2e60] stream 0 end duration = 0 frame= 0 fps=0.0 q=0.0 Lsize= 1kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (/dev/video0): Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; Total: 0 packets (0 bytes) demuxed Output file #0 (microcorder.mkv): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x1ec4b40] Statistics: 15 seeks, 12 writeouts Armbianinfo is here http://sprunge.us/jfKV PS:Also tried to copy boot.cmd and boot.scr from 5.35, there is no image with 5.36 to avoid problem in that way
  4. Hello, I am going to buy this unit, becuase I am lookig for a cheap board with bluetooth and camera input included. NanoPi Neo Air seems to be the best choice (and the only - talking about cheap board). Anyway, did someone play with its bluetooth interface programming? I mean sending (mainly, but also recieving files) from NanoPi by bluetoot. Are there any working tools (C, python)? Thanks for any post in advance!
  5. Hello, Is it possible to get a WiFi Direct connection from Nanopi Neo Air to for example smartphone and send a file to it? I mean with not using router. Thanks in advance for every answer!
  6. Hello everybody! How can I create access point with nmtui ? I spent some time playing with nmtui, and finally my nanopi got address something like 10.42.0.1. But it doesn't look normal, I can't create default gateway like 192.168.0.1 So, I couldn't see my hotspot from another device( android phone or other pc ) Maybe somebody resolved this problem?
  7. Guest

    Nano Pi Neo Air Gpio

    I am trying to use gpio without C or Python library, I follow pinout in the wiki : http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air 7 GPIOG11 203 modprobe gpio-sunxi echo 203 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio203/direction echo 1 > /sys/class/gpio/gpio203/value LED I connected to Gpio don't light for the moment, I have missed something ? What Linux Gpio may I use ?
  8. Hi All, I'm trying to use mic and line-out on nano pi neo air. I did this regarding to topics I found : apt-get install pulse-audio pulseaudio -D I tried some modifications in this file without succeed for the moment : /etc/pulse/daemon.conf I use alsamixer to check volume control but I have no sound when I do : speaker-test -c4 -l1 -twav Does analog audio or mic input are avaliable on nano pi neo air ? http://nanopi.io/nanopi-neo-air.html Best Regards
  9. uname -a : Linux nanopiair 3.4.113-sun8i #18 SMP PREEMPT Thu Jun 15 02:16:06 CEST 2017 armv7l armv7l armv7l GNU/Linux i installed i2c-tools, libi2c-dev, python-smbus but if i try like this i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 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: -- -- -- -- -- -- -- -- i can't use i2c gpio load i2c -> gpio: Unable to load i2c-sunxi so i tried like this so i add overlays = i2c0 i2c1 /boot/armbianEnv.txt and /etc/modprobe.d/blacklist.conf(checking i2c-bcm2708 and i2c-dev) add from /etc/modules -> i2c-bcm2708, i2c-dev Eventually I could not find a possible i2c number so what should i do? please tell me detail ~
  10. Hi, Messages flooded with the i2c0 messages after the NeoAir boots as showing below: [ 10.234498] dhd_module_init: Exit err=0 [ 10.240493] systemd[1]: Listening on Syslog Socket. [ 10.246332] systemd[1]: Starting Journal Service... [ 10.360420] systemd[1]: Started Journal Service. [ 10.813583] systemd-udevd[179]: starting version 215 [ 11.191615] twi_start()434 - [i2c0] START can't sendout! [ 11.197938] twi_start()434 - [i2c0] START can't sendout! [ 11.204329] twi_start()434 - [i2c0] START can't sendout! [ 11.210906] twi_start()434 - [i2c0] START can't sendout! [ 11.221376] twi_start()434 - [i2c0] START can't sendout! [ 11.228399] twi_start()434 - [i2c0] START can't sendout! [ 11.237229] twi_start()434 - [i2c0] START can't sendout! [ 11.243890] twi_start()434 - [i2c0] START can't sendout! [ 11.250510] twi_start()434 - [i2c0] START can't sendout! and so on every ms or so. Do you know how to fix it? Thanks in advance
  11. Using Armbian 5.33. What am I missing? I know the hardware is good as I've had this working before. The modules listed in /etc/modules include hci_uart which is missing. When and how is this built? It does not appear in the 3.4.113 kernel menuconfig options TAIA Jerry $ uname -a Linux nanopiair 3.4.113-sun8i #22 SMP PREEMPT Mon Sep 25 13:11:21 BST 2017 armv7l GNU/Linux # this did work! $sudo nmcli r wifi on $sudo nmcli dev wifi # lists available WAP's $sudo nmcli dev wifi connect <WAP name> password <your password here>
  12. Hi all, I've been trying to install ft6x drivers on a nanopi neo air, which has armbian with legacy kernel, but it seems there is no support for ft6x capacitive touch panels. There is a code from Focaltech here, which is ft6x06 driver code. I added the code to kernel and compiled it, but the problem is: what should I do with fex file? Or is it right to do this? (I was not surprised that it didn't work). Can I change the current ft5x code to make ft6x works? There is also a support for ft6x family on mainline kernel. Is there any hope to adopt that code? Thanks.
  13. Hello, I have a couple of NEO Pi Air's and they show up as the same device in LightBlue. After a bit of digging, I noticed that the BD addr of the devices are the same. hci0: Type: BR/EDR Bus: UART BD Address: 43:29:B1:55:01:01 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:6552 acl:180 sco:0 events:373 errors:0 TX bytes:6809 acl:180 sco:0 commands:248 errors:0 Is there any way to change the address?
  14. I've updated to the latest kernel code, rebuilt and I I can now see /dev/video when I call "modprobe ov5640; modprobe vfe_v4l2" after booting into the nanopi. However, when I run the following ffmpeg -re -i /dev/video0 -c:v libx265 -preset ultrafast -x265-params crf=23 -f h264 ./out.mp4 I get the following error error [video4linux2,v4l2 @ 0x1a9a7f0] Dequeued v4l2 buffer contains 40960 bytes, but 38016 were expected. Flags: 0x00000001. The video format is yuv420p, 176x144, so it should be 176*144*1.5 bytes = 38016bytes. However the buffer seems to be slightly larger. I have written a few small c programs of my own and no matter what there seems to be a bit of extra bytes in the buffer. output of dmesg is attached. dmesg.out
  15. I installed the experimental version of the NanoPi Neo Air distribution on my Air a month or two ago. At the time I believe Bluetooth was not working on that version. I don't see any indication that it is not working now, but it doesn't seem to be working on my install. Is Bluetooth working on the experimental kernel? If so, should I just re-install, or is it not hard to get it working on an existing install? I just installed the latest updates and rebooted, and that didn't fix it. The symptom that I'm seeing is that if I run bluetoothctl it prints a prompt, but seems to lock up.
  16. Guest

    Nano Pi Air AP

    Hi All, I try to get a web page accessible from a hotspot with a notification sent to customer when it connects to the AP (using lighttpd, hostapd, dnsmasq, squid and squidguard) I can connect to the AP but I have no response to the ping On the Nano Pi Air in AP mode : iwconfig => wlan0 IEEE 802.11 ESSID:"Armbian" ifconfig => inet addr:192.168.101.1 I must be able to switch between modes with my software so I use scripts : To switch in AP mode => pkill -f 'ifup .*wlan0'; ifdown wlan0 ifdown wlan0 /bin/systemctl stop NetworkManager && /bin/systemctl disable NetworkManager && kill $(cat /var/run/dnsmasq/dnsmasq.pid) && kill $(cat /run/dnsmasq/dnsmasq.pid) rmmod dhd && modprobe dhd op_mode=2 pkill -f 'ifup .*wlan0'; ifdown wlan0 cp /home/user/interfaces_hostapd /etc/network/interfaces ifup wlan0 service dnsmasq restart & service isc-dhcp-server restart & service hostapd restart To switch in Normal mode => pkill -f 'ifup .*wlan0'; ifdown wlan0 /bin/systemctl stop hostapd & kill $(cat /var/run/dnsmasq.pid) rmmod dhd && modprobe dhd cp /home/user/interfaces_default /etc/network/interfaces && service dnsmasq stop & service hostapd stop & service isc-dhcp-server stop /bin/systemctl start networking.service && /bin/systemctl enable NetworkManager && /bin/systemctl start NetworkManager && /usr/bin/nmcli d set wlan0 managed yes When I switch in normal mode, I can ping and access to the webpage. In AP mode I can connect, get an IP, and then I have no response to ping, I don't know why.....
  17. Hi, I'm using my NanoPi NeoAir as a bluetooth streaming sink and as a webserver for several configurations and monitoring of the device. Bluetooth works fine as long as I don't disable the powersafe mode of wifi. Even in powersafe mode the bluetooth performance is not the best. If I disable wifi at all the bluetooth performance is great. My system is: Ubuntu 16.04.3 LTS 4.11.2 iwconfig: wlan0 IEEE 802.11 ESSID:"Teebeutel" Mode:Managed Frequency:2.412 GHz Access Point: 2C:41:38:FB:D7:30 Bit Rate=54 Mb/s Tx-Power=31 dBm Retry short limit:7 RTS thr:off Fragment thr:off Power Management:on Link Quality=43/70 Signal level=-67 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 how I disable powersafe: sudo /sbin/iwconfig wlan0 power off Bluetooth is barely usable when powersafe is off... Any idea? Is this a driver problem? Thanks for your support. Regards Bernhard
  18. Good evening, I'm using a NanoPi Neo Air for streaming audio via bluetooth to a I2S sink. It's working in general but the audio data breaks away every second. It's always a on/off. I'm pretty sure it's connected to the speed between H3 - AP6212a but I'm not able to get it to work propably. I set the UART ttyS3 speed to 1500000 bit/s: My Fexedit looks like that: [bt_para] │ │bt_used = 1 │ │bt_uart_id = 3 │ │bt_uart_baud = 1500000 │ │bt_rst_n = port:PG13<1><default><default><0> │ │bt_wake = port:PA08<1><default><default><0> │ │bt_host_wake = port:PA07<0><default><default><0> │ │bt_host_wake_invert = 0 and I changed the AP6212a speed like this: systemctl stop bluetooth.service cp /lib/firmware/ap6212/bcm43438a1.hcd /etc/firmware/ap6212/4343A0.hcd echo "0" > /sys/class/rfkill/rfkill0/state echo "1" > /sys/class/rfkill/rfkill0/state echo " " > /dev/ttyS3 hciattach /dev/ttyS3 bcm43xx 1500000 bcm43xx_init Set Controller UART speed to 1500000 bit/s Flash firmware /etc/firmware/ap6212/4343A0.hcd Set Controller UART speed to 1500000 bit/s Device setup complete I already tried to go up 3000000 bit/s but the firmware flashing process stucks when I try it. Any idea why my I2S audio bus can't deliver the whole data? Regards Bernhard EDIT: output of hciconfig -a: root@nanopiair:~# hciconfig -a hci0: Type: BR/EDR Bus: UART BD Address: 43:29:B1:55:01:01 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING PSCAN RX bytes:520 acl:0 sco:0 events:23 errors:0 TX bytes:1090 acl:0 sco:0 commands:23 errors:0 Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'nanopiair' Class: 0x00041c Service Classes: Unspecified Device Class: Audio/Video, Portable Audio HCI Version: 4.1 (0x7) Revision: 0xf2 LMP Version: 4.1 (0x7) Subversion: 0x2122 Manufacturer: Broadcom Corporation (15)
  19. Hi,I have a problem with the ssh wifi connection with the nanopi neo air it has every faith that I connect it is too slowI have disabled the NetworkManager with the following commandsSystemctl stop NetworkManager.serviceSystemctl disable NetworkManager.serviceAnd configured my network connection with the / etc / network / interfaces fileAnd also i have disabled iwconfigIwconfig wlan0 power offalways remains the problem of SSH slowthenks for your help
  20. Hi all, I am using NanoPi-Neo Air and my application is just logging binary data to a file. The board is powered by usb from a pc. I can dump and list to see binary data inside the file but after unplug power from usb then power up the board from usb again, I found the binary data is gone or some errors data, unknown data appended. Do you guys have same issued? or any suggestions? Thanks in advance
  21. Is there any way to change brightness settings on CAM500B? I can't get clear images fswebcam. Using nanopi neo air with CAM500B and Ubuntu core. :~# v4l2-ctl -l error 25 getting ctrl White Balance, Automatic error 25 getting ctrl Exposure error 25 getting ctrl Horizontal Flip error 25 getting ctrl Vertical Flip error 25 getting ctrl Color Effects Thanks
  22. Hi all, I build Armbian for my NanoPi Air with both Linux 3.4 and Linux 4.X, and config usb to be an USB Ethernet Gadget but it does not work with Linux 4.X. There is nothing showing when "dmesg | grep gadget" on Linux 4.x But in Linux 3.4 I got following messages: root@nanopiair:/# dmesg | grep gadget [ 2.559263] g_ether gadget: using random self ethernet address [ 2.565929] g_ether gadget: using random host ethernet address [ 2.582905] gadget_is_softwinner_otg is not -int [ 2.582923] gadget_is_softwinner_otg is not -int [ 2.583012] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008 [ 2.590546] g_ether gadget: g_ether ready [ 13.898453] g_ether gadget: high-speed config #2: RNDIS root@nanopiair:/# root@nanopiair:/# Do you know how enable the Ethernet Gadget for Linux 4.x? Thanks in advance,
  23. Dear community. I like to get the NanoPi Neo air work as HID Gadget using libcomposite. I am using the dev kernel (4.10) and libcomposite is loaded. Following this tutorial http://isticktoit.net/?p=1383 the usb gadget init script is running without errors on startup. But there is no entry in /sys/class/udc/ and i get no /dev/hidg0 device Did i missed something? is there a special overlay directive for the usb controller? or is something missing in the kernel? is it better to use the g_hid module?
  24. Hello all, I'm working on a project where I need at least 460800 baud on a UART on the NanoPi Neo Air. Works great at lower baud rates but can't seem to get it much faster than 115200. Any thoughts on clock adjustment or CPU speed? I'm using Armbian 5.24 with the 3.X kernel
  25. Hi all.. I can't solve one issue with nanopiair h3. I was tried to set the speed of ttyS1 using stty -F /dev/ttyS1 230400 min 0 time 5 -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke -opost -onlcr that works no err messages..but my data at port is like garbage... I see this err under dmesg 21 03:10:02 2017] sw_uart_check_baudset()429 - uart1, select set 1, baud 230400, uartclk 24000000 beyond rance[30000000, 120000000] on the other hand when I check the status of uart root@FriendlyARM:/boot# cat /sys/class/tty/ttyS1/device/status uartclk = 24000000 The Uart controller register[base: 0xf1c28400]: [RTX] 0x00 = 0x00000000, [iER] 0x04 = 0x00000000, [FCR] 0x08 = 0x00000000 [LCR] 0x0c = 0x00000000, [MCR] 0x10 = 0x00000000, [LSR] 0x14 = 0x00000000 [MSR] 0x18 = 0x00000000, [sCH] 0x1c = 0x00000000, [uSR] 0x7c = 0x00000000 [TFL] 0x80 = 0x00000000, [RFL] 0x84 = 0x00000000, [HALT] 0xa4 = 0x00000000 root@FriendlyARM:/boot# So..there's any way to change uarclk from 24000000 to 30000000? How can we solve the sw_uart_check_baudset()429 - uart1, select set 1, baud 230400, uartclk 24000000 beyond rance[30000000, 120000000] message? Thanks a lot for your help
×
×
  • Create New...