I tried to follow the getting started software how to. I’m trying to boot ubuntu 16.04 server image. I already prepared the rootfs with kernel 4.4.52 and dtb file in /boot. When trying to boot, I get the ff error:
[ 6.074707] Starting init: /sbin/init exists but couldn’t execute it (error -8)
[ 6.085632] Starting init: /etc/init exists but couldn’t execute it (error -13)
[ 6.102679] request_module: runaway loop modprobe binfmt-464c
[ 6.110756] Starting init: /bin/sh exists but couldn’t execute it (error -8)
[ 6.118164] Kernel panic – not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
… You can use my imageWriter script for writing the image conveniently to a SD-card or USB-stick.
(In this case, you want to write to a block-device, not a single partition, because the EspressoBIN.img file is a volume that contains partitions).
Note: I use cp instead of dd, this is only for convenience; the outcome is identical.
Note2: Some people fear using dd, because they’re afraid of losing all their data, but dd is not a dangerous tool at all, this is a complete misunderstanding. ‘dd’ is just as harmless as cp, cat echo, printf and so forth, but if you write to anything in /dev, you want to be careful – no matter which command you use.
My goal with those scripts is to make it easier and safer to write disk images.