Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
New Topic
Print Previous Topic Next Topic

New to the forum

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45

New to the forum

Posted at 7/6/2015 08:27:40      View:10599 | Replies:16        Print      Only Author   [Copy Link] 1#

Hello guys,

I like your site i see that you try and develop new things around android.
I am sad to say that i didn't know the firefly platform earlier and now i am stuck now with another RK3288 platform.

My question to you now is if you are willing to try and help me tweak android even though i run on a different device .

My only problem is the very slow LAN and WiFi which is on a 10mbps level with trasfer so low as 1MB/s

I understand that i must edit my resource file and modify the tx / rx delay.

Can you be so kind and to help me out with the procedure to modify and flash the new resource file on my android ?

Thanks a lot
Reply

Use props Report

115

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
115
Posted at 7/6/2015 09:55:23        Only Author  2#
Hi, it would be helpful to know what board you're working on - even if the SoC is exactly the same (RK3288) there might be substantial differences between the Firefly hardware and yours.

Is the LAN interface pre-built on the board you have or you added it (e.g. USB-LAN)? Have you tried asking the manufacturer directly?

Hard to say how to solve your problem without more details however, the flashing procedure should be very similar to the Firefly given that the RK3288 uses the same tools across multiple boards.

http://wiki.t-firefly.com/index.php/Firefly-RK3288/Flash_image/en
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/6/2015 18:11:07        Only Author  3#

Thanks for your quick reply,

I can provide you with all the details you need.

i have this box :

http://www.ebay.com/itm/11156699 ... =STRK%3AMEBIDX%3AIT
http://www.aliexpress.com/item/B ... -2K/2021695712.html

eBluetimes Qpro

Here you can even see the PCB inside the casing :

http://freaktab.com/forum/tv-pla ... RK3288-boxes/page1=

The LAN interface is pre-built on the board, I have asked the manufacturer and they only direct me to new firmware images that don't solve the problem.

Also the newer images suggested by the manufacturer have the SPDIF pass-thru broken so i am stuck to an older version where  the sound works properly.

My Firmware is this one:

2015.2.7 QproPlus New software.zip
https://www.sendspace.com/file/mrv2vb

According to what i have found online i should extract the img file find a resource file and a .dts file and change the rx / tx delay there.
but so far i am unable to extract the img file and locate the file that i need to amend.

https://bitbucket.org/T-Firefly/ ... 09b6e49325613e137ed

If with you help i manage to perform the changes can i just flash the the files i change or i should flash the whole box and lose all the data on it  (XBMC Games etc ) ?

The Flashing procedure is exactly as you describe it on your link:
http://wiki.t-firefly.com/index.php/Firefly-RK3288/Flash_image/en

That's what i used to test newer images, but now i need something more, i need to edit the firmware i know its working properly on my box and apply the TCP/IP  rx / tx fix

I would really appreciate all the help you can give me, slow LAN and WiFi is the only downside on my android box and if you help me fix that i would be more than happy.

Best Regards
Reply

Use props Report

115

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
115
Posted at 7/6/2015 20:20:25        Only Author  4#
Hi, do you have the resource.img file? If yes could you post it here?

The patch you pointed to (https://bitbucket.org/T-Firefly/ ... 09b6e49325613e137ed) is part of the kernel device-tree: this basically tells the kernel what kind of hardware you have on the board and a lot more parameters/configurations regarding the SoC (RK3288) itself.

The resource.img file does contain the DT but simply editing that file might/might not work - worst case you'd have to re-compile your kernel so my second question is, do you have the kernel sources for your board?

It should come together with the SDK provided by the manufacturer - probably that zip archive contains everything you need. Is there a /kernel directory in there?

Check out this answer for details on how to unpack your resource.img -> http://bbs.t-firefly.com/forum.p ... &highlight=boot
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/6/2015 20:50:57        Only Author  5#

The file on sendspace if you unzip it has the drivers for the PC, the flashing tool, instructions and the image file: BluetimesQpro-plus-rk3288-_AP6330_public_20150207.img

I don't know how to extract img file to get to the files inside and sadly i don't have the kernel sources

Maybe you can download my firmware from sendspace and have a look ?
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/7/2015 16:23:24        Only Author  6#

Any hints on how i can continue will be highly appreciated
Reply

Use props Report

115

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
115
Posted at 7/8/2015 10:17:18        Only Author  7#
biomecanoid Posted at 7/7/2015 16:23
Any hints on how i can continue will be highly appreciated

The file BluetimesQpro-plus-rk3288-_AP6330_public_20150207.img is probably a firmware update for your hardware which contains all the images such as resource.img, system.img etc.

You need to extract that .img file to find out what's in there exactly - you can refer to this wiki page: http://wiki.t-firefly.com/index. ... android_firmware/en

Once you have your resource.img image to work on, you should be able to modify the device tree as you wish.
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/8/2015 17:22:17        Only Author  8#
Hi,

Thanks for the instructions. The wiki was easy enough to follow

here is my resource.img:

http://wikisend.com/download/207998/resource.img
http://www.filedropper.com/resource_1
http://s000.tinyupload.com/index.php?file_id=41678291015919859085

So whats the next step how do i edit the resource file ?

I get the following error:

sudo mount -o loop resource.img /mnt/resource

NTFS signature is missing.
Failed to mount '/dev/loop0': Invalid argument
The device '/dev/loop0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@HP-ProBook-4320s:/home/support/img/update/Image#


fdisk says the image is not valid

fdisk -l resource.img[

Disk resource.img: 0 MB, 116736 bytes
255 heads, 63 sectors/track, 0 cylinders, total 228 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk resource.img doesn't contain a valid partition table

Also can not unpack boot.img

afptool -unpack boot.img boot
Invalid header magic
UnPack failed

Best Regards
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/8/2015 17:58:39        Only Author  9#

I was able to extract resource.img with ResTool.exe

Here is the file:

http://wikisend.com/download/794552/rk-kernel.dtb

How do i edit that now ?
Reply

Use props Report

45

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
45
Posted at 7/8/2015 19:12:36        Only Author  10#
Last edited by biomecanoid In 7/8/2015 19:43 Editor

I decompiled the dtb file to dts

http://wikisend.com/download/520154/devicetree.dts.txt


the rx - tx delay is as follows:

tx_delay = <0x30>;
rx_delay = <0x20>;

What should i change the values to ?
should i just change the rx_delay to 10 ?

can i also add a mac address under tx - rx delay like this ? :
mac-address = [3e0c7948d74e];    #Mac address is 3e:0c:79:48:d7:4e
Reply

Use props Report

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

This forum Credits Rules

Quick Reply Back to top Back to list