PINE64
NetBSD and pinebook keyboard/trackpad firmware updater - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: BSD on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=115)
+--- Thread: NetBSD and pinebook keyboard/trackpad firmware updater (/showthread.php?tid=8716)



NetBSD and pinebook keyboard/trackpad firmware updater - mrgtwentythree - 01-07-2020

this post is to document the minor differences to run and
install the pinebookpro trackpad/keyboard firmware update
while running netbsd.

please see the original post for details about the issue:
  https://forum.pine64.org/announcements.php?aid=23


for me i had to do this beyond the normal instructions:

- install libusb1 from pkgsrc
- install vim-share from pkgsrc (this provides xxd)
- patch the Makefile to use these cflags:
      -I/usr/pkg/include -R/usr/pkg/lib -L/usr/pkg/lib
- use gmake not make

and i had to power-cycle between step-1 and step-2.


RE: NetBSD and pinebook keyboard/trackpad firmware updater - Jeremiah Cornelius - 01-07-2020

(01-07-2020, 02:47 AM)mrgtwentythree Wrote: this post is to document the minor differences to run and
install the pinebookpro trackpad/keyboard firmware update
while running netbsd.

please see the original post for details about the issue:
  https://forum.pine64.org/announcements.php?aid=23


for me i had to do this beyond the normal instructions:

- install libusb1 from pkgsrc
- install vim-share from pkgsrc (this provides xxd)
- patch the Makefile to use these cflags:
      -I/usr/pkg/include -R/usr/pkg/lib -L/usr/pkg/lib
- use gmake not make

and i had to power-cycle between step-1 and step-2.

Thanks for this. It's very helpful.


RE: NetBSD and pinebook keyboard/trackpad firmware updater - KC9UDX - 12-06-2020

That link is dead.  I think this is the correct one:
https://forum.pine64.org/showthread.php?tid=8407&highlight=firmware+update


RE: NetBSD and pinebook keyboard/trackpad firmware updater - mrgtwentythree - 01-19-2021

(12-06-2020, 03:07 AM)KC9UDX Wrote: That link is dead.  I think this is the correct one:
https://forum.pine64.org/showthread.php?tid=8407&highlight=firmware+update
that looks like the right one! thanks, and pity the old link is dead..


RE: NetBSD and pinebook keyboard/trackpad firmware updater - KC9UDX - 01-19-2021

(01-19-2021, 03:29 PM)mrgtwentythree Wrote:
(12-06-2020, 03:07 AM)KC9UDX Wrote: That link is dead.  I think this is the correct one:
https://forum.pine64.org/showthread.php?tid=8407&highlight=firmware+update
that looks like the right one! thanks, and pity the old link is dead..

People kept leaving "Press F to pay respects" comments on my "Shutting down NetBSD for the last time" video.  I finally looked that one up to see what it meant, and I guess it applies here.


RE: NetBSD and pinebook keyboard/trackpad firmware updater - mrgtwentythree - 05-16-2021

OK, i finally installed the ANSI kbd into my original pbp, and i had a couple of new issues i had not previously mentioned.

the first one is that some of the timeouts are not long enough for netbsd. i had to patch usb_keyboard.c to change usleep(100*1000) to usleep(500*1000). this allows 'step-1' to complete the first time. without this, re-running 'step-1' works at this point.
i still have to power cycle, not just reboot, between 'step-1' and 'step-2'. (i power cycled after the first successful 'step-2', so perhaps that is also necessary, though i do not know for sure.)
the second new issue was i had to revert a change made shortly after my original post above. usb_touchpad.c had a loop iteration reduced from 20 to 3 (and also the check afterwards). to make step-2 work reliably, i had to revert this change (i suspect 8 would work, vs 20, but i did not test that.)