DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th August 2021
GullOffSava GullOffSava is offline
New User
 
Join Date: Dec 2010
Posts: 2
Default Install on GPT partition (on NVMe or on eMMC)

Is is possible to install OpenBSD on dedicated partition(s) on arm64 platform?
I have RK3399 with NVMe drive with GPT partitions which can boot FreeBSD and Linux but I was unable to install OpenBSD. Tried with 6.8, 6.9. and latest snapshot.

Installation starts normaly, I can see and edit partitions on NVMe but installer will fail with: No OpenBSD partition in MBR, try again.
Tried creating additional FAT partition ("0xC" type) together with OpenBSD partition ("0xA6" type).
Code:
Welcome to the OpenBSD/arm64 6.9 installation program.
WARNING: /media/da0s4 was not properly unmounted
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?
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') [openmiki]

Available network interfaces are: dwge0 bwfm0 vlan0.
Which network interface do you wish to configure? (or 'done') [dwge0] done
DNS domain name? (e.g. 'example.com') [my.domain]
DNS nameservers? (IP address list or 'none') [none]

Password for root account? (will not echo)
Password for root account? (again)
Start sshd(8) by default? [yes]
etup a user? (enter a lower-case loginname, or 'no') [no]
Since no user was setup, root logins via sshd(8) might be useful.
WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no]

Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0]
MBR has invalid signature; not showing it.
Use (W)hole disk or (E)dit the MBR? [whole] e

You will now create one MBR partition to contain your OpenBSD data
and one MBR partition on which the OpenBSD boot program is located.
Neither partition will overlap any other partition.

The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
partition will have an id of 'C' (msdos).
The boot partition will be at least 16MB and be the first 'MSDOS'
partition on the disk.

Disk: sd0       Usable LBA: 2048 to 500118158 [500118192 Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: EFI Sys                              [        2048:       262144 ]
   1: Linux files*                         [      264192:    104857600 ]
   2: FAT12                                [   105121792:       131072 ]
   3: Linux files*                         [   209979392:    290138760 ]
   4: OpenBSD                              [   105252864:    104726528 ]
Enter 'help' for information
sd0: 1> e 2
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   2: FAT12                                [   105121792:       131072 ]
Partition id ('0' to disable) [01 - FF]: [1] (? for help) C
Partition offset [2048 - 500118158]: [105121792]
Partition size [1 - 131072]: [131072]
Partition name: [nvme-openbsd-efi]
sd0: 1> e 4
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   4: OpenBSD                              [   105252864:    104726528 ]
Partition id ('0' to disable) [01 - FF]: [A6] (? for help) A6
Partition offset [2048 - 500118158]: [105252864]
Partition size [1 - 104726528]: [104726528]
Partition name: [nvme-openbsd]
sd0: 1> p
Disk: sd0       Usable LBA: 2048 to 500118158 [500118192 Sectors]
GUID: 36a71e01-ceaf-418e-82eb-d42a5e0ad2f3
   #: type                                 [       start:         size ]
      guid                                 name
------------------------------------------------------------------------
   0: EFI Sys                              [        2048:       262144 ]
      3e97ec27-ff2f-47f8-910c-b37f8096b93e efi
   1: Linux files*                         [      264192:    104857600 ]
      b307cc82-95b0-42d0-8970-f417a98925f7 nvme-armbian
   2: FAT12                                [   105121792:       131072 ]
      8d2725aa-9c35-11eb-809e-682719ace28b nvme-openbsd-efi
   3: Linux files*                         [   209979392:    290138760 ]
      b0e5645f-5d2c-4fe4-b4a8-7a3238c824fa
   4: OpenBSD                              [   105252864:    104726528 ]
      92167ae4-9c35-11eb-809e-682719ace28b nvme-openbsd
sd0: 1> w
Writing MBR at offset 0.
Writing GPT.
sd0: 1> q
No OpenBSD partition in MBR, try again.
MBR has invalid signature; not showing it.
Use (W)hole disk or (E)dit the MBR? [whole] e
...



Tried to install it on eMMC but that fails too.
Code:
openmiki# ./install
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') [openmiki]

Available network interfaces are: dwge0 bwfm0 vlan0.
Which network interface do you wish to configure? (or 'done') [dwge0]
IPv4 address for dwge0? (or 'dhcp' or 'none') [dhcp] none
IPv6 address for dwge0? (or 'autoconf' or 'none') [none] none
Available network interfaces are: dwge0 bwfm0 vlan0.
Which network interface do you wish to configure? (or 'done') [done]
DNS domain name? (e.g. 'example.com') [my.domain]
DNS nameservers? (IP address list or 'none') [none]

Password for root account? (will not echo)
Password for root account? (again)
Start sshd(8) by default? [yes]
Setup a user? (enter a lower-case loginname, or 'no') [no]
Since no user was setup, root logins via sshd(8) might be useful.
WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no]

Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0] ?
sd0: NVMe, SAMSUNG MZVPW256, CXZ7  (238.5G)
sd1: SD/MMC, SU02G, 0080  (1.8G)
sd2: Samsung, AJTD4R, 0000
Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0] sd2
MBR has invalid signature; not showing it.
Use (W)hole disk or (E)dit the MBR? [whole] w
Creating a msdos partition and an OpenBSD partition for rest of sd2...fdisk: sd2: Input/output error
done.
disklabel: /dev/rsd2c: Input/output error
newfs_msdos: /dev/rsd2i: Input/output error
The auto-allocated layout for sd2 is:
disklabel: /dev/rsd2c: Input/output error
(on older board - same RK3399 model I was able to boot snapshot from May 26 from eMMC, but can't update it.)
Reply With Quote
  #2   (View Single Post)  
Old 30th August 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

See if the discussion of EFI payloads with U-Boot in the INSTALL.arm64 document provides some help. If it doesn't, and if no one posts solutions here, you might consider posting to the Project's misc@ mailing list, or perhaps the arm@ mailing list.
Reply With Quote
  #3   (View Single Post)  
Old 7th September 2021
GullOffSava GullOffSava is offline
New User
 
Join Date: Dec 2010
Posts: 2
Default

With newer snapshot I was able to install it onto GPT partition (tried to do that from 2020.09 without success)
Installer still can't see eMMC, but doesn't matter.
u-boot was for RockPro64 board which uses LPDDR4 RAM, same as my board. If u-boot is built for wrong RAM type (eg DDR3) u-boot won't boot.
Another important thing is that you can't use "usb start" command in u-boot - OpenBSD will start to boot but then stucks.

Image preparation (on FreeBSD host):
Code:
wget https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/BOOTAA64.EFI
wget https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/install70.img
wget https://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/aarch64/dtb-5.13.tgz
wget https://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/aarch64/u-boot-aarch64-2021.07p0.tgz
tar xf ./dtb*.tgz
tar xf ./u-boot-aarch64*.tgz

mdconfig -at vnode -u 10 ./install70.img
mount -t msdosfs /dev/md10s1 /mnt/sd1
cp share/dtb/arm64/rockchip/rk3399-evb.dtb share/dtb/arm64/rockchip/rk3399-nanopc-t4.dtb share/dtb/arm64/rockchip/rk3399-pinebook-pro.dtb share/dtb/arm64/rockchip/rk3399-rockpro64*dtb /mnt/sd1/
umount /mnt/sd1
mdconfig -du 10

# $DEV is mmcsd0 or da0 or something which represents uSD card
dd if=./install70.img of=/dev/$DEV bs=512k conv=sync status=progress
dd if=./share/u-boot/rockpro64-rk3399/idbloader.img of=/dev/$DEV bs=512 seek=64 conv=sync
dd if=./share/u-boot/rockpro64-rk3399/u-boot.itb of=/dev/$DEV bs=512 seek=16384 conv=sync
Then put SD card in ARM SBC, connect UART console (OpenBSD's u-boot is 115200 unlike vanilla which is 15000), power on board and install OpenBSD



Install logs:
Code:
cu -s 115200 -l /dev/cuaU0

U-Boot SPL 2021.07 (Aug 12 2021 - 02:28:31 -0600)
Trying to boot from MMC2
NOTICE:  BL31: v2.5(debug):2.5
NOTICE:  BL31: Built : 00:48:40, Aug 12 2021
INFO:    GICv3 with legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    Maximum SPI INTID supported: 287
INFO:    plat_rockchip_pmu_init(1624): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
WARNING: BL31: cortex_a53: CPU workaround for 1530924 was missing!
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2021.07 (Aug 12 2021 - 02:28:31 -0600)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 RockPro64 v2.1
DRAM:  3.9 GiB
PMIC:  RK808
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ef, 40, 18
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 RockPro64 v2.1
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0(part 0) is current device
** No partition table - mmc 0 **
Couldn't find partition mmc 0:1
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
Scanning disk mmc@fe310000.blk...
Disk mmc@fe310000.blk not ready
Scanning disk mmc@fe320000.blk...
** Unrecognized filesystem type **
Scanning disk sdhci@fe330000.blk...
** Unrecognized filesystem type **
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
170694 bytes read in 23 ms (7.1 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
>> OpenBSD/arm64 BOOTAA64 1.6
boot> boot sd0a:/bsd
cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: 2559872+696684+13013192+629784 [215313+109+593976+232175]=0x1401550
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x4200000 pages 0x3eed attr 0x8
type 0x9 pa 0x80ed000 va 0x80ed000 pages 0x26 attr 0x8
type 0x7 pa 0x8113000 va 0x8113000 pages 0xe8cc9 attr 0x8
type 0x4 pa 0xf0ddc000 va 0xf0ddc000 pages 0x1 attr 0x8
type 0x7 pa 0xf0ddd000 va 0xf0ddd000 pages 0x1 attr 0x8
type 0x2 pa 0xf0dde000 va 0xf0dde000 pages 0x100 attr 0x8
type 0x1 pa 0xf0ede000 va 0xf0ede000 pages 0x2a attr 0x8
type 0x0 pa 0xf0f08000 va 0xf0f08000 pages 0x7 attr 0x8
type 0x4 pa 0xf0f0f000 va 0xf0f0f000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f10000 va 0x27fd05b000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0xf0f11000 va 0xf0f11000 pages 0x2 attr 0x8
type 0x0 pa 0xf0f13000 va 0xf0f13000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f14000 va 0x27fd05f000 pages 0x3 attr 0x8000000000000008
type 0x4 pa 0xf0f17000 va 0xf0f17000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f18000 va 0x27fd063000 pages 0x4 attr 0x8000000000000008
type 0x4 pa 0xf0f1c000 va 0xf0f1c000 pages 0x1 attr 0x8
type 0x0 pa 0xf0f1d000 va 0xf0f1d000 pages 0x2 attr 0x8
type 0x4 pa 0xf0f1f000 va 0xf0f1f000 pages 0x1 attr 0x8
type 0x0 pa 0xf0f20000 va 0xf0f20000 pages 0x1 attr 0x8
type 0x4 pa 0xf0f21000 va 0xf0f21000 pages 0x2 attr 0x8
type 0x0 pa 0xf0f23000 va 0xf0f23000 pages 0x1 attr 0x8
type 0x4 pa 0xf0f24000 va 0xf0f24000 pages 0x2 attr 0x8
type 0x2 pa 0xf0f26000 va 0xf0f26000 pages 0x300a attr 0x8
type 0x5 pa 0xf3f30000 va 0x280007b000 pages 0x10 attr 0x8000000000000008
type 0x2 pa 0xf3f40000 va 0xf3f40000 pages 0x20c0 attr 0x8
type 0x0 pa 0xf6000000 va 0xf6000000 pages 0x1fa4 attr 0x8
type 0x2 pa 0xf7fa4000 va 0xf7fa4000 pages 0x5c attr 0x8
Copyright (c) 1982, 1986, 1989, 1991, 1993
		The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2021 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.0-beta (RAMDISK) #1220: Tue Aug 24 02:30:05 MDT 2021
	deraadt@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 4038811648 (3851MB)
avail mem = 3835179008 (3657MB)
random: good seed from bootblocks
mainbus0 at root: Pine64 RockPro64 v2.1
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210700
agintc0 at mainbus0 sec shift 3:3 nirq 288 nredist 6: "interrupt-controller"
agintcmsi0 at agintc0
syscon0 at mainbus0: "qos"
syscon1 at mainbus0: "qos"
syscon2 at mainbus0: "qos"
syscon3 at mainbus0: "qos"
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "power-management"
"power-controller" at syscon25 not configured
syscon26 at mainbus0: "syscon"
"io-domains" at syscon26 not configured
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon27 at mainbus0: "syscon"
"io-domains" at syscon27 not configured
"usb2-phy" at syscon27 not configured
"usb2-phy" at syscon27 not configured
rkemmcphy0 at syscon27
"pcie-phy" at syscon27 not configured
rktcphy0 at mainbus0
rktcphy1 at mainbus0
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
syscon28 at mainbus0: "syscon"
syscon29 at mainbus0: "syscon"
"fit-images" at mainbus0 not configured
"display-subsystem" at mainbus0 not configured
"pmu_a53" at mainbus0 not configured
"pmu_a72" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
simplebus0 at mainbus0: "bus"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
rkpcie0 at mainbus0
pci0 at rkpcie0
ppb0 at pci0 dev 0 function 0 "Rockchip RK3399 Root Complex" rev 0x00: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 "Samsung SM961/PM961 NVMe" rev 0x00: msix, NVMe 1.2
nvme0: SAMSUNG MZVPW256HEGL-000H7, firmware CXZ74H6Q, serial S34WNY0HA03325
scsibus0 at nvme0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <NVMe, SAMSUNG MZVPW256, CXZ7>
sd0: 244198MB, 512 bytes/sector, 500118192 sectors
dwge0 at mainbus0: rev 0x35, address 8a:a2:c8:9d:6d:f1
rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, dma
dwmmc1 at mainbus0: 50 MHz base clock
sdmmc1 at dwmmc1: 4-bit, sd high-speed, dma
sdhc0 at mainbus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc2 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
ehci0 at mainbus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci0 at mainbus0: version 1.0
ehci1 at mainbus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at mainbus0: version 1.0
rkdwusb0 at mainbus0: "usb"
xhci0 at rkdwusb0, xHCI 1.10
usb2 at xhci0: USB revision 3.0
uhub2 at usb2 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1
rkdwusb1 at mainbus0: "usb"
xhci1 at rkdwusb1, xHCI 1.10
usb3 at xhci1: USB revision 3.0
uhub3 at usb3 configuration 1 interface 0 "Generic xHCI root hub" rev 3.00/1.00 addr 1
"saradc" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
"everest,es8316" at iic0 addr 0x11 not configured
rkiic1 at mainbus0
iic1 at rkiic1
com0 at mainbus0: ns16550, no working fifo
com1 at mainbus0: ns16550, no working fifo
com1: console
"spi" at mainbus0 not configured
"tsadc" at mainbus0 not configured
rkiic2 at mainbus0
iic2 at rkiic2
rkpmic0 at iic2 addr 0x1b: RK808
"silergy,syr827" at iic2 addr 0x40 not configured
"silergy,syr828" at iic2 addr 0x41 not configured
rkiic3 at mainbus0
iic3 at rkiic3
fusbtc0 at iic3 addr 0x22
rkpwm0 at mainbus0
rkpwm1 at mainbus0
rkpwm2 at mainbus0
"video-codec" at mainbus0 not configured
"iommu" at mainbus0 not configured
"rga" at mainbus0 not configured
"efuse" at mainbus0 not configured
"watchdog" at mainbus0 not configured
"rktimer" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"i2s" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"vop" at mainbus0 not configured
"iommu" at mainbus0 not configured
"iommu" at mainbus0 not configured
"iommu" at mainbus0 not configured
"hdmi-sound" at mainbus0 not configured
"hdmi" at mainbus0 not configured
"gpu" at mainbus0 not configured
"opp-table0" at mainbus0 not configured
"opp-table1" at mainbus0 not configured
"opp-table2" at mainbus0 not configured
"external-gmac-clock" at mainbus0 not configured
"gpio-keys" at mainbus0 not configured
"leds" at mainbus0 not configured
pwmfan0 at mainbus0
"sdio-pwrseq" at mainbus0 not configured
"sound" at mainbus0 not configured
"vcc12v-dcin" at mainbus0 not configured
"vcc1v8-s3" at mainbus0 not configured
"vcc3v3-pcie-regulator" at mainbus0 not configured
"vcc3v3-sys" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-typec-regulator" at mainbus0 not configured
"vcc5v0-sys" at mainbus0 not configured
"vcc5v0-usb" at mainbus0 not configured
"vdd-log" at mainbus0 not configured
"binman" at mainbus0 not configured
"dfi" at mainbus0 not configured
rkrng0 at mainbus0
"dmc" at mainbus0 not configured
"config" at mainbus0 not configured
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0x4359 at sdmmc0 function 2 not configured
manufacturer 0x02d0, product 0x4359 at sdmmc0 function 3 not configured
scsibus1 at sdmmc1: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SU01G, 0080> removable
sd1: 942MB, 512 bytes/sector, 1930240 sectors
scsibus2 at sdmmc2: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: <Samsung, AJTD4R, 0000> removable
sd2: 14910MB, 512 bytes/sector, 30535680 sectors
uhub6 at uhub3 port 1 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" rev 2.10/0.50 addr 2
urtwn0 at uhub6 port 2 configuration 1 interface 0 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 3
urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R, address 00:0f:00:30:33:1d
uhidev0 at uhub6 port 3 configuration 1 interface 0 "HOLDCHIP USB Keyboard" rev 1.10/1.02 addr 4
uhidev0: iclass 3/1
ukbd0 at uhidev0
wskbd0 at ukbd0
uhidev1 at uhub6 port 3 configuration 1 interface 1 "HOLDCHIP USB Keyboard" rev 1.10/1.02 addr 4
uhidev1: iclass 3/0, 4 report ids
uhid at uhidev1 reportid 1 not configured
uhid at uhidev1 reportid 2 not configured
ukbd1 at uhidev1 reportid 4: no usable key codes array
uhub7 at uhub3 port 2 configuration 1 interface 0 "VIA Labs, Inc. USB3.0 Hub" rev 3.10/0.50 addr 5
uhub4: device problem, disabling port 1
softraid0 at root
scsibus3 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
WARNING: bad clock chip time
WARNING: CHECK AND RESET THE DATE!
bwfm0: failed loadfirmware of file brcmfmac4359-sdio.pine64,rockpro64-v2.1.bin
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/arm64 7.0 installation program.
WARNING: /media/da0s4 was not properly unmounted
(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') openmiki

Available network interfaces are: dwge0 bwfm0 urtwn0 vlan0.
Which network interface do you wish to configure? (or 'done') [dwge0] done
DNS domain name? (e.g. 'example.com') [my.domain]
DNS nameservers? (IP address list or 'none') [none]

Password for root account? (will not echo)
Password for root account? (again)
Start sshd(8) by default? [yes] no
Setup a user? (enter a lower-case loginname, or 'no') [no]

Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0] ?
sd0: NVMe, SAMSUNG MZVPW256, CXZ7  (238.5G)
sd1: SD/MMC, SU01G, 0080  (0.9G)
sd2: Samsung, AJTD4R, 0000
Available disks are: sd0 sd1 sd2.
Which disk is the root disk? ('?' for details) [sd0] sd0
Disk: sd0       Usable LBA: 2048 to 500118158 [500118192 Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: EFI Sys                              [        2048:       262144 ]
   1: Linux files*                         [      264192:    104857600 ]
   2: FAT12                                [   105121792:       131072 ]
   3: Linux files*                         [   209979392:    290138760 ]
   4: OpenBSD                              [   105252864:    104726528 ]
Use (W)hole disk or (E)dit the GPT? [whole] e

You will now create two GPT partitions. The first must have an id
of 'EF' and be large enough to contain the OpenBSD boot programs,
at least 32768 blocks. The second must have an id of 'A6' and will
contain your OpenBSD data. Neither may overlap other partitions.
Inside the fdisk command, the 'manual' command describes the fdisk
commands in detail.

Disk: sd0       Usable LBA: 2048 to 500118158 [500118192 Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: EFI Sys                              [        2048:       262144 ]
   1: Linux files*                         [      264192:    104857600 ]
   2: FAT12                                [   105121792:       131072 ]
   3: Linux files*                         [   209979392:    290138760 ]
   4: OpenBSD                              [   105252864:    104726528 ]
Enter 'help' for information
sd0: 1> w
Writing GPT.
sd0: 1> q
The auto-allocated layout for sd0 is:
#                size           offset  fstype [fsize bsize   cpg]
  a:          1024.0M        105252864  4.2BSD   2048 16384     1 # /
  b:          4107.7M        107350016    swap
  c:        244198.3M                0  unused
  d:          3348.3M        115762624  4.2BSD   2048 16384     1 # /tmp
  e:          5326.0M        122619936  4.2BSD   2048 16384     1 # /var
  f:          5535.4M        133527584  4.2BSD   2048 16384     1 # /usr
  g:          1024.0M        144864064  4.2BSD   2048 16384     1 # /usr/X11R6
  h:          7077.1M        146961216  4.2BSD   2048 16384     1 # /usr/local
  i:           128.0M             2048   MSDOS
  j:         51200.0M           264192  ext2fs
  k:            64.0M        105121792   MSDOS
  l:        141669.3M        209979392  ext2fs
  m:          2048.0M        161455072  4.2BSD   2048 16384     1 # /usr/src
  n:          6144.0M        165649376  4.2BSD   2048 16384     1 # /usr/obj
  o:         15501.5M        178232288  4.2BSD   2048 16384     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
/dev/rsd0o: 15501.5MB in 31747104 sectors of 512 bytes
77 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0d: 3348.3MB in 6857312 sectors of 512 bytes
17 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0f: 5535.4MB in 11336480 sectors of 512 bytes
28 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0g: 1024.0MB in 2097152 sectors of 512 bytes
6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0h: 7077.1MB in 14493856 sectors of 512 bytes
35 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0n: 6144.0MB in 12582912 sectors of 512 bytes
31 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0m: 2048.0MB in 4194304 sectors of 512 bytes
11 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
/dev/rsd0e: 5326.0MB in 10907648 sectors of 512 bytes
27 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each
Available disks are: sd1 sd2.
Which disk do you wish to initialize? (or 'done') [done]
/dev/sd0a (b6adc1751f272d94.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd0o (b6adc1751f272d94.o) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0d (b6adc1751f272d94.d) on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0f (b6adc1751f272d94.f) on /mnt/usr type ffs (rw, asynchronous, local, nodev)
/dev/sd0g (b6adc1751f272d94.g) on /mnt/usr/X11R6 type ffs (rw, asynchronous, local, nodev)
/dev/sd0h (b6adc1751f272d94.h) on /mnt/usr/local type ffs (rw, asynchronous, local, nodev)
/dev/sd0n (b6adc1751f272d94.n) on /mnt/usr/obj type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0m (b6adc1751f272d94.m) on /mnt/usr/src type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0e (b6adc1751f272d94.e) on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid)

Let's install the sets!
Location of sets? (disk http nfs or 'done') [http]
HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
(Unable to get list from ftp.openbsd.org, but that is OK)
HTTP Server? (hostname or 'done')
A response is required.
HTTP Server? (hostname or 'done') ftp.openbsd.org
Server directory? [pub/OpenBSD/snapshots/arm64]
Unable to connect using https. Use http instead? [no] yes

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.
	[X] bsd           [X] base70.tgz    [X] game70.tgz    [X] xfont70.tgz
	[X] bsd.mp        [X] comp70.tgz    [X] xbase70.tgz   [X] xserv70.tgz
	[X] bsd.rd        [X] man70.tgz     [X] xshare70.tgz
Set name(s)? (or 'abort' or 'done') [done]
Get/Verify SHA256.sig   100% |**************************|  1544       00:00
Signature Verified
Get/Verify bsd          100% |**************************| 13715 KB    00:30
Get/Verify bsd.mp       100% |**************************| 13780 KB    00:11
Get/Verify bsd.rd       100% |**************************| 17118 KB    00:34
Get/Verify base70.tgz   100% |**************************|   227 MB    05:05
Get/Verify comp70.tgz   100% |**************************| 67667 KB    01:18
Get/Verify man70.tgz    100% |**************************|  7565 KB    00:15
Get/Verify game70.tgz   100% |**************************|  2677 KB    00:07
Get/Verify xbase70.tgz  100% |**************************| 49032 KB    01:41
Get/Verify xshare70.tgz 100% |**************************|  4505 KB    00:14
Get/Verify xfont70.tgz  100% |**************************| 39344 KB    00:59
Get/Verify xserv70.tgz  100% |**************************| 12346 KB    00:10
Installing bsd          100% |**************************| 13715 KB    00:00
Installing bsd.mp       100% |**************************| 13780 KB    00:00
Installing bsd.rd       100% |**************************| 17118 KB    00:00
Installing base70.tgz   100% |**************************|   227 MB    00:50
Extracting etc.tgz      100% |**************************|   247 KB    00:00
Installing comp70.tgz   100% |**************************| 67667 KB    00:21
Installing man70.tgz    100% |**************************|  7565 KB    00:03
Installing game70.tgz   100% |**************************|  2677 KB    00:00
Installing xbase70.tgz  100% |**************************| 49032 KB    00:14
Extracting xetc.tgz     100% |**************************|  7101       00:00
Installing xshare70.tgz 100% |**************************|  4505 KB    00:03
Installing xfont70.tgz  100% |**************************| 39344 KB    00:09
Installing xserv70.tgz  100% |**************************| 12346 KB    00:03
Location of sets? (disk http nfs or 'done') [done]

What timezone are you in? ('?' for list) [Canada/Mountain] Europe/Zagreb
Saving configuration files... done.
Making all device nodes... done.
Multiprocessor machine; using bsd.mp instead of bsd.
Relinking to create unique kernel...  done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!

When you login to your new system the first time, please read your mail
using the 'mail' command.

Exit to (S)hell, (H)alt or (R)eboot? [reboot] r
syncing disks... done
rebooting...
It even boots (and sysupgrade-s) with my custom u-boot and dtb

Now onto finding ways how to enable eDP console and colored man pages
Reply With Quote
Reply

Tags
arm64, emmc, gpt, nvme, openbsd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NVMe speed Mako_Elite OpenBSD General 14 19th August 2020 05:33 PM
Installing OpenBSD to eMMC shep OpenBSD Installation and Upgrading 12 25th December 2019 01:58 AM
Install image to which USB partition? sacerdos_daemonis OpenBSD Installation and Upgrading 3 27th October 2019 11:11 PM
Install OpenBSD in more than one disk partition? betweendayandnight OpenBSD Installation and Upgrading 6 17th July 2015 05:51 PM
Preserving existing OpenBSD partition layout during a re-install J65nko Guides 3 17th February 2010 03:55 AM


All times are GMT. The time now is 06:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick