Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Issue] Stock Recovery RK3399 & ADB not function.

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30
Posted at 6/25/2018 17:33:26      1#
Hello!

I did this ("ln -sf /sbin/sh  system/bin/ " in "out/target/product/rk3399_firefly_aio_box/recovery/root/" under SDK, then recompile and reflash recovery.img)
But ADB in recovery mode still doesn't work. I can't see any usb devices on my PC for AIO on recovery mode (I'm using linux PC and I'm sure 100%)
What should I do next?
Reply

Use props Report

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30
Posted at 6/28/2018 19:51:42      2#
leung先森 Posted at 6/27/2018 10:47
No need to complie , just pack it up after complie the whole SDK.
Run ./mkimage.sh and get the re ...

Ok, to check everything I did all from scratch:
1. Download fresh SDK (Firefly-RK3399_Android7.1.2_git_20180126.7z)
2. Unzip it, updated it (git pull gitlab firefly-rk3399:firefly-rk3399 - everything up to date)
3. Compiled it with ./FFTools/make.sh -j8  -l rk3399_firefly_aio_box-userdebug
4. Ru "ln -sf /sbin/sh  system/bin/ " in "out/target/product/rk3399_firefly_aio_box/recovery/root/"
5. Run "/mkimage.sh", new recovery.img was made
6. Flashed this new recovery.img with rkflashkit to recovery partition
6. After board boot, run "adb reboot recovery" on my PC
7. When board boots into recovery, I can see that this recovery image is new (date and time is written at the top of menu).

But result of "adb devices" on my PC is empty! I can't run "adb sideload" or anything else.
And there no unknown devices in "lsusb" output on my PC.

Also, if I select "Apply update from ADB" from recovery menu - I see error "Failed to open driver control: No such file or directory"

So, in recovery mode ADB not working with or without selecting "Apply update from ADB" in recovery menu.
This is a screenshot from /cache/recovery/last.kmsg:

https://www.dropbox.com/s/m4ya7h ... 628_144740.jpg?dl=0

It shows "init: avc: denied {set} for property=sys.usb.ffd.ready" before "init: Starting service adbd", maybe this is the reason why ADB doesn't work?

Please help!
Reply

Use props Report

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30
Posted at 6/29/2018 17:35:52      3#
leung先森 Posted at 6/29/2018 09:27
You need to make sure that when you run ./mkimage.sh is "lunch rk3399_firefly_aio_box" .
As I kow ...

Yes, I did lunch by hand with "lunch rk3399_firefly_aio_box"
My recovery image title is "rockchip/rk3399_firefly_aio_box/rk3399_firefly_aio_box 7.1.2/NHG47K/...", so it's for firefly_aio_box

But ADB USB connection is not working in this revovery mode (with "ln -sf /sbin/sh  system/bin/")

Maybe you can post your recovery.img with working ADB for firefly_aio_box somewhere (i.e. on your gitlab)?

Your advice "ln -sf /sbin/sh  system/bin/ " doesn't affect ADB functionality in recovery mode.
Please help.

P.S. Also I  can't use "Apply update from SD card" from recovery menu, it gives "E:failed to map file"
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list