Update porting_to_other_sbc.md

This commit is contained in:
langolierz
2018-03-27 09:24:17 +13:00
committed by GitHub
parent 5a7064b6be
commit 3379d670d2

View File

@@ -5,28 +5,21 @@ a collection of thoughts / research / attempts at porting r_e_c_u_r
## attempting to port r_e_c_u_r to an orange pi plus ## attempting to port r_e_c_u_r to an orange pi plus
i bought an [orange pi plus] at the same time as my raspberry pi 3 , thinking that since they are i bought an [orange pi plus] at the same time as my raspberry pi 3 , thinking that since they are
similarly spec-ed (orange pi is a little weaker but also much cheaper ~18US vs ~38USD i payed for rpi3) similarly spec-ed (orange pi is a little weaker but also much cheaper ~18US vs ~38USD i payed for rpi3) this might be an interesting alternative to offer.
i (naively) figured since opi claim to support raspbian as an os, that this might be as simple as installing i (naively) figured since opi claim to support raspbian as an os, that this might be as simple as installing the same dependancies outlined in the [preparing image] notes and maybe some fiddling with the lcd-screen drivers...
the same dependancies outlined in the [preparing image] notes and maybe some fiddling with the lcd-screen drivers...
it seems like the only raspbian image for orange pi plus was a fork of wheezy distro from 2015 with preinstalled it seems like the only raspbian image for orange pi plus was a fork of wheezy distro from 2015 with preinstalled desktop. this is not supported or updated by orange pi and seems to be a token gesture to compete on paper with raspberry pi. with this image i managed to install some dependacies, but the dbus packages needed for the omx wrapper couldnt be installed (i think the os was too old). also their is no config.txt on orangepi so settings like composite video out and different hdmi modes was going to be more difficult (not to mention the lcd screen driver)
desktop. this is not supported or updated by orange pi and seems to be a token guester to compete on paper
with raspberry pi.
## porting to armbian ## porting to armbian
however what is supported and updated is an os called armbian , which (similar to raspbian) however what is supported and updated is an os called armbian , which (similar to raspbian)
is a version of debian (or linux) made for ARM dev boards. if i can get r_e_c_u_r working on opi running latest is a version of debian (or linux) made for ARM dev boards. if i can get r_e_c_u_r working on opi running latest armbian , it might also work on a bunch of other sbc including other orange pis, ondroids , banana pi etc (beaglebone's run straight debian so perhaps i should see if it works there too)
armbian , it might also work on a bunch of other sbc including other orange pis, ondroids , banana pi etc
(beaglebone s run straight debian so perhaps i should see if it works there too)
given that the software dependancies are avaliable in these alternative os (im not sure if they are yet given that the software dependancies are avaliable in these alternative os (im not sure if they are yet but will just have to try it) some other problems to solve when trying to port r_e_c_u_r to other sbcs are:
but will just have to try it) some other problems to solve when trying to port r_e_c_u_r to other sbcs are:
- connecting a lcd screen / playing video to one framebuffer while running python on another. - connecting a lcd screen / playing video to one framebuffer while running python on another.
[Kaspars Dambis' blog] decribes how to configure a similar lcd display to mine on an orange pi zero running [Kaspars Dambis' blog] decribes how to configure a similar lcd display to mine on an orange pi zero running armbian so hopefully this could help porting it to orange pi pc
armbian so hopefully this could help porting it to orange pi
- playing the video through one framebuffer (hdmi or composite) while the python code displays on another (lcd screen) - playing the video through one framebuffer (hdmi or composite) while the python code displays on another (lcd screen)
this kindof 'just worked' for me on raspberry pi running rasbian but i dont know how it will translate... this kindof 'just worked' for me on raspberry pi running rasbian but i dont know how it will translate...
- video playback might be weaker depending on the gpu accelaration of these alternative boards - video playback might be weaker depending on the gpu accelaration of these alternative boards
@@ -36,8 +29,7 @@ liencing things etc might come into it
## conclusion for now ## conclusion for now
some more research into this is required , but at this point it seems like the extra effort to get recur some more research into this is required , but at this point it seems like the extra effort to get recur running on other smc's might not be worth the savings in cost or flexiblity.
running on other smc's might not be worth the savings in total price of the project or flexiblity.
r_e_c_u_r is an embedded solution and the choice of hardware (raspi3) is tied to the application : r_e_c_u_r is an embedded solution and the choice of hardware (raspi3) is tied to the application :
@@ -46,11 +38,11 @@ r_e_c_u_r is an embedded solution and the choice of hardware (raspi3) is tied to
- (future features using pi camera / capture devices) - (future features using pi camera / capture devices)
right now rpi3 still seems like the best tool for the job and the benfits of running cross-boards are right now rpi3 still seems like the best tool for the job and the benfits of running cross-boards are
not enough to distract from improving this implementaion. (perhaps a future recur independant of omxplayer not enough to distract from improving this implementaion. (perhaps a future recur independant of omxplayer might benifit more from running on main debian / armian)
might benifit more from running on main debian / armian)
as an aside, i am still hopefull that r_e_c_u_r will run on rpi2 and/or zero with little to no changes required. ## r_e_c_u_r on other raspberry pi boards
this might be a more useful and achievable port to focus on for now.
as an aside, i am still hopefull that r_e_c_u_r will run on rpi2 and/or zero with little to no changes required. this might be a more useful and achievable port to focus on for now.