ron123456
-
Posts
12 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by ron123456
-
-
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 ACCEPTifconfig
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 39lo: 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 0wlan0: 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 0ip 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?
-
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?
-
21 hours ago, guidol said:
You are using a 4.14 kernel (of FriendlyCore from FriendlyARM whcih isnt supported in this forum)
and your module source is for a 4.11 kernel - thats the issue that doesnt match.
You could try armbian images (both also kernel 4.14) from
https://www.armbian.com/nanopi-m1-plus/
https://dl.armbian.com/nanopim1plus/archive/Armbian_5.65_Nanopim1plus_Ubuntu_bionic_next_4.14.78.7z
https://dl.armbian.com/nanopim1plus/archive/Armbian_5.65_Nanopim1plus_Debian_stretch_next_4.14.78.7zbut the status of the M1+ is for armbian EOS=End od Service - because there are to much other SBCs
I dont know if yout USB-WiFi is supported with this armbian-version.
10Hey,
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 interfaceI dont know how to resolve this?
-
12 hours ago, martinayotte said:
Why don't you use the built-in AP6212 WiFi of this NanoPi-M1+ board ?
Actually, I am trying to make a router that can have both Station and AP for wifi to wifi mode
-
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 hubI 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 2I also download **linux-headers-generic** package.
What is the issue?
-
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.
-
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? -
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?
-
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?
-
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?
-
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/mmcblk0p2Couldn'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 systemI uploaded nanopi-m1-plus_friendlycore-xenial_3.4.y_YYYYMMDD.img.zip image.
What is the issue and how can it be resolved?
NanoPi M1 Plus fails to boot
in Beginners
Posted
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.