LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-05-2019, 05:32 AM   #1
removed036
LQ Newbie
 
Registered: Feb 2019
Posts: 5

Rep: Reputation: Disabled
grub-install: error: relocation 0x4 is not implemented yet


I tried setting up grub on uefi using this hint: http://www.linuxfromscratch.org/hint...s/lfs-uefi.txt

but when I try to grub-install, I get the error
grub-install: error: relocation 0x4 is not implemented yet.

I have no idea what this means and don't know what to do next... Does anyone have an idea what this error means?

because of the 30000 character limit, the full output doesn't fit in here, so here are some of the last lines of output:

Code:
(lfs chroot) root:/sources/linux-4.18.5#  grub-install --target=x86_64-efi --efi-directory=/boot/efi  \
>        --bootloader-id=LFS --recheck --debug
[...]
grub-install: info: the total module size is 0x3dc8.
grub-install: info: reading /usr/lib/grub/x86_64-efi/kernel.img.
grub-install: info: locating the section .text at 0x0.
grub-install: info: locating the section .rodata at 0x9800.
grub-install: info: locating the section .rodata.str1.1 at 0x9998.
grub-install: info: locating the section .data at 0xb3a0.
grub-install: info: locating the section .module_license at 0xc600.
grub-install: info: locating the section .bss at 0xc620.
grub-install: info: locating  at 0x400 (0x400).
grub-install: info: locating  at 0x9c00 (0x9c00).
grub-install: info: locating  at 0x9d98 (0x9d98).
grub-install: info: locating  at 0xb7a0 (0xb7a0).
grub-install: info: locating  at 0xca20 (0xca20).
grub-install: info: locating  at 0xca00 (0xca00).
grub-install: info: locating  at 0x400 (0x400).
grub-install: info: locating grub_strlen at 0x7e9a (0x400).
grub-install: info: locating grub_net_poll_cards_idle at 0xe7a0 (0xca20).
grub-install: info: locating grub_efi_finish_boot_services at 0x3009 (0x400).
grub-install: info: locating grub_disk_get_size at 0x59c9 (0x400).
grub-install: info: locating grub_file_progress_hook at 0x188e0 (0xca20).
grub-install: info: locating grub_efidisk_fini at 0xa4c (0x400).
grub-install: info: locating grub_puts_ at 0x7c60 (0x400).
grub-install: info: locating grub_millisleep at 0x4614 (0x400).
grub-install: info: locating grub_fs_autoload_hook at 0xe568 (0xca20).
grub-install: info: locating efi_wrap_10 at 0x62a (0x400).
grub-install: info: locating grub_byte_checksum at 0x3c89 (0x400).
grub-install: info: locating grub_fs_blocklist at 0xb940 (0xb7a0).
grub-install: info: locating grub_errmsg at 0x187c0 (0xca20).
grub-install: info: locating efi_wrap_5 at 0x5c1 (0x400).
grub-install: info: locating grub_strncmp at 0x7cd5 (0x400).
grub-install: info: locating grub_strtoull at 0x80d2 (0x400).
grub-install: info: locating grub_dma_get_virt at 0x703 (0x400).
grub-install: info: locating grub_efi_system_table at 0xe7b0 (0xca20).
grub-install: info: locating memmove at 0x3fc7 (0x400).
grub-install: info: locating efi_wrap_4 at 0x5ad (0x400).
grub-install: info: locating grub_disk_open at 0x53b4 (0x400).
grub-install: info: locating grub_efi_locate_protocol at 0x1d83 (0x400).
grub-install: info: locating grub_env_update_get_sorted at 0x69e1 (0x400).
grub-install: info: locating grub_strcpy at 0x7c4d (0x400).
grub-install: info: locating grub_partition_probe at 0x921b (0x400).
grub-install: info: locating grub_strrchr at 0x7d20 (0x400).
grub-install: info: locating grub_partition_get_name at 0x9424 (0x400).
grub-install: info: locating grub_dl_load at 0x6671 (0x400).
grub-install: info: locating grub_pmtimer_wait_count_tsc at 0x494 (0x400).
grub-install: info: locating grub_efi_stall at 0x1fad (0x400).
grub-install: info: locating grub_efi_get_filename at 0x234a (0x400).
grub-install: info: locating grub_env_export at 0x6acc (0x400).
grub-install: info: locating grub_xvasprintf at 0x8c2c (0x400).
grub-install: info: locating grub_error_push at 0x6b8e (0x400).
grub-install: info: locating grub_rescue_run at 0x99aa (0x400).
grub-install: info: locating grub_xasprintf at 0x8cc4 (0x400).
grub-install: info: locating grub_realloc at 0x453e (0x400).
grub-install: info: locating grub_exit at 0x1fec (0x400).
grub-install: info: locating grub_tsc_calibrate_from_pmtimer at 0x514 (0x400).
grub-install: info: locating memcpy at 0x3fbb (0x400).
grub-install: info: locating grub_memmove at 0x7c11 (0x400).
grub-install: info: locating grub_device_open at 0x4c0c (0x400).
grub-install: info: locating grub_register_exported_symbols at 0x9ba2 (0x400).
grub-install: info: locating grub_tsc_calibrate_from_efi at 0x417 (0x400).
grub-install: info: locating grub_strdup at 0x7eab (0x400).
grub-install: info: locating grub_disk_firmware_is_tainted at 0xe800 (0xca20).
grub-install: info: locating grub_divmod64 at 0x7f48 (0x400).
grub-install: info: locating grub_file_get_device_name at 0x6d0c (0x400).
grub-install: info: locating grub_efi_print_device_path at 0x2500 (0x400).
grub-install: info: locating grub_partition_iterate at 0x93b7 (0x400).
grub-install: info: locating grub_dma_free at 0x6f7 (0x400).
grub-install: info: locating grub_vsnprintf at 0x8bd3 (0x400).
grub-install: info: locating grub_partition_map_list at 0x18940 (0xca20).
grub-install: info: locating efi_wrap_1 at 0x580 (0x400).
grub-install: info: locating grub_command_list at 0xe7e0 (0xca20).
grub-install: info: locating grub_machine_fini at 0x692 (0x400).
grub-install: info: locating grub_tsc_rate at 0xe7d0 (0xca20).
grub-install: info: locating grub_rescue_parse_line at 0x972f (0x400).
grub-install: info: locating grub_efi_get_variable at 0x217c (0x400).
grub-install: info: locating grub_snprintf at 0x8be7 (0x400).
grub-install: info: locating grub_register_core_commands at 0x4a9d (0x400).
grub-install: info: locating grub_disk_dev_register at 0x52dd (0x400).
grub-install: info: locating grub_console_init at 0x3ad5 (0x400).
grub-install: info: locating grub_disk_write_weak at 0xe808 (0xca20).
grub-install: info: locating grub_dl_add at 0x5a98 (0x400).
grub-install: info: locating grub_disk_read at 0x566d (0x400).
grub-install: info: locating grub_term_highlight_color at 0xbae8 (0xb7a0).
grub-install: info: locating grub_parser_execute at 0x91a3 (0x400).
grub-install: info: locating grub_xputs at 0xbae0 (0xb7a0).
grub-install: info: locating grub_console_fini at 0x3bd2 (0x400).
grub-install: info: locating grub_fatal at 0x8d13 (0x400).
grub-install: info: locating grub_dl_ref at 0x5b92 (0x400).
grub-install: info: locating grub_file_seek at 0x7057 (0x400).
grub-install: info: locating grub_pci_find_capability at 0x7f8 (0x400).
grub-install: info: locating grub_efi_get_loaded_image at 0x1fd1 (0x400).
grub-install: info: locating grub_errno at 0x188c0 (0xca20).
grub-install: info: locating grub_parser_cmdline_state at 0x8e9d (0x400).
grub-install: info: locating grub_memset at 0x7e26 (0x400).
grub-install: info: locating grub_getkey at 0x9b83 (0x400).
grub-install: info: locating grub_term_outputs_disabled at 0x18948 (0xca20).
grub-install: info: locating grub_grubnet_fini at 0x188e8 (0xca20).
grub-install: info: locating grub_register_variable_hook at 0x6a6c (0x400).
grub-install: info: locating grub_efi_image_handle at 0xe7b8 (0xca20).
grub-install: info: locating grub_vprintf at 0x88f5 (0x400).
grub-install: info: locating grub_machine_acpi_get_rsdpv1 at 0x3d77 (0x400).
grub-install: info: locating grub_net_open at 0xca70 (0xca20).
grub-install: info: locating grub_register_command_prio at 0x4638 (0x400).
grub-install: info: locating grub_efi_find_last_device_path at 0x246c (0x400).
grub-install: info: locating grub_efi_compare_device_paths at 0x2b87 (0x400).
grub-install: info: locating grub_acpi_find_fadt at 0x3c9b (0x400).
grub-install: info: locating grub_file_filters_all at 0x18900 (0xca20).
grub-install: info: locating grub_install_get_time_ms at 0x4606 (0x400).
grub-install: info: locating grub_tsc_calibrate_from_pit at 0x3f23 (0x400).
grub-install: info: locating _start at 0x400 (0x400).
grub-install: info: locating grub_term_inputs at 0x18950 (0xca20).
grub-install: info: locating grub_parser_split_cmdline at 0x8f3d (0x400).
grub-install: info: locating grub_disk_firmware_fini at 0xe810 (0xca20).
grub-install: info: locating grub_disk_close at 0x531b (0x400).
grub-install: info: locating grub_dl_unload at 0x5c0a (0x400).
grub-install: info: locating grub_efi_set_variable at 0x2090 (0x400).
grub-install: info: locating grub_printf at 0x89e2 (0x400).
grub-install: info: locating grub_unregister_command at 0x4724 (0x400).
grub-install: info: locating grub_fs_list at 0xe570 (0xca20).
grub-install: info: locating grub_efidisk_get_device_handle at 0x1755 (0x400).
grub-install: info: locating grub_main at 0x7639 (0x400).
grub-install: info: locating grub_file_read at 0x6d9a (0x400).
grub-install: info: locating grub_dl_unload_unneeded at 0x676e (0x400).
grub-install: info: locating grub_pci_make_address at 0x70a (0x400).
grub-install: info: locating memcmp at 0x3fd3 (0x400).
grub-install: info: locating grub_term_normal_color at 0xbae9 (0xb7a0).
grub-install: info: locating grub_disk_dev_list at 0xe818 (0xca20).
grub-install: info: locating grub_machine_init at 0x678 (0x400).
grub-install: info: locating efi_wrap_0 at 0x575 (0x400).
grub-install: info: locating grub_efi_locate_handle at 0x1dcd (0x400).
grub-install: info: locating grub_term_outputs at 0x18958 (0xca20).
grub-install: info: locating grub_modbase at 0xe7c0 (0xca20).
grub-install: info: locating grub_term_inputs_disabled at 0x18960 (0xca20).
grub-install: info: locating grub_efi_net_config at 0xe7c8 (0xca20).
grub-install: info: locating grub_efi_set_virtual_address_map at 0x2035 (0x400).
grub-install: info: locating grub_print_error at 0x6c76 (0x400).
grub-install: info: locating grub_efi_mm_init at 0x32b2 (0x400).
grub-install: info: locating memset at 0x3fdf (0x400).
grub-install: info: locating grub_zalloc at 0x42bb (0x400).
grub-install: info: locating grub_strcmp at 0x7cb9 (0x400).
grub-install: info: locating grub_tsc_init at 0x3e77 (0x400).
grub-install: info: locating grub_efi_allocate_pages at 0x2e0d (0x400).
grub-install: info: locating grub_strchr at 0x7d0c (0x400).
grub-install: info: locating grub_refresh at 0x9b5b (0x400).
grub-install: info: locating grub_malloc at 0x42aa (0x400).
grub-install: info: locating grub_efi_get_memory_map at 0x2ed1 (0x400).
grub-install: info: locating grub_efidisk_get_device_name at 0x1897 (0x400).
grub-install: info: locating grub_get_time_ms at 0x45fa (0x400).
grub-install: info: locating grub_file_close at 0x6e36 (0x400).
grub-install: info: locating grub_file_open at 0x6e81 (0x400).
grub-install: info: locating grub_isspace at 0x7d33 (0x400).
grub-install: info: locating grub_efi_open_protocol at 0x1ec7 (0x400).
grub-install: info: locating grub_real_dprintf at 0x8a8f (0x400).
grub-install: info: locating efi_wrap_3 at 0x59c (0x400).
grub-install: info: locating grub_dl_load_core_noinit at 0x5d06 (0x400).
grub-install: info: locating grub_dl_load_file at 0x65ad (0x400).
grub-install: info: locating grub_env_unset at 0x6965 (0x400).
grub-install: info: locating grub_device_close at 0x4ce9 (0x400).
grub-install: info: locating efi_wrap_6 at 0x5da (0x400).
grub-install: info: locating grub_dl_head at 0xca80 (0xca20).
grub-install: info: locating grub_fs_probe at 0x7357 (0x400).
grub-install: info: locating grub_mm_base at 0xe7d8 (0xca20).
grub-install: info: locating grub_term_poll_usb at 0xe7a8 (0xca20).
grub-install: info: locating grub_file_filters_enabled at 0x18920 (0xca20).
grub-install: info: locating grub_strword at 0x7d96 (0x400).
grub-install: info: locating grub_machine_get_bootlocation at 0x2c85 (0x400).
grub-install: info: locating grub_efi_fini at 0x2d22 (0x400).
grub-install: info: locating grub_err_printed_errors at 0x188c4 (0xca20).
grub-install: info: locating grub_error at 0x6b12 (0x400).
grub-install: info: locating grub_current_context at 0xb920 (0xb7a0).
grub-install: info: locating efi_codes at 0x9ce0 (0x9c00).
grub-install: info: locating grub_dl_register_symbol at 0x5ad5 (0x400).
grub-install: info: locating grub_efi_is_finished at 0xca38 (0xca20).
grub-install: info: locating grub_list_remove at 0x757e (0x400).
grub-install: info: locating grub_pci_iterate at 0x733 (0x400).
grub-install: info: locating grub_modules_get_end at 0x761d (0x400).
grub-install: info: locating grub_free at 0x42f5 (0x400).
grub-install: info: locating grub_strndup at 0x7ef3 (0x400).
grub-install: info: locating efi_wrap_7 at 0x5fd (0x400).
grub-install: info: locating grub_named_list_find at 0x7533 (0x400).
grub-install: info: locating grub_dl_unref at 0x5bce (0x400).
grub-install: info: locating grub_efi_duplicate_device_path at 0x24a4 (0x400).
grub-install: info: locating grub_efidisk_init at 0x154c (0x400).
grub-install: info: locating grub_disk_dev_unregister at 0x52f2 (0x400).
grub-install: info: locating grub_efi_init at 0x2c1f (0x400).
grub-install: info: locating grub_arch_dl_check_header at 0x889 (0x400).
grub-install: info: locating grub_arch_dl_relocate_symbols at 0x8b8 (0x400).
grub-install: info: locating grub_efi_free_pages at 0x2de3 (0x400).
grub-install: info: locating grub_printf_ at 0x8a31 (0x400).
grub-install: info: locating grub_efi_get_device_path at 0x2451 (0x400).
grub-install: info: locating start at 0x400 (0x400).
grub-install: info: locating grub_efi_modules_addr at 0x22b0 (0x400).
grub-install: info: locating grub_error_pop at 0x6c07 (0x400).
grub-install: info: locating grub_device_iterate at 0x4e1a (0x400).
grub-install: info: locating grub_getkey_noblock at 0x9b11 (0x400).
grub-install: info: locating grub_memalign_dma32 at 0x6a5 (0x400).
grub-install: info: locating grub_list_push at 0x7567 (0x400).
grub-install: info: locating grub_efi_set_text_mode at 0x1f26 (0x400).
grub-install: info: locating grub_err_printf at 0x89e2 (0x400).
grub-install: info: locating grub_disk_cache_invalidate_all at 0x5296 (0x400).
grub-install: info: locating grub_machine_acpi_get_rsdpv2 at 0x3dd7 (0x400).
grub-install: info: locating grub_env_set at 0x6810 (0x400).
grub-install: info: locating grub_dl_load_core at 0x6567 (0x400).
grub-install: info: locating grub_gettext at 0xb990 (0xb7a0).
grub-install: info: locating grub_memcmp at 0x7c99 (0x400).
grub-install: info: locating grub_env_get at 0x6939 (0x400).
grub-install: info: locating efi_wrap_2 at 0x58e (0x400).
grub-install: info: locating grub_strtoul at 0x8451 (0x400).
grub-install: info: locating grub_dma_get_phys at 0x707 (0x400).
grub-install: info: locating grub_mm_init_region at 0x440c (0x400).
grub-install: info: locating grub_disk_cache_table at 0xe820 (0xca20).
grub-install: info: locating grub_memalign at 0x4096 (0x400).
grub-install: info: dealing with the relocation section .rela.text for .text.
grub-install: info: relocating an R_X86_64_PC32 entry to 0xe3b1 at the offset 0x3.
grub-install: info: relocating an R_X86_64_PC32 entry to 0xe3a2 at the offset 0xa.
grub-install: error: relocation 0x4 is not implemented yet.
 
Old 02-06-2019, 10:52 AM   #2
Thanos
LQ Newbie
 
Registered: Mar 2011
Location: Greece
Distribution: Linux From Scratch
Posts: 2

Rep: Reputation: 1
The hint you are following is outdated. Take a look at
http://www.linuxfromscratch.org/hint...i-20180409.txt
which has a grub patch for the issue you are having. See this ticket also.
http://wiki.linuxfromscratch.org/lfs/ticket/4354
 
1 members found this post helpful.
Old 02-06-2019, 02:02 PM   #3
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: Linux-from-Scratch
Posts: 108

Rep: Reputation: Disabled
I remember seeing that on the lfs support mailing list. See message from 'thomas' dated Sat, 06 Oct 2018 on the lfs-support mailing list archive. The subject was "Error with grub-install". There is a small patch in that message that looks like it would be applicable here.
 
Old 02-06-2019, 08:17 PM   #4
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,Tumbleweed,BLFS 9.0
Posts: 227

Rep: Reputation: Disabled
Find a post answered by "Luridis" UEFI help on finished lfs

I had same problem with my first UEFI grub install and he had the fix that worked for me. Sorry but I don't know how to post the link.
 
Old 02-07-2019, 05:58 AM   #5
colinetsegers
Member
 
Registered: Jul 2011
Location: Brussels, Belgium, Europe
Distribution: PCLinuxOS, Kubuntu, Puppy Linux
Posts: 96

Rep: Reputation: 28
The first thing I would try, is to boot the machine with a Puppylinux disc, and only install the <grub4dos> utility. In most cases this worked for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does cannot get freq at ep 0x4 mean??? worm5252 Linux - Software 10 11-30-2022 10:53 AM
[SOLVED] confused address 0X4 ?? atlantis43 Programming 4 06-07-2014 08:08 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Kernel 2.6.24.3-12 ata2.00 failed to identify (io error, err_mask=0x4) jzimm0007@msn.com Linux - Kernel 2 03-20-2008 11:34 PM
Kernel 2.6.24.3-12 ata2.00 failed to identify (io error, err_mask=0x4) jzimm0007@msn.com Linux - Kernel 1 03-13-2008 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration