Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Announcement for releasing SDK of PAD version

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 1/3/2015 09:04:08      1#

Hi!

Could you add a parameter file that is working for the Android image to your wiki or to the SDK git?

I downloaded the pad version of the SDK and build everything according the wiki, but then I discovered that I had a linux system installed on the firefly. But the linux parameter file is not matching the Android version.

I used this one, extracted from the prebuild Android 4.4 from the firefly download section:

FIRMWARE_VER:4.4.2
MACHINE_MODEL:rk30sdk
MACHINE_ID:007
MANUFACTURER:RK30SDK
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
#KERNEL_IMG: 0x62008000
#FDT_NAME: rk-kernel.dtb
#RECOVER_KEY: 1,1,0,20,0
CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00180000@0x00092000(system),0x00002000@0x00212000(metadata),0x00200000@0x00214000(userdata),0x00020000@0x00414000(radical_update),-@0x00434000(user)

I flashed the resulting images using linux upgrade_tool. If someone is wondering how to flash resource.img, you need to know that the upgrade_tool supports the undocumented option to name any kind of image:

upgrade_tool di -p parameter
upgrade_tool di -k kernel.img
upgrade_tool di -b boot.img

upgrade_tool di resource resource.img
...

Thanks to naobsd for the hint!


And last but not least:

After flashing these images and rebooting via "upgrade_tool rd" the firfly didn't start correctly. But the upgrade_tool didn't want to connect again even I pressed reset and recovery button several times.

A power-cycle then brought things back to normal, recovery started and formatted all needed partitions and after that rebooted to Android as expected.


Kind regards

Astralix

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 1/3/2015 19:53:41      2#

@cappybob,

I am not sure what you want to tell me...


@firefly team

The above comments where meant to be added to the how-to wiki http://wiki.t-firefly.com/index. ... 8/Build_android/en.

And there is another one:

If you develop different Android versions for different devices, you often need to change the underlying JAVA version. But you won't like to switch the basic JAVA for your linux system. And for several Android build it is even unnecessary to switch it, as for instance Android L works fine with openJDK-7.

So here is the solution: Just switch the JAVA version locally for the terminal you use to build Android:

export ANDROID_JAVA_TOOLCHAIN="/usr/lib/jvm/jdk1.6.0_45/bin"

export JAVA_HOME="/usr/lib/jvm/jdk1.6.0_45/bin"

and then add the same directory as first to the PATH:

export PATH="/usr/lib/jvm/jdk1.6.0_45/binPATH"

After that your build runs fine using the correct JAVA version.


Astralix

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 1/4/2015 07:21:49      3#

cappybob, there are no problems but a missing parameter file.

I had installed Linux on my firefly and the Linux compliant parameter file does not match the needs of Android image.

So I was able to download and unpack an Android image for firefly and then copy the parameter file to the master:master and the pad:pad version. Both worked fine.


I just wanted someone to add a parameter file to the code and a comment in the wiki, so other users do not have to search a matching parameter file.


And the pad version differs a bit from the master branch, cause they have different screen layout and pad version is scanning for a I2C touch screen chip, the master branch is not. However if you use your computer monitor as a screen, you wish a much higher screen resolution setting in build.prop as the icons are large and blurry. If you use the system on a mid size TV, it works just fine.


Astralix

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 1/6/2015 07:25:06      4#

Hi!


I do have a parameter that works fine. I just suggested improvements for the wiki, so other users do not have to search on their own.


Astralix, crewRkTablets

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