Jump to content

ron123456

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, I am using NanoPi Debian Jessie (graphical Desktop) image for my NanoPi M1 plus device. The device sometimes doesn't boot from the EMMC. I have to keep on uploading a fresh image every time. It has been the issue whenever I try to boot from the EMMC. It comes up randomly. It boots perfectly after a lot of reboots and sometimes it doesn't reboot after 3-4 reboots. Can you please tell me what is the issue here? I don't my device to boot from SD card.
  2. Hi I trying to create an Access Point from NanoPi M1 plus device having Ubuntu_bionic_next_4.14.78.7z OS. I am able to create the AP and my devices are able to connect to it. But somehow they are not able to use the internet. I have eth0 interface as plugged in to the board which whose IP will be forwarded. via wlan0 interface. I have already set net.ipv4.ip_forward=1 in /etc/sysctl.conf and /proc/sys/net/ipv4/ip_forward to 1. I issued the following iptables commands, but it didn't work... sudo iptables -F sudo iptables -t nat -F sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE sudo iptables -A FORWARD -i wlan0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.55.247 netmask 255.255.255.0 broadcast 192.168.55.255 inet6 fe80::81:14ff:fea2:1b15 prefixlen 64 scopeid 0x20<link> ether 02:81:14:a2:1b:15 txqueuelen 1000 (Ethernet) RX packets 599 bytes 40641 (40.6 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 59 bytes 9337 (9.3 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 39 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 571 bytes 41372 (41.3 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 571 bytes 41372 (41.3 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.24.1.1 netmask 255.255.255.0 broadcast 172.24.1.255 ether b0:f1:ec:2c:dd:0c txqueuelen 1000 (Ethernet) RX packets 32 bytes 2796 (2.7 KB) RX errors 0 dropped 1 overruns 0 frame 0 TX packets 18 bytes 2316 (2.3 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 02:81:14:a2:1b:15 brd ff:ff:ff:ff:ff:ff inet 192.168.55.247/24 brd 192.168.55.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::81:14ff:fea2:1b15/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ether b0:f1:ec:2c:dd:0c brd ff:ff:ff:ff:ff:ff inet 172.24.1.1/24 brd 172.24.1.255 scope global wlan0 valid_lft forever preferred_lft forever I dont know, where I am wrong?
  3. Hi, I am using NanoPi M1+ device with Armbian Bionic kernel 4.14.y OS in it. On doing hciconfig ... I get no output. on doing hcitool dev ... the output is none too... What is the issue here? Why can't I see the bluetooth device of the device?
  4. Hey, I downloaded the Armbian Bionic kernel 4.14.y OS and it detected the RTL8188 wlan adapter. But it is unable to connect to the wifi as station. I am using the internal wifi hardware for AP and external wlan adapter (RTL8188) to connect to the WiFi. On doing ... root@nanopim1plus:~# wpa_supplicant -B -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlxc025e925ab14 I got, Successfully initialized wpa_supplicant nl80211: Could not configure driver mode nl80211: deinit ifname=wlxc025e925ab14 disabled_11b_rates=0 wlxc025e925ab14: Failed to initialize driver interface I dont know how to resolve this?
  5. Actually, I am trying to make a router that can have both Station and AP for wifi to wifi mode
  6. Hi I am using a NanoPi M1+ device with nanopi-m1-plus_sd_friendlycore-xenial_4.14_armh OS in it. I attached an RTL8188EU WiFi adapter in it. But the **ifconfig** doesn't show up. On doing **lsusb** I get Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 029: ID 413c:2113 Dell Computer Corp. Bus 006 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I tried downloading the driver from https://github.com/lwfinger/rtl8188eu and after issuing the make command, I got this error: make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.11.0-rc4/build M=/home/pi/rtl8188eu modules make[1]: *** /lib/modules/4.11.0-rc4/build: No such file or directory. Stop. Makefile:151: recipe for target 'modules' failed make: *** [modules] Error 2 I also download **linux-headers-generic** package. What is the issue?
  7. Hi, I am trying to write a program which will detect the presence of SD Card in Nano Pi M1 plus device. There are many ways to do this either by doing fdisk -l or looking into /dev/mmcblk* . But I want to keep running it in a loop and doing fdisk -l and grep doesn't seems an appropriate way. Can the insertion or removal of SD cards be checked via Hardware Interrupts? Plz. help me I am a newbie.
  8. I have written a Python script that receives an online link from the server and downloads it and plays it simultaneously. After that, it plays it from the device unless it receives a new video link. I have written a service file that runs this code once the device boots. Service Script [Unit] Description=My device boot script service After=multi-user.target [Service] Type=idle User=root Environment=DISPLAY=:0 Restart=on-failure ExecStart=/root/Video_project/start.sh [Install] WantedBy=multi-user.target start.sh script #!/bin/bash #exec 1> >(logger -s -t $(basename $0)) 2>&1 python /root/Video_project/main.py Python function to play video I have these 3 functions running which displays the image and the video def image_func(): img_link = "https://i.ytimg.com/vi/o4IVan08VvI/maxresdefault.jpg" img_cmd = "feh -F %s"%(img_link) os.system(img_cmd) def play_video_from_server(link): print("Playing video from server") cmd = "mplayer -fs ffmpeg://%s" %(link) #link is read from JSON file os.system(cmd) def play_video_from_device(link_ID): print("Playing video from Device") cmd = "mplayer -fs %s.mp4" %(link_ID) #link_ID .mp4 is the name of the downloaded video os.system(cmd) The video player and image viewer never open in the front screen. How should I make it run to view the image and video?
  9. I am trying to stream a video using NanoPi M1 Plus device from a URL using mplayer https://someurl.com/video.mp4 But it throws an error No stream found to handle url https://someurl.com/video.mp4 What is the issue?
  10. Hello as I have been experimenting with my NanoPi M1+, I want to know how to turn my nanopi device into a wifi access point. Also, how will it automatically start transmitting wifi signals immediately after boot?
  11. Hello, I am new to Nanopi platform. I want to use nanopi m1+ as a wifi access point. How should I go after it from starting?
  12. Hello I am new to Nanopi m1 plus development board. I followed the instruction as on friendlyarm's wiki page. I loaded the image from my Ubuntu OS and connected my device to the pc. The blue led was blinking normally. I used Putty to view the logs. While booting it is showing: resize2fs 1.42.12 (29-Aug-2014) resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p2 Couldn't find valid filesystem superblock. resize2fs exited with status code 1 done. mount: mounting /dev/mmcblk0p2 on /root failed: Invalid argument done. Target filesystem doesn't have requested /sbin/init. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. No init found. Try passing init= bootarg. Rebooting automatically due to panic= boot argument [ 45.460839] reboot: Restarting system I uploaded nanopi-m1-plus_friendlycore-xenial_3.4.y_YYYYMMDD.img.zip image. What is the issue and how can it be resolved?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines