编译grub2参考之前的文章

https://blog.csdn.net/hknaruto/article/details/126120947

插入U盘,创建一个分区,vfat格式化

sudo mkfs.vfat /dev/sdb1

挂载

mkdir /mnt/usb
mount /dev/sdb1 /mnt/usb

grub-install写入引导信息

mkdir /mnt/usb/boot
/usr/local/sbin/grub-install --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --removable

完成安装后的目录及文件

.
./boot
./boot/grub
./boot/grub/arm64-efi
./boot/grub/arm64-efi/bufio.mod
./boot/grub/arm64-efi/gcry_twofish.mod
./boot/grub/arm64-efi/reboot.mod
./boot/grub/arm64-efi/fat.mod
./boot/grub/arm64-efi/minix2.mod
./boot/grub/arm64-efi/f2fs.mod
./boot/grub/arm64-efi/tar.mod
./boot/grub/arm64-efi/part_bsd.mod
./boot/grub/arm64-efi/loadenv.mod
./boot/grub/arm64-efi/test_blockarg.mod
./boot/grub/arm64-efi/ldm.mod
./boot/grub/arm64-efi/gfxterm_background.mod
./boot/grub/arm64-efi/lssal.mod
./boot/grub/arm64-efi/zfscrypt.mod
./boot/grub/arm64-efi/hello.mod
./boot/grub/arm64-efi/part_amiga.mod
./boot/grub/arm64-efi/priority_queue.mod
./boot/grub/arm64-efi/gcry_dsa.mod
./boot/grub/arm64-efi/macho.mod
./boot/grub/arm64-efi/efi_gop.mod
./boot/grub/arm64-efi/pbkdf2_test.mod
./boot/grub/arm64-efi/iso9660.mod
./boot/grub/arm64-efi/diskfilter.mod
./boot/grub/arm64-efi/true.mod
./boot/grub/arm64-efi/gcry_md5.mod
./boot/grub/arm64-efi/part_plan.mod
./boot/grub/arm64-efi/mpi.mod
./boot/grub/arm64-efi/password_pbkdf2.mod
./boot/grub/arm64-efi/gcry_sha512.mod
./boot/grub/arm64-efi/efifwsetup.mod
./boot/grub/arm64-efi/part_dvh.mod
./boot/grub/arm64-efi/cmdline_cat_test.mod
./boot/grub/arm64-efi/hashsum.mod
./boot/grub/arm64-efi/gfxterm.mod
./boot/grub/arm64-efi/gcry_whirlpool.mod
./boot/grub/arm64-efi/setjmp_test.mod
./boot/grub/arm64-efi/sleep.mod
./boot/grub/arm64-efi/ntfs.mod
./boot/grub/arm64-efi/exfat.mod
./boot/grub/arm64-efi/btrfs.mod
./boot/grub/arm64-efi/zstd.mod
./boot/grub/arm64-efi/zfsinfo.mod
./boot/grub/arm64-efi/file.mod
./boot/grub/arm64-efi/xen_boot.mod
./boot/grub/arm64-efi/gcry_sha256.mod
./boot/grub/arm64-efi/serial.mod
./boot/grub/arm64-efi/blocklist.mod
./boot/grub/arm64-efi/part_gpt.mod
./boot/grub/arm64-efi/net.mod
./boot/grub/arm64-efi/signature_test.mod
./boot/grub/arm64-efi/lsefimmap.mod
./boot/grub/arm64-efi/raid5rec.mod
./boot/grub/arm64-efi/lsmmap.mod
./boot/grub/arm64-efi/sleep_test.mod
./boot/grub/arm64-efi/minix3_be.mod
./boot/grub/arm64-efi/time.mod
./boot/grub/arm64-efi/functional_test.mod
./boot/grub/arm64-efi/romfs.mod
./boot/grub/arm64-efi/setjmp.mod
./boot/grub/arm64-efi/lsefi.mod
./boot/grub/arm64-efi/hexdump.mod
./boot/grub/arm64-efi/acpi.mod
./boot/grub/arm64-efi/minix3.mod
./boot/grub/arm64-efi/ufs2.mod
./boot/grub/arm64-efi/luks.mod
./boot/grub/arm64-efi/scsi.mod
./boot/grub/arm64-efi/search_fs_uuid.mod
./boot/grub/arm64-efi/luks2.mod
./boot/grub/arm64-efi/dm_nv.mod
./boot/grub/arm64-efi/bfs.mod
./boot/grub/arm64-efi/testspeed.mod
./boot/grub/arm64-efi/gzio.mod
./boot/grub/arm64-efi/efinet.mod
./boot/grub/arm64-efi/affs.mod
./boot/grub/arm64-efi/lvm.mod
./boot/grub/arm64-efi/strtoull_test.mod
./boot/grub/arm64-efi/disk.mod
./boot/grub/arm64-efi/gcry_rmd160.mod
./boot/grub/arm64-efi/mul_test.mod
./boot/grub/arm64-efi/font.mod
./boot/grub/arm64-efi/odc.mod
./boot/grub/arm64-efi/loopback.mod
./boot/grub/arm64-efi/zfs.mod
./boot/grub/arm64-efi/test.mod
./boot/grub/arm64-efi/ufs1.mod
./boot/grub/arm64-efi/cpio.mod
./boot/grub/arm64-efi/gcry_crc.mod
./boot/grub/arm64-efi/video_fb.mod
./boot/grub/arm64-efi/json.mod
./boot/grub/arm64-efi/udf.mod
./boot/grub/arm64-efi/read.mod
./boot/grub/arm64-efi/cpio_be.mod
./boot/grub/arm64-efi/mmap.mod
./boot/grub/arm64-efi/normal.mod
./boot/grub/arm64-efi/xfs.mod
./boot/grub/arm64-efi/minix_be.mod
./boot/grub/arm64-efi/syslinuxcfg.mod
./boot/grub/arm64-efi/date.mod
./boot/grub/arm64-efi/datehook.mod
./boot/grub/arm64-efi/cbfs.mod
./boot/grub/arm64-efi/bitmap_scale.mod
./boot/grub/arm64-efi/progress.mod
./boot/grub/arm64-efi/div_test.mod
./boot/grub/arm64-efi/part_msdos.mod
./boot/grub/arm64-efi/search.mod
./boot/grub/arm64-efi/part_sun.mod
./boot/grub/arm64-efi/keystatus.mod
./boot/grub/arm64-efi/fdt.mod
./boot/grub/arm64-efi/hfspluscomp.mod
./boot/grub/arm64-efi/terminfo.mod
./boot/grub/arm64-efi/tftp.mod
./boot/grub/arm64-efi/exfctest.mod
./boot/grub/arm64-efi/chain.mod
./boot/grub/arm64-efi/videotest_checksum.mod
./boot/grub/arm64-efi/tga.mod
./boot/grub/arm64-efi/ctz_test.mod
./boot/grub/arm64-efi/part_apple.mod
./boot/grub/arm64-efi/videoinfo.mod
./boot/grub/arm64-efi/mdraid09.mod
./boot/grub/arm64-efi/ext2.mod
./boot/grub/arm64-efi/xnu_uuid_test.mod
./boot/grub/arm64-efi/minix.mod
./boot/grub/arm64-efi/search_label.mod
./boot/grub/arm64-efi/raid6rec.mod
./boot/grub/arm64-efi/jpeg.mod
./boot/grub/arm64-efi/gfxterm_menu.mod
./boot/grub/arm64-efi/bswap_test.mod
./boot/grub/arm64-efi/gcry_sha1.mod
./boot/grub/arm64-efi/video_colors.mod
./boot/grub/arm64-efi/msdospart.mod
./boot/grub/arm64-efi/cryptodisk.mod
./boot/grub/arm64-efi/geli.mod
./boot/grub/arm64-efi/probe.mod
./boot/grub/arm64-efi/gcry_cast5.mod
./boot/grub/arm64-efi/ufs1_be.mod
./boot/grub/arm64-efi/cat.mod
./boot/grub/arm64-efi/afsplitter.mod
./boot/grub/arm64-efi/linux.mod
./boot/grub/arm64-efi/gcry_blowfish.mod
./boot/grub/arm64-efi/extcmd.mod
./boot/grub/arm64-efi/minicmd.mod
./boot/grub/arm64-efi/nilfs2.mod
./boot/grub/arm64-efi/help.mod
./boot/grub/arm64-efi/lzopio.mod
./boot/grub/arm64-efi/part_acorn.mod
./boot/grub/arm64-efi/lsefisystab.mod
./boot/grub/arm64-efi/part_dfly.mod
./boot/grub/arm64-efi/squash4.mod
./boot/grub/arm64-efi/gcry_serpent.mod
./boot/grub/arm64-efi/tpm.mod
./boot/grub/arm64-efi/gettext.mod
./boot/grub/arm64-efi/gcry_tiger.mod
./boot/grub/arm64-efi/shift_test.mod
./boot/grub/arm64-efi/procfs.mod
./boot/grub/arm64-efi/gcry_rfc2268.mod
./boot/grub/arm64-efi/datetime.mod
./boot/grub/arm64-efi/jfs.mod
./boot/grub/arm64-efi/smbios.mod
./boot/grub/arm64-efi/crypto.mod
./boot/grub/arm64-efi/hfs.mod
./boot/grub/arm64-efi/gcry_idea.mod
./boot/grub/arm64-efi/sfs.mod
./boot/grub/arm64-efi/afs.mod
./boot/grub/arm64-efi/cmp_test.mod
./boot/grub/arm64-efi/videotest.mod
./boot/grub/arm64-efi/png.mod
./boot/grub/arm64-efi/memrw.mod
./boot/grub/arm64-efi/gcry_seed.mod
./boot/grub/arm64-efi/div.mod
./boot/grub/arm64-efi/ntfscomp.mod
./boot/grub/arm64-efi/gcry_rijndael.mod
./boot/grub/arm64-efi/eval.mod
./boot/grub/arm64-efi/gcry_md4.mod
./boot/grub/arm64-efi/halt.mod
./boot/grub/arm64-efi/cmp.mod
./boot/grub/arm64-efi/offsetio.mod
./boot/grub/arm64-efi/lsacpi.mod
./boot/grub/arm64-efi/xnu_uuid.mod
./boot/grub/arm64-efi/hfsplus.mod
./boot/grub/arm64-efi/bitmap.mod
./boot/grub/arm64-efi/gptsync.mod
./boot/grub/arm64-efi/parttool.mod
./boot/grub/arm64-efi/part_sunpc.mod
./boot/grub/arm64-efi/adler32.mod
./boot/grub/arm64-efi/archelp.mod
./boot/grub/arm64-efi/tr.mod
./boot/grub/arm64-efi/all_video.mod
./boot/grub/arm64-efi/echo.mod
./boot/grub/arm64-efi/mdraid09_be.mod
./boot/grub/arm64-efi/gfxmenu.mod
./boot/grub/arm64-efi/crc64.mod
./boot/grub/arm64-efi/search_fs_file.mod
./boot/grub/arm64-efi/newc.mod
./boot/grub/arm64-efi/http.mod
./boot/grub/arm64-efi/xzio.mod
./boot/grub/arm64-efi/configfile.mod
./boot/grub/arm64-efi/minix2_be.mod
./boot/grub/arm64-efi/pgp.mod
./boot/grub/arm64-efi/ls.mod
./boot/grub/arm64-efi/elf.mod
./boot/grub/arm64-efi/fshelp.mod
./boot/grub/arm64-efi/boot.mod
./boot/grub/arm64-efi/mdraid1x.mod
./boot/grub/arm64-efi/password.mod
./boot/grub/arm64-efi/gcry_camellia.mod
./boot/grub/arm64-efi/gcry_rsa.mod
./boot/grub/arm64-efi/video.mod
./boot/grub/arm64-efi/reiserfs.mod
./boot/grub/arm64-efi/memdisk.mod
./boot/grub/arm64-efi/gcry_arcfour.mod
./boot/grub/arm64-efi/gcry_des.mod
./boot/grub/arm64-efi/terminal.mod
./boot/grub/arm64-efi/macbless.mod
./boot/grub/arm64-efi/regexp.mod
./boot/grub/arm64-efi/pbkdf2.mod
./boot/grub/arm64-efi/testload.mod
./boot/grub/arm64-efi/trig.mod
./boot/grub/arm64-efi/moddep.lst
./boot/grub/arm64-efi/command.lst
./boot/grub/arm64-efi/fs.lst
./boot/grub/arm64-efi/partmap.lst
./boot/grub/arm64-efi/parttool.lst
./boot/grub/arm64-efi/video.lst
./boot/grub/arm64-efi/crypto.lst
./boot/grub/arm64-efi/terminal.lst
./boot/grub/arm64-efi/modinfo.sh
./boot/grub/arm64-efi/core.efi
./boot/grub/locale
./boot/grub/locale/sl.mo
./boot/grub/locale/nl.mo
./boot/grub/locale/pl.mo
./boot/grub/locale/sr.mo
./boot/grub/locale/ro.mo
./boot/grub/locale/gl.mo
./boot/grub/locale/it.mo
./boot/grub/locale/ko.mo
./boot/grub/locale/en@piglatin.mo
./boot/grub/locale/ru.mo
./boot/grub/locale/en@quot.mo
./boot/grub/locale/vi.mo
./boot/grub/locale/id.mo
./boot/grub/locale/sv.mo
./boot/grub/locale/de.mo
./boot/grub/locale/fi.mo
./boot/grub/locale/de_CH.mo
./boot/grub/locale/lt.mo
./boot/grub/locale/eo.mo
./boot/grub/locale/tr.mo
./boot/grub/locale/uk.mo
./boot/grub/locale/da.mo
./boot/grub/locale/es.mo
./boot/grub/locale/de@hebrew.mo
./boot/grub/locale/ja.mo
./boot/grub/locale/ast.mo
./boot/grub/locale/fr.mo
./boot/grub/locale/hu.mo
./boot/grub/locale/en@arabic.mo
./boot/grub/locale/pt.mo
./boot/grub/locale/pt_BR.mo
./boot/grub/locale/en@greek.mo
./boot/grub/locale/ca.mo
./boot/grub/locale/lg.mo
./boot/grub/locale/zh_TW.mo
./boot/grub/locale/nb.mo
./boot/grub/locale/en@cyrillic.mo
./boot/grub/locale/zh_CN.mo
./boot/grub/locale/pa.mo
./boot/grub/locale/hr.mo
./boot/grub/locale/en@hebrew.mo
./boot/grub/fonts
./boot/grub/grubenv
./EFI
./EFI/BOOT
./EFI/BOOT/BOOTAA64.EFI

测试UF716笔记本上的引导

成功引导grub2。

银河麒麟系统FT2000 ARM64平台源码编译grub2并制作启动U盘 引导启动长城UF716笔记本相关推荐

  1. 麒麟Kylin V10 桌面版源码编译安装Qt5.6.0

    麒麟Kylin V10 桌面版源码编译安装Qt5.6.0 硬件环境:PHYTIUM FT-2000/4开发板 系统环境:Kylin V10 Desktop 系统 安装包下载:自己所需版本 解压 相关依 ...

  2. 【流媒体开发】VLC Media Player - Android 平台源码编译 与 二次开发详解 (提供详细800M下载好的编译源码及eclipse可调试播放器源码下载)

    作者 : 韩曙亮  博客地址 : http://blog.csdn.net/shulianghan/article/details/42707293 转载请注明出处 : http://blog.csd ...

  3. Heapster源码编译,并制作heapster镜像

    Heapster源码编译及镜像制作 1.Heapster简介 Kubernetes有个监控-cAdvisor.每个kubernetes Node上都会运行cAdvisor,但是它只会会收集本机以及容器 ...

  4. 体育赛事比分系统直播视频平台源码程序

    一.体育赛事直播源码价值 通过体育赛事营销提升品牌价值,给球迷带来丰富的赛事资源,利用赛事直播讲解途径手段,挖掘蕴藏营销价值,从而把帮助更加精准定位到目标客户群体. 二.体育赛事直播源码优势 1.原生 ...

  5. win平台源码编译python静态库和一些坑

    使用静态库的坑点 出现 No module named 'encodings' 的问题 这里的问题是没有执行Py_SetPath设置包路径 有可能用到本地设置的python环境变量导致一些莫名的问题和 ...

  6. Win10系统下从tensorflow源码编译tensorflow-gpu 1.15

    文章目录 安装CUDA与CUDNN 一.CUDA安装 二.CUDNN安装 注意事项1 注意事项2 安装Microsoft Visual Studio 安装 Microsoft Visual Studi ...

  7. 追尚系统开发APP平台源码搭建模式

    随着互联网时代快速发展,人们生活节奏越来越快,越来越多的新行业产生,像快递.打车.外卖.跑腿.买菜等,人们习惯性用手机完成所有生活需求,同时也带动了很大就业机会,各行各业都在运用互联网这个强大的工具, ...

  8. windows平台源码编译最新版openssl

    本文有问题,待改中................. 1.从openssl官网下载最新版openssl      https://www.openssl.org/source/ The latest ...

  9. 源码编译Ros, Ubuntu18.04系统使用源码编译Ros1,出错集合及其解决办法

    官方的介绍http://wiki.ros.org/kinetic/Installation中提到了,脚本安装的方法it is available for Ubuntu Wily (15.10) and ...

最新文章

  1. 聊天机器人之环境准备
  2. 京瓷2010复印a4内容不全_百万畅销书活法的原点,稻盛和夫从未公开的京瓷秘籍...
  3. linux+Oracle集群课程全面升级
  4. 徒手撸框架--实现 RPC 远程调用
  5. hdu 1728 逃离迷宫 (bfs)
  6. 【sprinb-boot】改造成 spring-cloud 项目
  7. java socket send_java socket编程
  8. JavaFX 概述 (译)
  9. init 0 init1 init 3 init 5 init 6 这几个启动级别都代表什么意思
  10. Java中的会话管理– HttpServlet,Cookie,URL重写
  11. Emacs之快捷键大全
  12. 【TWVRP】基于matlab遗传算法求解带时间窗的外卖配送车辆路径规划问题【含Matlab源码 1416期】
  13. 计算机类专业数学分数,同济大学计算机专业数学分数
  14. 2008年java占有率_2008年中国城市GDP排名 目前最精确的数据(国家统计局排名):...
  15. 3000元台式电脑组装配置单2022 3000元组装电脑配置推荐2022
  16. 翻译连载 | JavaScript轻量级函数式编程-第 8 章:列表操作 |《你不知道的JS》姊妹篇...
  17. 厉害,竟然把VSCode玩成了IDEA的效果,有点哇塞
  18. epub 电子书的制作
  19. 虚拟机与主机ssh连接
  20. Linux 开机Started Update UTMP卡死处理

热门文章

  1. 信息架构和零代码应用搭建
  2. win10误删除efi引导文件
  3. MySQL数据库框架
  4. 解决Mac系统下需要每次配置环境的问题
  5. 软件造价评估:如何估算测试工作量?
  6. 什么品牌台灯最舒服?盘点2023最好的台灯品牌
  7. iOS开发三方资源 - 欲先攻其事必先利其器
  8. 面试官:聊一聊SpringBoot服务监控机制
  9. 五一游天坛,体验超震撼的大像素全景
  10. 一 、Single Threaded Execution 模式