After build we are offered a command to try the new minix3 image on qemu. By running the command:
qemu-system-arm -M beaglexm -serial stdio -drive if=sd,cache=writeback,file=/root/src/minix/src/minix_arm_sd.img
My qemu doesnt recognize beaglexm machine, so i found info to build qemu-system-arm that run that machine.
http://wiki.minix3.org/doku.php?id=developersguide:minixonlinaroqemuarm
cd $HOME git clone git://git.linaro.org/qemu/qemu-linaro.git linaro cd linaro # to install the build dependencies of qemu apt-get build-dep qemu ./configure --target-list=arm-softmmu --prefix=$HOME/qemu make make install
Run
$HOME/qemu/bin/qemu-system-arm -M beaglexm -drive if=sd,cache=writeback,file=minix_arm_sd.img -clock unix -serial stdio -device usb-kbd -device usb-mouse -usb
First Run Log
/root/qemu/bin/qemu-system-arm -M beaglexm -serial stdio -drive if=sd,cache=writeback,file=/root/src/minix/src/minix_arm_sd.img
WARNING: Image format was not specified for ‘/root/src/minix/src/minix_arm_sd.img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
Could not initialize SDL(No available video device) – exiting
root@bananapi:~/src/linaro# /root/qemu/bin/qemu-system-arm -nographic -M beaglexm -serial stdio -drive if=sd,cache=writeback,file=/root/src/minix/src/minix_arm_sd.img
WARNING: Image format was not specified for ‘/root/src/minix/src/minix_arm_sd.img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
QEMU 2.3.50 monitor – type ‘help’ for more information
(qemu) qemu-system-arm: -serial stdio: cannot use stdio by multiple character devices
root@bananapi:~/src/linaro# /root/qemu/bin/qemu-system-arm -curses -M beaglexm -serial stdio -drive if=sd,cache=writeback,file=/root/src/minix/src/minix_arm_sd.img
WARNING: Image format was not specified for ‘/root/src/minix/src/minix_arm_sd.img’ and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the ‘raw’ format explicitly to remove the restrictions.
reading uEnv.txt
1274 bytes read in 11 ms (112.3 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc …
Running uenvcmd …
starting from MMC
mmc – MMC sub system
Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part – lists available partition on current mmc device
mmc dev [dev] [part] – show or set current mmc device [partition]
mmc list – lists available devices
reading kernel.bin
264580 bytes read in 146 ms (1.7 MiB/s)
reading ds.elf
79852 bytes read in 48 ms (1.6 MiB/s)
reading rs.elf
113152 bytes read in 76 ms (1.4 MiB/s)
reading pm.elf
81024 bytes read in 52 ms (1.5 MiB/s)
reading sched.elf
44520 bytes read in 32 ms (1.3 MiB/s)
reading vfs.elf
182184 bytes read in 112 ms (1.6 MiB/s)
reading memory.elf
2762932 bytes read in 1680 ms (1.6 MiB/s)
reading tty.elf
63428 bytes read in 49 ms (1.2 MiB/s)
reading mib.elf
82600 bytes read in 54 ms (1.5 MiB/s)
reading vm.elf
165788 bytes read in 103 ms (1.5 MiB/s)
reading pfs.elf
56336 bytes read in 38 ms (1.4 MiB/s)
reading mfs.elf
106368 bytes read in 73 ms (1.4 MiB/s)
reading init.elf
318100 bytes read in 186 ms (1.6 MiB/s)
console=tty02 rootdevname=c0d0p1 verbose=0 hz=1000 board_name=BBXM
## Starting application at 0x80200000 …
MINIX 3.4.0. Copyright 2016, Vrije Universiteit, Amsterdam, The Netherlands
MINIX is open source software, see http://www.minix3.org
omap_gp_timer_write: Bad register 0x000048
omap_gp_timer_write: Bad register 0x00004c
Started VFS: 9 worker thread(s)
Starting the mmc driver
mmc_block(info)Initializing the MMC block device
mmc_host_mmchs(info)Using instance number 0
mmc_block(info)System event framework fresh start
Root device name is /dev/c0d0p1
mmc_host_mmchs(info)Enabling high speed mode
/dev/c0d0p1: clean
mmc_host_mmchs(info)Enabling high speed mode
mmc_host_mmchs(info)Enabling high speed mode
/dev/c0d0p1 is mounted on /
none is mounted on /proc
/etc/rc.d/minixrc terminated with signal 2
^C^[OM^[OM^[OMStarting network.
/etc/rc: WARNING: $hostname not set.
route: socket: Address family not supported by protocol family
ifconfig: main: getsock: No such file or directory
route: socket: Address family not supported by protocol family
ifconfig: getifaddrs: No such file or directory
ifconfig: SIOCIFGCLONERS for count: Bad file descriptor
Configuring network interfaces:.
Adding interface aliases:.
Building databases: devdev_mkdb: not found
, devdev_mkdb: not found
, utmpinstall: not found
, utmpxinstall: not found
, servicesservices_mkdb: not found
.
fmt: not found
The following components reported failures:
See /var/run/rc.log for more information.
Thu Jan 1 00:06:05 GMT 1970
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/console’: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc1′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc2′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc3′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/console’: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc1′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc2′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc3′: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/console’: No such file or directory
init: can’t exec getty `/usr/libexec/getty’ for port `/dev/ttyc1′: No such file or directory