From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Building a bootable disk image for A20-OLinuXino Date: Tue, 31 Dec 2019 10:26:27 +0100 Message-ID: <87v9pwc0cc.fsf@gmail.com> References: <87r22p3trp.fsf@gnu.org> <87ftj4vqcy.fsf@gmail.com> <87mud59d47.fsf@gnu.org> <877e46b9ld.fsf@gmail.com> <878soeo2c5.fsf@gnu.org> <878snwvwiz.fsf@gmail.com> <87a781bdvk.fsf@gnu.org> <87imlx3453.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35852) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imDnM-00016q-Th for guix-devel@gnu.org; Tue, 31 Dec 2019 04:26:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1imDnL-0006Dd-RL for guix-devel@gnu.org; Tue, 31 Dec 2019 04:26:32 -0500 In-reply-to: <87imlx3453.fsf_-_@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Hey Ludo, > (bootloader (bootloader-configuration > (bootloader u-boot-a20-olinuxino-micro-bootloader) > (target "/dev/mmcblk0"))) > > =E2=80=A6 this time with offloading to an actual ARM machine. I wrote the > resulting image to an SD card, but the result appears to be unbootable. > > What am I doing wrong? Well, I prefer to set target to "/dev/vda", produce the image, then dd it on the SD card. This way, you have an image with the bootloader installed. But, this should work too. The only way to debug is to plug an UART cable[1] :p. Most of the time, the initrd is missing some drivers to mount the SD card ("sunxi-mmc" and "sd_mod" maybe?). To find missing modules, I usually remove the "quiet" kernel argument and compare dmesg output with a Raspbian, or whatever is booting. Tell us how it goes ! Mathieu [1]: https://linux-sunxi.org/Olimex_A20-OLinuXino-Micro