Samsung Galaxy Book4 Edge - OpenBSD
Hardware info on main page.
sd0 - KIOXIA THGJFJT2T85BAT0A - WoA
sd1 - Kingston XS2000, 1TB - OpenBSD
keys: F2 - BIOS, F10 - boot menu,
Links
Work log
2025-03-01: sda1 - try to mount the EFI partition, which should be sd1i (for india) in this case
b4e# mount /dev/sd1i /mnt
check
b4e# mount /dev/sd1a on / type ffs (local) /dev/sd1l on /home type ffs (local, nodev, nosuid) /dev/sd1d on /tmp type ffs (local, nodev, nosuid) /dev/sd1f on /usr type ffs (local, nodev) /dev/sd1g on /usr/X11R6 type ffs (local, nodev) /dev/sd1h on /usr/local type ffs (local, nodev, wxallowed) /dev/sd1k on /usr/obj type ffs (local, nodev, nosuid) /dev/sd1j on /usr/src type ffs (local, nodev, nosuid) /dev/sd1e on /var type ffs (local, nodev, nosuid) /dev/sd1i on /mnt type msdos (local)
list contents
b4e# ls -la /mnt total 68 drwxr-xr-x 1 root wheel 16384 Jan 1 1980 . drwxr-xr-x 13 root wheel 512 Mar 1 15:40 .. drwxr-xr-x 1 root wheel 8192 Feb 25 21:44 System Volume Information drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 efi b4e# ls -la /mnt/efi total 80 drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 . drwxr-xr-x 1 root wheel 16384 Jan 1 1980 .. drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 boot drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 openbsd b4e# ls -la /mnt/efi/boot/ total 512 drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 . drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 .. -rw-r--r-- 1 root wheel 233644 Feb 24 22:40 bootaa64.efi -rw-r--r-- 1 root wheel 13 Feb 24 22:40 startup.nsh b4e# ls -la /mnt/efi/openbsd/ total 496 drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 . drwxr-xr-x 1 root wheel 8192 Feb 24 22:40 .. -rw-r--r-- 1 root wheel 233644 Feb 24 22:40 bootaa64.efi
no strangeness there. unmount
b4e# umount /mnt
2025-03-01: sda1 - fdisk info
b4e# fdisk sd1 Disk: sd1 geometry: 124519/255/63 [2000409264 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- *0: 0C 2 10 9 - 35 47 12 [ 32768: 532480 ] 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 35 47 13 - 124519 182 63 [ 565248: 1999844016 ] OpenBSD
fdisk -v info
b4e# fdisk -v sd1 Primary GPT: Not Found Secondary GPT: Not Found MBR: Disk: sd1 geometry: 124519/255/63 [2000409264 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- *0: 0C 2 10 9 - 35 47 12 [ 32768: 532480 ] 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 35 47 13 - 124519 182 63 [ 565248: 1999844016 ] OpenBSD
interesting, MBR, not GPT format.
2025-02-25: sda1 - Xorg - startx
works, and I get a very basic X config, but the resolution looks right. The log file '/home/tingo/.local/share/xorg/Xorg.0.log' shows
X.Org X Server 1.21.1.15 X Protocol Version 11, Revision 0 [ 4978.526] Current Operating System: OpenBSD b4e.local 7.6 GENERIC.MP#315 arm64 [ 4978.527] [ 4978.529] Current version of pixman: 0.42.2 [ 4978.531] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 4978.531] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 4978.537] (==) Log file: "/home/tingo/.local/share/xorg/Xorg.0.log", Time: Tue Feb 25 22:23:02 2025 [ 4978.542] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d" [ 4978.544] (==) No Layout section. Using the first Screen section. [ 4978.544] (==) No screen section available. Using defaults. [ 4978.544] (**) |-->Screen "Default Screen Section" (0) [ 4978.544] (**) | |-->Monitor "<default monitor>" [ 4978.546] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 4978.546] (**) Allowing byte-swapped clients [ 4978.546] (==) Automatically adding devices [ 4978.546] (==) Automatically enabling devices [ 4978.546] (==) Not automatically adding GPU devices [ 4978.546] (==) Automatically binding GPU devices [ 4978.547] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 4978.554] (==) FontPath set to: /usr/X11R6/lib/X11/fonts/misc/, /usr/X11R6/lib/X11/fonts/TTF/, /usr/X11R6/lib/X11/fonts/OTF/, /usr/X11R6/lib/X11/fonts/Type1/, /usr/X11R6/lib/X11/fonts/100dpi/, /usr/X11R6/lib/X11/fonts/75dpi/ [ 4978.554] (==) ModulePath set to "/usr/X11R6/lib/modules" [ 4978.554] (II) The server relies on wscons to provide the list of input devices. If no devices become available, reconfigure wscons or disable AutoAddDevices. [ 4978.555] (II) Loader magic: 0x90fe82e78 [ 4978.555] (II) Module ABI versions: [ 4978.555] X.Org ANSI C Emulation: 0.4 [ 4978.555] X.Org Video Driver: 25.2 [ 4978.555] X.Org XInput driver : 24.4 [ 4978.555] X.Org Server Extension : 10.0 [ 4978.556] (--) Using wscons driver on /dev/ttyC4 [ 4978.558] (II) LoadModule: "glx" [ 4978.561] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so [ 4978.600] (II) Module glx: vendor="X.Org Foundation" [ 4978.600] compiled for 1.21.1.15, module version = 1.0.0 [ 4978.600] ABI class: X.Org Server Extension, version 10.0 [ 4978.601] (==) Matched wsfb as autoconfigured driver 0 [ 4978.601] (==) Assigned the driver to the xf86ConfigLayout [ 4978.601] (II) LoadModule: "wsfb" [ 4978.601] (II) Loading /usr/X11R6/lib/modules/drivers/wsfb_drv.so [ 4978.603] (II) Module wsfb: vendor="X.Org Foundation" [ 4978.603] compiled for 1.21.1.15, module version = 0.4.1 [ 4978.603] ABI class: X.Org Video Driver, version 25.2 [ 4978.603] (II) wsfb: driver for wsdisplay framebuffer: wsfb [ 4978.603] (WW) Falling back to old probe method for wsfb [ 4978.603] (II) wsfb(0): using default device [ 4978.603] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 4978.603] (II) wsfb(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 4978.603] (==) wsfb(0): Depth 24, (--) framebuffer bpp 32 [ 4978.603] (==) wsfb(0): RGB weight 888 [ 4978.603] (==) wsfb(0): Default visual is TrueColor [ 4978.603] (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0) [ 4978.603] (II) wsfb(0): Vidmem: 20250k [ 4978.603] (==) wsfb(0): DPI set to (96, 96) [ 4978.603] (**) wsfb(0): Using "Shadow Framebuffer" [ 4978.603] (II) Loading sub module "shadow" [ 4978.603] (II) LoadModule: "shadow" [ 4978.605] (II) Loading /usr/X11R6/lib/modules/libshadow.so [ 4978.606] (II) Module shadow: vendor="X.Org Foundation" [ 4978.606] compiled for 1.21.1.15, module version = 1.1.0 [ 4978.606] ABI class: X.Org ANSI C Emulation, version 0.4 [ 4978.606] (II) Loading sub module "fb" [ 4978.606] (II) LoadModule: "fb" [ 4978.606] (II) Module "fb" already built-in [ 4978.613] (==) wsfb(0): Backing store enabled [ 4978.620] (II) Initializing extension Generic Event Extension [ 4978.621] (II) Initializing extension SHAPE [ 4978.621] (II) Initializing extension MIT-SHM [ 4978.622] (II) Initializing extension XInputExtension [ 4978.623] (II) Initializing extension XTEST [ 4978.623] (II) Initializing extension BIG-REQUESTS [ 4978.624] (II) Initializing extension SYNC [ 4978.625] (II) Initializing extension XKEYBOARD [ 4978.626] (II) Initializing extension XC-MISC [ 4978.627] (II) Initializing extension SECURITY [ 4978.627] (II) Initializing extension XFIXES [ 4978.628] (II) Initializing extension RENDER [ 4978.628] (II) Initializing extension RANDR [ 4978.629] (II) Initializing extension COMPOSITE [ 4978.631] (II) Initializing extension DAMAGE [ 4978.631] (II) Initializing extension MIT-SCREEN-SAVER [ 4978.632] (II) Initializing extension DOUBLE-BUFFER [ 4978.634] (II) Initializing extension RECORD [ 4978.634] (II) Initializing extension DPMS [ 4978.634] (II) Initializing extension Present [ 4978.634] (II) Initializing extension DRI3 [ 4978.635] (II) Initializing extension X-Resource [ 4978.635] (II) Initializing extension XVideo [ 4978.636] (II) Initializing extension XVideo-MotionCompensation [ 4978.636] (II) Initializing extension GLX [ 4978.637] (II) AIGLX: Screen 0 is not DRI2 capable [ 4978.770] (II) IGLX: Loaded and initialized swrast [ 4978.770] (II) GLX: Initialized DRISWRAST GL provider for screen 0 [ 4978.770] (II) Initializing extension XFree86-VidModeExtension [ 4978.770] (II) Initializing extension XFree86-DGA [ 4978.771] (II) Initializing extension XFree86-DRI [ 4978.771] (II) Initializing extension DRI2 [ 4978.908] (II) config/wscons: checking input device /dev/wskbd [ 4978.908] (II) wskbd: using layout no [ 4978.908] (II) LoadModule: "kbd" [ 4978.908] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so [ 4978.910] (II) Module kbd: vendor="X.Org Foundation" [ 4978.910] compiled for 1.21.1.15, module version = 2.0.0 [ 4978.910] Module class: X.Org XInput Driver [ 4978.910] ABI class: X.Org XInput driver, version 24.4 [ 4978.910] (II) Using input driver 'kbd' for '/dev/wskbd' [ 4978.910] (**) /dev/wskbd: always reports core events [ 4978.910] (**) /dev/wskbd: always reports core events [ 4978.910] (**) Option "Protocol" "standard" [ 4978.910] (**) Option "XkbRules" "base" [ 4978.910] (**) Option "XkbModel" "pc105" [ 4978.910] (**) Option "XkbLayout" "no" [ 4978.910] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6) [ 4979.041] (II) config/wscons: checking input device /dev/wsmouse0 [ 4979.041] (II) LoadModule: "ws" [ 4979.041] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so [ 4979.042] (II) Module ws: vendor="X.Org Foundation" [ 4979.042] compiled for 1.21.1.15, module version = 1.3.0 [ 4979.042] Module class: X.Org XInput Driver [ 4979.042] ABI class: X.Org XInput driver, version 24.4 [ 4979.042] (II) Using input driver 'ws' for '/dev/wsmouse0' [ 4979.042] (**) /dev/wsmouse0: always reports core events [ 4979.042] (II) ws: /dev/wsmouse0: debuglevel 0 [ 4979.042] (**) Option "Device" "/dev/wsmouse0" [ 4979.042] (**) ws: /dev/wsmouse0: ZAxisMapping: buttons 4 and 5 [ 4979.042] (**) ws: /dev/wsmouse0: WAxisMapping: buttons 6 and 7 [ 4979.043] (**) ws: /dev/wsmouse0: associated screen: 0 [ 4979.150] (**) ws: /dev/wsmouse0: device will work in raw mode [ 4979.150] (II) ws: /dev/wsmouse0: minimum x position: 0 [ 4979.150] (II) ws: /dev/wsmouse0: maximum x position: 28800 [ 4979.150] (II) ws: /dev/wsmouse0: minimum y position: 0 [ 4979.150] (II) ws: /dev/wsmouse0: maximum y position: 18000 [ 4979.150] (==) ws: /dev/wsmouse0: Buttons: 7 [ 4979.150] (**) ws: /dev/wsmouse0: YAxisMapping: buttons 4 and 5 [ 4979.150] (II) XINPUT: Adding extended input device "/dev/wsmouse0" (type: TOUCHSCREEN, id 7) [ 4979.260] (**) /dev/wsmouse0: (accel) keeping acceleration scheme 1 [ 4979.260] (**) /dev/wsmouse0: (accel) acceleration profile 0 [ 4979.260] (**) /dev/wsmouse0: (accel) acceleration factor: 2.000 [ 4979.260] (**) /dev/wsmouse0: (accel) acceleration threshold: 4 [ 4979.260] (II) config/wscons: checking input device /dev/wsmouse [ 4979.260] (II) Using input driver 'ws' for '/dev/wsmouse' [ 4979.260] (**) /dev/wsmouse: always reports core events [ 4979.260] (II) ws: /dev/wsmouse: debuglevel 0 [ 4979.260] (**) Option "Device" "/dev/wsmouse" [ 4979.260] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5 [ 4979.260] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7 [ 4979.260] (**) ws: /dev/wsmouse: associated screen: 0 [ 4979.370] (II) ws: /dev/wsmouse: minimum x position: 0 [ 4979.370] (II) ws: /dev/wsmouse: maximum x position: 2879 [ 4979.370] (II) ws: /dev/wsmouse: minimum y position: 0 [ 4979.370] (II) ws: /dev/wsmouse: maximum y position: 1799 [ 4979.370] (==) ws: /dev/wsmouse: Buttons: 7 [ 4979.370] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5 [ 4979.370] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 8) [ 4979.480] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1 [ 4979.480] (**) /dev/wsmouse: (accel) acceleration profile 0 [ 4979.480] (**) /dev/wsmouse: (accel) acceleration factor: 2.000 [ 4979.480] (**) /dev/wsmouse: (accel) acceleration threshold: 4 [ 5037.044] (II) UnloadModule: "ws" [ 5037.045] (II) UnloadModule: "ws" [ 5037.045] (II) UnloadModule: "kbd" [ 5037.084] (II) Server terminated successfully (0). Closing log file.
2025-02-25: sda1 - sysctl hw info
b4e# sysctl hw hw.machine=arm64 hw.model=Qualcomm Oryon r2p1 hw.ncpu=12 hw.byteorder=1234 hw.pagesize=4096 hw.disknames=sd0:,sd1:4da0076d5ee83ddc hw.diskcount=2 hw.sensors.acpiac0.indicator0=Off (power supply) hw.sensors.acpibtn0.indicator0=On (lid open) hw.vendor=SAMSUNG ELECTRONICS CO., LTD. hw.product=Galaxy Book4 Edge hw.version=2.1 hw.serialno=6RW69FFX700089T hw.uuid=7b260098-9e7d-3833-4a4e-3847300095cb hw.physmem=16709292032 hw.usermem=16709287936 hw.ncpufound=12 hw.allowpowerdown=1 hw.smt=0 hw.ncpuonline=12 hw.power=0 hw.ucomnames=ucom0:usb0.1.00003.2
2025-02-25: sda1 - uname info
b4e# uname -a OpenBSD b4e.local 7.6 GENERIC.MP#315 arm64
2025-02-25: sda1 - network, for now I use a usb Ethernet dongle, which show up as ure0. Manual setup
ifconfig ure0 inet autoconfig
and I get an ip address. For automatic setup, I created /etc/hostname.ure0 and added
b4e# cat /etc/hostname.ure0 inet autoconf
to it.
2025-02-25: sda1 - info from fw_update
b4e# fw_update -l arm64-qcom-dtb
do a dry run
b4e# fw_update -n fw_update: add arm64-qcom-dtb; update none
do it
b4e# fw_update fw_update: add arm64-qcom-dtb; update none
or not.
2025-02-25: I created this page.
2025-02-25: sd1a - disk info from dmesg
b4e# dmesg | grep ^sd sd0 at scsibus0 targ 1 lun 0: <KIOXIA, THGJFJT2T85BAT0A, 0002> sd0: 488152MB, 4096 bytes/sector, 124966912 sectors sd1 at scsibus1 targ 1 lun 0: <Kingston, XS2000, > serial.0951176b6B728373DC80 sd1: 976762MB, 512 bytes/sector, 2000409264 sectors
swap devices
b4e# swapctl -l Device 512-blocks Used Avail Capacity Priority /dev/sd1b 33159640 0 33159640 0% 0
disk layout
b4e# df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd1a 986M 100M 836M 11% / /dev/sd1l 295G 36.0K 281G 1% /home /dev/sd1d 3.9G 10.0K 3.7G 1% /tmp /dev/sd1f 29.1G 1.2G 26.4G 5% /usr /dev/sd1g 986M 280M 657M 30% /usr/X11R6 /dev/sd1h 19.4G 146K 18.4G 1% /usr/local /dev/sd1k 5.8G 2.0K 5.5G 1% /usr/obj /dev/sd1j 4.8G 2.0K 4.6G 1% /usr/src /dev/sd1e 34.0G 7.6M 32.3G 1% /var
2025-02-25: I connected up a Kingston XS2000 1TB SSD to one usb-C port on the left side, and a usb hub to get USB A ports. I plugged in a usb stick with a snapshot (2025-02-24) of install76.img on. I turmed off Secure Boot in BIOS, then booted and installed OpenBSD.