LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Orange Pi Plus 2E now tested in -current (https://www.linuxquestions.org/questions/slackware-arm-108/orange-pi-plus-2e-now-tested-in-current-4175621070/)

drmozes 01-06-2018 03:43 AM

Orange Pi Plus 2E now tested in -current
 
Hello

I have tested the Orange Pi Plus 2E in -current:

http://www.orangepi.org/orangepiplus2e/

This device has 2GB RAM, which is nice.

and have updated the installation documentation:

ftp://ftp.arm.slackware.com/slackwar...L_ORANGEPI.TXT

I've decided not to incorporate any HDMI patches into the 4.14 Kernel since the only ones I found were for a newer branch, and we need a long term supported Kernel now (which 4.14 is scheduled to become).

cupcake123 01-16-2018 08:54 PM

Hi

Is the installation document no longer available?

Thanks

titopoquito 01-17-2018 08:29 AM

Front the ChangeLog:

Code:

Thu Jan 11 08:08:08 UTC 2018

The installation documentation has been renamed according to the SoC rather
than a branded product. This is because there are now more distinct branded
products using a particular SoC. U-Boot binaries have also been moved in to
new locations on the FTP site.

installdocs/INSTALL_AllWinner_A20.TXT: Added.
      Renamed from '/INSTALL_BANANAPI.TXT'
installdocs/INSTALL_AllWinner_H3.TXT: Added.
      Renamed from '/INSTALL_ORANGEPI.TXT'
installdocs/INSTALL_QEMU.TXT: Moved.
      Moved from /
installdocs/INSTALL_RASPBERRYPI.TXT: Moved.
      Moved from /
installdocs/INSTALL_Tegra20.TXT: Added.
      Renamed from '/INSTALL_TRIMSLICE.TXT'


cupcake123 01-19-2018 04:22 AM

Quote:

Originally Posted by titopoquito (Post 5807488)
Front the ChangeLog:

Thanks.

stormtracknole 01-30-2018 07:01 AM

Great news!! I just bought one from Amazon and looking forward to tinkering around with it. Thank you for the great work as always!

stormtracknole 02-04-2018 04:09 PM

drmozes,

So, I'm having issues getting anything out of the serial console. I bought the exact same cable suggested in the install docs. However, I don't get any outpot. I can connect fine with screen, but never get anything. The hdmi screen works fine when using u-boot, so I know the board is working fine. The only cable that I didn't connect was the red one (serial cable). Is that cable supposed to be connected at all? My apologies ahead of time if I missed something. I've been working on this for several hours now and can't seem to figure it out.

Penthux 02-04-2018 04:23 PM

Quote:

Originally Posted by stormtracknole (Post 5815801)
drmozes,

So, I'm having issues getting anything out of the serial console. I bought the exact same cable suggested in the install docs. However, I don't get any outpot. I can connect fine with screen, but never get anything. The hdmi screen works fine when using u-boot, so I know the board is working fine. The only cable that I didn't connect was the red one (serial cable). Is that cable supposed to be connected at all? My apologies ahead of time if I missed something. I've been working on this for several hours now and can't seem to figure it out.

The TTL serial cable red wire is the 5v supply and it's not required. Try swapping the RX/TX (white/green) cables around.

stormtracknole 02-04-2018 04:37 PM

Quote:

Originally Posted by Penthux (Post 5815806)
The TTL serial cable red wire is the 5v supply and it's not required. Try swapping the RX/TX (white/green) cables around.

Thank you!!! That was it. I can't I believe I didn't try that hours ago. Sigh....

Penthux 02-05-2018 01:16 AM

Quote:

Originally Posted by stormtracknole (Post 5815810)
Thank you!!! That was it. I can't I believe I didn't try that hours ago. Sigh....

Hehe. Don't mention it. You're welcome. :hattip: :D

stormtracknole 02-05-2018 08:53 AM

Okay, was finally able to get slackwarearm-current installed. A few notes and one question.

Notes:

* cpufreq-info and lscpu does not show the complete cpu information. So, I'm not sure if operating at full speed.
* I noticed that my ethernet speed was set to 100 Mb instead of 1000Mb. Gotta make sure first my cable is okay and the switch.
* Gotta make sure to make sure to set the time before doing too much. I probably should have done this first before proceeding with the install.

As for my question, do I have to do anything with u-boot when updating the kernel?

Penthux 02-05-2018 11:34 AM

Quote:

Originally Posted by stormtracknole (Post 5816015)
* Gotta make sure to make sure to set the time before doing too much. I probably should have done this first before proceeding with the install.

As for my question, do I have to do anything with u-boot when updating the kernel?

I'd install a RTC, a DS3231 and not a DS1307. Then I'd stick a line in /etc/rc./rc.local like this:

Code:

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

# Set system time from DS3231 RTC
/sbin/hwclock -s

If you don't have an RTC but you've got an Internet connection, you could try using this line in /etc/rc.d/rc.local instead:

Code:

/usr/sbin/ntpdate 0.pool.ntp.org
Then at least you don't have to remember to set the damned date/time every time you (re)boot. :D

Can't advise you on u-boot. I just compile it and hope it works. If it does then I leave it alone. lol

stormtracknole 02-05-2018 11:44 AM

Quote:

Originally Posted by Penthux (Post 5816067)
I'd install a RTC, a DS3231 and not a DS1307. Then I'd stick a line in /etc/rc./rc.local like this:

Code:

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

# Set system time from DS3231 RTC
/sbin/hwclock -s

If you don't have an RTC but you've got an Internet connection, you could try using this line in /etc/rc.d/rc.local instead:

Code:

/usr/sbin/ntpdate 0.pool.ntp.org
Then at least you don't have to remember to set the damned date/time every time you (re)boot. :D

Can't advise you on u-boot. I just compile it and hope it works. If it does then I leave it alone. lol

I was thinking about the official kernel upgrades on -current. I don't want to brick my system after spending so much time getting this set up. lol I guess I can give it a try. :)

drmozes 02-05-2018 12:57 PM

Quote:

Originally Posted by Penthux (Post 5816067)
I'd install a RTC, a DS3231 and not a DS1307. Then I'd stick a line in /etc/rc./rc.local like this:

This is unnecessary as the Orange Pi has an RTC.

Code:

root@zippy:~/ac/source/x/xterm# dmesg | grep -i rtc
[    1.527013] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.533825] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.572039] sun6i-rtc 1f00000.rtc: setting system clock to 2018-01-27 15:56:57 UTC (1517068617)
root@zippy:~/ac/source/x/xterm#

