Is it possible to tweak the build script to build one image on my H3 ?

Recommended Posts



I tested to build some deb package yesterday on my Nanopi M1 and it went surprisingly good and quite fast so I wondered ...


I know that the documented way of building armbian is with a x64 computer (with Virtualbox / docker). As I already stated I don't have a big enough x64 computer at hand, would it be feasible to tweak the scripts to build one image (not all) using either my Nanopi M1 (but I guess 512Mo of RAM will be problematic) or a Banana Pi / Raspberry Pi 2 ?


If not, building uboot / kernel only ?


I started to read the scripts, there are many scripts and but I think I can understand many of them individually even if the global architecture is hard to follow.


I know that it's certainly not on Armbian's roadmap so I don't want the work done for me, I just want an honest opinion about my question.


Thanks in advance.

Share this post

Link to post
Share on other sites

I don't know what your financial constraints are, but launching a Ubuntu 14.04 AWS EC2 instance and running armbian builder on it is cake....and fast..    AKA $1 of cloud computing will save you a lot of time and effort.

Share this post

Link to post
Share on other sites

It's obviously possible to manually change the scripts to run on any board, but implementing this as an option will only make the code more complicated and harder to read.


In any case you need to start by editing "prepare_host" function in general.sh, removing checks and installation of toolchains and cross-compilation packages.


To compile kernel and u-boot you need to remove CROSS_COMPILE parameters from compile_uboot and compile_kernel functions in common.sh


To make an image you'll have to remove qemu binary installation and tweak debootstrap parameters in debootstrap-ng.sh. Also you may want to set KERNEL_COMPILER and UBOOT_COMPILER to an empty string in configuration.sh to use native GCC.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.