Jump to content

Orange Pi 2G-IOT


Petus

Recommended Posts

Already it is possible to see and write in NAND memory from linux, I have left a small guide (in Spanish,  use google translate) to be able to experiment with its use:
Http://surfero.blogspot.com.es/2017/08/orange-pi-iot-2g-trabajar-con-la.html

At the moment it has not been able to make linux boot from nand but mount it. Everything has been made possible thanks to the work of the gitub aib user (https://github.com/aib)

 

Dmesg:

[    0.692321] NAND device: Manufacturer ID: 0x98, Chip ID: 0xac (Toshiba TC58NYG2S0H 4G 1.8V 8-bit), 512MiB, page size: 4096, OOB size: 256

 

fdisk -l:

 

Disk /dev/mtdblock1: 8 MiB, 8388608 bytes, 16384 sectors
.........
..........
Disk /dev/mtdblock4: 280 MiB, 293601280 bytes, 573440 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000


 

 

 

 

Link to comment
Share on other sites

56 minutes ago, taknamecom said:

Hell my friends.

Can I use Orange Pi 2G as sms gateway with Gammu and Ubuntu ? (Is OPI 2G support Gammu?)

Thank you in advance.

Whit AT commands and minicom it possible you can read about it here (http://ec.hobbykompetenz.de/index.php/2017/06/22/orange-pi-2g-iot-at-befehle/) use google translate, about Gammu cannot say  but it possible. 

Link to comment
Share on other sites

29 minutes ago, taknamecom said:

Hell my friends.

Can I use Orange Pi 2G as sms gateway with Gammu and Ubuntu ?

In fact Can I install mysql and phpmyadmin and apache2 on OPI 2G IOT?

 

Thank you in advance.

Orange pi 2G-IOT still very unstable, I think it is not good Idea use it in any project , easy use Orange pi One and SIM800(https://www.aliexpress.com/item/1-pc-SIM800C-Development-Board-GSM-GPRS-Module-Support-Message-Bluetooth-TTS-DTMF-Quad-band-Alternative/32798586003.html). it will work more stable. 

Link to comment
Share on other sites

Hello everyone.

I just got my hands on one Opi 2g Iot and built an image with the Armbian building script but the boot process stopped because of these errors

Quote

[ TIME ] Timed out waiting for device dev-disk-by\x2duuid-8c5...4235258.device.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.
[DEPEND] Dependency failed for File System Check on /dev/disk...8-df2014235258.
[ TIME ] Timed out waiting for device dev-ttyS0.device.
 

 

Went back to the building script, modified the kernel .config from 

 

Quote

# CONFIG_FHANDLE is not set

 

to this

 

Quote

CONFIG_FHANDLE=y

 

Built another image, booted it and it worked perfectly.

 

Did anyone else had the same issue? Should it be included to the script ?

Thanks

Link to comment
Share on other sites

Hi Surfero75 ... I made another attempt with the machine.

 

With your image (based on DietPi that it is based on Armbian), it is possible to boot from the machine internal storage and then to add a 16GB SD card, and the machine will read it.  That it is nice :-) ...

 

However, WIFI continues being an issue.  I changed the WPA_Supplicant from GB to US and reduced problemas a little, but continue freezing and restarting.

 

Also, it is difficult to login in a TTL console.  I can write the user but after writing the password nothing happens ... although this could be a software more than a hardware problem.

 

And your image it is incomplete (I understand was necessary to erase things to write it in the machine space, but some things are not there even when having references ... maybe DietPi was not a good option to work with; it is better a plain Armbian).    But good work ... this brings some hopes on the machine :-)

Link to comment
Share on other sites

9 hours ago, malvcr said:

Also, it is difficult to login in a TTL console.  I can write the user but after writing the password nothing happens ... although this could be a software more than a hardware problem.

 

Maybe that not every UST-TTL-serial adapter completly support the 921600 Baud :(
I did try to set 115200 via u-boot: "setenv baudrate 115200" - this did work, but I cant save it because there is no saveenv command :(

PS: Is there any Link which I can "use" for the DietPi/armbian image for downloading?

Link to comment
Share on other sites

This is the article Link with references (this includes the link for the download) ... 

 

https://surfero.blogspot.com.es/2017/09/orange-pi-iot-2g-flashear-memoria-nand.html

just in case, the download it is in https://mega.nz/#!BFcmiTpL!29AQt7E1odjNUaFV4JNXN8KnVM2dPSocf77EP8uFnPo

 

I was nuts trying to make this to work and then I checked the boot setup ... oh .. 921600 ... my minicom was 115200.  Then I was trying to change the boot to 115200, but as that image it is not "common", was a little risky to do that.  Then, I changed the minicom to 921600 pressing the next button in the configuration.

 

Now ... login perfect in the console :-) ... and ... WIFI was working around 10 times faster.  But then, I did something and now it is impossible for the WIFI to complete the authentication phase with the Access Point (I have been fighting with this for a while with mixed, but all bad results).  Then, I connected an ethernet dongle to the USB port and it works very well with an eth0 static address.

 

In general, what I think is that the serial console overruns (in the thousands) with the only core the machine has caused a terrible side effect in the networking stack.

 

It seems that also it is necessary to add "wireless-power off" as the last like in the wlan0 configuration (interfaces file) ... but right now I can't ensure this is a key factor because my WIFI it is not working well.

 

A possible reason for the failure is that the machine always produce a different MAC address, and to declare a manual one with the "hwaddress ether" command in the interfaces definition makes some type of noise when the machine makes the handshaking with the access point ... again, something to be checked.

 

An extra detail.  When flashing the machine it is necessary to press and to "keep pressed" the button until the flash has been finished.  And in all the process no SD card it is needed, eliminating the original requirement of having strange and difficult to find 8GB SD cards with low consumption requirements.  After the machine it is operational, regular SD cards can be used; I even added a 2GB swap file in a 16GB SanDisk card with no problems (of course this won't be fast, but it will permit to me to run more programs on the little 256MB space).

 

-- OK ... my next test, one of these days, will be to use something more complete than DietPi on the NAND, at least the booting component.  It is OK to have the remaining in an SD card if the card it is recognized after booting it.   :-)

 

Link to comment
Share on other sites

17 hours ago, malvcr said:

This is the article Link with references (this includes the link for the download) ... 

https://surfero.blogspot.com.es/2017/09/orange-pi-iot-2g-flashear-memoria-nand.html

 

In general, what I think is that the serial console overruns (in the thousands) with the only core the machine has caused a terrible side effect in the networking stack.

 

It seems that also it is necessary to add "wireless-power off" as the last like in the wlan0 configuration (interfaces file) ... but right now I can't ensure this is a key factor because my WIFI it is not working well.

 

An extra detail.  When flashing the machine it is necessary to press and to "keep pressed" the button until the flash has been finished.  And in all the process no SD card it is needed, eliminating the original requirement of having strange and difficult to find 8GB SD cards with low consumption requirements. 

Ahh :) I already did download this file, but didnt realized that it is a DietPi Image.

 

On my "computer" for flashing the i96 - a NanoPi Neo2 - I had to install python3-serial (and not pyserial)

But holding the button with the finger while flashing is really worse  *ouch* :( Why we cant use one of the 8 DIP-Switches?


I got WiFi working.
For getting a clear serial-TTL output I can only use a USB-Port from my PC (like the CP2102 USB-TTL-serial).

Because if I try to put more power (like with a official Raspberry Pi PowerSupply or a Samsung Phone-Charger)  in the OPi i96, then I only get Garbage at the serial console (some right text between).
[EDIT] was only missing the GND at the CP2102 ;) had connected RX,TX and GND some days ago, but the GND wasnt connected today anymore

 

Some time ago I made the mistake to power the i96 and the CP2102 from a passive USB-USB which is connected to my PC.

i96 and CP2102 was working, but when connecting a USB-Device to the i96 gave me a VBUS-Error :)
Thats for sure, then the passive USB wouldnt have enough power for the i96, the CP2102 and additional a USB-Device on the i96 :)

 

On the i96 I used a "older" 8GB Trascend Class 6 card without consumption problems.

 

Now with GND connected (again) and the external Samsung-Charger PowerSupply also the USB-Ethernet is working....
But I thin I go back to WiFi to use the USB-Port for another Gadget :)

 

Could I use another debian-mirror ? Because the original servers from the sources.list arent connectable:

deb http://mirror.aliyun.com/raspbian/raspbian jessie main contrib non-free
deb-src http://mirror.aliyun.com/raspbian/raspbian jessie main contrib non-free

[EDIT] I did took a look at the mirror-list:
https://www.raspbian.org/RaspbianMirrors
and did select for me
http://ftp.halifax.rwth-aachen.de/raspbian/raspbian/ jessie main contrib non-free

I disabled "wvdial Tom &" in the /etc/rc.local to get rid the the Modem-Error-Mesage before the login :)

 

Maybe 2 interesting sites (when tranlated to english via google.translator):

http://4pda.ru/forum/lofiversion/index.php?t813602-260.html

http://forum.amperka.ru/threads/orange-pi-2g-iot-gsm-gprs-2g-bluetooth-wi-fi-fm-и-куча-всего-за-600-рублей.12499/

Link to comment
Share on other sites

mm ... I made another installation ... it is working now.

 

Forget the "wireless-power off" in the wpa_supplicant.conf file.  That made the problem.

 

Also, I included some Debian repositories and now I am able to install software (although it is better not to abuse because of the lack of space and the own NAND nature of it).

 

root@DietPi:/etc/apt# cat sources.list
deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie main contrib non-free

 

And now, I am trying to convert this in an Access Point.  It is totally configured and it says that it is working, but nobody can see the machine outside (so, obviously it is not working).  I will try this for a while to provide my impressions about this possible usage for the machine.
 

 

Link to comment
Share on other sites

Hello All

I have a strange problem with subj - device boot only once after write img on SD , all next time hangup in booting process.

I check original img and card after boot (find+md5sum) - an find no change

googling boot errors give attache in this forum https://forum.armbian.com/applications/core/interface/file/attachment.php?id=1405 , but i can`t find messages/thread with this attach.

 

UPDATE:

realy work until first "correct" reboot or shutdown

 

UPDATE:

work, just run command after first boot

 

sudo apt-get purge –auto-remove alsa-utils

 

Link to comment
Share on other sites

Hello,

 

I'm using raspbian image for Orange Pi 2G-IOT. But the USB Serial PL2303 is not supported by default. The PL2303 option is not enabled in kernel config by default.

 

Does armbian image support PL2303 by default? Or do you know any distros of OrangePi 2G-IOT support PL2303?

 

Thank you.

Link to comment
Share on other sites

4 minutes ago, Linh Nguyen said:

Does armbian image support PL2303 by default?

Armbian doesn't support this board. It's .csc (community support configuration). 

according to:

https://github.com/armbian/build/blob/347a1699944b15a74ec39b5fa0014781fbf20177/config/kernel/linux-rda8810-default.config#L2318

# CONFIG_USB_SERIAL_PL2303 is not set

so you might need to rebuild a kernel with the driver activated.. But no guarantee that it works. :) 

Link to comment
Share on other sites

On 3/10/2018 at 2:09 AM, chwe said:

Armbian doesn't support this board. It's .csc (community support configuration). 

the .csc isnt anymore in the armbian-build system :(

as backup I did upload the last 3 armbian-images that I build with the armbian-build system for the OPi 2G IOT / i96 on my Google-Drive.

I will leave it there for some time (or longer if enough space available).

As noted above THIS ARE UNSUPPORTED USER-BUILT IMAGES and they are only as-is - I have no chance to change them.

 

UNSUPPORTED and UNOFFICAL USER-BUILD

armbian IMAGES FOR

OPi i96 and 2G-IOT:

You could find them at

https://drive.google.com/drive/folders/18r98nniuPmGMx2puxQleT9jtRWK03_VS

Link to comment
Share on other sites

Hello @guidol

 

It seems you compiled these with

#CONFIG_MEDIA_USB_SUPPORT is not set

The uvcvideo drivers are not available in the kernel. I have been trying to compile again using "chroot-nspawn" branch of the armbian repo, whcih still has the csc and modifying the BOOT and KERNEL sources in the source files for RDA8810, to use the sources provided by "orangepi-xunlong" on git hub. However this compilation still fails midway.  Is it possible for you to compile this module into your images?

 

Arinze

Link to comment
Share on other sites

10 hours ago, Arinze Izukanne said:

I have been trying to compile again using "chroot-nspawn" branch of the armbian repo, whcih still has the csc and modifying the BOOT and KERNEL sources in the source files for RDA8810, to use the sources provided by "orangepi-xunlong" on git hub. Is it possible for you to compile this module into your images?

Sorry - I dont know how to handle the "chroot-nspawn" branch and I dont know how to compile this module.... so I cant compile it for you :(

Link to comment
Share on other sites

On 11/29/2018 at 10:52 AM, Igor said:

The Many New Features & Improvements Of The Linux 5.0 Kernel:

https://www.phoronix.com/scan.php?page=article&item=linux-2019-features&num=1

Quote

Processors

- The Cortex-A5-based RDA Micro RDA8810PL is another new ARM SoC now supported by the mainline kernel.

the RDA Micro RDA8810PL is used in the Orange Pi ioT-2G and the i96 :)

Link to comment
Share on other sites

On 8/3/2018 at 2:25 AM, Arinze Izukanne said:

Thank you.

 

I have been able to recompile the kernel using sources provided by orangepi-xunlong. I have the camera detected and working now.

Arinze,

 

Nice - can you share bit more detail how you get that working?

 

Thanks!

 

/Joerg

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines