なんかよくぶっ壊れが回ってくるのですが、今回はハードは生きてるのに手こずったのでメモ。
状態
can’t load ‘kernel’ で Loader> になる。
FreeBSD/armv6 U-Boot loader, Revision 1.2
(fbsd-builder@svl-bsdx-03.juniper.net, Wed Oct 25 17:25:10 PDT 2017)
DRAM: 2048MB
Number of U-Boot devices: 3
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
Probing all disk devices...
Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0p1:
/
can't load 'kernel'
Type '?' for a list of commands, 'help' for more detailed help.
loader>
[EX] How to format install EX2300s and EX3400s via USB
このリンクの通り USB から復旧しようとしたが選択肢が出ないため、次の記事へ。
Fix Device is not booting up with ‘can’t load kernel’ error on EX3400/EX2300 Devices
disk1s1a の表示がなかったが disk1s1 で動きました。
loader> lsdev
disk devices:
disk0 (MMC)
disk0p1: FreeBSD UFS
disk0p2: FreeBSD UFS
disk1 (USB)
disk1s1: FreeBSD
net devices:
net0:
loader> set currdev="disk1s1"
loader> ls /boot
/boot
loader.conf
loader.platform.conf
load-dtb.4th
manifest
manifest.esig
manifest.ecerts
platform-load-dtb.4th
platform-loader.4th
d dtb
loader.rc
support.4th
kernel
contents.iso
efi.4th
loader> include /boot/loader.rc
/boot/kernel data=0x10500bc+0x77f44 syms=[0x4+0x8fea0+0x4+0x9a2f1]
/boot/contents.iso size=0x27c9800
/boot/dtb/ex2300-24mp.dtb size=0x1bee
/boot/dtb/ex2300.dtb size=0x1fb7
Using DTB from loaded file '/boot/dtb/ex2300-24mp.dtb'.
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel]...
Using DTB from loaded file '/boot/dtb/ex2300-24mp.dtb'.
Kernel entry at 0x0xc1000180...
Kernel args: (null)
---<<BOOT>>---
GDB: no debug ports present
KDB: debugger backends: ddb ndb
KDB: current backend: ddb
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
loader> include /boot/loader.rc の後は自動で進みます。
注意点としては USB 作成のファイルが違うとうまくいきません。よく使うパッケージの .tgz ではなくかならず Install Media の USB イメージ、gz を解凍した中にある .img を rufus などでイメージとして書き込んで使用する必要があります。
機種によって微妙に違うのでめんどくさいですね。
コメント