yashsingh1/xdaforums huggingface dataset:
[Android Development on Bada] larioteo:
@oleg_k i have informations about new system of bada, yesterday i have flashed the firmware for the wave II there was no fota file, but fota update is integrated, maybe it is usefull for you.

It seems that this feature will be integrated somewhere else, the filesizes have reduced dramatically of bada itself, nearly the half.

amss.bin = 12,1 MB

apps_compressed.bin = 28 MB

csc = 26 MB

ffs = 77,1 MB

rsrc1 = 54,5 MB

rsrc2 = 1,81 MB

SHP = 120 MB

boot_loader.mbn = 1,62 MB

dbl.mbn = 275 kb

i would say the foto is combined with bootloader, if you need more information, i will post it.
[Android Development on Bada] mijoma:
apps_compressed indicate that FOTA is not supported in this version, so the bootloader does perform the check so far. With this version we have a rebuilt bootloader and all the components loaded to other addresses in OneNAND and DRAM.
[Android Development on Bada] larioteo:
hmm i can select ota update on settings menu, i dont get it yet what you mean the file fota seems to be discontinued and integrated in bootloader this i mean, but it seems to no be a problem. ok.

before it was so witouth fota no menu entry.
[Android Development on Bada] mijoma:
I just mean that after some module is downloaded OverTheAir (and that may be executed in the menu) it has to be installed and usually it's bootloader doing this job (although something may have changed).

The bootloader during startup checks for the update availability in certain OneNAND region and runs FOTA module (the one that comes as separate file) then.

To know whether it should expect anything and check for the FOTA module installed it looks for specific magic number in apps_compressed header. If it's not there, nothing will happen and simply bada will be booted.

If the header indicates that apps support FOTA update, the bootloader checks whether FOTA engine is installed first.

Summarizing, if the apps do not indicate that necessity to the bootloader, the separate FOTA engine is not needed as won't ever be executed.
[Android Development on Bada] larioteo:
ok this is logical, then it goes anywhere, but what about SHP Kernel (apps_compressed) if it uses another techique, it is near the half size of old and seems to have all functions in it. SHP_APP is nearly the half bigger than the old one.
[Android Development on Bada] mijoma:
I don't know yet. First, we'll need to see why currently used tools don't decompress the apps correctly. Difficult to say without that.
[Android Development on Bada] larioteo:
yes also tried it, stunes also doesnt have anymore access to filesystem, and trix cant also do someting, maybe it will help to look at the emulator firmware, it is nearly the same without shp file, i can give you the link of the emulator. it is also newer and should be better for research.
[Android Development on Bada] mijoma:
I'll go with the bootloader analyzing route as to see what changes have been introduced to booting and security. I am terribly busy in July, so I won't be able to provide the results too soon. It'd be good if other people looked at the problem as well, possibly from different angles. Rebellos should be able to help, as well.

I never used emulator files, but I guess they are compiled to different platform and some processes may be significantly different.
[Android Development on Bada] nbates66:
Rebellos has indicated that the 1.0 and 1.2 kernels (he's examining disassembled code for modem work) have a LOT of junk code and useless functions that get loaded into memory in the kernel(and wasting memory) but never ever used, mostly fuctions for old hardware that has little to do with the Wave, if Bada 2.0's kernel is significantly smaller maybe Samsung finally got to cleaning up the junk.
[Android Development on Bada] Tigrouzen:
With bada 1.2 compiled FOTA s8530 Droid can flash

Now with bada 2.0 adress changed and cant flash FOTA
[Android Development on Bada] larioteo:
yes he told me this already, i also think that they have removed this unaccesary stuff, we will know after being available to decompress it agein, multiloader deas this also while flashing the needet runtimes seem to not be changed cause you need only the same 5.65 to flash bada 2.0.
[Android Development on Bada] Tigrouzen:
Im dumping files likes stune but not with stune ;) other program its work. After i upload it in zip. Its verry slow dump...
[Android Development on Bada] bsmstar:
does that mean we have an android on wave II ? i want it now :D
[Android Development on Bada] Tigrouzen:
Flash it but Power menu vol up dont work then i dont have Android

About Wave 2, Samsung Nexus S i9023 have Super Clear Lcd screen. You can find firmware and maybe driver.
[Android Development on Bada] bsmstar:
where does the port stand now? if it was that easy as u say ppl would have done it.. man, im not a modder. i didnt even understand all steps on wave 1 installation but i didnt care cuz i dont have wave, i have wave 2 :)
[Android Development on Bada] Tigrouzen:
Holiday and first well work's on Wave 1 then the developer can give a time to Wave 2
[Android Development on Bada] Rebellos:
Thanks. Got it for some time already, driver seems to fit S8530 LCD, but its for GB, so I'm waiting for some oleg's GB release to test it, I'm too lazy to port it backward.
[Android Development on Bada] Tigrouzen:
Bada 2.0.1 kG5 S8500 Shpapp can be flashed on S8530 !!!
[Android Development on Bada] cadiga:
What does it imply?

1) I am thinking that Samsung has optimized the code and devised a machanism in the code to select drivers and address spaces on the basis of the hardware platform the installer code is running. Would it be possible to do so while flashing?.

2) Then may be newer Android release would run on other platforms directly including older ones :confused:

Anyone attempted to flash Andriod release Galaxy Super Clear LCD model on Wave 2 8530? Any success stories?
[Android Development on Bada] nbates66:
it doesn't quite work like that, olegs currently released kernel source is based on Froyo, the drivers for the Galaxy series phones that use SLCD's are based on gingerbread, we cannot just put the gingerbread driver into the froyo kernel thus it's better to work at that once olegs gingerbread sources are ready - in addition there may be other issues regarding the way the S8530's sdcard controller works.
[Android Development on Bada] Tigrouzen:
Chipset datasheet S8530 can help you ?
[Android Development on Bada] bsmstar:
i thought that u guys said earlier that u might have found a way to flash it without needing microSD.. :) anyway, how is GB kernel going by oleg_k ?
[Android Development on Bada] anghelyi:
We have more than one solution to that, but only one has been proven yet: JTAG (oleg_k's method). In theory you can use Odin to flash an Android rom or you can use dd (booted from SD) to write a partition image to the phone but these hasn't been tested and most probably will brick your Wave. We have proven methods to run from moviNAND: the one is nbates66's image based config (the latest tut build) the other is to repartition the moviNAND with parted and create a partition for Android (I tested this, it works). But these are not very user friendly solutions yet...

As for the kernel, I have no information.
[Android Development on Bada] Rebellos:
Moving forward. But he is very busy with other things.

Btw, some crazy experiments ahead! I've just totally bricked my S8530 and now I have to find way to connect JTAG... xD
[Android Development on Bada] Michael_W_L:
Congrats :D good thing you got the JTAG then. What caused it to brick?

Using JTAG you can reflash without the need for a bootloader right? So in theory you could find a compatible firmware and flash that? I am sure ONE of the hundreds of glaaxy variants (m130?) may be closest to being correct.
[Android Development on Bada] adfree:
@ Rebellos

Please, tell me if you successfully reanimate your S8530 with JTAG.

Since I have RIFF, nobody else wrote here about JTAG experiences... with S8500/S8530... :(

Thanx.

Best Regards
[Android Development on Bada] Tigrouzen:
Its this tool you need !!!

http://www.teacherbridge.org/public/users/kikim/kibum/C7.pdf
[Android Development on Bada] Duckroger73:
I want tell everyone THANKS for the great job in the actually Android porting.

I was thinking about the kernel modem driver from m130k galaxy.

is possible to extract from the lib/modules m130k galaxy firmware and try to insert manually with adb command? maybe with

adb shell modprobe modem_driver.ko module and log it with

adb shell dmesg.

Sorry for my silly question, i am not an android expert, just linux user

THANKS EVERYONE
[Android Development on Bada] ShadowAS1:
It cOuld work, not quite sure i thought someone said it aint possible

Anyways we couls try it but well need olegs stuff
[Android Development on Bada] Duckroger73:
Can anyone post the m130k log? I would like to have a look at it.

thanks
[Android Development on Bada] Duckroger73:
I have heard someone had signal with m130k kernel. That could means modem module is loaded correctly. We can try. Maybe forcing loading with modprobe in a .sh file or inizialization file.
[Android Development on Bada] Duckroger73:
I would like to suggest to make a step back... now we have gui and is OK.

But.. lets think only to kernel.. the kernel come first... so.. we are sure we cant brick phone now... so.. why dont change the actually zimage with the m130k phone and just look at dmesg log? Is only to find if modem is being loaded...

then we can work starting from there... and recompiling it adding features of the new config.gz

What do you think guys?
[Android Development on Bada] nbates66:
no, no no, been here, we've done all this, SHW M-130K is the ORIGINAL platform that oleg worked on, he flashed and ran it from oneNAND+moviNAND(original SHW-M130K layout), and i myself did so as well from external SDcard, while the SHW-M130K does have a similar modem chip, it's configuration is rather different, while i think *some* modem control has been achieved, large blockers to using it for calls/sms/data would be retrieving the nv data from modem for IMEI and actual network usage, as well as the way modem is tied into the fuel guage.

EDIT: assuming it didn't get deleted, i believe posts mentioning this can still be found in this thread :p .
[Android Development on Bada] Rebellos:
I called Flash_Write_Data from FOTA code, on large, 4MB block, it was in sysdata area, but most likely that stupid BML isn't able to handle such big amount of data at once. : (

I don't have riffbox as Oleg, only JTAG compatibile with OpenOCD. This means I don't have oneNand driver. So I cannot reflash oneNAND using JTAG, I can only modify RAM, and this is what I'm going to to - insert correct BL3 into RAM and bring it into DLoad mode.

But most likely I'll decide to create oneNAND driver for OCD also or play little more with FOTA and brick my Wave few times more, as I have to reconstruct my sysdata using few dumps I've got. ;d

Or I'll try to switch to Android permanently.

But first I muist find a way to connect to JTAG using my soldering skills (oh well, to use something you should have it, right?)

Thanks Tigrouzen for link to info about Mocha platform. It is over 7 years old, used already in many, many Samsung handsets. That's some explanation of 80MB of OS in first version...
[Android Development on Bada] Michael_W_L:
How good are you with soldering? I ask as the big thing is, heat.

If you use a cheapo iron you may fry the chip, though there may be safe points you can use.

Think you could reflash the bootloader completely? More importantly, IS there a standard bootloader that can be configured? I know that there is one in the Android source, but haven't looked at how to actually set it up

If it isn't too difficult to set up, replacing the bootloader could be an option for those who want it.
[Android Development on Bada] sabianadmin:
Is that replacing the boot loader with the stock SGS one and then flashing Android via Odin? if so thats exactly what we should be working on, anyone who want the SD or MoviNAND version can use it but the focus should be on getting it on internal NAND, as it should have been from the start.
[Android Development on Bada] Michael_W_L:
Because of differences it will have to be modified and I haven't checked if you can modiy that one.

I was referring to the bootloader mentioned in the source code of Android. Rewrtiting the bootloader correctly is more difficult, but will be perfect afterwards.

The thing is that it has to be written by a person who has a Riffbox it seems, as the thing is, when doing this, you WILL be bricking the phone once or twice.

To replace the bootloader is a major step, though it may be the only solution for those on bada 2.0.

Though yes, I did mean replacing the bootloader. Though I do not know if it is a viable solution to a normal user on xda, owing to the MAJOR risks involved. Then again this is xda!

This was just for Rebellous who has the hardware required to at least test it without too many problems. On the otherhand, he may get unlucky and destroy his wave 2.

Setting up the bootloader shouldn't be difficult for those who have been creating one in the fota. I wonder then what would happen if somebody had to try to set up the bootloader to boot bada, will be intresting to see!
[Android Development on Bada] Rebellos:
The safest way for dualboot bada 2 + android is use the same way as before, if the newest BL3 doesn't allow FOTA code (it seems to allow it btw) we can prepare FOTA which can boot bada 2 or android from bada 1.2 BL3.

Replacing BL is risky step, If I connect JTAG successfully maybe I will play with it.

But well, for now my Wave is bricked and looks like I damaged JTAG pads with my solder tries before too much connect it. :/ Or just JTAG I've got is not working well with S5PC110. :o
[Android Development on Bada] bong4316:
Ask for Samsung's help?

Ok i know that realistically that there is a large 80 percent chance that Samsung will never in their wildest dreams encourage the development of android on its bada phones, but for the sake of PR etc there can be a chance the samsung engineering team or at least its PR division might consider giving aid for the parts of the wave 8500/8530 that are too esoteric. (like the modem and its unique version of powervr sgx540 etc)

Consider that for the sake of good PR with the techie community they did give

cyanogen a few galaxy s2 units to experiment on.

In this case the devs wont be asking for units at all but just a bit of technical information, not the whole kaboodle but just enough to make the phone fully usable and stable for android.

Before we become unduly negative, there is a slim chance that if given the right PR spin, samsung can be made to see the benefits of assisting the port of android to the wave. just for the Good PR.

If Samsung doesn't agree or want to help at least someone tried.
[Android Development on Bada] nbates66:
thats different, Galaxy series phones ALREADY run android so thats fine, in this case a successful android port could interfere (however slightly) with the development of their still infant bada operating system, i can not see Samsung helping such a project unless the PR they wanted was that that're willing to destroy their own developments.
[Android Development on Bada] Tigrouzen:
I maked FOTA from 8500 worked on 8530 dbl too but real problem its on bootloader.mbr not same 8500 and hold trick to boot on android doesnt work but all file flashed about 8500 fota dbl its work !!!

Wave 2 boot with 8500 file just need bootloader.mbr !!!
[Android Development on Bada] mijoma:
I'm not sure what you were trying to say, but FOTA for S8530 is not a problem and was tested many times as much of the Android loading process development was performed on S8530.

S8530 is missing kernel with screen driver, not FOTA.
[Android Development on Bada] adfree:
Blub... :)

Request again.

I'm missing Training manuals for S8530 (Wave 2). Like this here:

http://xdaforums.com/showpost.php?p=13304045&postcount=11

Thanx in advance.

Best Regards
[Android Development on Bada] Tigrouzen:
Ok i understood now its not boot like linux console but need direct LCD.

Then its boot directly Bada, its correct ?
[Android Development on Bada] midas5:
Which cpu does this platform have? I ask because we have found a way to un-brick an I9000, that uses the S5PC110 that does not need a jtag. If this can be applied to your platform, it might make it safer for users to flash bootloaders.
[Android Development on Bada] lordfarhan40:
hey i think it uses the same(as stated by wikipedia)
[Android Development on Bada] Gothic253:
Yes. The CPU and GPU it's the same: ARM Cortex-A8 and PowerVR SGX 540
[Android Development on Bada] Rebellos:
Exactly the same CPU and FSA USB multiplexer. OM manipulation unbricking would look the same, it just needs locating OM5 pulldown resistor.
[Android Development on Bada] adfree:
Please show Link to solution for better understanding...

Thanx in advance.

Best Regards
[Android Development on Bada] Rebellos:
midas5, in Waves case soldering to JTAG pads is ten times easier than in SGS. ;P

If anybody has got access to S8500 Anyservice manual - I need closer look photo of xOM connections at page 71 (UCP500 schema), its located near right border, 6 lines in the middle of page height. Or just names of resistors (Rxxx, R123 for example).

The same schema is in S8530 manual, but can't confirm page number.

It is needed for no-JTAG Wave reviving development.
[Android Development on Bada] Tigrouzen:
Samsung Captivate :

Cpu Pin Exploded :

Samsung S8500

http://www.mediafire.com/?94krzvvxksvmuxh

http://translate.google.com/transla...u=http://www.aesop.or.kr/?document_srl=258137
[Android Development on Bada] Rebellos:
Thanks, I can just guess that OM resistors may be 552,553,555,554 (pulldown) + 217, 218 (pullup) or 524,525,523,527,526,532 or even others, needs investigation with multimeter.

Anybody got totally bricked Wave and can sacrifice for teardown? ;d
[Android Development on Bada] Tigrouzen:
Rebellos look this kernel i9023 SCL

https://github.com/project-voodoo/linux_samsung/tree/nexus-s-voodoo/arch/arm/mach-s5pv210

https://github.com/project-voodoo/l...-voodoo/arch/arm/mach-s5pv210/herring-panel.c

Super LCD module Nexus i9023
[Android Development on Bada] Tigrouzen:
More kernel source her samsung mobile !!!

https://github.com/project-voodoo
[Android Development on Bada] Rebellos:
Thanks Tigrouzen, got it for some time. Still waiting for GB port. Also I'm currently with no testing device (bricked my phone)

I9023 GB kernel includes drivers for 3 various SCLCD screens. I'm pretty sure in S8530 usually hynix or herring is used (S8530 seems to support 2 slighty different sclcd models)
[Android Development on Bada] Tigrouzen:
Rebellos have you got a right SBL and Fota for s8530 and if u can upload it thank you.

I want play with some kernel and defconf
[Android Development on Bada] nbates66:
sources are available that can be used to compile a fota for S8530 (not sure which firmware) on badadroid.googlecode.com, currently can use same SBL, with the hiccup being that it will be unable to init the display, even if you get the display driver correct in the kernel, best that can be managed is running commands on the kernel via ADB if you build a kernel that mounts what is needed.

EDIT: also i'm pretty sure that there are other driver problems, possibly including sdcard control.
[Android Development on Bada] Tigrouzen:
@Adfree verry interesting

http://forums.badadev.com/viewtopic.php?f=3&t=949

http://www.fnal.gov/docs/products/python/v2_1_1/lib/module-pickle.html

@Adfree

Bootanimation

https://github.com/Dieken/SurfaceFlinger/tree/master/frameworks/base/cmds/bootanimation

For Fota i see use JKA1.bin then bootfile jka1 but maybe i compile wrong cause nothing happen when boot...Just booting Bada
[Android Development on Bada] adfree:
http://xdaforums.com/showpost.php?p=17073619&postcount=32

It seems ELF is possible to execute in RAM via JTAG...

BL3_univ...elf

Ehm, is this BL3 able to disable Security Checks of Bootloader? :confused:

Best Regards
[Android Development on Bada] Rebellos:
What security checks do you mean? The BL3 from Samsung's .elf doesn't have disabled security by default, these are exactly the same as inside of bootloader.mbn, but are unencrypted.

Of course .ELF can be modified to not check any checksums and signs (in apps for example or during download mode)

//edit: I think I'm out of development for some time. Destroyed my S8530 totally yesterday in result of some tests. If anyone has got mainboard for S8530 - I'd appreciate. For now I can't afford repair and collecting cash for SGS2 I think.
[Android Development on Bada] smokestack76:
Ok once again. I cleaned alot of useless post in here. Lets keep it on topic again. ;)

Or maybe time to unsticky this thread and let it die in peace?
[Android Development on Bada] Lithophyses:
you could limit the thread to special users only, so none other can spam it
[Android Development on Bada] Rebellos:
I just bought S8530 from Tigrouzen only to finish the project. I don't need Wave anymore. But I'd like to finish the work. So don't let the thread die... yet.
[Android Development on Bada] Rebellos:
@Tigrouzen:

Thats ok, I don't understand French anyway. :d

@Wanna-help-guys:

If you want to help - grab IDA, various BL3 sources and help Ho1od in developing QMD from bada 2.0 decompression. By help i don't mean spamming him to work faster. Just offer him help if you really feel you can speed it up.
[Android Development on Bada] Tigrouzen:
Maybe this can help developper ther's verry intersting information about how Samsung works with Rtos and Nand memory, there's partener Samsung who delivres program and soc architecture to Samsung...

Rtos Kernel :

http://www.esol.com/embedded/prfile2-drivers.html#samsung_nanddriver

You can find her any information about Rtos kernel and driver.

http://www.datalight.com/products/embedded-flash-file-systems

Partner Mentor Graphics and Samsung integration

http://www.aicp.co.jp/en/products/sd.shtml

SD Rtos driver

http://www.renesas.com/products/tools/evaluation_software/evaluation_software_mid_level_landing.jsp

Renesas partner Samsung Software integration

http://www.renesas.com/tool/

Renesas Tools

http://www.windriver.com/evaluations/

PArtner Limo there's evaluation tools they sell Jtag too
[Android Development on Bada] adfree:
QMD is "Header" of compressed data... in RC1 and apps_compressed.bin used.

Decompression is known and working for bada 1.x

But not yet for bada 2.0...

We need also Algo for compress self... this seems much harder.

BL3 means Bootloader ... stage 3...

IDA is nice Tool for Reverse Engineering...

Btw...

My S8530 is now ready for some action.

Merry Christmas. :D

Maybe next year more success.

Best Regards
[Android Development on Bada] Tigrouzen:
ok i found samsung nucleus complete kernel but its for S3C2410 years 2002 if you wont study that i can upload.
[Android Development on Bada] Rebellos:
Got sourcecode? Would be good to have that. I bet Bada is based on similiar kernel, so always easier to disassemble and omit useless code quickly.
[Android Development on Bada] Tigrouzen:
Samsung platform emulator for Linux

Skyeye Arm7-9..(s5pc100..110... emulator on Win )

Nucleus plus (samsung use it for to many techno) before its ATI entreprise its now a Mentor Graphics division!!

http://www.acceleratedtechnology.co.kr/

Nucleus Plus complete datasheet English/Chinise

https://rapidshare.com/files/466247160/c517fa2e2698.rar

Nucleus Plus Training

https://rapidshare.com/files/3287560676/Nucleus_Training_Guide.pdf

Nucleus Plus Reference

https://rapidshare.com/files/3062703284/Mini_reference_Manual.pdf

CMDA tools on linux

Terminal (com)

RealTerminal (advanced tools serial com) verry expert

https://rapidshare.com/files/235831403/Realterm_1-99-27.zip

https://rapidshare.com/files/1672993883/74dc606cb4e0.rar

https://rapidshare.com/files/966128845/term20040714.zip

https://rapidshare.com/files/2873436800/ec69f9ac1c15.zip

https://rapidshare.com/files/1200323301/S5PC110_EVT1_UM10__1_.pdf

https://rapidshare.com/files/3635401163/samsung-platform-emulator-0.1.tar.gz

https://rapidshare.com/files/3736463811/skyeye-win-1.3.1.tar.gz