From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJz19-0007xf-PU for qemu-devel@nongnu.org; Tue, 06 Nov 2018 05:55:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJz12-0005N5-J6 for qemu-devel@nongnu.org; Tue, 06 Nov 2018 05:55:28 -0500 References: <1d1c0473-cd71-c7de-9d56-072596501e4c@redhat.com> From: Thomas Huth Message-ID: Date: Tue, 6 Nov 2018 11:55:07 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] How to use the 'canon-a1100' machine? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , qemu-arm , Antony Pavlov , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Fam Zheng , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 2018-11-06 11:32, Peter Maydell wrote: > On 6 November 2018 at 09:40, Thomas Huth wrote: >> >> Hi, >> >> does anybody know whether the "canon-a1100" machine in QEMU is still >> usable, or rather how it can be used at all? >> >> According to >> http://lists.infradead.org/pipermail/barebox/2014-July/020327.html the= re >> should be support for "-serial stdio" and on >> https://lists.gnu.org/archive/html/qemu-devel/2013-10/msg02969.html >> there is a link to a firmware image ... but when I try to use it, ther= e >> is simply no output on stdio... >> >> Is there a way this machine can still be tested in QEMU? >=20 > I have an image in my test set: > $ ~/test-images/digic/runme ./build/x86/arm-softmmu/qemu-system-arm > Switch to console [cs0] >=20 >=20 > barebox 2013.12.0-00160-g2e82c4a #507 Thu Dec 12 12:42:43 MSK 2013 >=20 >=20 > Board: Canon PowerShot A1100 IS > digic-gpio c0220000.gpio: probed gpiochip-1 with base 0 > cfi_flash f8000000.flash: found cfi flash at f8000000, size 4194304 > malloc space: 0x00100000 -> 0x002fffff (size 2 MiB) > Open /dev/env0 No such file or directory > no valid environment found on /dev/env0. Using default environment > running /env/bin/init... > canon> / >=20 > Command line is: >=20 > ${QEMU} \ > -M canon-a1100 -serial stdio -display none \ > --machine firmware=3D"$TESTDIR"/canon-a1100-rom1.bin >=20 > filename suggests that's the same firmware image you link to? >=20 > $ md5sum ~/test-images/digic/canon-a1100-rom1.bin > 66e76691cbd8b140549c878ae3849147 Thanks for the hint! My image had a different md5sum, so I think it's just a bad version that I've downloaded. I've finally also managed to compile barebox on my own with these steps: tar -xaf barebox-....tar.bz2 cd barebox-... cp ./arch/arm/configs/canon-a1100_defconfig .config make CROSS_PREFIX=3Darm-linux-gnu- ARCH=3Darm CC=3Darm-linux-gnu-gcc \ LD=3Darm-linux-gnu-ld OBJCOPY=3Darm-linux-gnu-objcopy olddefconfig make CROSS_PREFIX=3Darm-linux-gnu- ARCH=3Darm CC=3Darm-linux-gnu-gcc \ LD=3Darm-linux-gnu-ld OBJCOPY=3Darm-linux-gnu-objcopy -j8 And that version indeed prints some output via its emulated serial console to stdio :-) CC-ing some "tests/docker" people in case somebody wants to turn that into a docker-based test, too... Thomas