OPNsense Forum

International Forums => German - Deutsch => Topic started by: Tom74 on April 07, 2018, 05:11:19 pm

Title: Opnsense und Bios Installation auf APU2C4 funktioniert nicht
Post by: Tom74 on April 07, 2018, 05:11:19 pm
Hallo Zusammen,

ich habe jetzt mein APU2C4 Board bekommen. Leider habe ich mit der Opnsense Installation Probleme.

Die Installation von einem USB2 Cruzer Fit USB Stick bleibt hängen.

Ich verwende folgendes Image: OPNsense-18.1-OpenSSL-serial-amd64.img

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

Ok, dachte ich erstmal das Bios auf die aktuelle Version aktualisieren vielleicht ist dann das Problem behoben.

Aber selbst das Bios Update klappt nicht.

Ich verwende wie bei PC-Engines beschrieben ein Legacy Bios.

"For FreeBSD based OS like OPNSense and pfSense please use the legacy versions."

https://pcengines.github.io/#lr-4

Allerdings lässt sich das Bios nicht flashen. Die Checksumme/Hash stimmt mit der Angabe in der md5 Datei überein. Die Bios Datei ist somit ok nicht korrupt.

Code: [Select]
root@box:/media/SYSLINUX# flashrom -w apu2_v4.0.12.rom -p internal
flashrom v0.9.8-r1888 on Linux 3.16.6-tinycore (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
coreboot table found at 0xdffae000.
Found chipset "AMD FCH".
Enabling flash write... OK.
Found Winbond flash chip "W25Q64.V" (8192 kB, SPI) mapped at physical address 0xff800000.
This coreboot image (PC Engines:PC Engines apu2) does not appear to
be correct for the detected mainboard (PC Engines:PCEngines apu2).
Aborting. You can override this with -p internal:boardmismatch=force.
root@box:/media/SYSLINUX#

Sowohl apu2_v4.0.12.rom und apu2_v4.0.15.rom lässt sich nicht flashen.

Seltsam....

Hat jemand eine Idee wie ich diese beiden Probleme gelöst bekomme?

Gruß
Tom74




Title: Re: Opnsense und Bios Installation auf APU2C4 funktioniert nicht
Post by: Reiter der OPNsense on April 07, 2018, 08:52:42 pm
Hallo Tom74

Ich würde es mit einem anderen USB-Stick versuchen. Die APU2 und/oder FreeBSD scheint ein wenig heikel zu sein was das betrifft.

Gruss, Stefan
Title: Re: Opnsense und Bios Installation auf APU2C4 funktioniert nicht
Post by: NicholasRush on April 07, 2018, 10:05:00 pm
Quote
probe0:umass-sim0:0:0:0

Ist ein Treiberproblem im Zusammenhang mit deinem USB Stick. Der nicht gestartet werden kann. Und da sich dein Board damit auch nicht flashen lässt kommt die APU wohl auch mit dem Stick nicht klar.

Zum flashen ist es auch besser einen möglichst kleinen USB Stick zu nehmen, ich benutze dafür z.B. immer alte 1-2 GB Sticks. Evtl ist nach dem Bios Flashen dann auch das Problem mit dem San Disk USB Stick gelöst.
Title: Re: Opnsense und Bios Installation auf APU2C4 funktioniert nicht
Post by: loredo on April 08, 2018, 12:13:52 am
Bei mir klappte es erst, als ich das aktuelle TinyLinux Image von PC Engines direkt geladen habe und mich nicht auf Links aus älteren Artikeln verlassen habe.

http://pcengines.ch/howto.htm#TinyCoreLinux

Danach hat es ohne Probleme geklappt. Ich habe übrigens das 4.6.7er Bios installiert und frage mich, welchen Nachteil man angeblich dadurch im Zusammenspiel mit FreeBSD haben soll. Ich konnte bisher jedenfalls nichts feststellen.
Title: Re: Opnsense und Bios Installation auf APU2C4 funktioniert nicht
Post by: Tom74 on April 08, 2018, 05:10:52 pm
Mit einem anderen alten 4GB Philips USB-Stick konnte ich jetzt Opnsense endlich starten und auf die interne SSD installieren.

Das Bios hat nach mehreren versuchen jetzt auch geklappt.

Der erzeugte USB-Stick mit dd und dem  apu2-tinycore6.4.img Image startet zwar aber das Bios lässt sich trotzdem nicht flashen.

Code: [Select]
This coreboot image (PC Engines:PC Engines apu2) does not appear to
be correct for the detected mainboard (PC Engines:PCEngines apu2).
Aborting.

Erst nachdem ich den USB-Stick mit dem TinyCore USB installer v1.8 unter Windows erzeugt habe lies sich das Bios flashen.

Code: [Select]
Booting Core 6.4
Running Linux Kernel 4.2.9-tinycore.
Checking boot options... Done.
Starting udev daemon for hotplug support... Done.
Skipping compressed swap in ram as requested from the boot command line.
Scanning hard disk partitions to create /etc/fstab
Setting Language to C Done.
Ignoring swap partition(s) seek as requested.
Loading extensions... Done.
Setting keymap to us Done.
Skipping DHCP broadcast/network detection as requested on boot commandline.
Setting hostname to box Done.

  ____   ____   _____             _
 |  _ \ / ___| | ____|_ __   __ _(_)_ __   ___  ___
 | |_) | |     |  _| | '_ \ / _` | | '_ \ / _ \/ __|
 |  __/| |___  | |___| | | | (_| | | | | |  __/\__ \
 |_|    \____| |_____|_| |_|\__, |_|_| |_|\___||___/
                            |___/

TinyCore 6.4 www.tinycorelinux.com

login[603]: root login on 'ttyS0'
waiting for USB being mounted .sd 4:0:0:0: [sdb] Asking for cache data failed
..

Welcome to TinyCore running on PC Engines apu boards
To update the BIOS type "flashrom -w apu_xyz.rom -p internal"

[+49.5 C][root@box:/media/TINYCORE]$ flashrom -w apu2_v4.
apu2_v4.0.15.rom      apu2_v4.6.7.rom
apu2_v4.0.15.rom.md5  apu2_v4.6.7.rom.md5
[+49.5 C][root@box:/media/TINYCORE]$ flashrom -w apu2_v4.0.15.rom -p internal
flashrom v0.9.9-r1954-beead91-17 on Linux 4.2.9-tinycore (i686)
flashrom is free software, get the source code at https://flashrom.org

Error accessing high tables, 0x100000 bytes at 0xdffae000
/dev/mem mmap failed: Resource temporarily unavailable
Failed getting access to coreboot high tables.
Found chipset "AMD FCH".
Enabling flash write... OK.
Identifying board "PC Engines apu2"... OK.
Found Winbond flash chip "W25Q64.V" (8192 kB, SPI) mapped at physical address 0xff800000.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.
[+50.4 C][root@box:/media/TINYCORE]$

Seltsam das Verhalten aber es hat letztendlich funktioniert.

Danke für die Hinweise.