Hello,

there are some issues installing OpenBSD on Odroid C4 and HC4.  Except
from the newfs io error there are some preceeding and trailing
questionmarks on the console output.  I tried the installation on both
boards, with different uSD-cards and with different OpenBSD versions
(7.0, 7.1 and current) with the firmware from
https://sibelius.home.xs4all.nl/firmware/ In the following is the
console output from the OpenBSD 7.1 installation on the C4 board:

BL2 Built : 22:54:32, Apr 28 2020.  g12a ga659aac-dirty -
changqing.gao@droid11

Board ID = 1 Set cpu clk to 24M Set clk81 to 24M Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz CPU clk: 1200 MHz Set clk81 to 166.6M DDR
driver_vesion: LPDDR4_PHY_V_0_1_15 build time: Apr 28 2020 22:54:28
board id: 1 Load FIP HDR from SD, src: 0x00010200, des: 0xfffd0000,
size: 0x00004000, part: 0 fw parse done Load ddrfw from SD, src:
0x00030200, des: 0xfffd0000, size: 0x0000c000, part: 0 Load ddrfw from
SD, src: 0x0002c200, des: 0xfffd0000, size: 0x00004000, part: 0 PIEI
prepare done fastboot data load fastboot data verify verify result: 255
Cfg max: 2, cur: 1.  Board id: 255.  Force loop cfg DDR4 probe ddr clk
to 1320MHz Load ddrfw from SD, src: 0x00014200, des: 0xfffd0000, size:
0x0000c000, part: 0

dmc_version 0001 Check phy result INFO : End of initialization INFO :
End of read enable training INFO : End of fine write leveling INFO : End
of read dq deskew training INFO : End of MPR read delay center
optimization INFO : End of Write leveling coarse delay INFO : End of
write delay center optimization INFO : End of read delay center
optimization INFO : End of max read latency training INFO : Training has
run successfully!  1D training succeed Load ddrfw from SD, src:
0x00020200, des: 0xfffd0000, size: 0x0000c000, part: 0 Check phy result
INFO : End of initialization INFO : End of 2D read delay Voltage center
optimization INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==94 ps 8 R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0 R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001

soc_vref_reg_value 0x 00000050 0000004b 0000004e 00000051 00000052
0000004e 0000004e 0000004e 0000004e 0000004d 00000050 0000004f 0000004e
0000004e 0000004e 00000050 0000004e 0000004e 0000004e 00000050 0000004d
0000004f 00000050 0000004f 0000004e 0000004e 0000004e 0000004f 00000050
0000004f 0000004e 0000004e dram_vref_reg_value 0x 00000023 2D training
succeed aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_15 build time: Jun 18 2019
20:29:43 auto size-- 65535DDR cs0 size: 2048MB DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00700024DDR size: 3928MB cs0 DataBus test pass cs1 DataBus
test pass cs0 AddrBus test pass cs1 AddrBus test pass

non-sec scramble use zero key ddr scramble enabled

100bdlr_step_size ps== 425 result report boot times 0Enable ddr reg
access Load FIP HDR from SD, src: 0x00010200, des: 0x01700000, size:
0x00004000, part: 0 Load BL3X from SD, src: 0x0003c200, des: 0x0172c000,
size: 0x00098000, part: 0 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000
MVN_2=0x00000000 [Image: g12a_v1.1.3386-3b31431 2019-05-21 10:41:54
luan.yuan@droid15-sz] OPS=0x10 ring efuse init 2b 0c 10 00 01 0e 1b 00
00 0f 35 31 36 58 4b 50 [0.017354 Inits done] secure task start!  high
task start!  low task start!  run into bl31 NOTICE: BL31:
v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019
NOTICE: BL31: G12A normal boot!  NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast


U-Boot 2021.01-rc4-00036-g21e1cae (Jan 04 2021 - 17:32:36 +0100)
odroid-c4

Model: Hardkernel ODROID-C4 SoC: Amlogic Meson SM1 (S905X3) Revision
2b:c (10:2) DRAM: 3.8 GiB MMC: sd@ffe05000: 0, mmc@ffe07000: 1 In:
serial Out: serial Err: serial Net: eth0: ethernet@ff3f0000 Hit any key
to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device
Scanning mmc 0:1...  libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk s...@ffe05000.blk...  ** Unrecognized filesystem type **
Card did not respond to voltage select!  : -110 Scanning disk
m...@ffe07000.blk...  Disk m...@ffe07000.blk not ready Found 3 disks No
EFI system partition BootOrder not defined EFI boot manager: Cannot load
any image Found EFI removable media binary efi/boot/bootaa64.efi 190631
bytes read in 10 ms (18.2 MiB/s) libfdt fdt_check_header():
FDT_ERR_BADMAGIC Booting /efi\boot\bootaa64.efi disks: sd0* >>
OpenBSD/arm64 BOOTAA64 1.8 boot> cannot open sd0a:/etc/random.seed: No
such file or directory booting sd0a:/bsd: 2652268+722656+13001984+629528
[221560+91+613344+239668]=0x1406908 type 0x2 pa 0x0 va 0x0 pages 0x4000
attr 0x8 type 0x7 pa 0x4000000 va 0x4000000 pages 0x1000 attr 0x8 type
0x0 pa 0x5000000 va 0x5000000 pages 0x300 attr 0x8 type 0x7 pa 0x5300000
va 0x5300000 pages 0x2beb attr 0x8 type 0x9 pa 0x7eeb000 va 0x7eeb000
pages 0x2a attr 0x8 type 0x7 pa 0x7f15000 va 0x7f15000 pages 0xe7ec9
attr 0x8 type 0x2 pa 0xefdde000 va 0xefdde000 pages 0x13 attr 0x8 type
0x4 pa 0xefdf1000 va 0xefdf1000 pages 0x1 attr 0x8 type 0x7 pa
0xefdf2000 va 0xefdf2000 pages 0x1 attr 0x8 type 0x2 pa 0xefdf3000 va
0xefdf3000 pages 0x100 attr 0x8 type 0x1 pa 0xefef3000 va 0xefef3000
pages 0x2f attr 0x8 type 0x0 pa 0xeff22000 va 0xeff22000 pages 0x7 attr
0x8 type 0x4 pa 0xeff29000 va 0xeff29000 pages 0x1 attr 0x8 type 0x6 pa
0xeff2a000 va 0xcf14ff000 pages 0x1 attr 0x8000000000000008 type 0x4 pa
0xeff2b000 va 0xeff2b000 pages 0x2 attr 0x8 type 0x0 pa 0xeff2d000 va
0xeff2d000 pages 0x1 attr 0x8 type 0x6 pa 0xeff2e000 va 0xcf1503000
pages 0x3 attr 0x8000000000000008 type 0x4 pa 0xeff31000 va 0xeff31000
pages 0x1 attr 0x8 type 0x6 pa 0xeff32000 va 0xcf1507000 pages 0x4 attr
0x8000000000000008 type 0x0 pa 0xeff36000 va 0xeff36000 pages 0x1 attr
0x8 type 0x4 pa 0xeff37000 va 0xeff37000 pages 0x1 attr 0x8 type 0x0 pa
0xeff38000 va 0xeff38000 pages 0x1 attr 0x8 type 0x4 pa 0xeff39000 va
0xeff39000 pages 0x2 attr 0x8 type 0x0 pa 0xeff3b000 va 0xeff3b000 pages
0x1 attr 0x8 type 0x4 pa 0xeff3c000 va 0xeff3c000 pages 0x2 attr 0x8
type 0x2 pa 0xeff3e000 va 0xeff3e000 pages 0x3012 attr 0x8 type 0x5 pa
0xf2f50000 va 0xcf4525000 pages 0x10 attr 0x8000000000000008 type 0x2 pa
0xf2f60000 va 0xf2f60000 pages 0x1efb attr 0x8 type 0x0 pa 0xf4e5b000 va
0xf4e5b000 pages 0x1a5 attr 0x8 Copyright (c) 1982, 1986, 1989, 1991,
1993
        The Regents of the University of California.  All rights
        reserved.
Copyright (c) 1995-2022 OpenBSD.  All rights reserved.
https://www.OpenBSD.org

OpenBSD 7.1 (RAMDISK) #1522: Mon Apr 11 22:03:55 MDT 2022
    dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem = 4020977664 (3834MB) avail mem = 3818094592 (3641MB) random:
