Target: try to compile minix3 on banana pi
Resources used
- Web Documents
- Banana pi (ARMBIAN 5.31 stable Debian jessie 4.11.6-sunxi on 8G sdcard)
Follow Start info
http://wiki.minix3.org/doku.php?id=developersguide:crosscompiling
http://wiki.minix3.org/doku.php?id=developersguide:minixonarm
Prepare environment
apt-get install build-essential curl git zlibc zlib1g zlib1g-dev mtools
Get minix3 sources
git clone git://git.minix3.org/minix src
Test building for arm BeagleBoard-xM as the only instructions available.
cd src vi .settings
Create a file and put this in contents
# beagleboard-xm U_BOOT_BIN_DIR=build/omap3_beagle/ CONSOLE=tty02
Run build
./releasetools/arm_sdimage.sh
Wait….
During this stage take time to have a look to the minix3 directory/file structure and a more detailed at build/omap3_beagle/ used at configuration file. found nothing… only references to TI (texas instruments) on arch/arm
Wait… 10 hours
===> Summary of results:
build.sh command: build.sh -j 1 -m evbearm-el -O ../obj.evbearm-el -D ../obj.evbearm-el/destdir.evbearm-el -V MKGCCCMDS=yes -V MKLLVM=no -U -u release
build.sh started: Sun Jul 9 02:17:04 WEST 2017
MINIX version: 3.4.0
MACHINE: evbarm
MACHINE_ARCH: earm
Build platform: Linux 4.11.6-sunxi armv7l
HOST_SH: /bin/sh
MAKECONF file: /etc/mk.conf (File not found)
TOOLDIR path: /root/src/minix/src/../obj.evbearm-el/tooldir.Linux-4.11.6-sunxi-armv7l
DESTDIR path: /root/src/minix/src/../obj.evbearm-el/destdir.evbearm-el
RELEASEDIR path: /root/src/minix/src/../obj.evbearm-el/releasedir
Updated makewrapper: /root/src/minix/src/../obj.evbearm-el/tooldir.Linux-4.11.6-sunxi-armv7l/bin/nbmake-evbearm-el
Successful make release
build.sh ended: Sun Jul 9 03:28:11 WEST 2017
===> .
Building work directory…
* Extracting minix-base…
* Extracting minix-comp…
* Extracting minix-games…
* Extracting minix-man…
* Extracting minix-tests…
* Extracting tests…
Adding extra files…
Bundling packages…
* PACKAGE_DIR not set, skipping package bundling…
Creating specification files…
mkfs.fat 3.0.27 (2014-11-12)
Cloning into ‘./releasetools//u-boot’…
remote: Counting objects: 210899, done.
remote: Compressing objects: 100% (37805/37805), done.
remote: Total 210899 (delta 169892), reused 210838 (delta 169864)
Receiving objects: 100% (210899/210899), 54.50 MiB | 2.41 MiB/s, done.
Resolving deltas: 100% (169892/169892), done.
Checking connectivity… done.
Checking out files: 100% (7683/7683), done.
Copying configuration kernel and boot modules
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00138115 s, 371 kB/s
Writing disk image…
* ROOT
* USR
* HOME
Part First Last Base Size Kb
0 1/000/00 10/063/31 2048 20480 10240
1 11/000/00 74/063/31 22528 131072 65536
2 75/000/00 1866/063/31 153600 3670016 1835008
3 1867/000/00 1994/063/31 3823616 262144 131072
Merging file systems
20480+0 records in
20480+0 records out
10485760 bytes (10 MB) copied, 0.487778 s, 21.5 MB/s
Disk image at /root/src/minix/src/minix_arm_sd.img
To boot this image on kvm:
qemu-system-arm -M beaglexm -serial stdio -drive if=sd,cache=writeback,file=/root/src/minix/src/minix_arm_sd.img
root@bananapi:~/src/minix/src#
Result
I manage to boot the minix3 using a custom qemu quild on banana Pi.
The system was not realy usable. But the minix4 kernel boot.
I also try to make a bootable sd, replacing some boot partition contents with contents build with u-boot-sunxi for banana pi.
As i dont have any serial console, i just can see the green led blinking, if i try to boot the original image, only red turn on, fixed.