-
Notifications
You must be signed in to change notification settings - Fork 190
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
Conversation
| # a 768M swap file on it the first time we boot. | ||
| #makeswapfile_enable="YES" | ||
| #makeswapfile_minfreeblocks=14000000 | ||
| #makeswapfile_swapsize_mb=768 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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")
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
f3d36aa to
eb90476
Compare
|
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! |
|
Thanks! |
Corresponding u-boot port required - sysutils/u-boot-orangepi-plus-2e
see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214729