Skip to contentSkip to conversation

Buildroot for normal PC

Buildroot André Hentschel 3 participants 6 messages Feb 19, 2016 – Feb 24, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.
One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)... The other part is about the nvidia-driver, I'll need the legacy one for my card. Can I simply alter the version number in the makefile?

#1 lore raw

Andr?, All,

On 2016-02-19 23:53 +0100, Andr? Hentschel spake thusly:

Quoted 2 lines

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.

    $ make list-defconfigs |grep x86
      qemu_x86_64_defconfig               - Build for qemu_x86_64
      qemu_x86_defconfig                  - Build for qemu_x86

So I'd suggest you use qemu for that.

Quoted 3 lines

One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)...

No, we don't have a defconfig for a traditional PC.

Quoted 2 lines

The other part is about the nvidia-driver, I'll need the legacy one for my card. Can I simply alter the version number in the makefile?

I'm not sure the legacy driver has the same "layout" (in terms of buildsystem) as the current driver, so I would not bet on it...

However, if as I suggested above, you were to use qemu, you would not need to setup a bootloader. You can tell qemu to directly boot a kernel, see:
board/qemu/x86/readme.txt

As for the video driver, qemu does not (yet!) provide a 3D-accelerated graphics card, but you can use mesa3d for SW OpenGL if you need that.

I guess using qemu will be more efficient than using a real PC, at least as long as you're not looking at performance, and especially graphics performance.

Well, at least, that's what I would be doing. ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

Am 20.02.2016 um 11:10 schrieb Yann E. MORIN:

Quoted 2 lines

Andr?, All,

Hi,

Thanks for the hints.
But I really need bare metal for my intents, qemu won't help.
As soon as I have more time I'll try, if I succeed I'll also try to upstream a defconfig.

Quoted 39 lines

On 2016-02-19 23:53 +0100, Andr? Hentschel spake thusly:

Quoted 2 lines

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.

    $ make list-defconfigs |grep x86
      qemu_x86_64_defconfig               - Build for qemu_x86_64
      qemu_x86_defconfig                  - Build for qemu_x86

So I'd suggest you use qemu for that.

Quoted 3 lines

One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)...

No, we don't have a defconfig for a traditional PC.

Quoted 2 lines

The other part is about the nvidia-driver, I'll need the legacy one for my card. Can I simply alter the version number in the makefile?

I'm not sure the legacy driver has the same "layout" (in terms of buildsystem) as the current driver, so I would not bet on it...

However, if as I suggested above, you were to use qemu, you would not need to setup a bootloader. You can tell qemu to directly boot a kernel, see:
board/qemu/x86/readme.txt

As for the video driver, qemu does not (yet!) provide a 3D-accelerated graphics card, but you can use mesa3d for SW OpenGL if you need that.

I guess using qemu will be more efficient than using a real PC, at least as long as you're not looking at performance, and especially graphics performance.

Well, at least, that's what I would be doing. ;-)

Regards,
Yann E. MORIN.

#3 lore raw
In reply to André Hentschel
Quoted 4 lines · Andr? Hentschel

Hi,

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.
One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)...

Check out BR2_TARGET_ROOTFS_ISO9660_HYBRID (after enabling the
syslinux/isolinux bootloader and the iso9660 filesystem). It makes a bootable USB image.

Quoted 1 line

The other part is about the nvidia-driver, I'll need the legacy one for my card. Can I simply alter the version number in the makefile?

That could be trickier...

Regards,
Arnout

Quoted 5 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#4 lore raw

Am 21.02.2016 um 00:42 schrieb Arnout Vandecappelle:

Quoted 9 lines · Andr? Hentschel
Quoted 4 lines

Hi,

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.
One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)...

Check out BR2_TARGET_ROOTFS_ISO9660_HYBRID (after enabling the
syslinux/isolinux bootloader and the iso9660 filesystem). It makes a bootable USB image.

Sounds great, tried it.
Sadly it fails on boot like this:

ISOLINUX 6.03 EHDD Copyright (C) 1994-2014 H. Peter Anvin et al Loading /boot/vmlinux... ok
Booting kernel failed: Invalid argument

Any idea?

#5 lore raw
Quoted 12 lines · Andr? Hentschel

Am 21.02.2016 um 00:42 schrieb Arnout Vandecappelle:

Quoted 9 lines · Andr? Hentschel
Quoted 4 lines

Hi,

I wanna try some more things with the Wine package in buildroot, but I can't easily setup a testing environment for a PC.
One part is which bootloader to use and how to pack everything together to a bootable USB-Stick, HDD image or CD. (And I didn't found a defconfig for that)...

Check out BR2_TARGET_ROOTFS_ISO9660_HYBRID (after enabling the
syslinux/isolinux bootloader and the iso9660 filesystem). It makes a bootable USB image.

Quoted 6 lines

Sounds great, tried it.
Sadly it fails on boot like this:

ISOLINUX 6.03 EHDD Copyright (C) 1994-2014 H. Peter Anvin et al Loading /boot/vmlinux... ok
Booting kernel failed: Invalid argument

Doesn't give much information :-( I tried it in a virtualbox and then isolinux
doesn't even load the kernel...

Regards,
Arnout

Quoted 3 lines

Any idea?

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF