yashsingh1/xdaforums huggingface dataset:
[HD Mini Android Development] -r0bin-:
/!\ spl is not linux

if you want android on HTC mini, you cannot avoid linux, even if you have spl.

spl is not a magic tool, it's just a bootloader

we have no choices but to fix all the existing issues on current linux + android :(
[HD Mini Android Development] tzacapaca:
hey r0bin,haven't see u lately.i thought u abandoned us :p

questions: is it possible just to copy the one from Aria/Gratia (preferably without to fry our phones :D )

do you know where the driver is located?
[HD Mini Android Development] -r0bin-:
i was in vacations ;)

i see that we now have sd support, great job guys!

regarding power management, we already use the one of Aria/Gratia.

it was deactivated in cotula's linux version because it caused the kernel not to boot properly.

i already tried to activate it, but android cannot boot.

(file is arch/arm/mach-msm/htc-power-supply.cpp)

if you want to fix it, you need special cable to be able to get early linux debug traces and investigate where the issue is:

http://www.instructables.com/id/Android-G1-Serial-Cable/

i ordered the components, just received them today, i'll try this and let you know...
[HD Mini Android Development] -r0bin-:
damn the cable is not compatible with htc mini :-( :-( :-(
[HD Mini Android Development] spithash:
lol robin !
[HD Mini Android Development] gabbana-music:
Whether I do not know this information will help you, but I have disassembled the hdmini, and have looked at microcircuits. For a feed answers Qualcomm PM7540 (AH44378 C2003003) . It is necessary to find datasheet for it.
[HD Mini Android Development] Ell cullend:
could you put a link form another site please? when i go on download nothin happens :( i been struggling to get sd car to work for ages. thanks
[HD Mini Android Development] Ell cullend:
i would like to test this, but for some reason that site wont let me download anything :s i click download, click yes allow at the top, but then nothing happens. could put it on another site please? thanks would like to help by testing things out.
[HD Mini Android Development] 15131331231:
thanks to cardsharing!
[HD Mini Android Development] john12123:
Thank!cardsharing

sd card can run

wifi can run

But the connection disconnect ip

Battery problem be fixed?
[HD Mini Android Development] derefas:
so i fixed sd card

now iam working with battery i known what is problem
[HD Mini Android Development] ToughGuy:
Hope this picture can help for you.

i'm soorry!

i checked this page:http://xdaforums.com/showpost.php?p=12235255&postcount=1

Battery chip is pm7540.

You've done it.
[HD Mini Android Development] schlund:
try to chmod all data on system.img to 0777
[HD Mini Android Development] ToughGuy:
ok,i will try.
[HD Mini Android Development] 15131331231:
great job,cardsharing!please post download link,I'll try it and feed back later.and,what's the next bug that to be fixed?
[HD Mini Android Development] codiak:
Maybe its time to use a git repo to share changes?
[HD Mini Android Development] 15131331231:
haha~I do not want my battery explode,too.Every step you made,exiting me a lot.thanks,cardsharing.I am waiting for the day that android on mini works perfect！
[HD Mini Android Development] codiak:
I have created a google code page. PM me for access (google account needed)
[HD Mini Android Development] Jack_Of_Spades:
Hi all guys.

I've read 26 pages but i really don't understood what i have to do to install android on my htc hd mini.

Can anyone help me please i need a step by step procedure from what dowload and install . Thank you all.
[HD Mini Android Development] codiak:
Please open a new thread. This is about developing!
[HD Mini Android Development] john12123:
OH THANK!!!

Solve the problem quickly

But also can recharge your batteries?
[HD Mini Android Development] codiak:
As you can see here, battery is not working atm.

Cardsharing and others are working on it, but its not released yet.
[HD Mini Android Development] -r0bin-:
good job cardsharing!

i'll thave a look at it, and try to upload it on the photon android webpage created by coviac

I guess you use it with the Froyo 2.2 image you provided earlier, is it correct?

can you upload it here please?

I cannot install it on my phone from android market, it says no space left :-/
[HD Mini Android Development] codiak:
It comes with Froyo.
[HD Mini Android Development] codiak:
I have a problem with the second archiv (batfix). When I unpack it, there are different versions of some files and I dont know which one to choose. Tried different unpackers. Never had that before :/
[HD Mini Android Development] john12123:
Unassigned file limit of 10 downloads reached.???

I not downloads the file
[HD Mini Android Development] codiak:
I think its 10 downloads per day in total.

Had the problem yesterday too.
[HD Mini Android Development] ttcome:
Thank you very much has been developing, we know that developers tired, but we hope you can stick with it. Many people are concerned about our system, for our adnroid of mini, come on! Some suggested that we first solve the problem of the microphone or GPRS, I think it is relatively simple, so wo can use it call.
[HD Mini Android Development] ttcome:
I'm inviting some friends to try to do ROM, the future can brush device。I will Invite more developers to come here！
[HD Mini Android Development] Fabiodr88:
Cardsharing Thanks for everything you do!

Listen, I wonder if we can fix the bug of 3G because unfortunately my Italian card 3 is unusable! I hope that soon works! : (

Last thing I wanted to ask why the WiFi will not connect: "acquiring ip address in the course .." .. how to resolve?

Thanks in advance you are great!!
[HD Mini Android Development] -r0bin-:
thanks cardsharing, i'll have a look at it.

so if i understood well, the battery fix comes from HTC Leo, correct?
[HD Mini Android Development] schlund:
thank you for sharing your kernel!

If it will not be too much work for you would you tell me what is from cotullas .29, cyaonogen .32 and what from gratia .32?

I think i will take a look at mic and wifi dhcp issue so long ..
[HD Mini Android Development] -r0bin-:
schlund, if i'm not wrong:

initial commit is source code from developers.htc.com, Gratia 2.6.32 release.

second commit is HTC Leo battery patch, using ds2746 driver for battery.

wifi dhcp issue is probably a missing binary in ext2 (udhcp?) or a bad android configuration file

for mic I don't know :)
[HD Mini Android Development] schlund:
ookay, maybe a stupid question,but

how do you know we have ds2746 monitoring chip ?
[HD Mini Android Development] wismar:
look here

http://xdaforums.com/showpost.php?p=12145931&postcount=235
[HD Mini Android Development] -r0bin-:
same question here :)

are you sure those pics are from HTC mini?

one of the pics shows MSM7201A, photon has MSM7227...
[HD Mini Android Development] codiak:
Good point. Camera chip is also different in the Jpeg.
[HD Mini Android Development] -r0bin-:
attention please, we need a volunteer to open his HD mini and take pics :D
[HD Mini Android Development] gabbana-music:
My friend! I not the moron... I hands assorted the HD Mini, and photographed a Chips! Then photos here has laid out!
[HD Mini Android Development] pwel:
the 4th image is a schematic overview: this shows MSM7201. But that is not a PIC. So this schematic overview may not be correct, but the pics are from the mini.
[HD Mini Android Development] -r0bin-:
oh that's great news, thanks gabbana for the pics!
[HD Mini Android Development] schlund:
ok, thank you for the pics, but i can not see an ds2746.. could you explain that choise to me ?
[HD Mini Android Development] -r0bin-:
the pics shows at least photon handles battery with Qualcomm PM7540.

It is also the case for Xperia X1, but it seems that the power management relies on another component.

See here:

http://xdaforums.com/showpost.php?p=8168494&postcount=308

On Xperia X1, seems that DS2746 is responsible to read battery level.

I'm looking at the pics to try getting a similar reference...
[HD Mini Android Development] -r0bin-:
hey gabbana, can you please help us more?

we're trying to get the IC chipset responsible to measure the battery voltage.

have a look here (HTC nexus one):

on the pic, the PM7540 is in yellow, and the IC chipset for battery is in blue

http://static.nexus-lab.com/wp-content/uploads/2010/01/211.jpg

can you take more pics or try to find similar chipset (circled in blue) around the Qualcom PM7540?

thanks :)
[HD Mini Android Development] pwel:
DS2746 is a 10 pins (2 rows of 5) leadless package 3x3mm2. If you look at the pics, there are 3 possibilities: in 1.png, top left (900 256V Eh0) and in 2.png there are two on the right: A5008 WCA001 and 771BG-1 S8710.

I can't relate them to DS2746, but neither to anything else tha would make sense.
[HD Mini Android Development] -r0bin-:
right, but there are also other IC chipsets hidden behind the metalic things.

there are two or three of them behind the metallic circle in the middle of 1.png, you can see clearly one on the right hand side of the "220" component
[HD Mini Android Development] schlund:
juppi, this means my question wasn't too stupid :D

thank you for your research!

maybe we should look for some chips, the gratia kernel has already included ?

I also searched the web because of android market, and it seems there is a problem with wifi <-> router, Port 5228 has to be forwarded..
[HD Mini Android Development] -r0bin-:
dhcp is probably something to tune up to get automatic IP configuration

but it cannot be linked to the issue with Android market, because we can access it through wlan.

to solve the android market issue, you need to find out the error message associated to the application, and investigate... :)

if the sdcard is recognized by android, then the issue is somewhere else. probably a folder is missing, or access rights are not good, or write is not enabled.

you need to check where the android market application tries to write data when it download package, and when it installs it.

regarding IPv6, check the kernel configuration is not compiled with IPv6 support? check configuration files for dhcpd?

maybe it is not an error, just information message?
[HD Mini Android Development] pwel:
to me it seems behind the metal there can't be a 3x3mm chip. I just checked with my Chinese colleague on the chines pics shown earlier by toughguy: the one on the left side is the gravity sensor. And there is nothing futher on battery than the power management chip.
[HD Mini Android Development] -r0bin-:
**** :/ where is the ds2746 then?

maybe inserted on-chip?
[HD Mini Android Development] pwel:
One more translation: the chip below the gravity sensor is labeled as: logic power supply. it is an atmel ATmega88PA-MMH Microcontroller
[HD Mini Android Development] pwel:
and see: http://xdaforums.com/showpost.php?p=8168494&postcount=308 If DS2746 is used, there should be the 3x3mm2 chip somewhere

EDIT: sorry robin, did not see you already posted this!
[HD Mini Android Development] -r0bin-:
no the bcm module should be fine.

try compiling new kernel without ipv6 (dirty way)

try to tune the dhcpd.conf using the doc:

http://www.daemon-systems.org/man/dhcpd.conf.5.html

http://oss.gonicus.de/openpower/index.php/Dhcpd_Example

yes, but it can also be another chipset, such as:

CONFIG_BATTERY_DS2760

CONFIG_BATTERY_DS2782

CONFIG_BATTERY_DS2784

CONFIG_BATTERY_DS2746 (the one we are using)

CONFIG_BATTERY_BQ27x00

CONFIG_BATTERY_MAX17040

or maybe another one that is not listed in linux src yet...

we need to figure this out
[HD Mini Android Development] schlund:
please do also search for other chips than 3x3mm! There could also be other measurementchips than DS2746 which could be greater! Thank you :)
[HD Mini Android Development] -r0bin-:
you're right!

DS2746, dim 3x3mm, 10pin

http://pdf1.alldatasheet.com/datasheet-pdf/view/195859/DALLAS/DS2746.html

DS2760, dim 2.41x2.69mm, 16pin

http://pdfserv.maxim-ic.com/en/ds/DS2760.pdf

http://pdfserv.maxim-ic.com/arpdf/Packages/chips/2760x.pdf

DS2742, dim 3mmx4mm, 8pin

http://datasheets.maxim-ic.com/en/ds/DS2782.pdf

etc...
[HD Mini Android Development] schlund:
hmm best idea without disassembling the device :P
[HD Mini Android Development] pwel:
still DS2784 is TDFN14 package of 3x5mm2. Can't really be missed. Is used in the nexus one. Can't see that on the pics.
[HD Mini Android Development] pwel:
ok, this may explain: in the Nexus one, the DS2784 is in the battery itself:

http://xdaforums.com/showpost.php?p=10491863&postcount=45

Could be the case for the mini too! Who has dissassembled his battery already::D?
[HD Mini Android Development] curiouser:
Hi,

I hope this helps.

All for the greater good :D

curiouser
[HD Mini Android Development] -r0bin-:
no i dont think so. the post does not say so.

and check my previous posts, i attached a pic where you see clearly the component in nexus teardown.

and if it was the case, then it should be similar to gratia/aria, and is not...

yes, i tried but could not access it, even with total commander

dll is located in /windows/battdrvr.dll

if you manage to get it, it interests me... :)

thanks curiouser that helps!

on the last pic you can see the chip 8205a that is just a protection chip to avoid battery explosion or shortcut. i dont see more, and i dont think the chipset is there.

the only solution is to open our htc...

anyone has documentation on how to open without breaking everything inside?

i'm not very good at this game :-)
[HD Mini Android Development] schlund:
jip, sad but true. Thank you for ur involvement curiouser!

i also had this idea with windows drivers.. but i did never need to disasemble, so i dont know how..

and i took the time to look on your log, u were successful in disabling ipv6, but it is still not working, i wouldnt be sure that this is android-only thing, also found the new drivers a few days ago and had the same idea :)

battery is not working.. hmm

but i dont know your changes, parts of this error is outlined in your source :P

i also see that g-sensor is not working kernel side..
[HD Mini Android Development] rasoooli:
Hi

I extract it from ROM file . ;)
[HD Mini Android Development] -r0bin-:
well done :)

trying to analyse it...
[HD Mini Android Development] ttcome:
hi, r0bin, look at this . about how to open HD mini without breaking everything inside!!!

v.youku.com/v_show/id_XMjQ3MDk5NTk2.html
[HD Mini Android Development] -r0bin-:
yes i saw it

also here: http://www.youtube.com/watch?v=gMI7sNY5YZg

but i dont have the good tools to unscrew right now :-(
[HD Mini Android Development] pwel:
I will give it a try once I receive my new touch screen (it was broken) and mount it
[HD Mini Android Development] -r0bin-:
to our chinese friends:

any chances to get hi-res pictures of the HDMini internals from this forum:

http://bbs.fengbao.com/forum.php?mod=viewthread&tid=280952&extra=&highlight=&page=1

bonus for you :D
[HD Mini Android Development] 15131331231:
we come from the same country.btw,have you registered on XDA-cn?If yes,what is your ID?it seems there is no further step development of android on mini,but i believe,a perfect android rom will be released in days after that not very long!scanning this webpage many times everyday,to see the latest development of android on mini. I do not have the enough technologage on Linux/Android development,but i can show me passon and patience to all devs.say thanks to all devs that fight for andoid on mini!
[HD Mini Android Development] -r0bin-:
haha no, i'm from france.

i don't speak mandarin, and the chinese website are slow in my country :-(

do you see any interesting thing in this forum?

http://bbs.fengbao.com/forum.php?mod=viewthread&tid=280952&extra=&highlight=&page=1

don't worry we will fix the HD mini, but we cannot work on it full time, it takes time...

哈哈，不，我来自法国。

我不会说普通话，而中文网站是在我国缓慢。 :-(

你在这个论坛上看到任何有趣的事情吗？

http://bbs.fengbao.com/forum.php?mod=viewthread&tid=280952&extra=&highlight=&page=1

别担心，我们将解决高清迷你，但我们不能全职工作，它，它需要时间...
[HD Mini Android Development] schlund:
how did you do that?
[HD Mini Android Development] -r0bin-:
same, i didnt find anything on my side.

i used IDA Pro 5.5, gives you all the assembly code.

the only text you can see (string section) does not says much about any chipset, its just basic thing like "init" "read" etc...

i will try to work on the driver, assuming it is similar to HTC Leo & Desire... let's see
[HD Mini Android Development] rasoooli:
We Can use QtADB 0.8.0 , It work well & Easy to use . (QtADB is an app based on adb)
[HD Mini Android Development] codiak:
Afaik QtADB is just an interface for adb
[HD Mini Android Development] 15131331231:
hi,my dear friends,should we consider the possibility that looking for the help from htc hardware engineers?I know it sounds fantasy,but it is the quick way to get datas of chip initial mini.it's only a suggestion.
[HD Mini Android Development] -r0bin-:
if you know them, please go ahead :)
[HD Mini Android Development] ttcome:
hi, r0bin, I see the power management chip hd2 is PM7540, maybe they drive the same, why do not you try hd2 power drive it?
[HD Mini Android Development] -r0bin-:
this memory addressing you show is the virtual memory mapping of our photon, seems to work well.

for me it has nothing to do with the power management, the chipset PM7540 and the supposed DS2746-like are handled through the i2c bus.

from what i undertood, i2c bus is used to control most of the chipsets around the MSM7227 processor, it is like an ethernet network and servers: you give an address and data, it is transmitted. you can also read from an address. (see here http://en.wikipedia.org/wiki/I²C )

i put some traces on i2c driver yesterday, i can see it works well for others chipsets.

only failure is with battery ds2745.

there can be only two causes:

- we don't have ds2746 chipset in photon

- we do have ds2746 but the address of the peripheral / the format / our code is wrong

edit:

looking at ds2746_battery.c, it seems that the adapter ds2746 is found??

(otherwise it would kick our ass out from the init loop)

have a look line 193 in ds2746_i2c_init function
[HD Mini Android Development] -r0bin-:
probably there is something to tune here, it cannot be similar to HTCLeo, else we would be so lucky

No, not here, this is a check to see if we have power from VBUS USB.

Nothing related to battery.

No, this is generic values, and not used in the driver anyway.

Maybe the DS chip is good, but we dont need the HTC Leo patch because it is not similar hardware than photon.

I'll check the differences with Sony Ericsson X1
[HD Mini Android Development] -r0bin-:
if i have enough time, i will try another version of the ds2746 battery driver, made by kovsky:

http://gitorious.org/~mcbridematt/l...htc-msm-2.6.27/drivers/power/ds2746_battery.c

the HTCLeo patch is not really clean, it modifies the board source and insert hard links to it. let's try the standard driver first :)

another way to explore:

Strangely, the HTC aria (liberty) does not make usage of any DS chipset for the battery usage (?) we can also explore how it is done for liberty?
[HD Mini Android Development] -r0bin-:
so why dont we start from there?

it might not be as efficient as direct control with DS chip, but it might work ?

I'll have a look at the alternative DS driver anyway.
[HD Mini Android Development] -r0bin-:
the issue is, if we enable the "Universal power supply monitor class", the android does not boot completelly (it was the case with kernel 2.29, not sure with 2.32)

we need to catch the debug traces during kernel boot... do you know how to do that? i think cotulla knows

I tried to integrate the latest driver for kovasky, but it requires GPIO that we dont have.

at the end, if we want to use DS2746 driver, we need the GPIO values for photon:

we can get them using Haret console and spy windows :-)
[HD Mini Android Development] lucaogame:
Hi! I was following this topic for a days. I'm not a developer but i'm very interested into this project. I noticed that you want to know how enable debug in haret booting. I don't know if can help but i know how to do it. If you create a file called "earlyharetlog.txt" in the same directory where haret.exe is located, it will create a file called haretlog.txt with all information of boot. I think that you can try to enable the "Universal power supply monitor class" and also enable debug to see what problem Haret has. I hope this can be useful for you. ^^
[HD Mini Android Development] lucaogame:
Sorry, i made a mistake ^ ^
[HD Mini Android Development] schlund:
isnt there a posibility to enable console/debug while boot, as seen in many videos ?
[HD Mini Android Development] -r0bin-:
hi lucaogame, thanks for suggestion but unfortunately it's more complicated than that...

you're right, it could help

maybe it's the line commented in haret (startup.txt):

set cmdline "rw console=ram1"

maybe something around, if we check other haret configs
[HD Mini Android Development] ttcome:
HI. I have finished two pictures of HD mini, they are very very right, its true，I posted here for your reference.
[HD Mini Android Development] derefas:
i'll test to remake battery system with x1 source
[HD Mini Android Development] strogan:
And? What result?
[HD Mini Android Development] zzp_wolf:
Think you~~:cool:
[HD Mini Android Development] pwel:
I also opened my mini, everything is according to these plots and the ones posted earlier by gabbana. There does not seem to be a separate chip for fule gauging. I found this reference:

http://wenku.baidu.com/view/fabbb40216fc700abb68fc87.html

which is a training guide for PM issues of the chipset. I looked briefly through it and it seems the PM7540 could measure battery voltages itself in an easier way via a discrete transistor. Maybe other people can look into this guide?
[HD Mini Android Development] MobileMini:
So it seems there is just no 'intelligent' chip used for battery measurement? Could this also explain the inaccurate battery measurement under Windows Mobile? Maybe that would also explain why it is impossible to give a battery indication with 1% steps.
[HD Mini Android Development] -r0bin-:
mmm that could be the case, thanks for the analisys!
[HD Mini Android Development] schlund:
I took a look at XDAndroid Project kernel source to find out how they did the port:

http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm/blobs/htc-msm-2.6.27/arch/arm/mach-msm/include/mach/htc_battery_smem.h

you can see there that they were able to extract informations from battdrvr.dll. However i dont know how, but i think this would be very interesting to us, because we could also take look all the other driver files, like gpio.dll :)

Any idea ?
[HD Mini Android Development] Sak_1:
Android affects Windows Mobile, If the GPS is not enabled on Android in Windows Mobile does not download Satellite and said that the location setting is disabled

Details error:

http://www.htcmania.com/showthread.php?p=2016240#post2016240
[HD Mini Android Development] pwel:
wrong forum! already posted xxxx times! see: http://xdaforums.com/showpost.php?p=11515143&postcount=169

Please look more carefull when you post something.
[HD Mini Android Development] -r0bin-:
i have no idea sorry

that sounds veeery interesting :)

need to investigate...

if im not wrong, smem is a piece of memory that becomes shared between processors and peripherals (shared memory).

there is an analysys with HTC leo here:

http://htc-linux.org/wiki/index.php?title=Leo_SMEM

i guess you can deduct this by looking into the code and into the structures such as "struct smem_heap_info"
[HD Mini Android Development] 15131331231:
it seems so difficult to develop android on mini.now we faced battery problem,next step we have to face problems such as gprs,G—sensor,buttons,etc.though I know,the great devs will resolve these problems one by one,but it grows slowly.we should call for other devs join the team of developing android on mini.making someone go with the job will help us a lot.take a good consideration on it,thanks.