Jump to content

Orange Pi 3 Support?


jiapei100

Recommended Posts

I have had a Raspberry Pi for 3 years now with no major issues.  I use a 15 year-old laptop with an unusable display to run as a Linux test/training/utility machine.  It is almost dead so I decided to test myself with an Orange Pi as a low power replacement.  I have installed the Orange Pi supplied Ubuntu image (version 16.04) & successfully upgraded it to version 18.04 (with a few hacks to make that process work).  There are tons of syslog error messages due to the well-known dev nature of the kernel but for my purposes, the basic functions work.  However the kernel is a uboot kernel and stuck at Linux 4.19 with an unknown upgrade cycle through the Orange Pi servers.

 

I have moved the functioning Ubuntu above to the eMMC storage and am now trying SD card images burnt from https://dl.armbian.com/orangepi3 but they just will not boot.  I have dd-ed (which has always worked for me) & even used etcher but no change.  I do notice the contents of the /boot directory are noticeably different from the supplied Orange Pi images (ie no uboot stuff for instance).  Am I missing something ?

Link to comment
Share on other sites

8 hours ago, Squatter said:

are noticeably different from the supplied Orange Pi


That is correct. Our approach/work is completely different. Kernel is based on a mainline kernel which is significantly better quality but functionality/support is behind and slowly emerging since most of it is written from scratch. U-boot is also mainline ...  everything is open source. Process of getting into the mainline kernel takes years - now we are in a second year, but its worth. Stock kernel on the other hand, nobody except board makers, touches after its released and board makers doesn't send out any updates to the kernel/boot loader. If they do any changes, they remake images. This happens once or twice, then they move to another hardware.

Since I don't have this board, to make sure it works, I can only trust people reports which are telling that it works. Since things are still in development and we are only providing automated daily builds ...  you can only try few days old image, perhaps today's is broken?

 

8 hours ago, Squatter said:

I have had a Raspberry Pi for 3 years now with no major issues. 


This is now 10 years old simple (with closed source engine) technology sold in millions. An H3/H5 device would be more fair to compare with, even its design is not that old.

 

8 hours ago, Squatter said:

However the kernel is a uboot kernel and stuck at Linux 4.19 with an unknown upgrade cycle through the Orange Pi servers.


I think they are at 4.4 or 4.9, certainly not at 4.19

Link to comment
Share on other sites

Many thanks.  That pretty much explains it.  The only thing I can add is that the image when burnt to SD has no flags set.  Turning boot flag on also did nothing, where nothing in all cases, means absolutely no action on the monitor & the LED (near the power input) that usually goes green on a working system, stays red.

 

I am not a Linux kernel guru although I was once a moderate FreeBSD kernel tweaker.  So I guess I will stick to the upgraded but working system based on the 4.9 (yes, my memory got that wrong) kernel and I will touch base with the Armbian nightly regularly to see if the boot issue resolves.  It is not too hard to do this as my working system is on the eMMC storage ... shutdown, remove power, insert SD, reboot ... if fails, turn off power, remove SD, reboot, working system again ... less than 5 minutes to test.

 

The best I can do to help is to tweak some of the settings in /boot if I knew what to tweak.  Yes, I did know that this might not be all plain sailing.  I already know I can run a useful system but this WAS a hobby purchase.  I just hope the Orange Pi 3 OS gets there before the Raspberry Pi 4 comes out & blows it away ... 9 to 12 months away.

Link to comment
Share on other sites

28 minutes ago, Squatter said:

before the Raspberry Pi 4 comes out & blows it away


This is one year old single board computer:

 


RPi4 has to get to that level first :) But for that, they have to change everything and drop the only advantage there is - matured support.
 

28 minutes ago, Squatter said:

Turning boot flag on also did nothing


This is not x86 machine :) Each ARM device has different way of booting, Allwinner this way ... the best diagnostic would be a serial console too see if Orange boots at all and where it stops. Perhaps just HDMI doesn't come up.

Link to comment
Share on other sites

5 hours ago, Igor said:

the best diagnostic would be a serial console too see if Orange boots at all and where it stops

Right ! Every SoC users should have a USB-TTL Serial dongle nearby !

(I've more than 10 of them, leaving them connected on all boards where I do frequent updates)

My OrangePi3 is currently working with 5.1.0-rc4 from eMMC ...

Link to comment
Share on other sites

OK, thanks for all the background info.  I am unlikely to be a kernel tweaker so will just sit back & press on with the Orange Pi in a corner with me accessing it like a normal Linux computer via xrdp.  I will try to make myself ignore the voluminous info dumped into the log files as it does not seem to affect anything I do.  And ignore the fact lshw says 3 of the cpus are disabled and that the cpu frequency is 1.5 GHz (not 1.8 GHz).  Maybe I should re-compile lshw myself.

 

I did compile the old "byte-unixbench" to run on the OPi, my Raspberry Pi 2 and my 15 year-old single core 1.6GHz laptop running Lubuntu.  Apart from the benchmark only reporting 3 cpus on the OPi, I am satisfied that apart from close figures on the file copy tests, the OPi did exceed the other 2 systems.  The only loss was the "process creation" test ... to the laptop (an x86 1.6GHz 32-bit Celeron).  Nevertheless sufficient enough for me to assign the laptop to the dump, although it deserves a medal for what it has been through.

Link to comment
Share on other sites

I am sorry I am a bit slow but I think I am not understanding something very important.  I believe I have copied the latest Armbian image to the SD card correctly & error-free.  I can mount it perfectly & view everything.  The working system on my eMMC is based on the Orange Pi supplied uboot version of Ubuntu (updated to the latest 18.04.2 but with the 4.9 kernel).  I used the Orange Pi supplied script to do the copy to eMMC.

 

If I burn the original Orange Pi supplied image to the SD, it boots happily from the SD card ... the eMMC is clearly mmcblkp0 & the SD mmcblkp1.  If I copy the Armbian image, I get nothing when the SD is inserted and booted.

 

So there is obviously some tweak that is required in the u-boot way of doing things to facilitate a successful Armbian boot from the SD.  I guess there is a setting that says "if an SD card is inserted & u-boot exists on it, boot it".  I could be wrong.

 

At this point, I am running the original Orange Pi image off the SD so I can image my working eMMC system to a USB-connected drive AND even dd the Armbian image onto the eMMC storage.  I am assuming I would need to tweak that Armbian image.  Any guidance appreciated.

Link to comment
Share on other sites

8 minutes ago, Squatter said:

If I copy the Armbian image, I get nothing when the SD is inserted and booted.

Are you using the image from https://dl.armbian.com/orangepi3/nightly/ ?

9 minutes ago, Squatter said:

"if an SD card is inserted & u-boot exists on it, boot it".

That is "as is" for any Allwinner SoC, so there is nothing special to do, SD Card has the priority !

Other kind of SoC, such Rockchip, have different priorities : eMMC first, even if SD inserted.

Link to comment
Share on other sites

I am using "Armbian_5.83.190427_Orangepi3_Ubuntu_bionic_dev_5.0.10.7z" from https://dl.armbian.com/orangepi3/nightly/

 

It works as you suggest if I insert an "OrangePi image" SD but not with the "Armbian Image" SD above.  I was thinking maybe the Orange Pi script to transfer the OS to the eMMC does it differently compared to nand-sata-install &/or the bootblock(s) are different to what Armbian expect.

 

I have tested the SD cards & they are official and am using Etcher on a late model laptop with an SD card slot.

 

Where I want to get to is Armbian on the eMMC but if I so desire, insert a bootable SD which becomes the default boot device.  And a normal non-bootable SD just becomes available when inserted when running the eMMC as boot device.

 

I am sure you know how it is.  You do something for the first time, thought you got it right and until it actually works, you never quite know what IS right.

Link to comment
Share on other sites

14 hours ago, Squatter said:

Where I want to get to is Armbian on the eMMC but if I so desire, insert a bootable SD which becomes the default boot device.  And a normal non-bootable SD just becomes available when inserted when running the eMMC as boot device.


It's easy copying an Armbian image from sd-card to eMMC. In therminal you type : sudo armbian-config
There's an app there to copy everything to where you want it.
Once that's done you should be able to do what you want.
The image isn't ready yet, but once it's set up right it is useable. For sound an USB audio adapter is best. Everything runs better at a lower display resolution. Preferably 720p to watch youtube with firefox for example.
If you want it to do heavy computaions then it's best to cool it well with a good heatsink, or heatsink+fan, or clock it a little lower. It throttles quickly otherwise.

To go from a Raspberry Pi to an Orange Pi is a drastic step. They are the most opposit of all. They make no good software for any of their boards, they give no support to the community. They sell a lot, but it's more a help yourself thing. That's why Armbian is awesome, it gives a use to those many boards bought for what was written on paper, but would never realise that without Armbian.
For great software on it you'll have  to wait a few months. Until then you've got to help yourself with whats arround. I find the Armban now miles ahaid of any Orange Pi image.
Their latest image could only be clocked at 1.5Ghz, they took away the highest clocks to it would behave.

Link to comment
Share on other sites

I am not sure I can run armbian-config successfully as I can not even boot armbian yet ... this is why I am on this forum.  Maybe armbian-config will still run from the mounted armbian on the SD card ... I will investigate.  All I know is that 3 different dated versions of the Opi3 nightly will not boot from the SD card for me ... the Orange Pi supplied image has no problem booting whether it is on the eMMC or an SD card.

 

Re. the Raspberry Pi, I have only ever used OpenElec and OSMC.  I quickly dispensed with OpenElec as it was a seriously cut-down Linux distribution.  OSMC had a full OS underneath so I could also "do stuff" while it functioned (at the other end of the house) as my media server, TV recorder & for remote TV in my study.  Sadly, support for remote X (X, xrdp & vnc) was removed about 18 months ago.  But up to then, I could run a vnc or xrdp session with ease (a normal user desktop not remote Kodi).  Obviously this is a design decision of OSMC and not due to broken-ness.  I have never touched Raspbian.  I have had the Raspberry for over 4 years & it just chugs away fairly maintenance free ... except for when the "X stuff change" broke it & a failed SD card.

Link to comment
Share on other sites

16 hours ago, Squatter said:

All I know is that 3 different dated versions of the Opi3 nightly will not boot from the SD card for me ...

How did you conclude that ? Did you attached a USB-TTL Serial dongle to Debug port and see the log of the boot process ?

 

Did you tried a bit older image such https://dl.armbian.com/orangepi3/nightly/Armbian_5.82.190423_Orangepi3_Debian_stretch_dev_5.0.7.7z ?

Link to comment
Share on other sites

OK, I tried the older image as above & same result.  On a successful "boot" (my semantics) two red lights on the OPi3 come on then one switches to green (the one next to the power input while the one above the SD card slot always stays red).  In all of my armbian cases, there is no switch to green.  

 

I do not have a USB-TTL dongle.    The best I can do at the moment is mount the SD (from a non-armbian OS system) & see if any log files have changed in /var/log ... no change on any attempt so far.  I have a feeling I should never have copied the OrangePi-supplied image to the eMMC, which I did before I even started with armbian.  It may have done something that anyone in the armbian world would never do or expect.

 

I have attached the results of "fdisk -l" after SD Formatter, after Etching image & after unsuccessful boot attempt.  This may suggest something to you.

fdisk-l.txt

Link to comment
Share on other sites

7 hours ago, Squatter said:

I have a feeling I should never have copied the OrangePi-supplied image to the eMMC

No worries : All Allwinner SoC have boot priority to SDCard, so the fact you installed something else on eMMC should not affect things.

7 hours ago, Squatter said:

I do not have a USB-TTL dongle.

You should purchase at least one, but even more if you have several boards. I have more then 10x of them, so cheap, less than $1 ...

When you will have one, make sure verbosity is at maximum in /boot/armbianEnv.txt : "verbosity=7" and "console=serial" !

Link to comment
Share on other sites

Martin,

Cable has arrived.  I booted the new "8 May"  image & it came up perfectly on the serial.  Nothing on the HDMI.  No wireless even with pre-configured /etc/network/interfaces.  So borrowed ethernet cable (no more router slots) & remote ssh came up fine.  Log files are SO MUCH cleaner than "original Orange Pi image"  logs.  And "/proc/cpuinfo " almost seems sensible now.  Wireless was easy on original image but nothing on armbian.

 

So this is the first time I have actually seen "armbian" so go easy on me.

 

A deceptive difference is the lights on the board are different ... only one red light compared to one red and one green.  I don't care really as long as it works ... except wireless.  ifconfig produces no sign of wlan.  Also xrdp does not work out of the box.

 

More later.  Any suggestions welcome re. HDMI & wireless.  Back to beer brewing.

 

 

 

Link to comment
Share on other sites

1 hour ago, Squatter said:

So this is the first time I have actually seen "armbian" so go easy on me.


This is not Armbian since there is no Armbian for this board. Only test build which were not done for you, but for experienced developers, which will not request support, but perhaps fix things. Big difference. We can't help you anything with having a good "Armbian" experience at this point. Not possible. Get a board, that is supported.

 

1 hour ago, Squatter said:

Nothing on the HDMI.  No wireless even with pre-configured /etc/network/interfaces.

 

This is normal for a hardware where "half" of the missing component is not even developed. Development = thousands of working hours and not something you can download freely from the internet and install. Simple questions, like "how to use wireless" might be easily related with huge time and money costs. Not to mention time lost to clarify this "every day", since there are always people, who never read welcome text on those test images.

 

1 hour ago, Squatter said:

Back to beer brewing.


Send some. A very needed component for development and dealing with "customers" :) 

Bottom line. If you are not a developer, read and wait, wait until it gets to users level. We are still months away. 

Link to comment
Share on other sites

5 hours ago, Squatter said:

except wireless.  ifconfig produces no sign of wlan.

As mentioned in another thread, did you copy the firmware as followed ?

cp /lib/firmware/brcm/brcmfmac4356-sdio.bin /lib/firmware/brcm/brcmfmac43456-sdio.bin
cp /lib/firmware/brcm/brcmfmac4356-sdio.txt /lib/firmware/brcm/brcmfmac43456-sdio.txt

 

Link to comment
Share on other sites

Thank you Martin.  30 seconds hard work & wlan0 is fine.  cpu seems to be running at the full 1.8GHz v. the throttled 1.5GHz of the OPi image.  I can confirm armbian WIP cpu benchmark ~20% faster over OPi image which seems to be consistent with the throttling.  And for some reason, the OPi image benchmark that I used only saw 3 of the 4 cpus so parallel performance is even higher.

 

Once over the wlan & HDMI hurdles, I now have a fully kitted out lxde environment accessible by rdp plus a full web development environment.  I had a minimum set of criteria re. performance & capability & all have been exceeded as I never planned to use HDMI anyway, nor do I have any immediate plans for PCiE or the IO pins.  I think I am now over comparing what the OPi image offered v. the armbian WIP.

 

The only glitches I encountered were related to rdp which appears to have stumbled universally on Ubuntu 18.04.2.  And some strange intermittent behaviour re. wlan losing nameservers (resolv.conf not being populated) after a reboot ... trying to pin that one down.  But these are software not hardware issues.

 

I will just press on assuming that everything I need to work just works ... as it does so far.  After 29 years in the unix sysadmin/builder role world (on and off) its now just a hobby.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines