Skip to content
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

OrangePi i96 initial support #175

Conversation

daniel-thompson
Copy link
Contributor

Initial support is based on the vendor kernel and u-boot.

The vendor code currently has minimal changes, however they are modified to support gcc-7.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Copy link
Member

@fboudra fboudra left a comment

Choose a reason for hiding this comment

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

There's a few minor nitpicks, but overall it LGTM.

XSERVER ?= "xserver-xorg \
mesa-driver-swrast \
xf86-input-evdev \
xf86-video-fbdev"
Copy link
Member

Choose a reason for hiding this comment

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

            xf86-video-fbdev \
"

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change 'fbdev' to 'modesetting'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This thing is running with a v3.10 vendor kernel. I haven't checked explicitly (i96 not having easy access to video out) but I'd be surprised if it has a working KMS implemention.


# TODO: Switch this to LS-UART1 and reduce to 115200 (921600 is needed
# on ttyS0 in order to match speeds with the boot ROM output
SERIAL_CONSOLE = "921600 ttyS0"
Copy link
Member

Choose a reason for hiding this comment

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

The SERIAL_CONSOLE variable is deprecated. Please use the SERIAL_CONSOLES variable. The format is slightly different, it isn't only a renaming of the variable.

u-boot-orangepi-i96 \
"

CMDLINE_ROOT_EMMC = "mmcblk0p2"
Copy link
Member

Choose a reason for hiding this comment

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

only 1 space: CMDLINE_ROOT_EMMC = "mmcblk0p2"

@@ -0,0 +1,35 @@
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc

FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"
Copy link
Member

Choose a reason for hiding this comment

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

we don't apply any patches or ship extra files, so the line can be removed entirely.


FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"

SUMMARY = "U-Boot bootloader for OrangePi i96"
Copy link
Member

Choose a reason for hiding this comment

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

the file doesn't follow OE style guidelines. See u-boot-juno and u-boot-poplar that have been reformatted yesterday.

SRCREV_kernel = "b476a2c5bfb893aba3ee4daa840196a97898bf48"
SRCREV_FORMAT = "kernel"

SRC_URI = "git://github.com/daniel-thompson/linux.git;nobranch=1;name=kernel"
Copy link
Member

Choose a reason for hiding this comment

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

can you add also protocol=https

DEPENDS += "openssl-native"
HOST_EXTRACFLAGS += "-I${STAGING_INCDIR_NATIVE}"

#LDFLAGS += "${TOOLCHAIN_OPTIONS}"
Copy link
Member

Choose a reason for hiding this comment

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

if not used, get rid of it.

@daniel-thompson
Copy link
Contributor Author

Thanks Fathi. Will make all the proposed changes. I'll try to get things updates in the next day or three.

@daniel-thompson
Copy link
Contributor Author

daniel-thompson commented Oct 13, 2017

@parrotgeek1 : Acting on the review comments is still on my TODO list but has got pretty deeply buried by other things. It will be a while longer before I can repost.

@fboudra
Copy link
Member

fboudra commented Oct 13, 2017

@daniel-thompson based on the minor fixes that has been pointed at the review. we/I can take it from there and make the fixes myself before merging.

@daniel-thompson
Copy link
Contributor Author

@fboudra : A generous offer if you have the time... (I've just replied to Koen's comment about fbdev since I think that needs more then OE knowhow to conclude on).

@daniel-thompson
Copy link
Contributor Author

@parrotgeek1:
So my kernel is nothing more or less than the vendor kernel with a script run over it (and some gcc-7 patches). It's based on 3.10.62 because I hoped to experiment with a technique for ripping out all the Android stuff... If you reorder the patches so the board support is at the front of the patch queue and all the Android support is at the back and then start testing at the last board support patch then all the remaining Android patches are still there to bisect through if you find driver regressions that really do rely on some of the non-BSP patches.

However, it doesn't look like I'll get round to that anytime soon so perhaps I should regenerate everything from a linaro-android baseline instead.

@fboudra
Copy link
Member

fboudra commented Oct 27, 2017

Merged:

Thanks Daniel!

@fboudra fboudra closed this Oct 27, 2017
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.

None yet

3 participants