View Single Post
Old 01-27-2019, 12:40 AM   #25
dom123dom
Zealot
dom123dom began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Dec 2018
Location: Sydney, Australia
Device: Kindle Paperwhite 2 WiFi 4Gb 2013 (s/n 9017..)
Pissing about with Ubunu now, my linux is very limited so more learning...

Trying to install virtualbox Guest Additions so I can share the host folders, had to follow this:
https://askubuntu.com/questions/1035...lation-problem

Basically:
sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
reboot
eject CD
Use Devices menu install Guest additions and follow prompts.

Now I have the Fastboot code on my linux guest...

Trying to follow this to compile it:
http://webhotel4.ruc.dk/~keld/teachi...tu%20Linux.pdf

failing:
Quote:
~/Documents/Fastboot-Kindle-master$ gcc -o kfastboot fastboot.c
fastboot.c: In function ‘main’:
fastboot.c:414:13: warning: implicit declaration of function ‘fb_queue_check’; did you mean ‘fb_queue_set’? [-Wimplicit-function-declaration]
fb_queue_check(argv[1]);
^~~~~~~~~~~~~~
fb_queue_set
/tmp/cc5NY2ss.o: In function `open_device':
fastboot.c.text+0x347): undefined reference to `usb_open'
/tmp/cc5NY2ss.o: In function `list_devices':
fastboot.c.text+0x3ae): undefined reference to `usb_open'
/tmp/cc5NY2ss.o: In function `setup_requirement_line':
fastboot.c.text+0x75f): undefined reference to `fb_queue_require'
/tmp/cc5NY2ss.o: In function `do_oem_command':
fastboot.c.text+0x8b7): undefined reference to `fb_queue_command'
/tmp/cc5NY2ss.o: In function `main':
fastboot.c.text+0xa99): undefined reference to `fb_queue_display'
fastboot.c.text+0xaf8): undefined reference to `fb_queue_set'
fastboot.c.text+0xbb6): undefined reference to `fb_queue_download'
fastboot.c.text+0xc79): undefined reference to `fb_queue_download'
fastboot.c.text+0xc8a): undefined reference to `fb_queue_verify'
fastboot.c.text+0xd4d): undefined reference to `fb_queue_download'
fastboot.c.text+0xd5e): undefined reference to `fb_queue_flash'
fastboot.c.text+0xd90): undefined reference to `fb_queue_command'
fastboot.c.text+0xdd6): undefined reference to `fb_queue_erase'
fastboot.c.text+0xe21): undefined reference to `fb_queue_check'
fastboot.c.text+0xeed): undefined reference to `fb_queue_download'
fastboot.c.text+0xf00): undefined reference to `fb_queue_command'
fastboot.c.text+0xf32): undefined reference to `fb_queue_command'
fastboot.c.text+0xf92): undefined reference to `fb_queue_reboot'
fastboot.c.text+0xfcd): undefined reference to `fb_queue_command'
fastboot.c.text+0x1005): undefined reference to `fb_queue_command'
fastboot.c.text+0x103d): undefined reference to `fb_queue_command'
fastboot.c.text+0x1062): undefined reference to `fb_queue_reboot'
fastboot.c.text+0x107d): undefined reference to `fb_queue_command'
fastboot.c.text+0x1098): undefined reference to `fb_execute_queue'
collect2: error: ld returned 1 exit status
so I tried the "linuxtool.c" instead, also error messages:

Quote:
~/Documents/Fastboot-Kindle-master$ gcc -o kfastboot util_linux.c
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
not really sure what I'm doing!
dom123dom is offline   Reply With Quote