gpt4 book ai didi

linux - 尝试启动新的 uImage

转载 作者:太空宇宙 更新时间:2023-11-04 05:13:09 27 4
gpt4 key购买 nike

我正在尝试通过 uboot 启动 uImage,但我得到了一些看似冲突的日志信息:

update Kernel1 tftp uImage-2.5 6.35. -digi-armv7a.LONEPEAK-Ver-4_33

Using FEC0 device

TFTP from server 10.12.1.77; our IP address is 10.12.1.205

Filename 'uImage-2.6.35-digi-armv7a.LONEPEAK-Ver-4_33'.

Load address: 0x94000000

Loading: #################################################################

#################################################################

###########################################

done

Bytes transferred = 2533360 (26a7f0 hex)

Calculated checksum = 0x49669c61

Updating partition 'Kernel1'

Erasing 128 KiB @ 0x08540000: 0%
Erasing 128 KiB @ 0x085e0000: 20%
Erasing 128 KiB @ 0x08680000: 41%
Erasing 128 KiB @ 0x08720000: 62%
Erasing 128 KiB @ 0x087c0000: 83%

Erasing: complete

Writing: 0%
Writing: 51%

Writing: complete

Verifying: 0%
Verifying: 51%

Verifying: complete

Writing Parameters to NVRAM

Update successful

上面显示更新成功,但是当发出重新启动命令时我得到:

scanning bus for devices... 1 USB Device(s) found

scanning bus for storage devices... 0 Storage Device(s) found


** Invalid boot device **

Booting partition 'Kernel0'

## Booting kernel from Legacy Image at 90007fc0 ...

Image Name: Linux-2.6.35.14-tjerbmx51_0005+

Created: 2018-10-16 21:35:37 UTC

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 2533296 Bytes = 2.4 MB

Load Address: 90008000

Entry Point: 90008000

Loading Kernel Image ... OK

OK


Starting kernel ...

所以我的问题是:

有没有办法让我在构建内核时对其进行版本控制,我可以设置“镜像名称”,以便我知道正在加载我的内核而不是某种类型的旧镜像?

最佳答案

也许 Linux 内核 .config 文件的 CONFIG_LOCALVERSION 选项会对您有所帮助。

来自Kernel.org :

Keep a backup kernel handy in case something goes wrong. This is especially true for the development releases, since each new release contains new code which has not been debugged. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a make modules_install.

Alternatively, before compiling, use the kernel config option “LOCALVERSION” to append a unique suffix to the regular kernel version. LOCALVERSION can be set in the “General Setup” menu.

因此,在内核配置期间,您可以向内核添加一些明确的后缀,例如CONFIG_LOCALVERSION="-test_some_stuff"

一些有用的链接:12 .

关于linux - 尝试启动新的 uImage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52844657/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com