OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: eblot on November 15, 2016, 12:24:27 pm

Title: Cannot complete boot from USB key
Post by: eblot on November 15, 2016, 12:24:27 pm
Hi,

I'm trying to install OPNsense from a USB key on an Atom-based computer (x64).

The initial bootloader works as expected, kernel boot messages are printed on the HDMI console, but the kernel (I guess) finally deadlocks without a clear reason after:

"ppc0: cannot reserve I/O port range".

I've edited the bootloader configuration file to disable the PPC, but it does not really go any further.
Booting in single user, verbose mode, the last traces are:

...
atkbd0: [GIANT-LOCKED]
psm0: unable to allocate IRQ
pcib0: allocate type 4 (0x3f0-0x3f5) for rid 0 of fdc0
pcib0: allocate type 4 (0x3f7-0x3f7) for rid 1 of fdc0
fdc0 failed to probe at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
ppc0: not probed (disabled)
pcib0: allocated type 4 (0x2f8-0x2ff) for rid 0 or uart1

There is no other message, and I do not know how to investigate from this point.

The same USB key boots fine within VmWare Fusion 8.5.1

How can I debug this issue?

Thanks.
Title: Re: Cannot complete boot from USB key
Post by: eblot on November 15, 2016, 01:46:59 pm
Very same issue with FreeBSD 11.0, not OPNsense related then...
Title: Re: Cannot complete boot from USB key
Post by: franco on November 15, 2016, 05:16:11 pm
Hi elbot,

What device is this? Try skimming for it below, too.

Maybe there is a clue/patch we can pick up that isn't in 11.0 at the moment.

https://bugs.freebsd.org/bugzilla/


Cheers,
Franco
Title: Re: Cannot complete boot from USB key
Post by: eblot on November 20, 2016, 01:04:52 pm
Actually, this is a known FreeBSD issue with Atom Cherryview

https://forums.freebsd.org/threads/57321/
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207910

I'll give this fix a try next week.
Title: Re: Cannot complete boot from USB key
Post by: eblot on November 21, 2016, 04:35:57 pm
Adding hint.uart.1.disabled="1" to /boot/device.hints does the trick: OPNsense installer successfully starts up :-)

Unfortunately, neither the internal eMMC (nor the external SD card) are detected as installation disk candidate, so I guess I need another USB key to install OPNsense.

It would be nice that FreeBSD detects the internal eMMC...
Title: Re: Cannot complete boot from USB key
Post by: franco on November 21, 2016, 05:25:21 pm
You could use the Nano from the USB stick in the meantime. It should work, no install needed?
Title: Re: Cannot complete boot from USB key
Post by: eblot on March 10, 2017, 10:05:05 pm
It would be nice that FreeBSD detects the internal eMMC...
The good news is that FreeBSD 12 does detects and installs on the eMCC (once UART1 is disabled, this issue still pops up).

I'm looking forward for a beta build of OPNSense to install on FreeBSD 12 (or a pre-build based on FreeBSD 12) :P
Title: Re: Cannot complete boot from USB key
Post by: eblot on March 10, 2017, 11:21:12 pm
You could use the Nano from the USB stick in the meantime. It should work, no install needed?
I've been unable to boot any of the 17.1 image from USB key, the UEFI boot does not even list the USB key as a valid bootable device.