Skip to contentSkip to conversation

setup for a working framebuffer in qemu

DISCUSSION Denis Roio 3 participants 3 messages Oct 15, 2019

lore
Share & tools
lore

Denis Roio

author
#0 lore raw

hi all! noob question here, hope you don't mind

is there a recommended, matching configuration to run barebox in qemu with a working /dev/fb0 ?

I have made some tries already with no success:

- qemu emulated mips-malta boots, but no fb0
- qemu emulated vexpress boots, but no fb0
- qemu emulated sabrelite can't even get it to boot

I'm a bit out of ideas. Would really appreciate guidance, this is mostly for fun while poking around this wonderful project.

Thanks!

Signature · 11 lines
  Denis "Jaromil" Roio      https://Dyne.org think &do tank
  Ph.D, CTO & co-founder    software to empower communities
  ✉ Haparandadam 7-A1, 1013AK Amsterdam, The Netherlands
  𝄞 crypto κρυπτο крипто गुप्त् 加密 האנוסים المشفره
  ⚷ 6113D89C A825C5CE DD02C872 73B35DA5 4ACB7D10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

Hello Denis,

Quoted 5 lines · Denis Roio

hi all! noob question here, hope you don't mind

is there a recommended, matching configuration to run barebox in qemu with a working /dev/fb0 ?

Easiest way is to use barebox sandbox. It has a SDL fb driver.

Quoted 6 lines

I have made some tries already with no success:

- qemu emulated mips-malta boots, but no fb0
- qemu emulated vexpress boots, but no fb0

Could be that they don't have driver support in barebox. Check under drivers/fb.

Quoted 1 line

- qemu emulated sabrelite can't even get it to boot

There's a CONFIG_BOARD_ARM_GENERIC_DT option that yields a barebox image that boots like Linux does and can be passed to qemu's -kernel option. The commit introducing it has some extra info on how to use it with QEMU + sabrelite.
https://www.spinics.net/lists/u-boot-v2/msg38795.html

Quoted 8 lines

I'm a bit out of ideas. Would really appreciate guidance, this is mostly for fun while poking around this wonderful project.

Thanks!

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
In reply to Denis Roio
Quoted 10 lines · On Tue, 15 Oct 2019 17:08:42 +0200 Denis Roio <[email protected]> wrote:

hi all! noob question here, hope you don't mind

is there a recommended, matching configuration to run barebox in qemu with a working /dev/fb0 ?

I have made some tries already with no success:

- qemu emulated mips-malta boots, but no fb0

Sorry, mips-malta does not support fb0.

Use sandbox (you have to install libsdl development package):

$ wget https://www.barebox.org/download/barebox-2019.10.0.tar.bz2
$ tar vfx barebox-2019.10.0.tar.bz2
$ cd barebox-2019.10.0
$ make sandbox_defconfig
$ echo CONFIG_DRIVER_VIDEO_SDL=y >> .config
$ make oldconfig
$ make
$ ./barebox

Enable framebuffer console from barebox command line:

barebox@barebox sandbox:/ fbconsole0.active=oe

or you can enable only framebuffer (without console):

barebox@barebox sandbox:/ fb0.enable=1

use 'splash /logo/barebox-logo-240.png' to test picture output.

Signature · 2 lines
Best regards,
  Antony Pavlov
Quoted 22 lines

- qemu emulated vexpress boots, but no fb0
- qemu emulated sabrelite can't even get it to boot

I'm a bit out of ideas. Would really appreciate guidance, this is mostly for fun while poking around this wonderful project.

Thanks!

Signature · 11 lines
  Denis "Jaromil" Roio      https://Dyne.org think &do tank
  Ph.D, CTO & co-founder    software to empower communities
  ✉ Haparandadam 7-A1, 1013AK Amsterdam, The Netherlands
  𝄞 crypto κρυπτο крипто गुप्त् 加密 האנוסים المشفره
  ⚷ 6113D89C A825C5CE DD02C872 73B35DA5 4ACB7D10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox