PXEでOpenWRTを起動するには?

PXEでOpenWRTを起動するには?

以下からPC用のOpenWRTファイルをダウンロードしました。OpenWRTサイト。私は(私のLANに)DHCPと(他の)カーネルをインストールし、TFTPそこから(他の)カーネルを起動できます。

さて、これらのOpenWRTファイルを実行したいと思います。

PXE構成で作成しました。

DEFAULT minimallinux
  SAY Now booting Minimal Linux...

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

起動してカーネルをロードし、イメージをロードし、出力を起動し、最後にカーネルパニックがクラッシュして再起動します。

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)

私も試しました

KERNEL vmlinuz
APPEND initrd=rootfs-squashfs.img.gz boot=live toram=rootfs-squashfs.img.gz

そして他の組み合わせもありましたが失敗しました。

どんなヒントにも感謝します:)

ベストアンサー1

generic-rootfs.tar.gzを試してください(https://downloads.openwrt.org/releases/18.06.4/targets/x86/64/openwrt-18.06.4-x86-64-generic-rootfs.tar.gz)

これは私にとって効果的です

LABEL openwrt
    KERNEL openwrt/openwrt-x86-64-generic-vmlinuz
    APPEND initrd=openwrt/openwrt-x86-64-generic-Generic-rootfs.tar.gz

(ファイル名の調整)

おすすめ記事