-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for orangepi-plus2e v2 #71
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
base: master
Are you sure you want to change the base?
Changes from all commits
ff89c3c
58e3fe0
ac36135
57f3fbb
0cf30e1
bd020b0
76464ad
7cdd33a
c74a8ef
96eb0c2
c5a3c29
2c89288
ec7808b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #@TYPE: Machine | ||
| #@NAME: Orange Pi Plus 2e | ||
| #@DESCRIPTION: Machine configuration for the Orange Pi Plus2e, based on allwinner H3 CPU http://www.orangepi.org/ | ||
|
|
||
| require conf/machine/include/sun8i.inc | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should define instead a machine override like in: https://github.com/balena-os/balena-allwinner/blob/master/layers/meta-resin-allwinner/conf/machine/bananapi-m1-plus.conf#L5 |
||
|
|
||
| KERNEL_DEVICETREE = "sun8i-h3-orangepi-plus2e.dtb" | ||
| UBOOT_MACHINE = "orangepi_plus2e_defconfig" | ||
| PREFERRED_VERSION_linux-mainline = "4.17.3" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,21 @@ | ||
| # | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please redo the commit header. For this commit, the header should be something like:
So the header should always reference the file being changed, not the layer (layers/meta-resin-allwinner) |
||
| # Orange Pi Plus2e | ||
| # | ||
|
|
||
| IMAGE_FSTYPES_append_orangepi-plus2e = " resinos-img" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override. |
||
|
|
||
| # Customize resinos-img | ||
| RESIN_IMAGE_BOOTLOADER_orangepi-plus2e = "u-boot" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override. |
||
| RESIN_BOOT_PARTITION_FILES_orangepi-plus2e = " \ | ||
| ${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin:/${KERNEL_IMAGETYPE} \ | ||
| uImage-sun8i-h3-orangepi-plus2e.dtb:/dtb/sun8i-h3-orangepi-plus2e.dtb \ | ||
| u-boot-sunxi-with-spl.bin: \ | ||
| " | ||
| IMAGE_CMD_resinos-img_append_orangepi-plus2e () { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override. |
||
| # Orange Pi Plus2e needs uboot written at a specific location | ||
| dd if=${DEPLOY_DIR_IMAGE}/u-boot-sunxi-with-spl.bin of=${RESIN_RAW_IMG} conv=notrunc seek=8 bs=1024 | ||
| } | ||
|
|
||
| # | ||
| # Orange Pi Plus2 | ||
| # | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| CONNECTIVITY_FIRMWARES_append = " linux-firmware-ap6212 linux-firmware-brcm43362" | ||
| CONNECTIVITY_MODULES_append_orangepi-plus2 = " rtl8189" | ||
| CONNECTIVITY_MODULES_append_orangepi-plus2e = " rtl8189fs-mod" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you rephrase the commit log? "Connectivity config." doesn't describe what that package really is |
||
|
|
||
| CONNECTIVITY_MODULES_append_orange-pi-zero = " xradio" | ||
| CONNECTIVITY_FIRMWARES_append_orange-pi-zero = " xradio-firmware" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ RESIN_CONFIGS[axp_power] ="\ | |
| " | ||
|
|
||
| RESIN_CONFIGS_append_orangepi-plus2 = " wifi" | ||
| RESIN_CONFIGS_append_orangepi-plus2e = " wifi" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override |
||
| RESIN_CONFIGS_append_orange-pi-zero = " wifi" | ||
| RESIN_CONFIGS[wifi] ="\ | ||
| CONFIG_WIRELESS=y \ | ||
|
|
@@ -27,6 +28,7 @@ RESIN_CONFIGS[wifi] ="\ | |
| " | ||
|
|
||
| RESIN_CONFIGS_append_orangepi-plus2 = " pl2303" | ||
| RESIN_CONFIGS_append_orangepi-plus2e = " pl2303" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override |
||
| RESIN_CONFIGS_DEPS[pl2303] = "\ | ||
| CONFIG_USB_SERIAL=m \ | ||
| " | ||
|
|
@@ -35,6 +37,7 @@ RESIN_CONFIGS[pl2303] ="\ | |
| " | ||
|
|
||
| RESIN_CONFIGS_append_orangepi-plus2 = " hdmi" | ||
| RESIN_CONFIGS_append_orangepi-plus2e = " hdmi" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override |
||
| RESIN_CONFIGS_DEPS[hdmi] = "\ | ||
| CONFIG_SUN8I_DE2_CCU=y \ | ||
| " | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # Flash to internal eMMC - kernel always enumerates emmc as mmcblk2 | ||
| INTERNAL_DEVICE_KERNEL_nanopi-neo-air = "mmcblk2" | ||
|
|
||
| INTERNAL_DEVICE_KERNEL_orangepi-plus2e = "mmcblk2" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed if your machine conf file uses the machine override |
||
| INTERNAL_DEVICE_KERNEL_orangepi-plus2 = "mmcblk2" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
|
|
||
| deviceTypesCommon = require '@resin.io/device-types/common' | ||
| { networkOptions, commonImg, instructions } = deviceTypesCommon | ||
|
|
||
| postProvisioningInstructions = [ | ||
| instructions.BOARD_SHUTDOWN | ||
| instructions.REMOVE_INSTALL_MEDIA | ||
| instructions.BOARD_REPOWER | ||
| ] | ||
|
|
||
| module.exports = | ||
| version: 1 | ||
| slug: 'orangepi-plus2e' | ||
| name: 'Orange Pi Plus2e' | ||
| arch: 'armv7hf' | ||
| state: 'experimental' | ||
| community: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIT: extra space here |
||
|
|
||
| stateInstructions: | ||
| postProvisioning: postProvisioningInstructions | ||
|
|
||
| instructions: [ | ||
| instructions.ETCHER_SD | ||
| instructions.EJECT_SD | ||
| instructions.FLASHER_WARNING | ||
| instructions.CONNECT_AND_BOOT | ||
| ].concat(postProvisioningInstructions) | ||
|
|
||
| gettingStartedLink: | ||
| windows: 'https://docs.resin.io/orangepi-plus2e/nodejs/getting-started/#adding-your-first-device' | ||
| osx: 'https://docs.resin.io/orangepi-plus2e/nodejs/getting-started/#adding-your-first-device' | ||
| linux: 'https://docs.resin.io/orangepi-plus2e/nodejs/getting-started/#adding-your-first-device' | ||
| supportsBlink: true | ||
|
|
||
| options: [ networkOptions.group ] | ||
|
|
||
| yocto: | ||
| machine: 'orangepi-plus2e' | ||
| image: 'resin-image-flasher' | ||
| fstype: 'resinos-img' | ||
| version: 'yocto-sumo' | ||
| deployArtifact: 'resin-image-flasher-orangepi-plus2e.resinos-img' | ||
| compressed: true | ||
|
|
||
| configuration: | ||
| config: | ||
| partition: | ||
| primary: 1 | ||
| path: '/config.json' | ||
|
|
||
| initialization: commonImg.initialization | ||
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 submodule is not correctly added. The build server fails when fetching:
How did you add the submodule in this PR? What are the commands you used?