Commit Graph
3723 Commits
Author SHA1 Message Date
Andrei Borzenkov 109189ce01 efidisk: fix misplaced parenthesis in b00e4c2 2016-02-27 15:16:48 +03:00
Andrei Borzenkov b00e4c2bd9 efidisk: prevent errors from diskfilter scan of removable drives
Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. This
actually matches pretty close (we obviously attempt to read outside of media)
and avoids adding more error codes.

This affects only internally initiated scans. If read/write from removable is
explicitly requested, we still return an error and text explanation is more
clear for user than generic error.

Reported and tested by Andreas Loew <Andreas.Loew@gmx.net>
2016-02-26 21:44:37 +03:00
Vladimir Serbinenko 06a3b0b214 Regenerate checksums 2016-02-26 11:37:47 +01:00
Josef Bacik eb9f401fc1 net: fix ipv6 routing
ipv6 routing in grub2 is broken, we cannot talk to anything outside our local
network or anything that doesn't route in our global namespace.  This patch
fixes this by doing a couple of things

1) Read the router information off of the router advertisement.  If we have a
router lifetime we need to take the source address and create a route from it.

2) Changes the routing stuff slightly to allow you to specify a gateway _and_ an
interface.  Since the router advertisements come in on the link local address we
need to associate it with the global address on the card.  So when we are
processing the router advertisement, either use the SLAAC interface we create
and add the route to that interface, or loop through the global addresses we
currently have on our interface and associate it with one of those addresses.
We need to have a special case here for the default route so that it gets used,
we do this by setting the masksize to 0 to mean it encompasses all networks.
The routing code will automatically select the best route so if there is a
closer match we will use that.

With this patch I can now talk to ipv6 addresses outside of my local network.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
2016-02-25 22:38:52 +03:00
Vladimir Serbinenko 94c56a4c65 ieee1275: fix signed comparison 2016-02-24 18:37:22 +01:00
Andrei Borzenkov 1b782e902e search: actually skip floppy with --no-floppy
grub_device_iterate() ignores device when iterator returns 1, not 0.

Reported by Carlos E. R. <robin.listas@telefonica.net>
2016-02-23 23:17:24 +03:00
Vladimir Serbinenko 9f8f747605 usbtrans: Fix memory coherence 2016-02-23 12:07:01 +01:00
Vladimir Serbinenko 102016960d ehci: Fix memory coherence 2016-02-23 12:06:48 +01:00
Vladimir Serbinenko 07cd46627b arm: implement grub_arch_sync_dma_caches 2016-02-23 12:06:00 +01:00
Vladimir Serbinenko 06c92907c1 cros fix 2016-02-23 11:26:35 +01:00
Vladimir Serbinenko 74cef4ab78 cleaner 2016-02-23 10:19:26 +01:00
Vladimir Serbinenko f4116c3a42 Decrease frame timeout 2016-02-23 10:15:05 +01:00
Vladimir Serbinenko 2d56c1b117 cleaner 2016-02-23 09:52:08 +01:00
Vladimir Serbinenko 1f72ca020d cleaner 2016-02-23 09:50:43 +01:00
Vladimir Serbinenko 3d300d7247 cleaner 2016-02-23 09:43:57 +01:00
Vladimir Serbinenko 03104c2d98 always use older cros protocol. We don't realy need new one 2016-02-23 09:42:09 +01:00
Andrei Borzenkov 15dfea842c multiboot2: zero reserved field in memory map
Documentation says, bootloader should set reserved field to zero.

Reported by Wink Saville <wink@saville.com>
2016-02-23 09:12:14 +03:00
Vladimir Serbinenko 40562ddf1e cros e0 fix 2016-02-22 21:12:50 +01:00
Vladimir Serbinenko 1ea06af1ae EHCI FDT missing file 2016-02-22 20:40:16 +01:00
Vladimir Serbinenko 054d1325e9 Improve EHCI logging
Add dprintf's on common error paths and remove some entries which are too
noisy.
2016-02-22 20:07:10 +01:00
Vladimir Serbinenko 0678b5d629 usb_keyboard: Remove useless include
This prevents non-PCI machines from having USB.
2016-02-22 20:05:54 +01:00
Vladimir Serbinenko be4e9d20a5 Refresh before abort
This ensures that abort message is actually visible to the user.
2016-02-22 19:46:55 +01:00
Vladimir Serbinenko df21b9363d cleaner 2016-02-22 19:44:39 +01:00
Vladimir Serbinenko 8efde40d0c cleaner 2016-02-22 19:44:09 +01:00
Vladimir Serbinenko d624e04af1 cleaner 2016-02-22 19:39:30 +01:00
Vladimir Serbinenko bbd85a0292 cleaner 2016-02-22 19:38:26 +01:00
Vladimir Serbinenko 4f06545767 cleaner 2016-02-22 19:37:37 +01:00
Vladimir Serbinenko 66d0e16425 cleaner 2016-02-22 19:35:46 +01:00
Vladimir Serbinenko a98c706755 cleaner 2016-02-22 19:35:16 +01:00
Vladimir Serbinenko 95f663ec1d cleaner 2016-02-22 19:34:30 +01:00
Vladimir Serbinenko 2b2a338ad6 cleaner 2016-02-22 19:33:34 +01:00
Vladimir Serbinenko 6c9512b610 cleaner 2016-02-22 19:33:13 +01:00
Vladimir Serbinenko f447b3d2bb Dirty cros keyboard import 2016-02-22 19:29:47 +01:00
Vladimir Serbinenko 295fe6c548 Dirty cros keyboard 2016-02-22 19:29:08 +01:00
Eric Snowberg bc220962e3 ieee1275: prevent buffer over-read
Prevent buffer over-read in grub_machine_mmap_iterate. This was
causing phys_base from being calculated properly. This then
caused the wrong value to be placed in ramdisk_image within
struct linux_hdrs. Which prevented the ramdisk from loading on
boot.

Newer SPARC systems contain more than 8 available memory entries.

For example on a T5-8 with 2TB of memory, the memory layout could
look like this:

T5-8 Memory
reg                      00000000 30000000 0000003f b0000000
                         00000800 00000000 00000040 00000000
                         00001000 00000000 00000040 00000000
                         00001800 00000000 00000040 00000000
                         00002000 00000000 00000040 00000000
                         00002800 00000000 00000040 00000000
                         00003000 00000000 00000040 00000000
                         00003800 00000000 00000040 00000000
available                00003800 00000000 0000003f ffcae000
                         00003000 00000000 00000040 00000000
                         00002800 00000000 00000040 00000000
                         00002000 00000000 00000040 00000000
                         00001800 00000000 00000040 00000000
                         00001000 00000000 00000040 00000000
                         00000800 00000000 00000040 00000000
                         00000000 70000000 0000003f 70000000
                         00000000 6eef8000 00000000 00002000
                         00000000 30400000 00000000 3eaf6000
name                     memory

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
2016-02-22 10:01:31 +03:00
Thomas Huth 625934ec0f menu_entry: Disable cursor during update_screen()
When running grub in a VGA console of a KVM pseries guest on PowerPC,
you can see the cursor sweeping over the whole line when entering a
character in editor mode. This is visible because grub always refreshes
the whole line when entering a character in editor mode, and drawing
characters is quite a slow operation with the firmware used for the
powerpc pseries guests (SLOF).
To avoid this ugliness, the cursor should be disabled when refreshing
the screen contents during update_screen().

Signed-off-by: Thomas Huth <thuth@redhat.com>
2016-02-22 09:59:27 +03:00
Vladimir Serbinenko 9cd85f276f frequency 2016-02-22 03:34:35 +01:00
Vladimir Serbinenko 502a7c48e9 ARM caches 2016-02-22 03:34:16 +01:00
Vladimir Serbinenko 418b32f8e9 EHCI reset fix 2016-02-22 03:33:59 +01:00
Vladimir Serbinenko 98490fc328 DMA split 2016-02-22 03:33:18 +01:00
Vladimir Serbinenko 3625fdc0b9 Improve EHCI logging 2016-02-22 03:32:50 +01:00
Vladimir Serbinenko 1ec2b7758b ehci split fixup 2016-02-22 03:28:10 +01:00
Vladimir Serbinenko f51e8d0dda coreboot 2016-02-22 03:27:39 +01:00
Vladimir Serbinenko ee52ea80d6 Remove useless include 2016-02-22 03:25:50 +01:00
Vladimir Serbinenko c55f74a5c5 ehci split 2016-02-22 01:08:27 +01:00
Vladimir Serbinenko 3b1bb7f3eb DTB overrides 2016-02-22 00:05:40 +01:00
Vladimir Serbinenko 0b71582111 coreboot 2016-02-21 20:28:10 +01:00
Vladimir Serbinenko dc491ff04a fdtbus 2016-02-21 20:27:50 +01:00
Vladimir Serbinenko 192243b13e Out-of-place FDT handling 2016-02-21 20:27:28 +01:00
Vladimir Serbinenko f2df41cffa coreboot 2016-02-21 19:28:40 +01:00