Skip to content

Add support of AllWinner H3 SoC - OrangePi Plus2E #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 23, 2016

Conversation

vgrebenschikov
Copy link
Contributor

@vgrebenschikov vgrebenschikov commented Nov 22, 2016

Corresponding u-boot port required - sysutils/u-boot-orangepi-plus-2e
see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214729

# a 768M swap file on it the first time we boot.
#makeswapfile_enable="YES"
#makeswapfile_minfreeblocks=14000000
#makeswapfile_swapsize_mb=768
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed (nor the corresponding makeswapfile file) since we added the generic

Option SwapFile

that should work with any board at all. See

https://github.com/freebsd/crochet/tree/master/option/SwapFile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -0,0 +1,57 @@
#!/bin/sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also remove this file.

@@ -0,0 +1,2 @@
load kernel
load -t dtb boot/dtb/orangepi-plus-2e.dtb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed.
ubldr load the dtb after the uboot variable "fdtfile"

@@ -0,0 +1 @@
fdt_file=orangepi-plus-2e.dtb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again not needed, the problem is in your uboot port, you must set the MODEL variable to the dtb name (minus ".dtb")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So fdt_file=orangepi-plus-2e.dtb will be compiled into u-boot?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, setting MODEL=blah.dtb sets the variable fdtfile into uboot env, which ubldr will import and use as the default dtb to load.
See https://svnweb.freebsd.org/ports/head/sysutils/u-boot-olimex-a20-som-evb/files/patch-include_configs_sunxi-common.h?revision=418446&view=markup#l44

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That way there is some disagreement with model and default_config:
MODEL= orangepi-plus-2e
BOARD_CONFIG= orangepi_plus2e_defconfig

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not a problem

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another question, how to turn on vga console?
I've tried stderr/stdout serial,vga but it does not helps

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VGA ? You mean HDMI right ?
I'm not sure that uboot support H3 HDMI controller yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, HDMI
And same for X11?

Copy link
Contributor Author

@vgrebenschikov vgrebenschikov Nov 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under Linux HDMI console supported, although, but requires, u-boot scripts

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently do not support the HDMI controller nor the display engine on H3 in FreeBSD

@kientzle kientzle merged commit 0e59d6b into freebsd:master Nov 23, 2016
@kientzle
Copy link
Contributor

I've merged this so others can try it. If you need additional changes, please send another Pull Request.

Thanks for your hard work on this!

@vgrebenschikov
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants