hchenji Posted August 7, 2017 Posted August 7, 2017 Hi all, I have the clearfog base - Armbian 5.32 works great on it. Now let's say I need to develop an application which uses Boost. I can create a custom user config to install the appropriate packages, but how do I compile against it? rootfs seems to be deleted every time I create an image to be flashed. How can I package my own application into the sd card image? I have done this before with openwrt and their custom packages, but if I could do it in Armbian that would be great.
martinayotte Posted August 7, 2017 Posted August 7, 2017 6 minutes ago, hchenji said: develop an application which uses Boost This means it is not related to building some "out-of-tree" kernel driver ... Simply install the boost packages you need using apt-get.
zador.blood.stained Posted August 7, 2017 Posted August 7, 2017 29 minutes ago, hchenji said: How can I package my own application into the sd card image? You can put custom commands in userpatches/customize-image.sh
hchenji Posted August 7, 2017 Author Posted August 7, 2017 Hi all, Thanks for the info. I wasn't trying to build a kernel module or to customize the image, but only to compile against the rootfs. I eventually unset use_tmpfs and removed the "rm $SD_CARD" command from the scripts. I now have a rootfs in .tmp I can use. Alternatively, I just mounted the .img and compiled against it!
Menion Posted August 17, 2017 Posted August 17, 2017 On 8/7/2017 at 6:26 PM, zador.blood.stained said: You can put custom commands in userpatches/customize-image.sh I think that the best approach would be to chroot+qemu the img that is actually running on your armbian device and compile within it. The performances are really good, considering it is an x86->aarch64 emulation. I have used it to compile libraries that run out of memory (and swap on SD/USB is so slow that it is basically useless) on my OrangePi PC2 1Gb RAM
Recommended Posts