首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从PXE引导OpenWRT?

如何从PXE引导OpenWRT?
EN

Unix & Linux用户
提问于 2019-08-23 18:21:20
回答 1查看 978关注 0票数 1

我已经从OpenWRT下载了个人电脑的OpenWRT站点文件。我已经安装了DHCPTFTP (在我的局域网中),并且可以从它们启动(其他)内核。

现在我想引导这些OpenWRT文件。

我用PXE配置写的

代码语言:javascript
复制
DEFAULT minimallinux
  SAY Now booting Minimal Linux...

LABEL minimallinux
MENU LABEL Minimal Linux
KERNEL vmlinuz
INITRD rootfs-squashfs.img.gz

它引导,加载内核,然后加载映像,然后启动引导打印,最后在内核恐慌和重新启动时崩溃。

代码语言:javascript
复制
VFS:Cannot open root device "(null)" or unknown-block(0,0): error-6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown un-blokc(0,0)

我也试过

代码语言:javascript
复制
KERNEL vmlinuz
APPEND initrd=rootfs-squashfs.img.gz boot=live toram=rootfs-squashfs.img.gz

和其他一些组合但失败了。

任何提示均获赏识:)

EN

回答 1

Unix & Linux用户

发布于 2019-08-30 23:23:38

尝试泛型-rootfs.tar.gz( https://downloads.openwrt.org/releases/18.06.4/targets/x86/64/openwrt-18.06.4-x86-64-generic-rootfs.tar.gz )

这对我来说很管用

代码语言:javascript
复制
LABEL openwrt
    KERNEL openwrt/openwrt-x86-64-generic-vmlinuz
    APPEND initrd=openwrt/openwrt-x86-64-generic-Generic-rootfs.tar.gz

(调整文件名)

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/537107

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档