You don't need to do anything with u-boot once it's configured, and you've booted in to the new installation.
When you upgradepkg the kernel, that's all you need -- there's no "lilo" equivalent because u-boot has code to read ext file systems, so reads the DTB, Kernel and initrd from the file system directly.

stormtracknole 02-05-2018 01:17 PM

Quote:

Originally Posted by drmozes (Post 5816112)
This is unnecessary as the Orange Pi has an RTC.

Code:

root@zippy:~/ac/source/x/xterm# dmesg | grep -i rtc
[    1.527013] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.533825] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.572039] sun6i-rtc 1f00000.rtc: setting system clock to 2018-01-27 15:56:57 UTC (1517068617)
root@zippy:~/ac/source/x/xterm#

You don't need to do anything with u-boot once it's configured, and you've booted in to the new installation.
When you upgradepkg the kernel, that's all you need -- there's no "lilo" equivalent because u-boot has code to read ext file systems, so reads the DTB, Kernel and initrd from the file system directly.

Thank you for the explanation. So, if I understand correctly, there can only be one kernel installed in the system. Correct? Same as the Raspberry?

drmozes 02-05-2018 02:47 PM

Quote:

Originally Posted by stormtracknole (Post 5816115)
Thank you for the explanation. So, if I understand correctly, there can only be one kernel installed in the system. Correct? Same as the Raspberry?

The Orange Pi is supported by Slackware ARM directly, and there is only one Kernel package and its accompanying modules package:
Code:

a/kernel_armv7-4.14.15-arm-1.txz
a/kernel-modules-armv7-4.14.15_armv7-arm-1.txz

I'm not sure what the link is you're thinking of about the Raspberry Pi.


All times are GMT -5. The time now is 08:17 AM.