OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: dju on August 03, 2020, 09:03:25 pm

Title: [SOLVED] apu 2c4 : live boot from usb stick for fresh install crash
Post by: dju on August 03, 2020, 09:03:25 pm
Hello,
After a crash during the last upgrade, I thought my SD card was damaged.
With a new SD card I do the test directly from the iso file OPNsense-20.7-OpenSSL-serial-amd64.img and
I have the following crash (full boot logs attached).

...
umass0 on uhub0
umass0: <TS-RDF5 Transcend, class 0/0, rev 3.00/0.32, addr 1> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0xc100
umass0:2:0: Attached to scbus2
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, 3 more tries remain
(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, 2 more tries remain
(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, 1 more tries remain
(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, 0 more tries remain
(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
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:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

--
 regards
 julien
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: franco on August 04, 2020, 07:44:00 am
Can you try to bring the BIOS up to date? Vaguely remember this being fixed...


Cheers,
Franco
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: dju on August 04, 2020, 07:49:43 am
I'm using the last one, I think.

PC Engines apu2
coreboot build 20203007
BIOS version v4.12.0.3
4080 MB ECC DRAM
SeaBIOS (version rel-1.12.1.3-0-g300e8b70)

--
  julien
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: franco on August 04, 2020, 08:01:03 am
Can you try the Nano image instead? Id doesn't have a direct installer, but when you log in as user "root" pw "opnsense" console option 8 and typing "opnsense-installer" is enough to get it running.


Cheers,
Franco
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: dju on August 04, 2020, 08:07:25 am
thank you for the advice and for taking the time to answer me.
I'm gonna sleep few hours and then I'll do the test with the nano image.

for information before changing my sd card
when I thought my SD card was damaged with my first try to updating
I hadn't upgraded the bios.

PCEngines apu2
coreboot build 20160307
4080 MB ECC DRAM

SeaBIOS (version ?-20160307_153453-michael-desktop64)

with log boot errors

---<<BOOT>>---
Copyright (c) 2013-2019 The HardenedBSD Project.
Copyright (c) 1992-2019 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.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-RELEASE-p7-HBSD #0  427d53bc125(stable/20.7)-dirty: Sun Jul 26 05:51:42 CEST 2020
    root@sensey64:/usr/obj/usr/src/amd64.amd64/sys/SMP amd64
FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1)
...
...
ugen0.1: <0x1022 XHCI root HUB> at usbus0
ugen1.1: <AMD EHCI root HUB> at usbus1
uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
mmcsd0: 8GB <SDHC SDC   1.0 SN 41578263 MFG 12/2016 by 116 J`> at mmc0 31.5MHz/4bit/65535-block
mmc0: CMD7 failed, RESULT: 1
mmc0: Card at relative address 22964 failed to select
Trying to mount root from ufs:/dev/ufs/OPNsense [rw,noatime]...
mmc0: CMD7 failed, RESULT: 1
mmc0: Card at relative address 22964 failed to select
mmc0: CMD7 failed, RESULT: 1
mmc0: Card at relative address 22964 failed to select
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: franco on August 04, 2020, 08:40:07 am
Might also be a new 20.7 (12.1) thing to be aware of. Not sure yet ;(


Cheers,
Franco
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: dju on August 04, 2020, 02:42:03 pm
I did a boot test with the nano version OPNsense-20.7-OpenSSL-nano-amd64.img
There are the same concerns with the same errors.
I will stay on opnsense version 19.7 which works very well on my 2 apu2c pcengines.
I am waiting for 2 msata ssd cards to replace the SD cards.
I will do some tests again soon on my backup apu 2c.

Thanks again for the help

regards
--
 julien
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: dju on August 04, 2020, 02:48:10 pm
I add the bot log of the OPNsense-20.7-OpenSSL-nano-amd64.img version as an attachment
Title: Re: apu 2c : live boot from usb stick for fresh install crash
Post by: dju on August 05, 2020, 12:29:20 am
I just received my 128GB msata.
I replaced the 8G SD card with the msata card.
I boot on a usb key with the image with OPNsense-20.7-OpenSSL-serial-amd64

some errors but nothing blocking
no worries with opnsense-installer
I installed opnsense 20.7 on the 128 GB msata card.

conclusion
 on a PC-ENGINES-APU.2C4 opnsense 2.7
works by no longer using an sd card

problem solved :)

thank you all for your help

attached the live log boot without sd card

regards
--
  julien
Title: Re: [SOLVED] apu 2c4 : live boot from usb stick for fresh install crash
Post by: marcelmah on November 27, 2020, 04:05:57 pm
I have the same on an apu4d4 with a 16 GB mSATA card.

weird thing is the first time I installed it it worked fine, but due to another problem ( ) I had to start over and got this error.

Aborting the boot procedure in the menu and typing set kern.cam.boot_delay=10000 and then boot fixed it.

My Apu4d4 has the latest BIOS as of writing this.