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
    • 最新
    • 标签
主页 / user-98081

mikepurvis's questions

Martin Hope
mikepurvis
Asked: 2020-03-06 17:18:50 +0800 CST

如何添加自定义内核风味?

  • 2

出于多种原因,我需要为其他标准的 x86 Ubuntu 16.04 系统构建自定义内核。按照这些说明,我通过以下调用成功构建了我需要的软件包套件:

fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false do_tool=true

然而,作为这项工作的下一步,我想知道做一些事情,比如减少不需要的驱动程序的数量,包括我目前使用 dh_dkms 包安装的一些补丁等。我觉得即使是我自己使用,它也会如果这些更改可以在内部发布而不是在标准的“通用”名称下发布,那么最好是针对我公司的半嵌入式用例的新风格/配置。

不过,我发现 Ubuntu 内核存储库(例如 git://kernel.ubuntu.com/ubuntu/ubuntu-disco.git)有点难以导航,而且它似乎与 Debian 的做法有很大不同,他们的关于内核构建的文档也不是很有帮助。

所以我的问题是:这个 repo 中定义的风格及其配置(或配置默认值)在哪里?看起来它可能已经在 中debian.master/control.d/vars.<flavourname>,但是在那里添加一个新文件并没有使binary-<flavourname>构建目标可用,也没有改变任何fakeroot debian/rules editconfigs行为方式。

谢谢。

compiling kernel linux-headers
  • 1 个回答
  • 695 Views
Martin Hope
mikepurvis
Asked: 2014-09-20 17:12:08 +0800 CST

预置 3.16 硬件启用内核需要手动更新-initramfs

  • 2

我在需要 3.16 内核驱动程序修复的机器上预置 14.04 Trusty 安装,该内核与 14.10 Utopic 一起使用。获取这个内核最简单的方法是安装相应的硬件支持栈:

http://www.ubuntuupdates.org/package/canonical_kernel_team/trusty/main/base/linux-generic-lts-utopic

当我添加 PPA 并在安装后安装包时,一切正常。但是,当我添加linux-generic-lts-utopic到pkgsel/include我的 preseed 中的行时,我在第一次启动到已安装的系统时遇到内核恐慌(发生在 Parallels 和实际硬件上)。事实证明,我必须使用 GRUB 菜单首先引导默认的 3.13 内核,然后运行:

sudo update-initramfs -c -k 3.16.0-17-generic
sudo update-grub

这样做之后,它可以启动 3.16 就好了。

这看起来超级简陋。这是硬件启用堆栈中的回归,还是安装程序的问题,或者是预置中缺少的东西?

谢谢。

14.04
  • 2 个回答
  • 1745 Views
Martin Hope
mikepurvis
Asked: 2014-06-27 07:41:06 +0800 CST

在 Ubuntu 14.04 上使用 Centrino Advanced-N 6235 的蓝牙

  • -1

硬件存在:

$ lspci | grep Centrino
04:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)

然后加载蓝牙、iwlwifi 和 iwldvm 模块:

$ lsmod | egrep 'iwl|blue'
iwldvm                232285  0
mac80211              626557  1 iwldvm
iwlwifi               169932  1 iwldvm
bluetooth             395423  10 bnep,rfcomm
cfg80211              484040  3 iwlwifi,mac80211,iwldvm

事实上,我的启动日志中有蓝牙输出:

$ dmesg | egrep -i 'iwl|blue'
[    2.598945] Bluetooth: Core ver 2.17
[    2.598994] Bluetooth: HCI device and connection manager initialized
[    2.599006] Bluetooth: HCI socket layer initialized
[    2.599010] Bluetooth: L2CAP socket layer initialized
[    2.599016] Bluetooth: SCO socket layer initialized
[    2.637552] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.637557] Bluetooth: BNEP filters: protocol multicast
[    2.637570] Bluetooth: BNEP socket layer initialized
[    2.683477] Bluetooth: RFCOMM TTY layer initialized
[    2.683493] Bluetooth: RFCOMM socket layer initialized
[    2.683501] Bluetooth: RFCOMM ver 1.11
[    2.802024] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002)
[    2.802106] iwlwifi 0000:04:00.0: can't disable ASPM; OS doesn't have ASPM control
[    2.802169] iwlwifi 0000:04:00.0: irq 106 for MSI/MSI-X
[    2.829897] iwlwifi 0000:04:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[    2.981631] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled
[    2.981638] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[    2.981640] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[    2.981644] iwlwifi 0000:04:00.0: Detected Intel(R) Centrino(R) Advanced-N 6235 AGN, REV=0xB0
[    2.981921] iwlwifi 0000:04:00.0: L1 Disabled; Enabling L0S
[    3.054692] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'

卡的 wifi 部分工作得很好!然而,蓝牙设备根本没有出现——没有出现 hcitool、hciconfig 或 rfkill,例如:

$ hcitool dev
Devices:
$ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

我在一台 64 位机器上,运行一个无头的最小 Ubuntu 14.04:

$ lsb_release -r
Release:    14.04
$ uname -a
Linux test 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

我简单地尝试了 3.14 内核,似乎没有什么不同。我还尝试移除并重新插入 iwlwifi 和蓝牙模块。我还在 14.04 实时桌面中确认了与上述相同的行为。

将不胜感激额外的想法或指示,谢谢。


另一项数据是与 bluetoothd 相关的系统日志输出:

$ sudo cat /var/log/syslog | grep -i bluetoothd
Jun 26 15:09:54 jackal2 bluetoothd[476]: DIS cannot start: GATT is disabled
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init deviceinfo plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init proximity plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init time plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init alert plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init thermometer plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Failed to init gatt_example plugin
Jun 26 15:09:54 jackal2 bluetoothd[476]: Bluetooth Management interface initialized

这些插件故障是否需要调查?关贸总协定是什么?


我现在已经确定这个收音机和驱动程序可以在不同主板上与 wifi 和蓝牙一起正常工作,所以我假设它与特定主板(技嘉 J1800N-D2H)上的某些东西发生硬件冲突。


奇怪的是,同样的问题在不同的 J1900 主板上仍然存在,导致怀疑这是芯片组冲突。这次 dmesg 日志显示固件在启动时崩溃,我不记得以前见过。日志和 lshw 输出在此处的要点中:

https://gist.github.com/mikepurvis/ee7bc8fb85ff7ae64a9d

wireless
  • 2 个回答
  • 2545 Views

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