Pr neutis n5 support v2.19.0+rev1#60
Conversation
- add neutis BSP layer as a git submodule - add neutis BSP layers to bblayers sample - resin-image.inc: appends for neutis n5 - add linux-sunxi bbappend to make neutis linux be compatible with resin kernel recipe - add neutis-n5.coffee, based on nanopi-neo-air file Signed-off-by: Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com>
Resin image can't be built with usb-modeswitch from resin layer. gcc native should be lower than version 8, rust-llvm has an error if you use gcc-8. Signed-off-by: Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com>
- add brcm firmware for Ampak AP6212A - copy all neutis supported device tree overlays to image Signed-off-by: Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com>
- share resin u-boot patches with u-boot_2018.07 - don't apply 0001-Add-Resin-specific-boot-command.patch, boot commands are not compatible with arm64 u-boot - add boot.cmd for neutis u-boot - update dtb location in boot partition for neutis - add resin-specific-env-integration-kconfig patch for v2018.07 Signed-off-by: Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com>
|
Can one of the admins verify this patch? |
|
Hi @AD-Aleksandrov , thanks for your contribution. |
|
@floion its up to you, I don't think it will cause too much bloat and its nice to keep things centralised, but ultimately its up to you to do what you think is most maintainable. I am very excited to get the Neutis board supported, thanks @AD-Aleksandrov it looks like a great piece of hardware |
|
|
||
| # FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
|
|
||
| # SRC_URI += "file://0001-Add-Resin-specific-boot-command.patch" |
There was a problem hiding this comment.
Hi. What is the usb modeswitch error you get?
There was a problem hiding this comment.
I see. what is the gcc version you have on your development machine?
| Image-sun50i-h5-usbhost3.dtbo:/allwinner/overlay/sun50i-h5-usbhost3.dtbo \ | ||
| Image-sun50i-h5-hdmi.dtbo:/allwinner/overlay/sun50i-h5-hdmi.dtbo \ | ||
| Image-sun50i-h5-camera-status-okay.dtbo:/allwinner/overlay/sun50i-h5-camera-status-okay.dtbo \ | ||
| Image-sun50i-h5-emlid-neutis-n5-devboard.dtb:/dtb/allwinner/sun50i-h5-emlid-neutis-n5-devboard.dtb \ |
There was a problem hiding this comment.
Can you amend the previous commit in which you introduced the copying of the overlays so that you do this change directly in that commit?
| setenv bootargs ${resin_kernel_root} rootfstype=ext4 rootwait console=$console; | ||
| fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${resin_kernel_load_addr} Image; | ||
| fatload ${resin_dev_type} ${resin_dev_index}:${resin_boot_part} ${fdt_addr_r} dtb/${fdtfile}; | ||
| booti ${resin_kernel_load_addr} - ${fdt_addr_r} |
There was a problem hiding this comment.
Why can't this be patched like for other boards? What is the problem with 64 bits u-boot?
Just as a side note, here's how we do it for other boards. https://github.com/balena-os/resin-artik710/blob/master/layers/meta-resin-artik710/recipes-bsp/u-boot/patches/0007-artik710_raptor.h-Board-specific-integration-with-re.patch (this also happens to be 64 bits)
|
Can you use these contributing guidelines in your PR please? |
Hello!
I would like to add resin-os support for Emlid Neutis N5.
This is a SoM based on Allwinner H5, it has 8GB eMMC and 512MB DDR3, WiFi+BT (Ampak AP6212A).
Please visit neutis.io for the detailed information.
I met one issue - usb-modeswitch build error, attach a log below.
log-usb-modeswitch.zip
This neutis n5 build works okay, if I use the recipe usb-modeswitch from meta-openembedded.
I would be happy to hear your thoughts about these commits.
Thank you for your time!
Aleksandr