I am using the tool called buildroot to create an image. It was easy to "install," just download and unzip/untar it. Go into the directory and type make xconfig. There are other options but the xconfig option, which uses Qt, gives you details about what your adding and won't let you add things if it can't find the tools on your computer. To install Qt on Ubuntu 20 use the command 

sudo apt-get install qt5-default

If something can't be installed you will see this next to its name: 

<your application/library> needs a toolchain w/ <some things>. It will also be missing the checkbox that the other options will have. I havent tried to add anything to the toolchain for this build so I won't be discussing it now. After I get to really understanding what I want to do I'll loop back to this and write something up.

Here is what I used that is not the default: 

Target Options 

ARM (Little endian) 

 

Build Options 

Enable Compiler Cache 

Strip target binaries 

Gcc optimization level 3 

Static and shared libraries 

 

System Configuration 

Enable root login with password: 

<A password> 

Interpreter Languages and Scripting 

Micropython 

Micropython libraries 

 

Hardware handling 

C-periphery (This allows you to connect to the various busses.) 

 

I am thinking about using a bus for the WIFI card. It has microSD pads so I would need to figure out that. The WIFI transceiver that comes with it goes in the microSD card slot where the image will be. 

 

Having an email client might be an interesting way to communicate with the system, but I think properly encoded WIFI packets would be better. 

I tried to just using make config and then make and it immediately errored out. I am assuming it errored because I selected something and the make script didn’t know where to find the dependencies. It was "Error 2."

After you are done with make xconfig save the configuration and then exit. Type make to start the build process. This will take some time, especially if this is the first time you build an image. On this computer, surely not the fastest but not a slug either, it took about 30 minutes.  

 

linux/linux.mk:549: *** No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting.  Stop. 

make: *** [Makefile:84: _all] Error 2 

 

boot/uboot/uboot.mk:477: *** No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting.  Stop. 

 

make: *** [Makefile:84: _all] Error 2*** Can't find default configuration "arch/../configs/licheepi_nano_spiflash_defconfig_defconfig"! Leave off the _defconfig 

*** 

make[3]: *** [scripts/kconfig/Makefile:110: licheepi_nano_spiflash_defconfig_defconfig] Error 1 

make[2]: *** [Makefile:565: licheepi_nano_spiflash_defconfig_defconfig] Error 2 

make[1]: *** [boot/uboot/uboot.mk:530: /home/david/Downloads/buildroot/buildroot-2020.08.1/output/build/uboot-2020.07/.stamp_dotconfig] Error 2 

make: *** [Makefile:84: _all] Error 2 

Like it on Facebook, +1 on Google, Tweet it or share this article on other bookmarking websites.