Advertisement
Guest User

fail2

a guest
Nov 18th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. lukasz@pinebookpro:~/pinebook-pro-keyboard-updater$ make
  2. gcc -o updater updater.c usb_read.c usb_write.c usb_context.c usb_keyboard.c usb_touchpad.c -lusb-1.0
  3. lukasz@pinebookpro:~/pinebook-pro-keyboard-updater$ sudo ./updater
  4. [*] Opening in user mode...
  5. >>> Trying to open VID:258a PID:001e...
  6. >>> Device not found
  7. >>> Trying to open VID:258a PID:001f...
  8. >>> libusb_kernel_driver_active: 0
  9. [*] Sending command to switch to boot mode...
  10. [*] Command send
  11. >>> release interface
  12. [*] Reading files/HLK_hyn_Nopower_contor_tp_update_tmpkbhex01.hex
  13. >>> Fix hex file
  14. [*] Opening in boot mode
  15. >>> Trying to open VID:0603 PID:1020...
  16. >>> Device not found
  17. >>> Trying to open VID:0603 PID:1020...
  18. >>> Device not found
  19. >>> Trying to open VID:0603 PID:1020...
  20. >>> Device not found
  21. >>> Trying to open VID:0603 PID:1020...
  22. >>> Device not found
  23. >>> Trying to open VID:0603 PID:1020...
  24. >>> Kernel Driver Active
  25. [*] Erasing flash
  26. [*] Writing firmware...
  27. write_block_start (length=14336)
  28. write_block (offset=0, length=2048)
  29. write_block (offset=2048, length=2048)
  30. write_block (offset=4096, length=2048)
  31. write_block (offset=6144, length=2048)
  32. write_block (offset=8192, length=2048)
  33. write_block (offset=10240, length=2048)
  34. write_block (offset=12288, length=2048)
  35. write_block_start (length=14336)
  36. write_block (offset=0, length=2048)
  37. [*] Reading back firmware...
  38. read_block_start (length=14336)
  39. read_block (offset=0, length=2048)
  40. read_block (offset=2048, length=2048)
  41. read_block (offset=4096, length=2048)
  42. read_block (offset=6144, length=2048)
  43. read_block (offset=8192, length=2048)
  44. read_block (offset=10240, length=2048)
  45. read_block (offset=12288, length=2048)
  46. [*] Comparing firmwares...
  47. [*] Writing serial number...
  48. Did read VID:0000 PID:0000
  49. [*] Reseting device?
  50. [*] Finished succesfully!
  51. >>> release interface
  52. [*] Reading files/tpfw.bin
  53. [*] Opening in touchpad mode
  54. >>> Trying to open VID:258a PID:001f...
  55. >>> Kernel Driver Active
  56. >>> Erasing TP flash...: 0
  57. >>> Erased? d2
  58. >>> Failed to erase flash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement