AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1347390
Accepted
Chan Kim
Chan Kim
Asked: 2021-06-22 20:11:41 +0800 CST2021-06-22 20:11:41 +0800 CST 2021-06-22 20:11:41 +0800 CST

我应该使用什么 ubuntu 源版本来添加一些调试打印?(用于 ubuntu 启动调试)

  • 772

我正在尝试在我的虚拟机上安装 ubuntu 20.04(使用 qemu-5.1.0)。
这个虚拟机基于 qemu 的 arm/virt 机器,我添加了一个外围设备并根据我们正在开发的 SoC 更改了地址映射。安装在早期阶段就停止了,所以我想如果我用一些打印或调试模式重建 ubuntu(linux 内核)并将其用于 ubuntu 安装,我可以分析出什么问题。
我用于 ubuntu 20.04 的 .iso 映像来自http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/installer-arm64/current/legacy-images/netboot/mini.iso
和程序基于此网页:https ://futurewei-cloud.github.io/ARM-Datacenter/qemu/how-to-launch-aarch64-vm/
图像在原始“virt”机器上安装正常,这是软件版本的结果:

ckim@virt-ubuntu-20:~$ uname -r
    5.4.0-74-generic
ckim@virt-ubuntu-20:~$ uname -a
    Linux virt-ubuntu-20 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:34:05 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
ckim@virt-ubuntu-20:~$ 
ckim@virt-ubuntu-20:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04.2 LTS
    Release:    20.04
    Codename:   focal

如果我挂载 mini.iso 文件(使用 -o 循环)并查看内部,当然没有我可以用来重新构建它的 linux 或 ubuntu 源。所以我从http://kernel.ubuntu.com/git/ubuntu/ubuntu-focal.git克隆了 ubuntu 源代码并做了git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git. 当我这样做时,git tag我可以看到下面的标签。

Ubuntu-5.4-5.4.0-10.13
Ubuntu-5.4-5.4.0-11.14
Ubuntu-5.4-5.4.0-12.15
Ubuntu-5.4-5.4.0-13.16
Ubuntu-5.4-5.4.0-14.17
Ubuntu-5.4-5.4.0-15.18
Ubuntu-5.4.0-15.18
Ubuntu-5.4.0-16.19
Ubuntu-5.4.0-17.20
Ubuntu-5.4.0-17.21
Ubuntu-5.4.0-18.22
Ubuntu-5.4.0-19.23
Ubuntu-5.4.0-20.24
Ubuntu-5.4.0-21.25
Ubuntu-5.4.0-22.26
Ubuntu-5.4.0-23.27
Ubuntu-5.4.0-24.28
Ubuntu-5.4.0-25.29
Ubuntu-5.4.0-26.30
Ubuntu-5.4.0-28.32
Ubuntu-5.4.0-29.33
Ubuntu-5.4.0-30.34
Ubuntu-5.4.0-31.35
Ubuntu-5.4.0-32.36
Ubuntu-5.4.0-33.37
Ubuntu-5.4.0-34.38
Ubuntu-5.4.0-37.41
Ubuntu-5.4.0-38.42
Ubuntu-5.4.0-39.43
Ubuntu-5.4.0-40.44
Ubuntu-5.4.0-41.45
Ubuntu-5.4.0-42.46
Ubuntu-5.4.0-43.47
Ubuntu-5.4.0-44.48
Ubuntu-5.4.0-45.49
Ubuntu-5.4.0-46.50
Ubuntu-5.4.0-47.51
Ubuntu-5.4.0-48.52
Ubuntu-5.4.0-49.53
Ubuntu-5.4.0-51.56
Ubuntu-5.4.0-52.57
Ubuntu-5.4.0-53.59
Ubuntu-5.4.0-54.60
Ubuntu-5.4.0-55.61
Ubuntu-5.4.0-56.62
Ubuntu-5.4.0-57.63
Ubuntu-5.4.0-58.64
Ubuntu-5.4.0-59.65
Ubuntu-5.4.0-60.67
Ubuntu-5.4.0-61.69
Ubuntu-5.4.0-62.70
Ubuntu-5.4.0-63.71
Ubuntu-5.4.0-64.72
Ubuntu-5.4.0-65.73
Ubuntu-5.4.0-66.74
Ubuntu-5.4.0-67.75
Ubuntu-5.4.0-68.76
Ubuntu-5.4.0-70.78
Ubuntu-5.4.0-71.79
Ubuntu-5.4.0-72.80
Ubuntu-5.4.0-73.82
Ubuntu-5.4.0-74.83
Ubuntu-5.4.0-75.84
Ubuntu-5.4.0-76.85
Ubuntu-5.4.0-8.11
Ubuntu-5.4.0-9.12
Ubuntu-hwe-5.11-5.11.0-16.17_20.04.2
Ubuntu-hwe-5.11-5.11.0-16.17_20.04.4
Ubuntu-hwe-5.11-5.11.0-16.17_20.04.5
Ubuntu-hwe-5.11-5.11.0-20.21_20.04.1
Ubuntu-hwe-5.8-5.8.0-18.19_20.04.2
Ubuntu-hwe-5.8-5.8.0-18.19_20.04.3
Ubuntu-hwe-5.8-5.8.0-19.20_20.04.1
Ubuntu-hwe-5.8-5.8.0-19.20_20.04.2
Ubuntu-hwe-5.8-5.8.0-19.20_20.04.3
Ubuntu-hwe-5.8-5.8.0-19.20_20.04.4
Ubuntu-hwe-5.8-5.8.0-20.21_20.04.1
Ubuntu-hwe-5.8-5.8.0-21.22_20.04.1
Ubuntu-hwe-5.8-5.8.0-22.23_20.04.1
Ubuntu-hwe-5.8-5.8.0-23.24_20.04.1
Ubuntu-hwe-5.8-5.8.0-25.26_20.04.1
Ubuntu-hwe-5.8-5.8.0-28.30_20.04.1
Ubuntu-hwe-5.8-5.8.0-29.31_20.04.1
Ubuntu-hwe-5.8-5.8.0-30.32_20.04.1
Ubuntu-hwe-5.8-5.8.0-31.33_20.04.1
Ubuntu-hwe-5.8-5.8.0-32.34_20.04.1
Ubuntu-hwe-5.8-5.8.0-33.36_20.04.1
Ubuntu-hwe-5.8-5.8.0-34.37_20.04.1
Ubuntu-hwe-5.8-5.8.0-34.37_20.04.2
Ubuntu-hwe-5.8-5.8.0-36.40_20.04.1
Ubuntu-hwe-5.8-5.8.0-37.42_20.04.1
Ubuntu-hwe-5.8-5.8.0-38.43_20.04.1
Ubuntu-hwe-5.8-5.8.0-39.44_20.04.1
Ubuntu-hwe-5.8-5.8.0-40.45_20.04.1
Ubuntu-hwe-5.8-5.8.0-41.46_20.04.1
Ubuntu-hwe-5.8-5.8.0-42.47_20.04.1
Ubuntu-hwe-5.8-5.8.0-43.49_20.04.1
Ubuntu-hwe-5.8-5.8.0-44.50_20.04.1
Ubuntu-hwe-5.8-5.8.0-45.51_20.04.1
Ubuntu-hwe-5.8-5.8.0-48.54_20.04.1
Ubuntu-hwe-5.8-5.8.0-49.55_20.04.1
Ubuntu-hwe-5.8-5.8.0-50.56_20.04.1
Ubuntu-hwe-5.8-5.8.0-51.57_20.04.1
Ubuntu-hwe-5.8-5.8.0-52.59_20.04.1
Ubuntu-hwe-5.8-5.8.0-53.60_20.04.1
Ubuntu-hwe-5.8-5.8.0-54.61_20.04.1
Ubuntu-hwe-5.8-5.8.0-55.62_20.04.1
Ubuntu-hwe-5.8-5.8.0-56.63_20.04.1
Ubuntu-hwe-5.8-5.8.0-57.64_20.04.1
Ubuntu-raspi-5.4.0-1007.7
Ubuntu-raspi-5.4.0-1008.8
Ubuntu-raspi-5.4.0-1009.9
Ubuntu-raspi2-5.4-5.4.0-1001.1
Ubuntu-raspi2-5.4-5.4.0-1002.2
Ubuntu-raspi2-5.4.0-1003.3
Ubuntu-raspi2-5.4.0-1004.4
Ubuntu-raspi2-5.4.0-1005.5
Ubuntu-raspi2-5.4.0-1006.6
v5.0
v5.11
v5.4
v5.8

要使用与上面的 mini.iso 匹配的版本,我应该使用什么版本?
我可以只使用 5.4.0-74-83 吗?

20.04
  • 2 2 个回答
  • 140 Views

2 个回答

  • Voted
  1. Nate T
    2021-06-22T21:33:14+08:002021-06-22T21:33:14+08:00

    您需要任何 Linux 5.8.0 发行版,最好是最新的

    Ubuntu 20.04.1 与 5.4.0 一起发布,20.04.2 与 5.8.0 一起发布。

    正如您问题中的输出所示,您的图像是 20.04.2。

    至于破折号后面的数字,它指的是同一个内核的不同(或更新)发行版,它们与同一个版本配对,所以你最好的选择是使用最新版本(仅关于最后一个数字)所以你获得所有安全升级。也就是说,大多数较新的版本至少应该“玩得很好”。

    例如,我正在运行 20.04.2 LTS。目前,我使用的是 5.8.0 - 55,尽管我在几个月前安装了它,并在大约一年前创建了 iso 拇指驱动器。

    • 1
  2. Best Answer
    muru
    2021-06-22T23:51:05+08:002021-06-22T23:51:05+08:00

    Ubuntu 映像通常伴随着清单文件,其中列出了其中的内容。在这种情况下,该树中有一个用于各种安装选项的组合清单文件,其中包含:

    [...]
    netboot/mini.iso
        [...]
        kernel-image-5.4.0-42-generic-di 5.4.0-42.46 arm64
        kernel-signed-image-5.4.0-42-generic-di 5.4.0-42.46 arm64
    [...]
    

    因此,mini.iso内核包版本为 5.4.0-42.46(其标签存在于 git 中)。

    • 0

相关问题

  • 如何在 18.04..20.04 上设置本地通配符 (127.0.0.1) 域解析?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve