OPNsense Forum

English Forums => Hardware and Performance => Topic started by: kraileth on June 08, 2017, 07:09:04 pm

Title: APU2 installation trouble - some solutions
Post by: kraileth on June 08, 2017, 07:09:04 pm
Hi everyone,

A while ago I decided to build a home router and write about the process on my blog. As a person who uses FreeBSD as a daily driver even on the desktop, I of course wanted to use *BSD on there. I decided to get an APU2c4 and just start with it.

I had e a little bit of experience with pfSense in the past and I've been following OPNsense since it was first released, trying out each release in a VM. There's a lot of drama on the net and I didn't find a somewhat objective comparison pfSense vs. OPNsense and for that reason I'll try and write one up after testing both for a while.

I like OPNsense's interface a lot better and totally love that it's easily possible to switch to LibreSSL. The collaboration with HardenedBSD is also great. However after I found that pfSense works well on the hardware (also the FreeBSD 11.0-based 2.4 beta version), I was surprised to find out that installing OPNsense failed on me! I tried to provide some information on this here (https://forum.opnsense.org/index.php?topic=4507.msg21066#msg21066), offering to work with the devs if anybody was interested. Obviously I came along at the wrong time when everybody is busy polishing up 17.7 or so. For that reason I continued on my own and found several ways to accomplish an installation. I want to document those here so other people who might be in need find the info (and perhaps to give the devs some more clues on what is happening there).






So this issue is definitely directly connected to USB3/XHCI. The only thing that's weird is that pfSense 2.4 (which is FreeBSD 11, too) and vanilla FreeBSD 11.0 seem to be able to mount the UFS filesystem using a memstick. Any idea what could be done to fix the images for successfully booting off of USB3?

Again I'd like to offer help in trying out any suggestions if I can. I'm not afraid of building custom stuff or anything. So if anybody has any ideas, please tell me.
Title: Re: APU2 installation trouble - some solutions
Post by: Rainmaker on August 06, 2017, 09:59:41 am
I registered here just to say thank you for this post. I too have an APU2C4, with an mSATA SSD on board. I have run IPFire via SD Card but currently have pfSense, which has been running on here for about a year or so. I don't care for politics and OPNSense seems to have a very nice UI, so having been playing with it in VMs on and off for a few months I wanted to give it a whirl. I hit the same issues you did, and found the boot time delay parameter on a BSD mailing list. It too included the double quotes (and so didn't work) but now I've found your post I can try again.

I did also try to use the nano / embedded image supplied by OPNSense, which promises to expand to fill the card on first boot and be capable of running as a fully-fledged install of its own right. It simply requires copying (I used dd) onto the card and booting. It booted perfectly, so I thought I had my answer for the APU. Unfortunately after taking time to configure it via the console and then rebooting it after an update, it bricked itself. Not a great first impression for a 'solid' BSD based distro!

I find it unfortunate that the staff/admin/developers haven't had time to respond to your concerns in all this time. As you say this bug is only present in OPNSense, not pfSense or upstream *BSD. It's especially sad as the APU is such a fantastic little unit for the purpose. A decent enough AES-NI capable CPU with a tiny TDP, onboard Intel NICs, great expansion and a small footprint. Aside from perhaps a higher clock per core, what more could you ask for? It's an underrated platform. Again, thank you for your helpful post.
Title: Re: APU2 installation trouble - some solutions
Post by: Rainmaker on August 06, 2017, 06:16:04 pm
I spoke too soon. I tried to boot the latest release using the set boot delay parameter (yes, omitting the quote marks) and it still hit the same old error.  :-X

Code: [Select]
uhub2: 4 ports with 4 removable, self powered
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Error 5, Retries exhausted
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SMS200S360G 603ABBF0> ATA8-ACS SATA 3.x device
ada0: Serial Number 50026B7267011FA8
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 57241MB (117231408 512 byte sectors)
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC" frequency 998148315 Hz quality 1000
Trying to mount root from ufs:/dev/ufs/OPNsense_Install [ro,noatime]...
mountroot: waiting for device /dev/ufs/OPNsense_Install...
Mounting from ufs:/dev/ufs/OPNsense_Install failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_Install
  vfs.root.mountfrom.options=ro,noatime

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>

As you say, there are just no copies of earlier versions on the net so I can't even try the 16.7 version you said works. The serial ISO doesn't work on USB, the SD card version craps itself and fails to boot... It looks like OPNSense just doesn't want to work for me. Hey ho, back to pfSense I go if I can't get this sorted.  :(
Title: Re: APU2 installation trouble - some solutions
Post by: andreamenchetti on November 09, 2017, 01:16:28 pm
Hi, I'm sure it's not off topic... APU3 is like APU2 optimized for LTE sim accesses.
So... my APU3A4 (bios 4.0.11), mSATA 16GB:

Opnsense 17.7 (based on freebsd 11), no way to run by usb memstick, sd card, msata (ahci timeout).
Opnsense 17.7.5 (based on freebsd 11), no way to run by usb memstick, sd card, msata (ahci timeout),
update to 17.7.7 was bad too (ahci timeout in 5 minutes from boot time).
The tunable hint.ahci.0.msi=0 is a palliative... 15 minutes instead 5 minutes...

Opnsense 17.1.4 (based on freebsd 10), ok (with plugin os-boot-delay installed), update to 17.1.11_1 was ok too.

Try it yourself and enjoy.
Sorry for my English...  :'(

AM
Title: Re: APU2 installation trouble - some solutions
Post by: dreamerns on April 28, 2020, 05:57:06 pm
Hi there,

I registered to forum after spending half day yesterday trying to boot OPNSense on 20.1 on apu4d4. Same problem still persists and pfSense 2.4.5 works fine. Too bad there is still no solution after 3-4 years :-(
Title: Re: APU2 installation trouble - some solutions
Post by: aesth on April 28, 2020, 07:09:32 pm
That's odd I had no trouble installing on an APU2. Maybe try with updated firmware or a different drive? https://pcengines.github.io/#mr-32
Title: Re: APU2 installation trouble - some solutions
Post by: franco on April 28, 2020, 08:55:23 pm
Over the years a number of people have pointed out that BIOS updates are the best way to solve these kind of issues.


Cheers,
Franco