yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] surfer63:
To be honest: I have no idea. However, since they are so small (Kbytes versus Mbytes) compared to the kernel, boot and especially system.img (1000-1500x bigger) I simply copy them in and don't care about them.

---------- Post added at 12:11 PM ---------- Previous post was at 11:39 AM ----------

USB Mass storage mode functional

Hi all,

With regard to the (non/unstable/frustrating) working of the USB mass storage mode in all gingerbread roms: I copied the adbd from my own froyo rom (boot.img:/sbin/adbd) into the boot.img from the Daremos based roms as that binary takes care of the usb connection.

Until now I always have a working usb mass storage mode and I have not experienced any other disfunctionalities.

Please test for yourself.
[Miscellaneous Android Development] JDfense:
Next fine hint. When DaremoS comes back from vacation, his gingerbread will be ready.;)

Could I use any froyo adbd or have you something special?
[Miscellaneous Android Development] surfer63:
I assume you can use any froyo adbd, so also the one from your darwin froyo.
[Miscellaneous Android Development] stevemp:
The whole img works fine with Next3 (much better than Next3 junk.img), added Foxtunes, Mobo Player, and Coolreader and just using it so far. Been trying to compile img in Xubuntu 11.10, big learning curve.:)

stevemp
[Miscellaneous Android Development] surfer63:
I'm using _fun's new rkutils. I already made my images completely from Linux (using linux since 1993). Now I don't even need afptools (via wine) anymore.

I was thinking of updating and expanding my Dump your Home Tablet rom and create a custom rom and my Example script for custom rom and also put sections in for rkunpack, rkafpack, rkdecrypt and how to compile them. I'll have a look tonight or one of the coming days.

The second wiki article is actually unfinished.
[Miscellaneous Android Development] JDfense:
You are really back to eclair. Maybe it is a comfort way to forget the gingerbread issues.

I can't do that, because I need the full gsync support, but back to darwin froyo is an option.:D
[Miscellaneous Android Development] JDfense:
We like here all manuals around rk2818 or android. Steve the archive is collecting all.:p

You offer a lot of links for our archive in the third post. Anything you want me to do?:rolleyes:
[Miscellaneous Android Development] stevemp:
We both started using Linux the same year then. :) I liked playing games then so when Win 2k came out that was all I used for eight years. Linux had no drivers for fast video cards. I do most of my work in windows with RKCooking, then take to Linux to unpack, change owner, fix permissions, then repack. Most people here use RKAndroidBatchUpgrade to flash there roms.

stevemp
[Miscellaneous Android Development] Amachete:
Portrait mode, and rotation issues fixed on BQ Darwin (next3???)

Rethinking the post

Sorry
[Miscellaneous Android Development] heart_crafter:
Amachete, thanks for more props info

"I could not fix the problem with brighnest and google apps"

what's wrong with brightness?

make sure these lines are not commented in boot.img/init.rc (or init.*board*.rc if avalaible). if you dont see them then add them.

chmod 0660 /sys/class/backlight/rk28_bl/brightness
chown system system /sys/class/backlight/rk28_bl/brightness

google apps, i guess i deleted them :P (mybad)

look for a similar rom and copy from them :D

this is how im getting writable cramfs atm:

1. copy aufs.ko in system.img/lib/modules (make it own by 0:0 and rwxr-xr-x)

2. in boot.img/init.rc (or init.*board*.rc if avalaible) just before line "on boot" add insmod /system/lib/modules/aufs.ko

3. In boot.img/init.rc (or init.*board*.rc if avalaible) look for comment "# Permissions for System Server and daemons." and add the following lines at the end of the section.

chmod 06775 /system/bin/busybox
chmod 06775 /system/bin/sh
chmod 06775 /system/xbin/su

4. In boot.img/init.rc (or init.*board*.rc if avalaible) look for "service console" add the following lines after that service.

service init_sh /init.sh
user root
oneshot

5. In boot.img make a file named init.sh if it does not exitst.

6. In boot.img/init.sh add the following lines:

#!/system/bin/sh
chown -R root root /bin
chmod 06775 /system/xbin/su
busybox mkdir -p /data/sysrw
busybox mount -t aufs -o br:/data/sysrw:/system=ro none /system

tip: some toolbox and busybox commands are same but the syntax is totaly different so be carefull with that.

line #!/system/bin/sh is a must at first i thought it was just a comment... :P you can also use #!/system/bin/busybo sh (recently discovered for some cases)

main thing to writable cramfs is compatible su/sh/busybox with right permission :D

maybe it's not the best way but this works for me ... no linux needed to fix any permisions...

@JDfense

to check your boot animation...

from cmd try adb shell bootanimation (this should play the boot animation without restaring you device)

---------- Post added at 02:02 PM ---------- Previous post was at 02:01 PM ----------

lol you removed the post :O

should have quoted you :D lol
[Miscellaneous Android Development] stevemp:
#! is a shebang in linux. When you have #!/bin/sh the folowing code is run in the shell. sh = shell. I think the black screen is caused by copying files. I just ignore it, 99% of the time I don't look at my tablet for 5 minutes anyway.

stevemp
[Miscellaneous Android Development] surfer63:
Yes, the black screen is indeed causing that. And despite my comments a few posts earlier I still have it, be it that it's around 5-10 seconds. That's why I missed it completely the first times as you mentioned a much longer time. I simply didn't look constantly at the flashing procedure (flashing can be sooooo boring :))

Nevertheless it's not neccessary to call a double shell.

And with regard to the "#!/bin/sh". If it's "something" executable, by setting the execute bit, on Un*x and it's not a binary, you have to tell what kind of script is being run: in this case a shell script. You could also use "#!/usr/bin/python" for python or "#!perl" for a perl script (or "#!/bin/bash" for a bash shell script or one of the other shell interpreters).

The path is neccessary if you want to call a specific version if you multiple versions or its not in your path.
[Miscellaneous Android Development] stevemp:
In windows you can use QtADB to watch logcat as your tablet boots, it is a good way to see boot sequence. You can look for warnings and errors plus watch as apk are unpacked. It has been hard for me to learn how Android functions.

stevemp
[Miscellaneous Android Development] JDfense:
I'm working on my froyo again. It was a bit too ugly. Now it is better, but not ready.
[Miscellaneous Android Development] heart_crafter:
kool i was gona ask about phython :D
[Miscellaneous Android Development] heart_crafter:
can anyone get /proc/config.gz file from any kernel for our device ?
[Miscellaneous Android Development] stevemp:
No, It has to be compiled in the kernel to write config.gz.

CONFIG_IKCONFIG

CONFIG_IKCONFIG_PROC

Link to howto> http://marakana.com/forums/android/examples/111.html

Have you tried using

$ make menuconfig

Instructions are in the readme when you upack the kernel source.

Config for kernel is attached below.

stevemp
[Miscellaneous Android Development] JDfense:
I thought this is a job for Android sdk,

http://developer.android.com/sdk/index.html

but I'm not the linux guy.
[Miscellaneous Android Development] stevemp:
kernel has to be compiled for your hardware, same for system. Rockchip does not release source code for free, so that's why it is so hard to get Gingerbread working. I am going to test Arnova kernel on Gingerbread, doesn't work.

stevemp
[Miscellaneous Android Development] heart_crafter:
thankx il try it…

ihave been very busy learning basics… difference between toolbox and busybox… sh and busybox sh

and had no time researching on config.gz file so i thought that i should throw this question at some experienced ppl ;)

Sent from doubleshot.
[Miscellaneous Android Development] JDfense:
@ stevemp

I have tested the arnova kernel last time, when I tried to fix the SOD's in the fun_stuff like hvdwolfs rom. The result was that the hvdwolf -system works most stable with the arnova84 kernel on odys genesis, but there are still SOD's after some hours in standy. Thats the reason, why I gave up roms with fun_stuff. I think it is a special problem with odys genesis, because most users have no problem with the fun_stuff.

If you try the arnova kernel, please check out the hvdwolf system and let me know how it works on next 3, but you have to be patient. This rom works about 4-8 hours in standy absolut stable sometimes. After tha the SOD's and deep sleeping begin and gets on odys genesis more and more worse. I don't understand it.

JDfense
[Miscellaneous Android Development] JDfense:
When you have learned something useful for our thread, release it and I put it to the learning stuff to post #3.:)
[Miscellaneous Android Development] JDfense:
zeam launcher

I have tried to add some wallpapers to the zeamlauncher, but it does not work. I find no solution.

The zeam launcher comes without wallpaper. Thats the reason, why he is so small, but can he handle wallpapers from inside the apk.:confused:

Zeam launcher has the best dock bar for starting apps, but maybe the wallpapers are the weak point. I tried the syntax of launcher pro

wallpaper_name.jpg

wallpaper_name_small.jpg

\res\drawable-hdpi\ to add the wallpapers without success.
[Miscellaneous Android Development] heart_crafter:
i get sod on gb all the time :p

Sent from doubleshot.
[Miscellaneous Android Development] heart_crafter:
edit the framework apk to change the wallpaper… ;)

Sent from doubleshot.
[Miscellaneous Android Development] JDfense:
You get in all gingerbread SOD's? Really or do you kidding me?

I have changend the default_wallpaper in the framework-res.apk, but I want some more options in my froyo. So I tried to add wallpapers in the zeam launcher.

Is there a way to add more than the default jpg to the framework-res.apk?
[Miscellaneous Android Development] stevemp:
You would have to change xml code, way over my head.:eek:

Leave Launcher2 in rom, then you can use it's wallpapers, people can then choose between zeem or launcher2.

stevemp
[Miscellaneous Android Development] JDfense:
Editing the xml's is over my head, too. One day we will figure it out. What is heart_crafter trying in the kernel? Is he searching for a diffecult suicide for his tablet?:D:p:D

Two launchers in one it would be not really an elegant way, I think:rolleyes:, but possible...:D
[Miscellaneous Android Development] heart_crafter:
lol i almost bricked it on Saturday :D

i was flashing normally with RKAndroidBatchUpgrade.exe... and the blinking light got stuck at 1% :| :P

i exited RKAndroidBatchUpgrade.exe ang got blue screen in my win7(x64) machine :P

booted up the machine... then plugged the next3 in... and i got unknown device in my device manager... and i was like :O

lucky when i restarted the device with the reset pin hole... it came back in flash mode :D

i just want to try build a bq kernel based on next3 (if im making any sense lol)

---------- Post added at 09:53 AM ---------- Previous post was at 09:48 AM ----------

lol i think... after i play them for a while i break them :D

i haven't used a rom for more than 3 consecutive days :D

ill look at the xml later on... busy with eclair atm lol
[Miscellaneous Android Development] JDfense:
My lack of english is getting worse. ---»try build a bq kernel based on next3« --- What is the goal or the result you wish to have Philiman?:eek:

Your new name will be captain crasher. 3 Days and how many tablet have you buried. The number one is so far MajstorSpeedy from donalds thread, he killed about five tablets. Never heard of this man, maybe nobody sold him a new tablet anymore.
[Miscellaneous Android Development] stevemp:
this is a test

I am testing hvdv4_Root-RW_en with Arnova kernel, pray for my tablet.;)

stevemp
[Miscellaneous Android Development] JDfense:
Nothing will happen to your tablet, but after 4-8 hours in standy it could be possible, that you get SOD's and they become worse like a virus with every booting.

That was the result on my genesis, but must not be on next 3. I'm curios.

At the end of a test, my tablet crashes every 10 minutes or so in standby. That was really strange and I have tested it several times with the same result. I think, it is a kind of cache problem in standby. One bad code line, like heart_crafter is trying in the kernel. :-)
[Miscellaneous Android Development] JDfense:
How about this look for my froyo?:) I call it dirty froyo.
[Miscellaneous Android Development] stevemp:
I am no art critic. :) It's whatever you like, I like beach or mountain scenes for me.

stevemp
[Miscellaneous Android Development] JDfense:
Too much colours for me and here it is winter and no beach around.
[Miscellaneous Android Development] ThauExodus:
Does somebody know, if this can be done for rk2818 tablet, too?

http://www.android-hilfe.de/root-ha...-als-ext3-noatime-nodiratime.html#post2475711

(/system as mounted as ext3, so we can have full r/w access)
[Miscellaneous Android Development] stevemp:
Yes, I have done it, but no better than aufs in my opinion. System boots a little faster after the first time, but no other advantage that I could see.

stevemp
[Miscellaneous Android Development] surfer63:
Benchmarking a few roms. Curious to other RK2818 roms

Hi,

This mail is more or less off topic, but not completely. We all want the fastest rom, don't we? And is the fastest rom on an A7HTV2 also the fastest rom on an Odys or BqVerne?

I did some benchmarks the past few days. If you are interested take a look.

Note that these benchmarks were done on my Archos 7 Hometablet V2. Your RK2818 tablets may show other better or worse numbers running the same test(s).

I'm just curious about the other RK2818 tablets. I assume they all perform approximately the same, but do they really? And even if the hardware does, does the kernel have some influence as well?

