LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-04-2018, 11:25 PM   #1
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Rep: Reputation: Disabled
Orange Pi Plus 2E H3 (unofficial)


build image for SDcard
- kernel 4.19.6
- mainline u-boot 2019.01-rc1-00582-gd452f27b3e-dirty
- work hdmi
- and other patches


README.TXT


slack-current-arm-miniroot_29Sep18-4.19.6-orange_pi_plus_2e-build-20181205.img.tar.xz
slack-current-arm-miniroot_29Sep18-4.19.6-orange_pi_plus_2e-build-20181205.img.tar.xz.md5

Last edited by sndwvs; 12-04-2018 at 11:36 PM.
 
Old 12-05-2018, 04:47 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Thanks for this. Since 4.19 is an LTS, let's get some of this back up stream in to Slackware ARM.
Can you tell me which patches specifically are required to enable HDMI for the H3? I think a newer U-boot is required as well, but that ought to be (I hope) a simple upgrade.
 
1 members found this post helpful.
Old 12-05-2018, 10:53 AM   #3
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
Thanks for this. Since 4.19 is an LTS, let's get some of this back up stream in to Slackware ARM.
Can you tell me which patches specifically are required to enable HDMI for the H3? I think a newer U-boot is required as well, but that ought to be (I hope) a simple upgrade.
1. u-boot was taken the last cut with git
2. the linux source was taken from here branch orange-pi-4.19
3. I only used these patches and it works (patches are also applied to mainline)
Code:
0099-dt-bindings-sun4i-drm-add-HDMI-VCC-supply-property-f.patch
0100-drm-sun4i-Add-support-for-HDMI-voltage-regulator.patch
0126-drm-bridge-move-ANA78xx-driver-to-analogix-subdirect.patch
0127-drm-bridge-split-some-definitions-of-ANX78xx-to-dedi.patch
0128-drm-bridge-extract-some-Analogix-I2C-DP-common-code.patch
0130-drm-bridge-Add-Analogix-anx6345-support.patch
4. configure kernel
Code:
CONFIG_DRM_SUN4I_HDMI=y
CONFIG_DRM_SUN4I_HDMI_CEC=y
CONFIG_DRM_SUN8I_DW_HDMI=y
CONFIG_DRM_DW_HDMI=y
CONFIG_HDMI=y
 
1 members found this post helpful.
Old 12-05-2018, 01:22 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
I upgraded to
Code:
U-Boot 2019.01-rc1 (Dec 05 2018 - 17:34:37 +0000) Allwinner Technology

=> saveenv
Saving Environment to FAT... Unable to use mmc 1:0... Failed (1)
Where are you storing the environment? I haven't looked yet but may be I just need to edit the defaults in the source and rebuild.
 
1 members found this post helpful.
Old 12-05-2018, 01:28 PM   #5
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
I use /boot/boot.cmd /boot/boot.scr
 
1 members found this post helpful.
Old 12-06-2018, 02:57 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by sndwvs View Post
I use /boot/boot.cmd /boot/boot.scr
Where are you writing u-boot to? the eMMC?
It isn't as straight forward as I had hoped and it's not obvious what they changed, so I might ask on the u-boot mailing list.
 
Old 12-06-2018, 03:32 AM   #7
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
Where are you writing u-boot to? the eMMC?
It isn't as straight forward as I had hoped and it's not obvious what they changed, so I might ask on the u-boot mailing list.
to boot from eMMC, you need to write u-boot:
# clear u-boot
Code:
dd if=/dev/zero of=/dev/mmcblk1 bs=1k count=1023 seek=1 status=noxfer
dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk1 bs=1024 seek=8 status=noxfer
after that add root to boot in /boot/uEnv.txt:
Code:
verbosity=8
console=both
rootdev=/dev/mmcblk1p1
transfer boot.cmd boot.scr to eMMC in /boot

and change fstab on eMMC to mind:
Code:
/dev/mmcblk1p1    /          ext4    noatime,nodiratime,derrors=remount-ro       0       1

Last edited by sndwvs; 12-06-2018 at 03:34 AM.
 
