pinebook status update (20241018)

Jun Ebihara <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <CACntkki5CUO8EbMoeXbRnXX=u7QkX97eL+qJBbsorF7JdRf2Dw@mail.gmail.com>
NetBSD Arm Bootable Images: NetBSD9/NetBSD10/NetBSD-current
 https://www.armbsd.org

Problems:
- pinebook:
  Using audio interface,rebooting.
  PR port-arm/57111

- Pinebook Pro graphics noticeably slower since DRM update
  fixed: PR port-arm/56596
  http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56596

- gimp with -python option: don't depends on python27 packages
- seamonkey 2.53.10 can't start
- gnucash build failed
- USB Audio 2.0 Support
  http://mail-index.netbsd.org/current-users/2022/06/03/msg042467.html
  https://raw.githubusercontent.com/openbsd/src/master/sys/dev/usb/uaudio.c

Topics:
- Tow-Boot on Pinebook Pro
  https://tow-boot.org/devices/pine64-pinebookPro.html
  need more testing on NetBSD.

- Pinebook GPU
 "I think I am making a bit of progress with the DRM driver
  for the Pinebook."
  http://mail-index.netbsd.org/port-arm/2022/05/12/msg007650.html

- pkgsrc update as after 2022Q1.
  firefox 98.0.2 and libreoffice 7.3.1.3
  https://twitter.com/ebijun/status/1513773516402790403

- graphical mixer for NetBSD audio.

on pinebook:
 Select a mixer device:
 [*] /dev/mixer0: sun50i-a64-audi  ausoc
 [ ] /dev/mixer1: hdmi-audio  ausoc

on pinebook pro:
XXX: [inputs] tab controls audio output level.
 https://twitter.com/ebijun/status/1395184397599469568

- Audio CD with wavpack
Encode:
 On Windows: Exact Audio Copy & foobar2000
 On pkgsrc:
 1. pkg_add abcde; pkg_add glyr
    abcde -d /dev/rcd0a -B -o wav -1 -a default,cue
    -> wav,cue,jpg file created.
 2. pkg_add wavpack
    wavpack -h .wav --write-binary-tag "Cover Art (Front)[email protected]" -w
"[email protected]"
    -> wv file created.

Play:
  qmmp: can play wavpack file with cue. How can I show Cover Art?
   Setting->Output->OSS plugin(liboss.so)

- audio0 input issue
  http://mail-index.netbsd.org/port-arm/2021/02/22/msg007185.html
  "Is audio input from the inbuilt microphone(s) working?  I get "read failed:
  Resource temporarily unavailable" from audiorecord"
  audio0(ausoc1): trigger_input failed: errno=5
  audio0(audoc1): device timeout

pkgsrc:
- works : inkscape,scribus,seamonkey,minitube,mikutter,xournalpp,libreoffice

- firefox 90.0 and libreoffce 7.1.4.2 on NetBSD 9.99.85/aarch64 on pinebook.

 zoom meeting with firefox on NetBSD/aarch64 on pinebook pro
  with UserAgent switcher addon as Linux.
 Send: Share Screen,camera/USB Camera
 Problem: Can"t show others screen/in-camera.

- pkgin support
 make pkg_summary. and pkgin works.
 cd /usr/pkgsrc/packages/All
 find . -name '*.tgz' -exec pkg_info -X {} \; > pkg_summary
 gzip -f pkg_summary

 pkgsrc packages:
 http://cdn.netbsd.org/pub/NetBSD/misc/jun/aarch64/aarch64/2021-1/

- nono: luna68k/luna88k/x68k emulator
 add /etc/mk.conf
  ACCEPTABLE_LICENSES= nono-license
 cd /usr/pkgsrc/emulators/nono;make ;make package-install
- search soumd mixer GUI to manage mixerctl

ToDo:
- 3D acceleration

- Pinebook Pro
 mate/xfce4/camera/WiFi
 ToDo:
 - HDMI output via USB-C
 - Audio output: can't switch speaker & headphone out

- Pinebook
 mate/xfce4/camera/HDMI
 ToDo:
 - internal WiFi

sysinfo:
 bind-9.18.30 libssh-48.0 openssh-9.9 opensshd-9.9 sh-20220122-20241014122628Z

pkgsrc:
 MesaLib-21.3.9nb4 SDL2-2.30.8 atril-1.26.2nb5 bash-5.2.37 boost-build-1.86.0
 boost-docs-1.86.0 boost-headers-1.86.0 boost-jam-1.86.0 boost-libs-1.86.0
 cmake-3.30.5 cmus-2.10.0nb9 cups-base-2.4.10nb1 deforaos-pdfviewer-0.1.0nb27
 exempi-2.5.2nb8 ffmpeg7-7.1 firefox-131.0.2 firefox-l10n-131.0.2
 firefox115-115.16.1 firefox115-l10n-115.16.0 fribidi-1.0.16
 ghostscript-agpl-10.04.0 gimp-2.10.38nb3 git-base-2.47.0 go-1.23.2 go122-1.22.8
 go123-1.23.2 graphviz-12.1.2nb1 gst-plugins1-bad-1.24.8
 gst-plugins1-base-1.24.8 gst-plugins1-good-1.24.8 gstreamer1-1.24.8 jwm-2.4.5
 kdelibs4-4.14.38nb40 libabw-0.1.3nb21 libaom-3.10.0nb1 libcares-1.34.1nb1
 libcdr-0.1.7nb14 libclucene-2.3.3.4nb26 libdeflate-1.22 libe-book-0.1.3nb30
 libepubgen-0.1.1nb9 libetonyek-0.1.10nb14 libfreehand-0.1.2nb22 libgsf-1.14.53
 libixion-0.19.0nb2 libkactivities4-4.13.3nb38 libmspub-0.1.4nb29
 libmwaw-0.3.21nb4 libodfgen-0.1.7nb9 libpagemaker-0.0.4nb15 libproxy-0.5.9
 libqxp-0.0.2nb23 libreoffice-24.8.2.1 librevenge-0.0.5nb1 libslang2-2.2.4nb5
 libstaroffice-0.0.7nb9 libuv-1.49.1 libvisio-0.1.7nb24 libwpd-0.10.3nb9
 libwpg-0.3.3nb12 libwps-0.4.12nb8 libzip-1.11.1 libzmf-0.0.2nb31 mdds-2.1.1nb2
 mdds1.2-1.3.1nb15 meson-1.5.2 mkvtoolnix-87.0nb1 mlterm-3.9.3nb13 mpv-0.38.0nb1
 nghttp3-1.6.0 ngtcp2-1.8.0 nss-3.105 openjdk17-1.17.0.12.7 openjdk8-1.8.422
 orcus-0.19.2nb1 osg-3.6.5nb56 p5-HTTP-Message-7.00 p5-Mozilla-CA-20240924
 p5-Net-DNS-1.47 p5-Scalar-List-Utils-1.66 p5-URI-5.30 poppler-24.10.0
 poppler-cpp-24.10.0 poppler-includes-24.10.0 poppler-utils-24.10.0
 py312-charset-normalizer-3.4.0 py312-cryptodome-3.21.0 py312-dns-2.7.0
 py312-glad2-2.0.8 py312-markupsafe-3.0.1 py312-numpy-2.1.2 py312-pdf-5.0.1
 py312-pspdfutils-3.3.5 py312-puremagic-1.28 py312-pyparsing-3.2.0
 py312-requests-2.32.3nb1 py312-setuptools-75.2.0 py312-tomli-2.0.2
 python312-3.12.7 qmmp-1.6.5nb9 qt6-qtbase-6.7.3 qt6-qtdeclarative-6.7.3
 qt6-qtimageformats-6.7.3 qt6-qtlanguageserver-6.7.3 qt6-qtmultimedia-6.7.3
 qt6-qtquick3d-6.7.3 qt6-qtquicktimeline-6.7.3 qt6-qtshadertools-6.7.3
 qt6-qtsvg-6.7.3 raqm-0.10.2 rclone-1.68.1 rhash-1.4.5 ruby32-gdk3-4.2.3
 ruby32-gtk3-4.2.3 rust-1.80.1 source-highlight-3.1.9nb8 strigi-0.7.8nb58
 vte3-0.76.4 xfce4-tumbler-4.18.2nb8

Tips:
- System Clocks
 % sysctl -a |grep freq

 Install pkgsrc/sysutils/estd from pkgsrc and start it on bootup
 for automatic up-/downscaling.

pinebook:
 machdep.cpufreq.cpu0.available = 1152 1104 1008 816 648 408
 # sysctl -w machdep.cpufreq.cpu0.target=1152

pinebook-pro:
 machdep.cpufreq.cpu0.available = 1416 1200 1008 816 600 408
 machdep.cpufreq.cpu4.available = 2000 1800 1608 1416 1200 1008 816 600 408
 # sysctl -w machdep.cpufreq.cpu0.target=1416
 # sysctl -w machdep.cpufreq.cpu4.target=2000

- Battery Status
  envstat
  xbattbar
XXX: link from dbus or mate-power-manager?

- HDMI port works on pinebook.
 Connect display to pinebook HDMI port
 # pkg_add arandr
 % arandr

- mate: pkgsrc/meta-pkgs/mate
 https://twitter.com/ebijun/status/1086814579647102976
 pkg_add mate
 echo "mate-session" >> .xinitrc
 startx

- ibus
 export XMODIFIERS=@im=ibus

- Add eDP transmitter and enable display pipeline
 http://mail-index.netbsd.org/source-changes/2019/02/03/msg103047.html
 arandr works well: display up-side down
 https://twitter.com/ebijun/status/1092885154127724544

- keymapping: [Shift][<>] on 11inch
 https://wiki.netbsd.org/ports/evbarm/allwinner/#index3h2

- replace AC Adapter for heavy load
 Anker PowerPort10 A2133+USB DC Cable with 3.5mm/1.35mm connecter
 USB-C laptop charger from HP

- USB Wifi: urtwn0/run0 works
 urtwn0: I-O DATA DEVICE, INC. (0x4bb) WN-G150UM (0x94c)
 pinebook: internal Wi-Fi not supported
 pinebook pro: internal bwfm0 works,sometimes hangs


Version:
 NetBSD 10.99.12 (GENERIC64) #0: Mon Oct 14 12:26:28 UTC 2024
[email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC64

dmesg:
 https://github.com/ebijun/NetBSD/blob/master/dmesg/aarch64/pinebook
 https://github.com/ebijun/NetBSD/blob/master/dmesg/aarch64/pinebook-pro

System image: dd to eMMC.
 http://www.invisible.ca/arm/

 pinebook-pro:
 1. Insert microSD, boot (Linux from eMMC comes up),
 2. hit "Restart",
 3. It will boot from microSD.
 4. dd'ing to eMMC for installation, the eMMC is faster
- eMMC can disable with switch inside,and boot MicroSD.

 Getting Started with NetBSD on the Pinebook Pro by Benny Siegert
 https://bentsukun.ch/posts/pinebook-pro-netbsd/

sysinfo:
 https://github.com/ebijun/NetBSD/blob/master/pinebook/Update/sysinfo

pkginfo:
 https://github.com/ebijun/NetBSD/blob/master/pinebook/Update/pkginfo

pkgchk.conf:
 https://github.com/ebijun/NetBSD/blob/master/pinebook/Update/pkgchk.conf
  cp pkgchk.conf /usr/pkgsrc;pkg_add pkg_chk; pkg_chk -au

-- 
Jun Ebihara
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.