I do know from earlier (many, many) tests with all kind of froyo roms (some radically bricking my tablet due to hardware specific code in framework.jar and framework-res.apk) that the system.img is actually the only really discriminating factor in performance.

I'm using Libre Office but for your convenience I also included an xls.

Again: I'm curious to see what the same roms do on your tablets.
[Miscellaneous Android Development] JDfense:
Yes I'm in and the final result is so far, you have the fastest froyo in the house. Congratulations.

How can I test my darwin froyo myself ? Is there a test for stability? DaremoS don't want to hear that froyo is faster on rk2818, but you have the proof.

I have to get this hvdfroyo on my genesis and then I play need for speed »feet on street« snail edition online with my friends.:D:D:D

PS.: I can complete your sheet.

DarJDfV1= DaremoS gingerbread Third Edition

DareSuperChargeSMP=DaremoS gingerbread Third Edition
[Miscellaneous Android Development] Amachete:
@JDfense

to check your boot animation...

from cmd try adb shell bootanimation (this should play the boot animation without restaring you device)

Do you another way to run TSCalibration?

The only I could find was:

am start -n org.zeroxlab.util.tscal/.TSCalibration -a android.intent.action.MAIN

Thanks
[Miscellaneous Android Development] JDfense:
I can't follow. Hopefully I understand something.

In DaremoS gingerbread you need no manuell calibration. It works with the right kernel for your tablet.

The issue with the 10 sec pause between bootlogo and bootanimation is open. (about 30sec for the first boot) I have no idea for a fix. The bootanimation is fine and works on my froyo rom perfect.

This code line looks nice, but not familiar for me. It could be the starting of the calibration.
[Miscellaneous Android Development] NickEFuze:
I am trying to run the ROMs in the Benchmark on my Next3. I downloaded your 7htv2_froyo.18-normal, changed out the kernel, and flashed it, but the Next3 thinks the portrait is landscape and vice versa. What is the best way to fix this?

Thank you!
[Miscellaneous Android Development] stevemp:
test

Finished my test and here are the results.

stevemp
[Miscellaneous Android Development] surfer63:
You can't solve that simple. I have the same with the Darwin rom by JDefense.

It has to do with the fact that the accelerometer code is built into the kernel. The framework.jar "reads" the accelerometer data and interprets it against the code built into the kernel.

The Darwin framework.jar is built for a portrait mode kernel, the arnova7 framework.jar (my froyo rom) is built for an Archos landscape mode kernel.

This is the exact reason why _fun built the code into the gingerbread stuff to adapt the framework.jar and to be able to define "overruling" settings for the accelerometer interpretation. The same is valid to some extent for the Cyanogenmod settings about the 90, 180 and 270 degree settings in the display settings.

Note: Don't simply change the framework.jar for another one. It will brick most probably brick your tablet as the framework.jar is the basic "glue" between the other stuff in your system.img.

---------- Post added at 07:59 AM ---------- Previous post was at 07:49 AM ----------

You could try with my archos kernel as well. This can brick your tablet though meaning that you need to unbrick it (see my signature links).

My Archos is very picky and only accepts an archos kernel. Maybe something builtin to the hardware and kernel?

I know that JDefense is happily testing all kind of kernels on his Odys (or was it a next3?) like the Arnova8 type of kernel, so that tablet is not so picky w.r.t. kernels.

Note that you should stick to 7" kernels for a 7" tablet, and to 8" inch kernels for an 8" tablet, etc. etc. (at least AFAIK)
[Miscellaneous Android Development] TheLeperMessiah:
For the love of all that is holy.... no more rapidshare links... rockin 150 KB/s on a 68mb file... on a 12mb cable connection is just sad.

Any of the other links work great. I may have to play "hunt for the real download button" but I can deal with that.

I know rapidshare is free and we cant look a gift horse in the mouth and all that ... but jeebus rapidshare sucks. lol.

/endrant

Also, on my Nextbook3 - most of the gingerbread images do not work. They either boot to a black screen, or if i can get them to boot - I load up coolreader from the market and cant load a book. Works fine on froyo images. Just saying. Keep up the good work guys.
[Miscellaneous Android Development] JDfense:
Hi new visitor, the leper messiah

thanks for your feedback. I have noticed the slow download from rapishare too, but I won't change it for some time, because we wait better until the consequenses of the megaupload disaster are clear. Rapidshare is hopefully strong enough to survive the pressure. A lot of hosters gave up or pause there offer.

To your bootloop I have a question. Have you erased IDB before flashing a gingerbread rom with the RkAndroidtool 1.23? We have some next 3 users around here and they use gingerbread.
[Miscellaneous Android Development] surfer63:
Thanks a lot. Interesting.

Note though that my Antutu "total" scores are without the SDcard read/write and your total scores are with the SDcard read/writes. I left them out as it makes a big different to use an "el cheapo" card or a high-speed sdcard. The sdcard score doesn't say anything about the RK2818 tablet score itself.

From your scores it turns out that the JDefense rom is the fastest and that the SMP gingerbread(s) are second fast.

Gingerbread is theoretically faster then froyo, but we suffer from the minimal 128M memory in our tablets. With 256M or more my strong idea is that the gingerbreads would be the fastest.

In day to day work on a "busy" tablet you see that the gingerbreads need to swap out earlier then the froyos, sometimes causing some hick-ups and "stalls" in reacting on clicks and so on.
[Miscellaneous Android Development] JDfense:
I agree to the causes of gingerbreads disadvantage. Thats the reason why I try to keep all roms as small as possible and won't built the beautist rom. It costs all memory. Only the bootlogo, a nice bootanimation and one wallpaper is enough.
[Miscellaneous Android Development] surfer63:
Reflash gingerbread: Via rkflashtool/RKAndroid tool or via "in tablet" reflash

Hi,

I'm wondering how you all do the reflash of your gingerbreads.

Are you using _fun's RK2818 recovery image which enables you to flash directly from your tablet (copy update.img to tablet, run script via apk and "whoppa" it flashes") or do you use the RKAndroid tool route?

I use _fun's recovery image which only needs one small modification to make it possible to flash your tablet without RKandroid or rkflashtool.

I get the idea that you don't use it. I think the modified recovery image is a great advantage over the RKAndroid tool, especially to less experienced users.

Do you already use it? Do you want me to write a small wiki about it? Or don't you care at all?
[Miscellaneous Android Development] stevemp:
I think most people here use windows and RKAndroidBatchUpgrade.exe, which came packed with some PMP3084B tablet upgrades along with instructions and usb drivers. Link> http://www.mediafire.com/?a2wgkzbuogv7fif I am new to rk2818, that's the way I learned how to flash. Never heard of _fun's tool, used his tools in Linux to pull img from , but never to put back. Before I had nook color, put zip file on sdcard or write image to sdcard and boot from that, no need to modify internal nand at all. Or use Rom Manager to download and install image, too easy maybe :p gave it to my grandson.

stevemp

---------- Post added at 06:47 AM ---------- Previous post was at 06:43 AM ----------

We could try writing image to nand and give it 256M and see. :)

stevemp
[Miscellaneous Android Development] surfer63:
:confused: for all the Archos and Arnova tablets you download a new update.img "somewhere", copy it to your internal memory or sd card and the software detects that a new update.img has been found. If you click OK to install it will start the flash process (read here). I know it works the same for Apad tablets and a couple of other chinese RK818 tablets. Doesn't it work like that for your tablets?

With the introduction of gingerbread it didn't work like that anymore and _fun modified the recovery image (of his own apad I assume) to make it work with gingerbread again. As the recovery image is equal for the Apad and the Archos/Arnova tablets I assumed it was the same for all RK2818 tablets.

In that case you might try a froyo rom with an Archos or Apad recovery image to see whether it works like described. That makes it much easier to the users I think.

Anyway I don't think you are interested :) as you are all fully used to the RKAndroidupgrade tool
[Miscellaneous Android Development] NickEFuze:
I was not fully clear in my original post. The video output was in the correct orientation, but the touchscreen was responding not only portrait while in landscape, but lower-left press was interpreted as upper right - so it was both rotated and flipped.

I tried fix this issue by swapping your TSCalibration.apk (which calibrates in landscape) with the stock Next3 Eclair version (which calibrates in portrait). This did not work. I fixed it instead by editing (using adb to pull and push) the TouchCheck.xml file located in /data/data/com.rockchip.tscalibration/shared_prefs. I changed each "TOP" to "BOTTOM", "LEFT" to "RIGHT", "X" to "Y" (and vice versa on each).

After that, the touchscreen worked normally. Now, I just need to figure out how to make this happen automatically. Perhaps by editing the TSCalibration.apk that writes this file.

I need to study the framework.jar to see what goes on in there. I am new to Android, but not Linux. I am still studying to understand step-by-step what actually happens when the operating system is being built after flashing. There are so many moving parts.