Old 12-06-2018, 08:10 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by sndwvs View Post
to boot from eMMC, you need to write u-boot:
# clear u-boot
Code:
dd if=/dev/zero of=/dev/mmcblk1 bs=1k count=1023 seek=1 status=noxfer
dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk1 bs=1024 seek=8 status=noxfer
after that add root to boot in /boot/uEnv.txt:
Code:
verbosity=8
console=both
rootdev=/dev/mmcblk1p1
transfer boot.cmd boot.scr to eMMC in /boot

and change fstab on eMMC to mind:
Code:
/dev/mmcblk1p1    /          ext4    noatime,nodiratime,derrors=remount-ro       0       1
How does u-boot know where to find /boot ? are you using the default environment present within the u-boot binary that scans available media?

One of the precepts I work to is that people installing Slackware ARM should be safe, if they follow the instructions.
If I suggest overwriting u-boot on the eMMC, and it doesn't work out, you've got a bricked device - which is usually hard to fix.
That's why I go with the SD card approach: at least this is a safe approach.
I'm not sure that I can do that with this method, unless I'm missing something?

Last edited by drmozes; 12-06-2018 at 08:12 AM.
 
Old 12-06-2018, 08:49 AM   #9
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drmozes View Post
How does u-boot know where to find /boot ? are you using the default environment present within the u-boot binary that scans available media?
yes, the default u-boot is used.

Quote:
Originally Posted by drmozes View Post
One of the precepts I work to is that people installing Slackware ARM should be safe, if they follow the instructions.
If I suggest overwriting u-boot on the eMMC, and it doesn't work out, you've got a bricked device - which is usually hard to fix.
That's why I go with the SD card approach: at least this is a safe approach.
I'm not sure that I can do that with this method, unless I'm missing something?
i also want the images for SDcard, the transfer from SDcard to eMMC is described above.
for orange pi with non-working u-boot in eMMC, it will boot from SDcard.
 
Old 12-06-2018, 09:30 AM   #10
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by sndwvs View Post
for orange pi with non-working u-boot in eMMC, it will boot from SDcard.
Aha! I didn't know that.
Thanks. This might simplify things then.
 
Old 12-06-2018, 09:57 AM   #11
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
for information Boot Process
 
Old 12-07-2018, 05:33 AM   #12
Broder Tuck
LQ Newbie
 
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
I don't see this config option mentioned in this thread:

CONFIG_SUN8I_DE2_CCU=y

I believe I had to add this one, back when I did an experimental DE2/HDMI backport to the 4.16 kernel for my little H3 device.
 
Old 12-07-2018, 07:31 AM   #13
sndwvs
Member
 
Registered: Aug 2014
Posts: 203

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Broder Tuck View Post
I don't see this config option mentioned in this thread:

CONFIG_SUN8I_DE2_CCU=y

I believe I had to add this one, back when I did an experimental DE2/HDMI backport to the 4.16 kernel for my little H3 device.
this parameter is included in this build.
 
Old 12-08-2018, 05:11 AM   #14
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 739

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Quote:
Originally Posted by sndwvs View Post
for information Boot Process
Having thought it through, this is helpful for someone who wants to use the SD card slot for something else, but not for a new user.
We still need a way to place the newer u-boot on to the eMMC - which would mean they need to boot a Linux OS (which may not work properly with the factory version of u-boot, or may have different options - e.g. "save" used to save the environment, and now it is an unknown operation: I need to be able to document from a known state), or do it from u-boot directly (either way requires more documentation). With the SD card route they can do this on an x86.
I'll have to find out why the newer version no longer can save its environment.

Last edited by drmozes; 12-08-2018 at 06:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Orange Pi Plus 2E now tested in -current drmozes Slackware - ARM 20 02-18-2018 11:38 AM
LXer: Orange Pi Plus 2e OS Installation LXer Syndicated Linux News 0 06-29-2017 07:30 PM
LXer: Debian GNU/Linux 9 "Stretch" Installer Now Supports Xunlong Orange Pi Plus and 2 LXer Syndicated Linux News 0 05-29-2017 08:39 PM
LXer: Review: ODROID-C2, compared to Raspberry Pi 3 and Orange Pi Plus LXer Syndicated Linux News 0 03-26-2016 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration