[SeaBIOS] Re: Large 32 bit BAR's

2023-04-14 Thread Peter Stuge
Gerd Hoffmann wrote: > A 2G 32-bit bar simply can't be mapped anywhere on x86. It must be > below 4G, Agree.. > and it must be 2G-aligned. ..but I can't find this requirement. Why do you say? The one mention of alignment in PCI 3.0 is for the Expansion ROM BAR, where *the device* can indicate

[SeaBIOS] Re: [PATCH] Fix Bay Trail Chromebook Bootup on MrChromebox's Cus...

2023-02-14 Thread Peter Stuge
Hi Christopher, christopherericlento...@gmail.com wrote: > tom Firmware > > while using the SeaBios payload with MrChromebox's SMM variable > in coreboot. This is required even if we are booting off of a > USB, since it will give MMC errors in Linux and Windows 10 > and 11 won't see it, though I

[SeaBIOS] Re: INT 14H

2022-09-26 Thread Peter Stuge
Hi Paul, Paul Edwards wrote: > I have a new variation on this problem. > > I have a Chromebook with seabios loaded. > > But the Chromebook doesn't have a serial port. > > I could get a USB to com port adapter. > > But I would like seabios to drive this so that I can use int 14h in my os. > >

[SeaBIOS] Re: USB keyboard not detected with dGPU with USB Type-C port

2022-09-10 Thread Peter Stuge
Paul Menzel wrote: > Do you have any ideas regarding the USB issues with a dedicated GPU > device with integrated USB Type-C port plugged in [1]? Only speculation: Maybe multiple xHCI controllers trip up the SeaBIOS xHCI driver? Two tests would be useful, the latter can be performed by anyone:

[SeaBIOS] Re: [PATCH] floppy: Support CMOS setting outside QEMU

2022-08-06 Thread Peter Stuge
Kevin O'Connor wrote: > > SeaBIOS can be used for booting legacy OS and also Linux is still using > > CMOS address 0x10 to configure floppy controller. Under these assumptions > > it makes sense to allow boot from CMOS defined floppy drives. > > There was never really a standard for the layout of

[SeaBIOS] Re: [PATCH] timer: Configure timer1 to a standard settings

2022-08-06 Thread Peter Stuge
Kevin O'Connor wrote: > > Also Intel ICH7 Family Datasheet, chapter 5.8 states: > > > > Programming the counter to anything other than Mode 2 will result in > > undefined behavior for the REF_TOGGLE bit. > > > > Failing to have the timer 1 configured indeed causes affected OSes to > > freeze

[SeaBIOS] Re: [PATCH v3 2/2] pci: let firmware reserve IO for pcie-pci-bridge

2021-11-30 Thread Peter Stuge
Igor Mammedov wrote: > +++ b/src/fw/pciinit.c .. > @@ -819,12 +825,13 @@ static int pci_bus_hotplug_support(struct pci_bus *bus, > u8 pcie_cap) > */ > u16 slot_implemented = pcie_flags & PCI_EXP_FLAGS_SLOT; > > -return downstream_port && slot_implemented; > +

[SeaBIOS] Re: INT 14H

2021-07-13 Thread Peter Stuge
Hi Paul, Paul Edwards wrote: > >> > Sure. Implement a driver for that redirection which behaves as an > >> > int14h handler and place the address of its entry point at address > >> > :0080. (14h*4) > >> > >> > The method works with any BIOS. > >> > >> I would like it to work with any OS that

[SeaBIOS] Re: INT 14H

2021-07-08 Thread Peter Stuge
Hi Paul, Paul Edwards wrote: > Resending ... I thought I was subscribed, but apparently > I am not. Okay, including you directly in this reply then. > > Sure. Implement a driver for that redirection which behaves as an > > int14h handler and place the address of its entry point at address > >

[SeaBIOS] Re: INT 14H

2021-06-28 Thread Peter Stuge
Hi Paul, Paul Edwards wrote: > INT 14H is designed to read/write to a serial port. > > I would like my software (OS) that uses this interface > to, on a machine that doesn't have a serial port, be > directed to some other device, like bluetooth to my > phone or Wifi to my router. > > Is this

[SeaBIOS] Re: [PATCH] fw/coreboot.c: Use coreboot table to find cbfs

2021-05-25 Thread Peter Stuge
Hi, Gerd Hoffmann wrote: > Note that the linux kernel's in-kernel interfaces are explicitly *not* > backward compatible though. .. > I fail to see the problem. seabios is part of the firmware, So that's important, I hope to help create some understanding: coreboot and SeaBIOS are cleanly

[SeaBIOS] Re: [PATCH] fw/coreboot.c: Use coreboot table to find cbfs

2021-05-21 Thread Peter Stuge
Hi Gerd, Gerd Hoffmann wrote: > > > This breaks compatibility with very old coreboot build (build before > > > fb5d5b16 "2015-07-14, cbtable: describe boot media"). > > > > Is that really acceptable in SeaBIOS master at some random time? > > As far I know there is no policy on that written down

[SeaBIOS] Re: [PATCH] fw/coreboot.c: Use coreboot table to find cbfs

2021-05-20 Thread Peter Stuge
Arthur Heymans wrote: > This breaks compatibility with very old coreboot build (build before > fb5d5b16 "2015-07-14, cbtable: describe boot media"). Is that really acceptable in SeaBIOS master at some random time? At the very least I would expect a flag day with advance publicity. One way of

[SeaBIOS] Re: [PATCH] docs: Add developer-certificate-of-origin

2019-10-21 Thread Peter Stuge
Kevin O'Connor wrote: > Update the documentation to be explicit about the signed-off-by > convention. FWIW I'm against that convention, and would rather see it abandoned, than the project submitting to arbitrary and ridiculous requirements set by legal departments in US corporations. *shrug*

[SeaBIOS] Re: Custom-sized, large floppy images?

2019-04-19 Thread Peter Stuge
Rafael Send wrote: > I actually had NOT come across mkelfimage! I see. The old wiki pages I linked to in a previous mail show it being used. It's a very old tool from LinuxBIOS v1 times, since replaced by functionality built into cbfstool.

[SeaBIOS] Re: Custom-sized, large floppy images?

2019-04-19 Thread Peter Stuge
Rafael Send wrote: > I had already testes the coreboot + Linux kernel without SeaBIOS, > that works fine. That's a great start! So did you look into what happens under the hood when you do that, to learn? The original common case for coreboot payloads was also ELF files, so there is much overlap

[SeaBIOS] Re: Custom-sized, large floppy images?

2019-04-19 Thread Peter Stuge
Mike Banon wrote: > "Loading vmlinuz...CHS: Error 0101 reading sector 18277 (8/59/6) --- Don't spend too much time on the arcane CHS concept, it is really obsolete and that's for the better. You're trying to hack a data structure and interface to do what you want, which is something I can

[SeaBIOS] Re: Custom-sized, large floppy images?

2019-04-18 Thread Peter Stuge
Rafael Send wrote: > Alternatively, would it be possible to create an ELF file out of a Linux > kernel+initrd / bootable image? Sure, and I find it far more attractive than arcane floppies, charming as they are. Build your kernel to include your initramfs, the kernel config option is

Re: [SeaBIOS] [PATCH] pretty boot menu entry for cdrom drives

2018-09-27 Thread Peter Stuge
Kevin O'Connor wrote: > it's a little odd to have a C function sometimes return a dynamically > allocated string and sometimes return a constant string. Gerd, please don't do that. Sure, maybe nothing is ever free()d, but that's still very poor practice. Don't spread it. //Peter

Re: [SeaBIOS] [PATCH] Ignore sgabios rom in case sercon is enabled.

2017-11-04 Thread Peter Stuge
Gerd Hoffmann wrote: > +++ b/src/optionroms.c > @@ -193,6 +193,11 @@ run_file_roms(const char *prefix, int isvga, u64 > *sources) > file = romfile_findprefix(prefix, file); > if (!file) > break; > +if (strcmp(file->name, "vgaroms/sgabios.bin") == 0 && > +

Re: [SeaBIOS] [coreboot] How does SeaBIOS transition to Linux?

2017-02-13 Thread Peter Stuge
Zoran Stojsavljevic wrote: > Did not understand... I must admit! As of my best interpretation > SeaBIOS has 5 functions which makes BIOS legacy: > > get and set variables, get and set real time clock, reset. > > Or maybe, something changed. SeaBIOS implements a whole bunch of legacy BIOS

Re: [SeaBIOS] [Qemu-devel] [RFC PATCH v2 00/12] Guest startup time optimization

2016-09-12 Thread Peter Stuge
Gerd Hoffmann wrote: > * Initializing all pci devices (placing bars in address space and >programming them) can probably be skipped and left to the linux >kernel to handle. When the coreboot project started out, in 1999, that turned out not to be the case. I don't know if the situation

Re: [SeaBIOS] SeaBIOS security feature roadmap?

2016-01-15 Thread Peter Stuge
Blibbet wrote: > It sounds like some Chromebooks have SeaBIOS with TPMv1 As far as I know all Chromebooks use their own payload which implements verified boot. The root of trust is the write-protected SPI flash. It is very well documented on the chromium website, you would only have to do very

Re: [SeaBIOS] [PATCH] pci: panic when out of bus numbers

2016-01-04 Thread Peter Stuge
Marcel Apfelbaum wrote: >> Given the bus number register is 8bit I'm wondering whenever this is a >> valid hardware configuration in the first place? > > For sure no :), however we do have a possible endless loop > and maybe is cleaner to panic. (no matter who is "responsible") I would prefer

Re: [SeaBIOS] [Qemu-devel] [PATCH] SeaBios: Fix reset procedure reentrancy problem on qemu-kvm platform

2015-12-23 Thread Peter Stuge
Kevin O'Connor wrote: > SeaBIOS is careful to always disable IRQs while running C code to > prevent this issue, but disabling normal IRQs does not disable NMIs. > So, I believe this issue is specific to the nature of NMIs. Would a dedicated NMI handler stack be a good solution? //Peter

Re: [SeaBIOS] SeaBIOS recognising USB 3.0 on boot works - partly

2015-12-18 Thread Peter Stuge
Kevin O'Connor wrote: > > Doesn't it effectively take the same amount of wall clock time? .. > If you're asking if current state vs unregistering/delaying would take > the same wall time - thinking about that now, it might be true. Right - that's what I meant. I think it will, because .. > I

Re: [SeaBIOS] SeaBIOS recognising USB 3.0 on boot works - partly

2015-12-18 Thread Peter Stuge
Kevin O'Connor wrote: > Once the device is recognized as USB3, the controller disconnects > it from USB2, but by that point SeaBIOS has already fully registered > it and isn't even checking the connection status. The device is > then fully detected as a USB3 device, which is why the duplicate >

Re: [SeaBIOS] SeaBIOS recognising USB 3.0 on boot works - partly

2015-12-18 Thread Peter Stuge
Kevin O'Connor wrote: > > Would checking the connection status for each device after all > > devices have been registered be able to filter the USB2 device out? > > Yes, but there isn't a way to "unregister" the drive once it's been > registered. Oh - why not? If this has to do with e.g. BBS

Re: [SeaBIOS] [PATCH 3/3] tpm: Add a menu for TPM configuration

2015-11-30 Thread Peter Stuge
Kevin O'Connor wrote: > > > +static u32 > > > +read_stclear_flags(char *buf, int buf_len) > > > +{ > > .. > > > +if (rc || returnCode) > > > +goto err_exit; > > .. > > > +err_exit: > > > +dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", > > > __LINE__); > > > > I

Re: [SeaBIOS] [PATCH 3/3] tpm: Add a menu for TPM configuration

2015-11-29 Thread Peter Stuge
Stefan Berger wrote: > +++ b/src/tcgbios.c > +static u32 > +read_stclear_flags(char *buf, int buf_len) > +{ .. > +if (rc || returnCode) > +goto err_exit; .. > +err_exit: > +dprintf(DEBUG_tcg, "TCGBIOS: TPM malfunctioning (line %d).\n", __LINE__); I can't help but think that it

Re: [SeaBIOS] [PATCH 3/3] tpm: Add a menu for TPM configuration

2015-11-29 Thread Peter Stuge
Sorry, should have sent all in one email. Stefan Berger wrote: > +if (enable) > +dprintf(DEBUG_tcg, "Return code from TPM_PhysicalEnable = 0x%08x\n", > +*returnCode); > +else > +dprintf(DEBUG_tcg, "Return code from TPM_PhysicalDisable = 0x%08x\n", > +

Re: [SeaBIOS] [PATCH 4/7] tpm: Open code tpm_ipl() into callers

2015-11-22 Thread Peter Stuge
Nice series! Kevin O'Connor wrote: > The only three three callers Typo ^ //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] [coreboot] [ANNOUNCE] SeaBIOS 1.9.0

2015-11-18 Thread Peter Stuge
Kevin O'Connor wrote: > The 1.9.0 version of SeaBIOS has now been released. Do we want to bump the coreboot stable version? Maybe someone already did.. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] : USB 3.0 port failed if a USB 3.0 device is attached when power up (Summary: not final fixed yet)

2015-08-27 Thread Peter Stuge
Zheng Bao wrote: Yes. Need test by our validation dept. Thank you for working on this! //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] Reducing SeaBIOS kernel entry time

2015-07-03 Thread Peter Stuge
Stefan Hajnoczi wrote: Hi, qboot (https://github.com/bonzini/qboot) is a stripped down firmware providing only what is needed to boot a Linux kernel on x86. Incredible, you have re-invented coreboot! Well, maybe not, it is Red Hat after all. How about putting your efforts into the existing

Re: [SeaBIOS] [PATCH 1/2] vgabios: Add config option for assembler fixups

2015-04-11 Thread Peter Stuge
Kevin O'Connor wrote: +++ b/vgasrc/vgaentry.S @@ -64,6 +64,7 @@ x86emu_fault: // This macro implements a call while avoiding instructions // that old versions of x86emu have problems with. .macro VGA_CALLL cfunc +#if CONFIG_VGA_FIXUP_ASM // Make sure leal

Re: [SeaBIOS] [PATCH 1/2] vgabios: Add config option for assembler fixups

2015-04-11 Thread Peter Stuge
Kevin O'Connor wrote: +++ b/vgasrc/vgaentry.S @@ -64,6 +64,7 @@ x86emu_fault: // This macro implements a call while avoiding instructions // that old versions of x86emu have problems with. .macro VGA_CALLL cfunc +#if CONFIG_VGA_FIXUP_ASM //

Re: [SeaBIOS] FreeBSD VESA console not working with SeaBIOS

2015-04-08 Thread Peter Stuge
Kevin O'Connor wrote: (Specifically, the leal instruction is not properly implemented.) Unfortunately, there isn't much that can be done about this on the vga bios side. Really? Impossible to save flags, use other opcodes, and restore flags? lea isn't used in vgasrc/ besides in the trap

Re: [SeaBIOS] [PATCH 1/2] Add an option to only execute option ROMs contained in CBFS

2015-02-13 Thread Peter Stuge
Kevin O'Connor wrote: This patch in particular guarantees that no matter what devices are plugged in (e.g. long after the BIOS has been flashed) they will not have their option ROMs executed. That makes sense, but I think it needs to be a runtime setting. Timothy's original approach is

Re: [SeaBIOS] [PATCH] Add option to only execute CBFS option ROMs

2015-02-10 Thread Peter Stuge
Timothy Pearson wrote: Is there anything else that needs to be done before this can be merged? Have you considered creating a more fine-grained control knob than simply global on/off? Maybe a BDF blacklist, perhaps stored in CBFS? I might implement something like that in the future if I

Re: [SeaBIOS] [PATCH] Add option to only execute CBFS option ROMs

2015-02-10 Thread Peter Stuge
Timothy Pearson wrote: Maybe a BDF blacklist, perhaps stored in CBFS? I might implement something like that in the future if I have time/inclination, but for now the on/off switch is sufficient. Sufficient sure, but it is certainly using a sledgehammer to pound a nail. Adding a blacklist

Re: [SeaBIOS] [PATCH] Add option to only execute CBFS option ROMs

2015-02-10 Thread Peter Stuge
Timothy Pearson wrote: Is there anything else that needs to be done before this can be merged? Have you considered creating a more fine-grained control knob than simply global on/off? Maybe a BDF blacklist, perhaps stored in CBFS? //Peter ___

Re: [SeaBIOS] [PATCH] build: remove hardcoded timestamp

2015-02-03 Thread Peter Stuge
Kevin O'Connor wrote: Once this patch is applied it is possible to get reproducible builds of Xens hvmloader. I've found the version information to be quite helpful when we get trouble reports - it helps indicate what was being run and who built the code (eg, distribution or local).

Re: [SeaBIOS] [PATCH] build: remove hardcoded timestamp

2015-02-03 Thread Peter Stuge
Kevin O'Connor wrote: What breaks if the version changes? Reproducible builds; allowing to create a consensus that a particular binary is indeed the correct binary for a particular source code. That is useful. A solution for stabilizing gcc/binutils output would also need to be

Re: [SeaBIOS] vgabios - seabios breaks (my) 16-bit applications

2015-01-13 Thread Peter Stuge
Paolo Bonzini wrote: I can think of a few options: 7 - use top of video memory as stack? That would be pretty slow on KVM, since video memory is MMIO. slow reliable fast unreliable But worse, one could imagine that NTVDM blocks a-b as well. I doubt that? Then how would the

Re: [SeaBIOS] vgabios - seabios breaks (my) 16-bit applications

2015-01-13 Thread Peter Stuge
Kevin O'Connor wrote: I can think of a few options: 7 - use top of video memory as stack? //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] Is it possible to implement a virtual CD drive in SeaBIOS and boot computer from an ISO image?

2014-11-29 Thread Peter Stuge
刘俊峰 wrote: I wonder whether a virtual CD drive implemented at BIOS level can persist even after OS is boot up? Sure. Study System Management Mode. It can be used to virtualize hardware of many kinds, including an optical PATA drive. My guess is that you will have to implement it yourself.

Re: [SeaBIOS] new tag request for seabios

2014-11-21 Thread Peter Stuge
Pandey, Sunil K wrote: the fix is already in the master, but it's hard for me to use directly from master. Currently all existing tags are old and doesn't reflect latest layoutrom.py changes. Wherever you use a tag with git you can also provide a commit hash. It should work well to simply

Re: [SeaBIOS] No graphics with QEMU, coreboot, SeaBIOS und SeaVGABIOS

2014-10-05 Thread Peter Stuge
Paul Menzel wrote: testing QEMU with coreboot built from commit a296f9e3 (Kconfig: Allow native vga init to be selectable for SeaBIOS payload) [1] and SeaBIOS and SeaVGABIOS (selected in coreboot’s Payload menu), SeaBIOS does not display any graphics although the console says, it has

Re: [SeaBIOS] [coreboot] [solved] i945: AHCI timeout with Crucial m4 SSD 2.5 in SeaBIOS on cold boot

2014-10-04 Thread Peter Stuge
Paul Menzel wrote: Some message on the screen informing the user about a bad device could be helpful, It is a bad idea for SeaBIOS, or any software really, to try to guess why hardware is not working. Reporting errors is good, pretending to know what they mean is not. //Peter

Re: [SeaBIOS] [coreboot] i945: AHCI timeout with Crucial m4 SSD 2.5 in SeaBIOS on cold boot

2014-09-19 Thread Peter Stuge
Paul Menzel wrote: I was told coreboot and SeaBIOS are too fast for the SSD and it needs at least 500 ms for its initialization. Though looking at the code in `src/hw/ahci.c`, it should have 32 seconds to initialize. The SSD can probably not deal with any SATA activity until it has

Re: [SeaBIOS] [PATCH] vgabios: Make the qemu vgabioses selectable when building for coreboot.

2014-09-12 Thread Peter Stuge
Kevin O'Connor wrote: Although SeaVGABIOS is in the SeaBIOS git repo, it builds a totally separate ROM. How much source code overlap is there? //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] [PATCH] vgabios: Make the qemu vgabioses selectable when building for coreboot.

2014-09-12 Thread Peter Stuge
Kevin O'Connor wrote: Although SeaVGABIOS is in the SeaBIOS git repo, it builds a totally separate ROM. How much source code overlap is there? It's basically debugging, pci config access, some simple string functions, and coreboot table traversal. Would it make sense to turn them

Re: [SeaBIOS] [PATCH] vgabios: Make the qemu vgabioses selectable when building for coreboot.

2014-09-12 Thread Peter Stuge
Kevin O'Connor wrote: Would it make sense to turn them into two separate projects? If you mean separate git repos, then that is an open question. Right, that's what I meant. I'd lean towards keeping them together right now. Could another option be to allow building of both, without

Re: [SeaBIOS] [PATCH 2/2] Allow using full io region on q35

2014-05-12 Thread Peter Stuge
Gerd Hoffmann wrote: +++ b/src/fw/pciinit.c ... @@ -721,16 +728,11 @@ static int pci_bios_init_root_regions_io(struct pci_bus *bus) if (sum 0x4000) { /* traditional region is big enougth, use it */ r_io-base = 0xc000; -} else if (sum 0x9000) { +} else if

Re: [SeaBIOS] Experiences with link time optimization?

2014-04-24 Thread Peter Stuge
Paul Menzel wrote: could some expert please comment, if `-fwhole-program` already optimizes the code the best way possible for GCC and therefore LTO is not going to reduce SeaBIOS’ binary size? I think this is a moving target; how well the optimizer works depends on how mature the optimizer is

Re: [SeaBIOS] [PATCH 0/7] vgabios improvements

2014-04-16 Thread Peter Stuge
H. Peter Anvin wrote: Uh... seriously, robustness is a good thing, and it is not entirely clear that this responsibility necessarily belongs in Coreboot. It's clear to me. The coreboot (all lowercase please) code for QEMU isn't neccessarily complete, and needs these kinds of improvements.

Re: [SeaBIOS] [coreboot] SeaVGABIOS with native vga init (Need testers)

2014-02-16 Thread Peter Stuge
Denis 'GNUtoo' Carikli wrote: I've tested it like that: * I've added it to my branch where I rebased the lenovo x60 native GPU init patches left, and the rest that I want and that isn't in coreboot yet. The commits from your branch which you pushed with me as author and which four other

Re: [SeaBIOS] [coreboot] Setting up build environment

2014-02-09 Thread Peter Stuge
Idwer Vollering wrote: Actually, this happens when you clone coreboot into a dir where its parent dir has a dot in it, and compile for any board without touching the payload defaults: python ./tools/acpi_extract.py /home/idwer/tmp/coreboot.fresh/build/seabios/out/acpi-dsdt.lst

Re: [SeaBIOS] [PATCH 2/2] vgabios: Limit the range of the VBE number of pages parameter.

2013-09-14 Thread Peter Stuge
Paul Menzel wrote: +if (pages 2) +pages++; Can pages be 0? If yes, it would be 0 again after substracting 1. Should it be `pages = 1` instead of `pages++`? pages=2; //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] [PATCH] qemu: piix: PCI bridge ACPI hotplug support

2013-06-13 Thread Peter Stuge
Anthony Liguori wrote: However, with PCs, the ACPI tables are generated by/included in the firmware. There's no question about that. I think the key point is that the firmware is developed and delivered by the hardware vendor, and not by an independent source. The firmware is intimately tied

Re: [SeaBIOS] [Qemu-devel] What's the impact of enlarging IDE_TIMEOUT ?

2013-06-01 Thread Peter Stuge
Fred . wrote: Sounds like something that should be commented in the source code. Sounds like something that even you could send a patch for. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-31 Thread Peter Stuge
Kevin O'Connor wrote: one possible way forward would be to split the current SeaBIOS rom into two roms: qvmloader and seabios. The qvmloader would do the qemu specific platform init (pci init, smm init, mtrr init, bios tables) and then load and run the regular seabios rom. qvmloader sounds a

Re: [SeaBIOS] [PATCH v3] config: allow DEBUG_IO for !QEMU

2013-05-30 Thread Peter Stuge
message ] Signed-off-by: Gerd Hoffmann kra...@redhat.com Acked-by: Peter Stuge pe...@stuge.se ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] How to modify qemu-kvm bios.bin?

2013-05-06 Thread Peter Stuge
li peter wrote: maybe qemu-kvm use non-coreboot uses, Correct. qemu-kvm unfortunately uses a special-case build of SeaBIOS without coreboot. How do I do to reach my goal? I am not sure. If SeaBIOS also has bootsplash support then you should see options in the SeaBIOS build configuration. If

Re: [SeaBIOS] [PATCH] src/Kconfig: Add note that boot interface is needed

2013-03-20 Thread Peter Stuge
Paul Menzel wrote: it would be nice if it is clear for noobs like me, what certain option do and what effects they have. The good way to fix that is for you to send patches for the Kconfig help messages. *After* you have researched what the options do. //Peter pgptDFHdnLwQL.pgp Description:

Re: [SeaBIOS] [PATCH] src/Kconfig: Add note that boot interface is needed

2013-03-19 Thread Peter Stuge
Paul Menzel wrote: I still do not understand how SeaBIOS uses the interfaces itself and how SeaBIOS is of any use at all without being able to boot something. At least I do not know of such a use case. Payloads can also not be started without that option? //Peter pgpOPwSGiBmrd.pgp

Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-19 Thread Peter Stuge
Paul Menzel wrote: http://www.coreboot.org/SeaBIOS#coreboot - do not load the vga option rom in coreboot - do it in seabios. Yes, thanks. Though I assumed »best results« would mean Please don't assume. When something is unclear, creating an opportunity for assumption, then documentation

Re: [SeaBIOS] [PATCH] src/Kconfig: Add note that boot interface is needed

2013-03-19 Thread Peter Stuge
Kevin O'Connor wrote: Basically everything under the BIOS interfaces menu is low-level and should not be changed without understanding the implications. Maybe hide those behind a CONFIG_EXPERT option? //Peter ___ SeaBIOS mailing list

Re: [SeaBIOS] [PATCH] src/Kconfig: Add note that boot interface is needed

2013-03-19 Thread Peter Stuge
Paul Menzel wrote: Again as in the other thread this probably stems from the fact that I have the (wrong(?)) assumption that BIOS interfaces are not needed for GRUB or Linux. GRUB needs BIOS interfaces. GRUB 2 as payload might not, but GRUB 2 on a random debian system does. It's clear that

Re: [SeaBIOS] [PATCH] src/Kconfig: Add note that boot interface is needed

2013-03-19 Thread Peter Stuge
Paul Menzel wrote: I do not even know what the BIOS boot interface does and how it is utilized. I guess I should read up about that. Hundreds if not thousands of interrupt services and about a dozen data structures. //Peter pgpIFHbM5p9U6.pgp Description: PGP signature

Re: [SeaBIOS] [PATCH 0/2][RFC] Reduce mptable code dependencies

2013-03-18 Thread Peter Stuge
Kevin O'Connor wrote: Thoughts? I wish this effort could go into coreboot instead, so that it could benefit more than only one machine. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] [PATCHv2] acpi: make default DSDT optional

2013-03-18 Thread Peter Stuge
Michael S. Tsirkin wrote: Also, in qemu I don't think we want to carry around code we never use. I'm sure you know that the SeaBIOS world is a lot more than just QEMU, so probably it makes sense to not change whatever the default was before your change. I get the impression that you have.

Re: [SeaBIOS] [Qemu-devel] [Qemu-stable] problems with freeBSD

2013-03-08 Thread Peter Stuge
Kevin O'Connor wrote: I don't believe that dictating one true compiler or one true blob is necessary or desirable. Sure. The point isn't to have only one correct way, but to have reliable results in the common case. A reference toolchain and a reference blob both help accomplish that, but

Re: [SeaBIOS] [Qemu-devel] [Qemu-stable] problems with freeBSD

2013-03-07 Thread Peter Stuge
Aurelien Jarno wrote: We probably want update the build process to build the blobs by default Earlier in this thread it's been stated that this often produces subtly broken blobs... Would it be possible to have a testsuite to validate such blobs. The coreboot project has a test

Re: [SeaBIOS] [Qemu-devel] problems with freeBSD

2013-03-06 Thread Peter Stuge
Laszlo Ersek wrote: Going out on a limb, I suspect qemu commit 5f876756 instead. .. I think the gcc version Anthony was using miscompiled SeaBIOS Yeah, it is very common. Lots of distributions patch their toolchains such that they don't compile firmware code correctly. Firmware isn't a common

Re: [SeaBIOS] [coreboot] i915 status on x60.

2013-03-03 Thread Peter Stuge
ron minnich wrote: you need to get the physical frame buffer address from the hardware and then mmap that in user mode. Yes, that's what he has been doing. The BAR points to some address which doesn't remember writes. //Peter ___ SeaBIOS mailing

Re: [SeaBIOS] Moving BIOS tables from SeaBIOS to QEMU

2013-02-27 Thread Peter Stuge
Gerd Hoffmann wrote: gets. It sounds like there will soon be need for a more generic PCI resource allocator, which is another thing that coreboot already has. --verbose please. Alex Williamson wrote: It does make some sense that SeaBIOS initializes PCI, so should be responsible for this

Re: [SeaBIOS] Moving BIOS tables from SeaBIOS to QEMU

2013-02-27 Thread Peter Stuge
Gerd Hoffmann wrote: Option one is to let qemu provide them, then both ovmf and seabios can grab them via fw_cfg. Option two is to use coreboot underneath I don't think one should exclude the other, I think it would make great sense to combine them. So have coreboot on QEMU read some

Re: [SeaBIOS] Moving BIOS tables from SeaBIOS to QEMU

2013-02-25 Thread Peter Stuge
Laszlo Ersek wrote: I've made peace with generating AML in C source. As it happens, coreboot has a good infrastructure for generating AML at runtime since years already. Of course static tables in coreboot are no better than static tables elsewhere. There are two reasons why moving all this

Re: [SeaBIOS] Moving BIOS tables from SeaBIOS to QEMU

2013-02-25 Thread Peter Stuge
Gerd Hoffmann wrote: 1. Significant amounts of code can quite likely be shared between many different hypervisors, since coreboot already shares significant code between many different hardware platforms, never mind the reuse possible across *both* hypervisors and hardware. Not really.

Re: [SeaBIOS] [Qemu-devel] [edk2] (PAM stuff) reset doesn't work on OVMF + SeaBIOS CSM

2013-02-19 Thread Peter Stuge
David Woodhouse wrote: is it just that all PC BIOSes are written by crack-smoking hobos that they drag in off the street, and this is just an artefact of the rule anything they *can* get wrong and still boot Windows, they *will* get wrong? I wouldn't be surprised. //Peter

Re: [SeaBIOS] [PATCH 0/5][RFC] Simultaneous multi-platform support

2013-02-14 Thread Peter Stuge
Fred . wrote: I propose the name running_on_Xen() The proper way to do that is to send a perfect patch, created using git, with your commit on top of current seabios.git code. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] Problems booting FreeBSD9 under SeaBIOS as CSM

2013-01-22 Thread Peter Stuge
David Woodhouse wrote: seems to *stop* before displaying the 'Autoboot in 9 seconds Sounds like a timer problem. The hardware interrupt somehow supports that theory. //Peter pgp2EGQXOpjLv.pgp Description: PGP signature ___ SeaBIOS mailing list

Re: [SeaBIOS] Next release

2013-01-09 Thread Peter Stuge
Fred . wrote: I've seen other BIOS (Award, AMI) have a setting in the menu to enable Boot sector protection. Did you study what it actually does? What would be possible in SeaBIOS to prevent overwrite boot sector, mbr, partition tables? Nothing, really. An operating system can always

Re: [SeaBIOS] Next release

2013-01-08 Thread Peter Stuge
Hannes Reinecke wrote: +++ b/src/megasas.c @@ -382,18 +382,17 @@ megasas_setup(void) if (pci-vendor != PCI_VENDOR_ID_LSI_LOGIC pci-vendor != PCI_VENDOR_ID_DELL) continue; -if (pci-device != PCI_DEVICE_ID_LSI_SAS1064R || -pci-device !=

Re: [SeaBIOS] SEABIOS and DOS compatibility

2012-11-12 Thread Peter Stuge
Fred . wrote: Fred . wrote: Anyone wishing to test this, can get a bootdisk from bootdisk.com. http://bootdisk.com/bootdisk.htm Did you verify that those bootdisks do in fact reproduce the problem? Doing that would be a good way to help the project. No, I did not. It would

Re: [SeaBIOS] [coreboot] USB Problems geode lx800

2012-10-18 Thread Peter Stuge
Christian Gmeiner wrote: USB is finally working :) http://dpaste.com/815054/ Very nice! //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] great things are coming your way :-)

2012-10-17 Thread Peter Stuge
ron minnich wrote: I don't even know what to say :-) Checking out SeaBIOS revision 51755c3b5ed9dcdfdef8cee56631d68642bde416 Already on 'master' fatal: reference is not a tree: 51755c3b5ed9dcdfdef8cee56631d68642bde416 Sorry for not testing more thoroughly, the checkout did work for me, I

Re: [SeaBIOS] [PATCH] add F11 shortcut for network boot

2012-10-16 Thread Peter Stuge
Paolo Bonzini wrote: +++ b/src/boot.c @@ -400,54 +400,75 @@ interactive_bootmenu(void) while (get_keystroke(0) = 0) ; -printf(Press F12 for boot menu.\n\n); +wait_threads(); +struct bootentry_s *pos; +for (pos = BootList; pos; pos = pos-next) { +if

Re: [SeaBIOS] great things are coming your way :-)

2012-10-15 Thread Peter Stuge
ron minnich wrote: next problem: If the seabios build fails, and you do a make again, it fails with this kind of error CC cbfs/fallback/coreboot_ram.debug OBJCOPYcbfs/fallback/coreboot_ram.elf Checking out SeaBIOS revision 385a7d0dec28841a05531cba96c62138c3959fef

Re: [SeaBIOS] great things are coming your way :-)

2012-10-15 Thread Peter Stuge
ron minnich wrote: we're going a tutorial at CISL here in buenos aires tomorrow, so would be very cool if we can fix this before then :-) It is simple to work around the modified src/acpi-dsdt.hex error, but I don't know if blindly overwriting changed files including whatever the user has done

Re: [SeaBIOS] great things are coming your way :-)

2012-10-15 Thread Peter Stuge
Kevin O'Connor wrote: Checking out SeaBIOS revision 385a7d0dec28841a05531cba96c62138c3959fef error: Your local changes to the following files would be overwritten by checkout: src/acpi-dsdt.hex .. I've seen this happen. .. I would very much appreciate an explanation why

Re: [SeaBIOS] great things are coming your way :-)

2012-10-15 Thread Peter Stuge
Kevin O'Connor wrote: Would you suggest bumping what coreboot uses as stable commit to 1.7.1? Yes. OK. Ron, please see if that issue is fixed now. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] VideoBios question

2012-10-03 Thread Peter Stuge
Christian Gmeiner wrote: What is the default state/video mode the VideoBios should enter during/after init? Traditional VGA BIOSes always init mode 3. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] How much RAM is required?

2012-08-10 Thread Peter Stuge
Markus Armbruster wrote: SeaBIOS requires a minimum of 1Meg of ram. I didn't even know one could request less than 1meg of ram from QEMU. I'll cook up a QEMU patch to give it at least that much. But QEMU may use other firmware/payload than SeaBIOS which might require less than 1 MB

Re: [SeaBIOS] How much RAM is required?

2012-08-10 Thread Peter Stuge
Fred . wrote: No, I am not. Ok, so there's only a hypothesis. But I believe QEMU does have the functionality to load an arbitrary firmware. So the firmware doesn't necessarily have to be SeaBIOS. As you may know the 8086 reset vector is at 1MB-16 so it will be really difficult to run a

Re: [SeaBIOS] UHCI on US15W: Crazy stuff happening

2012-08-07 Thread Peter Stuge
Matthew Millman wrote: This line in usb-uhci.c (reset_uhci()) broke it: pci_config_writew(bdf, USBLEGSUP, USBLEGSUP_RWC); According to the US15W datasheet, there is no register at this offset, there does seem to be something there because it reads 0x0400 after that write, but I don't

Re: [SeaBIOS] Stance on TPM?

2012-08-04 Thread Peter Stuge
Fred . wrote: What is SeaBIOS stance on Trusted Platform Module (TPM) ? I guess that there is no stance until you or someone else sends patches that we can discuss. //Peter ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] IEEE 1394 interface booting

2012-08-04 Thread Peter Stuge
Fred . wrote: Add support for booting from IEEE 1394 (aka FireWire) interface. Same here - noone is likely to do this until they want to have it themselves. When someone is doing an implementation we can talk about details. //Peter ___ SeaBIOS

  1   2   >