good seed from bootblocks mainbus0 at root: Hardkernel ODROID-C4 psci0
at mainbus0: PSCI 1.0, SMCCC 1.1 cpu0 at mainbus0 mpidr 0: ARM
Cortex-A55 r1p0 cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line
4-way L1 D-cache cpu0: 512KB 64b/line 16-way L2 cache cpu0:
DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,HAFDBS
efi0 at mainbus0: UEFI 2.8 efi0: Das U-Boot rev 0x20210100 "efuse" at
mainbus0 not configured "gpu-opp-table" at mainbus0 not configured
"secure-monitor" at mainbus0 not configured simplebus0 at mainbus0:
"soc" ampintc0 at simplebus0 nirq 256, ncpu 4: "interrupt-controller"
dwge0 at simplebus0: rev 0x37, address 00:1e:06:48:fd:c2 rgephy0 at
dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev.  6 simplebus1 at simplebus0:
"bus" "hdmi-tx" at simplebus1 not configured simplebus2 at simplebus1:
"bus" amlrng0 at simplebus2 simplebus3 at simplebus1: "bus" amlpinctrl0
at simplebus3 "temperature-sensor" at simplebus1 not configured
"temperature-sensor" at simplebus1 not configured amlusbphy0 at
simplebus1 simplebus4 at simplebus1: "bus" amlusbphy1 at simplebus1
simplebus5 at simplebus1: "bus" syscon0 at simplebus5:
"system-controller" amlclock0 at syscon0 amlpwrc0 at syscon0 amlpciephy0
at simplebus1 "mdio-multiplexer" at simplebus1 not configured simplebus6
at simplebus1: "bus" "clock-controller" at simplebus6 not configured
"audio-controller" at simplebus6 not configured "audio-controller" at
simplebus6 not configured "audio-controller" at simplebus6 not
configured "reset-controller" at simplebus6 not configured
"audio-controller" at simplebus6 not configured "audio-controller" at
simplebus6 not configured simplebus7 at simplebus0: "bus" syscon1 at
simplebus7: "sys-ctrl" amlpinctrl1 at syscon1 "clock-controller" at
syscon1 not configured syscon2 at simplebus7: "ao-secure" "rtc" at
simplebus7 not configured "pwm" at simplebus7 not configured amluart0 at
simplebus7: console "ir" at simplebus7 not configured "adc" at
simplebus7 not configured "video-decoder" at simplebus0 not configured
"vpu" at simplebus0 not configured simplebus8 at simplebus0: "bus"
amlreset0 at simplebus8 "interrupt-controller" at simplebus8 not
configured "clock-measure" at simplebus8 not configured amlmmc0 at
simplebus0 sdmmc0 at amlmmc0: 4-bit, sd high-speed, sdr50, dma amlmmc1
at simplebus0 sdmmc1 at amlmmc1: 8-bit, mmc high-speed, ddr52, hs200,
dma amldwusb0 at simplebus0: "usb" "usb" at amldwusb0 not configured
xhci0 at amldwusb0, xHCI 1.10 usb0 at xhci0: USB revision 3.0 uhub0 at
usb0 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00
addr 1 "gpu" at simplebus0 not configured agtimer0 at mainbus0: 24000
kHz "xtal-clk" at mainbus0 not configured "audio-controller-1" at
mainbus0 not configured "opp-table" at mainbus0 not configured
"emmc-pwrseq" at mainbus0 not configured "leds" at mainbus0 not
configured "regulator-tflash_vdd" at mainbus0 not configured
"gpio-regulator-tf_io" at mainbus0 not configured "regulator-flash_1v8"
at mainbus0 not configured "regulator-main_12v" at mainbus0 not
configured "regulator-vcc_5v" at mainbus0 not configured
"regulator-vcc_1v8" at mainbus0 not configured "regulator-vcc_3v3" at
mainbus0 not configured "regulator-vddcpu" at mainbus0 not configured
"regulator-hub_5v" at mainbus0 not configured "regulator-usb_pwr_en" at
mainbus0 not configured "regulator-vddao_1v8" at mainbus0 not configured
"regulator-vddao_3v3" at mainbus0 not configured "hdmi-connector" at
mainbus0 not configured "sound" at mainbus0 not configured simplefb0 at
mainbus0: 720x576, 32bpp wsdisplay0 at simplefb0 wsdisplay0: screen 0
added (std, vt100 emulation) sdmmc1: can't enable card scsibus0 at
sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC,
USD00, 0010> removable sd0: 238800MB, 512 bytes/sector, 489062400
sectors uhub1 at uhub0 port 1 configuration 1 interface 0 "VIA Labs,
Inc.  USB2.0 Hub" rev 2.10/90.33 addr 2 uhub2 at uhub0 port 3
configuration 1 interface 0 "VIA Labs, Inc.  USB3.0 Hub" rev 3.10/90.33
addr 3 softraid0 at root scsibus1 at softraid0: 256 targets root on rd0a
swap on rd0b dump on rd0b WARNING: CHECK AND RESET THE DATE!  cpu0:
regulator not implemented erase ^?, werase ^W, kill ^U, intr ^C, status
^T ???????????????  Welcome to the OpenBSD/arm64 7.1 installation
program.  ???????(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?
?????????????????i????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????At any
prompt except password prompts you can escape to a shell by typing '!'.
Default answers are shown in []'s and are selected by pressing RETURN.
You can exit this program at any time by pressing Control-C, but this
can leave your system in an inconsistent state.

???????????????Terminal type?  [vt220]
??????????????????????????????????????????
???????????????????????????????????????????????????????????????System
hostname?  (short form, e.g.  'foo')
???????????????????????t????????????????????????????????????????????????????????????????e????????????????????????????????????????????????????????????????s????????????????????????????????????????????????????????????????t????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????Available
network interfaces are: dwge0 vlan0.  ?????????????????Which network
interface do you wish to configure?  (or 'done') [dwge0]
??????????????????????????
???????????????????????????????????????????????????????????????IPv4
address for dwge0?  (or 'autoconf' or 'none') [autoconf] ????
???????????????????????????????????????????????????????????????IPv6
address for dwge0?  (or 'autoconf' or 'none') [none] ????????
???????????????????????????????????????????????????????????????Available
network interfaces are: dwge0 vlan0.  ?????????????????Which network
interface do you wish to configure?  (or 'done') [done]
???????????????????????????

********SKIP**********

???????????????????????????????????????????????????????????????Available
disks are: sd0.  ??????????????????????????????????????Which disk is the
root disk?  ('?' for details) [sd0] ????????????
???????????????????????????????????????????????????????????????Disk: sd0
geometry: 30442/255/63 [489062400 Sectors] ???????????Offset: 0
Signature: 0xAA55
            Starting Ending LBA Info:
 #: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
*0: 0C 2 10 9 - 3 15 12 [ 32768: 16384 ] Win95 FAT32L
 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
 3: A6 3 15 13 - 5 122 53 [ 49152: 38912 ] OpenBSD
Use (W)hole disk or (E)dit the MBR?  [whole] ???????
???????????????????????????????????????????????????????????????Creating
a msdos partition and an OpenBSD partition for rest of
sd0...???????????????????????????done.
??????????????????????????????????????????????????????????The
auto-allocated layout for sd0 is: ?????????????????????????# size offset
fstype [fsize bsize cpg]
  a: 1024.0M 65536 4.2BSD 2048 16384 1 # / b: 4090.7M 2162688 swap c:
  238800.0M 0 unused d: 4096.0M 10540448 4.2BSD 2048 16384 1 # /tmp e:
  11765.4M 18929056 4.2BSD 2048 16384 1 # /var f: 6144.0M 43024608
  4.2BSD 2048 16384 1 # /usr g: 1024.0M 55607520 4.2BSD 2048 16384 1 #
  /usr/X11R6 h: 20480.0M 57704672 4.2BSD 2048 16384 1 # /usr/local i:
  16.0M 32768 MSDOS j: 3072.0M 99647712 4.2BSD 2048 16384 1 # /usr/src
  k: 6144.0M 105939168 4.2BSD 2048 16384 1 # /usr/obj l: 180927.9M
  118522112 4.2BSD 4096 32768 1 # /home
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout?  [a]
???????????????????????????????????????????????????????????????/dev/rsd0a:
1024.0MB in 2097152 sectors of 512 bytes ???????????6 cylinder groups of
202.50MB, 12960 blocks, 25920 inodes each newfs: rdfs: read error on
block 16: Input/output error newfs: bdd92ac7d7c8bf0c.l: No such file or
directory newfs: bdd92ac7d7c8bf0c.d: No such file or directory newfs:
bdd92ac7d7c8bf0c.f: No such file or directory newfs: bdd92ac7d7c8bf0c.g:
No such file or directory newfs: bdd92ac7d7c8bf0c.h: No such file or
directory newfs: bdd92ac7d7c8bf0c.k: No such file or directory
????newfs: bdd92ac7d7c8bf0c.j: No such file or directory
??????????newfs: bdd92ac7d7c8bf0c.e: No such file or directory
??????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.a
on /mnt: No such file or directory ?????????
???????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.l
on /mnt/home: No such file or directory ????
???????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.d
on /mnt/tmp: No such file or directory ?????
????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.f
on /mnt/usr: No such file or directory ?????
???????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.g
on /mnt/usr/X11R6: No such file or directory
???????????????????????????????
??????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.h
on /mnt/usr/local: No such file or directory
???????????????????????????????
???????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.k
on /mnt/usr/obj: No such file or directory ?
???????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.j
on /mnt/usr/src: No such file or directory ?
???????????????????????????????????????????????????????????????mount_ffs:
??????????????????????????????????????????????????????bdd92ac7d7c8bf0c.e
on /mnt/var: No such file or directory ?????
??????????????????????????????????????????????????????????????  WARNING!
The following filesystems were not properly mounted: /mnt
(bdd92ac7d7c8bf0c.a) /mnt/home (bdd92ac7d7c8bf0c.l) /mnt/tmp
(bdd92ac7d7c8bf0c.d) /mnt/usr (bdd92ac7d7c8bf0c.f) /mnt/usr/X11R6
(bdd92ac7d7c8bf0c.g) /mnt/usr/local (bdd92ac7d7c8bf0c.h) /mnt/usr/obj
(bdd92ac7d7c8bf0c.k) /mnt/usr/src (bdd92ac7d7c8bf0c.j) /mnt/var
(bdd92ac7d7c8bf0c.e) Continue anyway?  [no] ???

Reply via email to