Anker Prime (26K, 300w) battery bank not charging librem 5.

It cant find the directory. In the photo I have the folder in my home folder. Im probably doing something simple wrong.

Is something supposed to happen on the phone when in serial download mode. I did the steps plug in while holding up, get blinking light, put battery back in light turns solid. unpress up button or not, either way phone stays off and is unresponsive. Is that what’s supposed to happen?

What is “tree?” Oh, nevermind. That’s you.

Is this how you did it:

./scripts/write_flash.sh tps65982-librem5-dp-alt-mode.bin

And is tps65982-librem5-dp-alt-mode.bin present in the devkit-tools directory?

Or has its name changed since the instructions were published?

Even if it stays blank, what counts is what the terminal shows is happening. (As long as you connected it in serial download mode, which appears to be the case from your description.)

I first copy and pasted the code from the instructions link that dos gave, then I copied and pasted the code you typed which is the same after the cd, and it cant find it. I searched for that file in the directory and it didn’t show it but thats just putting in in the search bar at the top of the folder page. Now im trying to look manually

I downloaded the zip file from the link dos gave and then extracted its contents to the desktop then moved that folder to my home page. But the instructions from that link are also where I got the zip so the file should be in there then. did I some how put the folder in the wrong place, I just dragged the extracted folder and put it in to the home folder that is on my desktop page.

Those tps... files should be inside the devkit-tools folder.

thats inside the folder. (thanks for this help by the way).

I don’t know what your desktop screenshot is trying to tell me, but open your home folder, find the unzipped tps... files and move them inside the librem5-devkit-tools-pureos-latest folder, if they’re not there already. (Don’t copy the folder where the tps... files are; just copy all the files inside and move them over.)

When you ran the command before, it couldn’t find the tps..., because it wasn’t inside the folder where you were running the command.

ok. Maybe I never got the tps files. Its confusing how to use these github websites. I finally found instructions on how to use them correctly, but ive since forgotten how it told me to do it, something about find the read me and get specific instructions per each developer or something. What I did at this link Librem5 / fw / firmware-tps6598x-nonfree · GitLab was download the source code zip file and then extract it. Maybe that didn’t give me everything. Instead when I click on find file it shows me some TPS files. Did I not do it the correct way on that website?

Yes, that site is confusing sometimes.

See my screenshot. Do you have the same files after you move your unzipped files over?

no. here’s everything I did.

I downloaded the zip file to my desktop.
Extracted the folder. then put the folder into the home folder.
Thats everything in the folder. so tps things aren’t there. Do I have to download them separately

from that website? Maybe they are not apart of the source code zip?

Thanks for this live help, Ill have to go in a few mins as I’m working, but Ill be able to check back though out the day.

I’m only missing 5 files. Some or all I saw in the search for a files on that website. Ill try seeing if I can manually download them from the website and then put them in the folder like you have. Can’t do it right this second though.

If you went here: Librem5 / fw / firmware-tps6598x-nonfree · GitLab

and clicked on the blue “Code” button,
and downloaded the zipped file,
and extracted the zipped file,
you should now have a folder named:

firmware-tps6598x-nonfree-master

Inside that folder are 6 files:

Copy them and paste them into the librem5-devkit-tools-pureos-latest folder.

Btw, I think the official instructions are probably lacking some clarity that makes things non-obvious to the inexperienced. I seem to recall I had problems understanding this, too.

I think only the ones that start with tps... are actually needed.

I had issues with this a while back, too, until @dos straightened me out: L5 - Deader Than A Doornail After Battery Ran Dry - #44 by dos (You can read a few posts there for more info, which I had forgotten. Sorry. :wink: )

So you could run the command without copying the files over, but after the write_flash.sh part you would need to then add the full path to that tps...bin file, i.e. including the “directory/subdirectory/tps…bin” in full, so that the script would know where it is.

It’s somewhat easier to just copy the needed files into the same folder where you’re running the command.

But if you have the firmware in a separate location:

tree@DB:~/librem5-devkit-tools-pureos-latest$./scripts/write_flash.sh /home/tree/Downloads/firmware-tps6598x-nonfree-master/tps65982-librem5-dp-alt-mode.bin

(If the firmware folder is located in your Downloads directory. Relace with “Desktop” or whatever if it’s somewhere else.)

Hey! I think it worked. So maybe it was some dumb user error. I wouldn’t have known from the instructions that I had to put the 2nd folder into the first one, but I didn’t even see a 2nd folder when I extracted it the first time so not sure what happened there. But I re-downloaded the zip file which it only downloaded the firmware folder? Maybe because I already had the librem5 devkit one. But anyway extracted it, put it in the other folder ran the code and it worked. I attempted to run the following code on my librem5 from the website link to confirm it was successful and it came back “permission denied”

cat /sys/kernel/debug/tps6598x/0-003f/customer_use

but when plugging in my usb C charger into the anker power bank it works now! When I used a usb A to C cord I was getting 7 watts out put, with the usb C to C cord I now get 10 watts (instead of the 17watts I was getting on my friends android when testing), but librem isn't going to be as fast as google i would imagine so I would think that fixed it and it works now. So thanks!!

“Permission denied” usually means you needed to use “sudo” before the command. That makes you a “superuser,” i.e. “admin.”

sudo cat /sys/kernel/debug/tps6598x/0-003f/customer_use

And to summarize, you could have run the firmware command in either of two ways:

  1. By putting the firmware .bin file inside the devkit tools folder (which is the folder where you were running the command), or

  2. By running the command from the devkit tools folder, but spelling out the path to the location of the firmware .bin file in your system, because it was located in a different directory and subdirectory. (The terminal always looks for the file where you are currently located, not in some other file in some other directory somewhere. You have to explicitly tell it where to find it if it’s not in the same directory you’re currently inside.)

And in case it’s not quite clear, think of the terminal and the files browser app as two versions of the same navigation system.

All the system files and personal files are stored in locations somewhere on your drive, but you can’t get to them without an interface of some kind.

In the files browser, you point and click a GUI to get into or out of a directory and its folders and files, and can copy, paste, move, delete, etc.

In the terminal, you can access and manipulate the same directories and files, but you do it by typing commands and hitting Enter (i.e. execute).

The terminal can do a hell of a lot more than that, of course, especially when your privileges are elevated.