Vladimir Serbinenko
284afab081
ehci: Fix compilation on i386
2017-07-09 21:31:19 +02:00
Vladimir Serbinenko
c4b8bec5fe
at_keyboard: Fix falco chromebook case.
...
EC is slow, so we need few delays for it to toggle the bits correctly.
Command to enable clock and keyboard were not sent.
2017-05-09 14:27:52 +02:00
Vladimir Serbinenko
c6eaa982d1
Missing parts of previous commit
2017-05-09 09:02:15 +02:00
Vladimir Serbinenko
5c3fd1b135
arm_coreboot: Add Chromebook keyboard driver.
2017-05-09 08:47:34 +02:00
Vladimir Serbinenko
b0b1b81a11
rk3288_spi: Add SPI driver
2017-05-09 08:44:23 +02:00
Vladimir Serbinenko
c4313c812d
fdtbus: Add ability to send/receive messages on parent busses.
2017-05-09 08:43:20 +02:00
Vladimir Serbinenko
4f8471532d
Fix bug on FDT nodes with compatible property
2017-05-09 08:43:09 +02:00
Vladimir Serbinenko
d11ced1e1f
arm_coreboot: Support EHCI.
2017-05-08 22:15:05 +02:00
Vladimir Serbinenko
058df7b5a9
ehci: Split core code from PCI part.
...
On ARM often EHCI is present without PCI and just declared in device
tree. So splitcore from PCI part.
2017-05-08 22:10:26 +02:00
Vladimir Serbinenko
265292f2b0
arm_coreboot: Support DMA.
...
This is needed to support USB and some other busses.
2017-05-08 22:06:04 +02:00
Vladimir Serbinenko
656c3b0d7f
arm_coreboot: Support loading linux images.
2017-05-08 22:00:06 +02:00
Vladimir Serbinenko
3edabad8fe
arm_coreboot: Support grub-mkstandalone.
2017-05-08 21:59:48 +02:00
Vladimir Serbinenko
848bed9d92
arm_coreboot: Support keyboard for vexpress.
2017-05-08 21:42:37 +02:00
Vladimir Serbinenko
216950a4ee
at_keyboard: Split protocol from controller code.
...
On vexpress controller is different but protocol is the same, so reuse the
code.
2017-05-08 21:41:22 +02:00
Vladimir Serbinenko
ac6b41b89f
arm-coreboot: Export FDT routines.
...
We need to use them from modules as well.
2017-05-08 21:29:48 +02:00
Vladimir Serbinenko
5a865b3786
arm-coreboot: Support for vexpress timer.
2017-05-08 21:26:36 +02:00
Vladimir Serbinenko
fcbb723d4b
Add support for device-tree-based drivers.
2017-05-08 21:19:59 +02:00
Vladimir Serbinenko
24e37a8852
arm-coreboot: Start new port.
2017-05-08 20:53:28 +02:00
Vladimir Serbinenko
9808c3ef95
Rename uboot/datetime to dummy/datetime.
...
It's just a stub and is not UBoot-specific.
2017-05-08 19:40:14 +02:00
Vladimir Serbinenko
1daa716c70
Rename uboot/halt.c to dummy/halt.c.
...
It's not U-Boot specific and it's a stub.
2017-05-08 19:33:56 +02:00
Vladimir Serbinenko
461bfab7b7
coreboot: Split parts that are platform-independent.
...
We currently assume that coreboot is always i386, it's no longer the case,
so split i386-coreboot parts from generic coreboot code.
2017-05-08 19:10:24 +02:00
Vladimir Serbinenko
d08c968514
Refactor arm-uboot code to make it genereic.
...
arm-coreboot startup code can be very similar to arm-uboot but current code has
U-Boot specific references. So split U-Boot part from generic part.
2017-05-08 17:47:57 +02:00
Vladimir Serbinenko
a35ac85430
mkimage: Pass layout to mkimage_generate_elfXX rather than some fields.
...
This allows easier extension of this function without having too long of
arguments list.
2017-05-08 17:32:15 +02:00
Vladimir Serbinenko
dc6e1b5af8
strtoull: Fix behaviour on chars between '9' and 'a'.
...
Reported by: Aaron Miller <aaronmiller@fb.com >
2017-05-03 12:59:58 +02:00
Vladimir Serbinenko
ede6c96893
Add strtoull test.
2017-05-03 12:58:15 +02:00
Vladimir Serbinenko
a827807a13
Fix shebang for termux.
...
Termux doesn't have a /bin/sh. So we needto use $SHELL.
Keep /bin/sh as much as possible.
2017-05-03 12:49:31 +02:00
Vladimir Serbinenko
1073ddb120
Add termux path to dict.
2017-05-03 12:48:00 +02:00
Vladimir Serbinenko
4341f82af0
po: Use @SHELL@ rather than /bin/sh.
...
/bin/sh might not exist.
2017-05-03 12:46:48 +02:00
Vladimir Serbinenko
c2ea443446
Use $(SHELL) rather than /bin/sh.
...
/bin/sh doesn't exist under termux.
2017-05-03 12:46:38 +02:00
Vladimir Serbinenko
608bec5112
Support lseek64.
...
Android doesn't have 64-bit off_t, so use off64_t instead.
2017-05-03 12:24:43 +02:00
Vladimir Serbinenko
6dec3a26b3
Don't retrieve fstime when it's not useful.
2017-05-03 12:23:15 +02:00
Vladimir Serbinenko
b43b8cacc8
support busybox date.
...
Busybox date doesn't understand weekdays in -d input,
so strip them beforehand.
2017-05-03 12:22:05 +02:00
Vladimir Serbinenko
37865c2c4a
fs-tester: make sh-compatible
2017-05-03 12:19:44 +02:00
Vladimir Serbinenko
5a0c548ba3
Remove bashisms from tests.
...
Those tests don't actually need bash. Just use common shebang.
2017-05-03 12:10:36 +02:00
Vladimir Serbinenko
b0bad6fd94
Bump version to 2.03
2017-05-03 11:55:52 +02:00
Vladimir Serbinenko
e54c99aaff
Increase version to 2.02.
2017-04-25 16:23:16 +02:00
Vladimir Serbinenko
d454509bb8
Fix remaining cases of gcc 7 fallthrough warning.
...
They are all intended, so just add the relevant comment.
2017-04-12 01:42:38 +00:00
Vladimir Serbinenko
8014b7b337
Increment version to GRUB 2.02~rc2.
2017-03-15 09:20:29 +01:00
Vladimir Serbinenko
fcea891e17
Use core2duo for bootcheck test on 64-bit EFI.
...
Obviously pentium2 can't run efi64.
2017-03-15 09:20:14 +01:00
phcoder
bcf3c55531
xen: Fix wrong register in relocator.
...
This fixes chainloading of some GRUB variants.
2017-03-05 10:07:36 +01:00
Vladimir Serbinenko
fb93c75bdd
video_fb: Fix blue collor if using unoptimized blitter.
...
when unmapping the color what matters is the mode of source, not target.
2017-02-27 01:58:50 +00:00
Vladimir Serbinenko
641bb15fa4
legacy_initrd: Strip any additional arguments to initrd.
2017-02-27 00:43:54 +00:00
Vladimir Serbinenko
512bb31cbc
Whitelist sparc64-ieee1275 as having no video modules.
...
ieee1275_fb is not built on sparc64 due to virtual address issues.
2017-02-22 09:55:51 +01:00
Vladimir Serbinenko
529818738f
xen: Fix parsing of XZ kernel.
...
In case of xz, the uncompressed size is appended to xz data which confuses
our xz decompressor. Trim it.
2017-02-07 13:25:38 +01:00
Vladimir Serbinenko
8a96fc4093
xen: Fix handling of GRUB chainloading.
...
In case of GRUB we put remapper after domain pages and not at 0x0.
In this case we use max_addr to put remapper. Unfortunately we increment
max_addr as well in this case resulting in virt mapping mapping page
at old max_addr and trying to boot using new max_addr.
Closes 46014.
2017-02-07 00:42:43 +01:00
Vladimir Serbinenko
f3df8f961f
linguas: Don't skip ko.po.
...
Translation project doesn't require copyright disclaimers. They're independant
from us. They're responsible for their copyright story.
2017-02-04 00:06:57 +01:00
Vladimir Serbinenko
ec4aca088a
Fix truncated checksum.h.
2017-02-03 20:17:48 +01:00
Vladimir Serbinenko
fcb1528d93
Regenerate checksums.h
...
Screenshots contain version, so we need new checksums.
2017-02-03 13:44:56 +01:00
Vladimir Serbinenko
c36c0e05f1
Release 2.02-rc1.
2017-02-03 13:01:34 +01:00
Vladimir Serbinenko
c96cfac167
Fix mingw compilation.
2017-02-03 13:01:34 +01:00
Vladimir Serbinenko
5412028d19
Avoid causing kernel oops in nilfs2 test.
...
1024-byte and 2048-byte blocks don't really work with some kernels, skip
them as we don't want any oops'es.
2017-02-03 00:34:07 +01:00
Vladimir Serbinenko
c65d35b08b
btrfs: Shorten label by one character.
...
mkfs.btrfs imposes a slightly lower limit than would be possible in btrfs.
2017-02-03 00:30:29 +01:00
Vladimir Serbinenko
a5bd52990e
grub-fs-tester: Fix mkudffs invocation.
...
With current invocation order of arguments is wrong and path is hardcoded.
2017-02-02 23:32:38 +01:00
Vladimir Serbinenko
1d4e3db907
grub-fs-tester: Fix fat test.
...
mkfs.vfat ignores -S when invoked on a disk, including loopback device,
so do an mkfs on underlying image.
2017-02-02 23:19:00 +01:00
Vladimir Serbinenko
1402cdd96a
i386-ieee1275: Add missing bootcheck target.
2017-02-02 21:41:33 +01:00
Vladimir Serbinenko
31932a267c
bootcheck-linux-i386: Use -cpu pentium2.
...
Most modern kernels are compiled for i686, so use -cpu pentium2
to avoid spurious failures.
2017-02-02 21:41:18 +01:00
Vladimir Serbinenko
393cc59195
Use -fPIC with arm64 with clang.
...
Currently it doesn't work either way but with -fPIC it should work once
clang bug is fixed.
2017-02-02 01:24:11 +01:00
Vladimir Serbinenko
dac87d6032
INSTALL: Fix mention of thumb-clang.
2017-02-02 01:11:52 +01:00
Vladimir Serbinenko
42e24b6006
Fix thumb compilation with clang.
...
According to EABI only STT_FUNC has convention of lowest bit indicating
execution mode. R_THM_{JUMP,CALL}* relocations are assumed to be pointing
to thumb mode unless they use STT_FUNC.
2017-02-02 00:59:49 +01:00
Vladimir Serbinenko
08438d783f
Add missing strtoull_test.c
...
It was forgotten in my local directory.
2017-02-01 21:50:17 +01:00
Vladimir Serbinenko
34fe0b5901
arm64: Add support for GOT and PCREL32 relocations.
2017-02-01 21:46:19 +01:00
Vladimir Serbinenko
377c121170
mkimage: Fix memory leak.
2017-02-01 21:21:17 +01:00
Vladimir Serbinenko
43b444e593
arm/arm64: Fix improper use of start address.
...
It was used instead of loading address of current section or of entire buffer.
2017-02-01 20:12:07 +01:00
Vladimir Serbinenko
ea20dd2b22
ia64: Fix iterator for relocation entries.
...
Don't assume relocation entry size and use sh_entsize properly.
2017-02-01 20:10:26 +01:00
Vladimir Serbinenko
3d173955f0
arm: Fix trampoline generation.
...
We used the wrong pointer in this case. It worked only by accident.
2017-02-01 15:58:36 +01:00
Vladimir Serbinenko
68c6cec061
Fix bootcheck-related files compilation.
...
We need -static as otherwise linker will set interpreter field and ld.so
is not available on our initrd's.
Strip all sections we don't need on binary tests.
2017-02-01 15:57:08 +01:00
Vladimir Serbinenko
0704e83a1b
Regenerate checksum.h.
...
Screenshots checked.
Using unifont from http://ftp.us.debian.org/debian/pool/main/u/unifont/xfonts-unifont_7.0.06-1_all.deb .
2017-01-31 22:36:11 +01:00
Vladimir Serbinenko
f14c77f501
grub-mkfont: Remove leftover debug statement.
2017-01-31 22:32:21 +01:00
Vladimir Serbinenko
0fd9fa565b
charset: Trim away RLM and LRM.
...
They are not visible but would otherwise end up as [LRM] or [RLM] squares
with some fonts.
2017-01-31 19:29:31 +01:00
Vladimir Serbinenko
6f5aa28bc2
gfxterm: Fix clearing of cursor.
...
If ascent is bigger than height - 2, then we draw over character box but then
to clear cursor we only draw over character box. So trim ascent if necessarry.
2017-01-31 18:49:37 +01:00
Vladimir Serbinenko
a134ef1ab9
ia64: Add support for R_IA64_GPREL64I.
...
Recent GCC generates those relocations, so we need to support them.
2017-01-31 12:39:01 +01:00
Vladimir Serbinenko
255b9e0bea
grub-module-verifier: Add mips to all_video whitelist.
...
On MIPS video is compiled-in. So all_video is empty. Whitelist it.
2017-01-30 19:52:58 +01:00
Vladimir Serbinenko
b53f595b3e
Fix -nopie/-nopie check.
...
We don't use lgcc_s but missing lgcc_s or another library cause test to fail.
So use -nostdlib.
We need to use -Werror to avoid warning-generated case to be accepted.
Clang uses -nopie rather than -no-pie. Check both and use whichever one works.
Additionally android clang passes -pie to the linker even though it doesn't
define __PIE__. So if compilation without no-pie logic fails add -nopie/-no-pie
even if __PIE__ is not defined.
2017-01-30 19:38:55 +01:00
Vladimir Serbinenko
6371e9c104
grub-module-verifier: Ignore all_video emptiness on xen.
...
It's intentional that it's empty when no video modules
are available.
2017-01-30 00:13:41 +00:00
Vladimir Serbinenko
d15f17b2a0
Support arm clang 3.8 amd later.
...
clang 3.8 and later doesn't support -mllvm -use-arm-movt=0
whereas older clang doesn't know -mno-movt. So use
-mno-movt whenever possible and fallback to mllvm variant.
2017-01-28 14:41:23 +00:00
Vladimir Serbinenko
43dbf83aa2
Ensure that grub_reboot doesn't return on emu.
...
Use grub_fatal if longjmp fails.
grub_reboot is marked as noreturn so return would cause
a crash.
2017-01-27 20:10:23 +00:00
Vladimir Serbinenko
bec592aa87
grub-shell: skip font copying when no font is available.
2017-01-27 20:09:06 +00:00
Vladimir Serbinenko
79fc008935
Don't use -mlong-calls on arm.
...
We don't really need it and it's flaky and creates
bogus symbols with clang.
2017-01-27 18:48:25 +00:00
Vladimir Serbinenko
bf9c561670
configure: Disable movw/movt with clang.
...
Those relocations are not compatible with PE and also
not compatible with custom uboot relocator.
Disable them.
2017-01-27 18:48:23 +00:00
Vladimir Serbinenko
afa9dda37e
grub-fs-tester: Delete directory once we're done.
2017-01-27 18:00:40 +00:00
Vladimir Serbinenko
cde63a3bb0
grub-fs-tester: Accomodate for slower systems.
...
fstime can be more different with xz squashfs.
Allow difference up to 3 seconds.
This code is ugly now but rewriting it now is not on the
table.
2017-01-27 17:58:15 +00:00
Vladimir Serbinenko
bf0e59cebf
grub-fs-tester: Accomodate for testing in proot containers.
...
proot creates hidden files with .proot prefix and name
derived from real file name. So decrease file name length
and path depth. For some reason depth 85 also results in
undeleteable directory, so use 84 instead of 85.
2017-01-27 17:46:47 +00:00
Vladimir Serbinenko
7f2a856fae
multiboot2: Remove useless GRUB_PACKED
...
Reported by: Daniel Kiper
2016-03-10 21:16:10 +01:00
Vladimir Serbinenko
8207874e5d
Release 2.02~beta3
2016-02-28 03:07:41 +01:00
Vladimir Serbinenko
102e435d81
grub_arch_sync_dma_caches: Accept volatile address
2016-02-28 03:07:27 +01:00
Vladimir Serbinenko
ca028db3d4
usbtrans: Fix memory coherence and use-after-free.
2016-02-27 13:40:52 +01:00
Vladimir Serbinenko
0f076d75d0
ehci: Fix memory coherence
...
This is a no-op on x86 but necessarry on ARM and may be necessarry on MIPS.
2016-02-27 13:40:52 +01:00
Vladimir Serbinenko
86ef66d977
arm-uboot: Make self-relocatable to allow loading at any address
2016-02-27 13:40:52 +01:00
Vladimir Serbinenko
5bcb7d394c
Allow _start == 0 with relocatable images
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
df21fff504
Provide __bss_start and _end symbols in grub-mkimage.
...
For this ensure that all bss sections are merged.
We need this to correctly prelink non-PE relocatable images.
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
73a9c742fe
Encapsulate image layout into a separate structure.
...
Currently we pass around a lot of pointer. Instead put all relevant data
into one structure.
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
dd3969e7ec
mkimagexx: Split PE and generic part for relocations.
...
As a preparation for U-Boot relocations, split emitting PE-relocations
from parsing source ELF-relocations.
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
36212460d3
mkimage.c: Split into separate files.
...
util/grub-mkimagexx.c is included in a special way into mkimage.c.
Interoperation between defines makes this very tricky. Instead
just have a clean interface and compile util/grub-mkimage*.c separately
from mkimage.c
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
2ebef43cf6
bsd: Ensure that kernel is loaded before loading module.
...
kernel_type may be set to the type of failed kernel. This patching-up is
easier than to reflow kernel loading routines.
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
8c26dace6f
cat: Don't switch terminal mode when there is nothing to highlight.
...
This just pollutes serial console.
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
070e190305
Use console rather than serial_efi0 on arm64-efi in tests
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
06a3b0b214
Regenerate checksums
2016-02-26 11:37:47 +01:00
Vladimir Serbinenko
5486a4e12b
Makefile: Don't delete default_payload.elf if it doesn't exist.
2016-02-26 11:14:46 +01:00
Vladimir Serbinenko
94c56a4c65
ieee1275: fix signed comparison
2016-02-24 18:37:22 +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