Can't "adb push" files
Added by Xan VFR over 11 years ago
Hi, everyone!
I have a Samsung Galaxy S (GT-I9000) with Replicant 4.0 0005 installed and "adb push local_file remote_file" isn't working (and I've "adb pushed" files before, with Replicant 4.0 0002).
I think the problem must be ADB or Linux configuration related, so I hope you guys can help me.
I can see the phone both in recovery mode and with the phone on and USB Debugging on:
- lsusb
...
Bus 001 Device 005: ID 18d1:4e22 Google Inc. Nexus S (debug)
...
I can see phone with adb as well:
- adb devices
List of devices attached
30337E817E6100EC device
I can boot phone into recovery mode via "adb reboot recovery" so I assume adb recognizes and communicates with the phone.
As Replicant doesn't support proprietary firmwares I must push wifi and bluetooh firmwares into /system/vendor/firmware. First, I create the directory:
- adb shell
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 189592 48 189544 0% /dev
/dev/block/mtdblock2 256000 208868 47132 82% /system
/dev/block/mtdblock3 17920 2336 15584 13% /cache
~ # mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system
~ # mkdir /system/vendor/firmware
Then, I try to push the files:
~ # adb push fw*bin /system/vendor/firmware/
error: device not found
If I leave adb shell and run "adb push fw*bin /system/vendor/firmware/" in Linux command line all I get is the list of the options of adb command but no errors.
Any clues where to look to make adb push work? (I haven't seen any message in /var/log/messages)
I know Replicant doesn't support non-free firmwares, but this is as free as I can get with my phone using wifi and bluetooth.
Thanks in advance
Replies (2)
RE: Can't "adb push" files - Added by Paul Kocialkowski over 11 years ago
You have to perform the adb push commands from the computer. You are running them on the phone here.
And on second try (when you do it on the computer), it fails because adb doesn't take "*" apparently. You have to do something like:
ls fw* | while read file; do; adb push $file /system/vendor/firmware/; done
Also it's probably better to do this with the system running instead of recovery as it takes care of the mountpoints itself (even though you seem to have done it right).
In that case, you'll need to run adb remount
(again, from the computer side, not the device).
RE: Can't "adb push" files - Added by Xan VFR over 11 years ago
Thank you so much!
It worked like a charm (after removing the ; after "do" ;-))