yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] arif-ali:
getting closer :D

OK,

thanks for the pointers wrt to letamas ril_wrapper :D, The ROM I was using is already using it, but wasn't sure how to debug.

But searching through the forums, found the relevant thread. I first found that the service needed permissions to pap-secrets and chap-secrets, so changed it's permissions to "chown 0.1001" and "chmod 775", the errors went away, but it would go into airplane mode for 0.5s, and retry PPP, and gets repeated every minute or so.

I will continue to check permissions on files

still diagnosing...

Edit: OK, working, I think

permissions

chown 0.1001 /system/etc/ppp/*
chmod 775 /system/etc/ppp/*
chown 1001.1001 /dev/smd0
chown 1001.1001 /dev/smd1

reboot phone

netcfg, gives ppp0 device

and finally an IP address , yipppeeeeee

thanks again cedesmith, for your input here, seriously!!! this would have never been done without your help :D :D :D

one thing missing now in the recovery is the mount of sd-ext, which should be a minor fix :p

/dev/block/mmcblk0p2 /sd-ext auto rw
[HD2 Android NAND Development] cedesmith:
@arif-ali

chown 0:0 /system/bin/pppd

chmod 4755 /system/bin/pppd

1st line will set root as owner (should already be, check with busybox ls -all)

2nd line will give set SUID (set user id on execution) flag on executable making pppd run as root and have access to anything it needs.

oh and i forgot in last post.... check with lsmod if rmnet module is loaded and if it is rename msm_rmnet.ko
[HD2 Android NAND Development] arif-ali:
thanks for that, I will give that go with the old permissions this evening, and see if that works.

I already have a check in 01modules which checks for a file /system/ppp, and if that exists, then it doesn't load msm_rmnet.ko, otherwise it does.

So that is already covered.
[HD2 Android NAND Development] seadersn:
k, this looks promising; i'll now have a deeper look into the display thingy... i don't believe that it's enough to only change the values in display.h. but we'll see :)

lk/platform/qsd8k/panel.c seems to be the relevant file one have to edit. but this will be very tricky... it looks like that this was written originally for a toshiba panel?
[HD2 Android NAND Development] seadersn:
no way for me :( this should be done by another person.
[HD2 Android NAND Development] cedesmith:
new version that i hope fixes sharp panel.

this version does not init panel, spl already initialized it so i just read frame buffer address from shared memory. it works for AUO.

another change is that it should drop to console if no boot or recovery images flashed.

i hope someone with sharp panel can test it.
[HD2 Android NAND Development] wolfpack612:
I'm gonna have to try 2009q3 because mines just stays on the boot screen. I don't get any errors while compiling. if it works I'll edit my post.
[HD2 Android NAND Development] seadersn:
yes, yes, yes... sharp panel is working :D thx!

but, there seems to be a problem with the partitions...? cache partition isn't created or recognized, i don't know. misc partition was killed by you, right...?

cache doesn't even show up in android per "df -h", no matter if untouched release 1.3.1 is flashed or the existing layout from magldr is being used. only four partitions show up:

boot

recovery

system

userdata

i will test more tomorrow, then i will have plenty of time. thx for getting sharp panel to work, again! ;)
[HD2 Android NAND Development] cedesmith:
glad to hear sharp panel works

uncomment #DEFINES += SYSTEM_PARTITION_SIZE=150 in target/htcleo/rules.mk for cache, if partition size is commented it uses my currently installed rom layout and i forgot to uncomment.

i think now is probably ready...

it probably use a tweak here and there and there are still things i would like to do but i am using it for some time and works great.

btw. i just discovered hspl4 (don't lol) and it works with 3.03 hspl
[HD2 Android NAND Development] seadersn:
ok, i will try and test it, as i can't sleep it could be a longerlasting night :D

regarding 3.03: this is a big fat plus for your loader, because things are getting much more easier for some ppl ;)
[HD2 Android NAND Development] arif-ali:
ok, fixed up permissions of pppd, but still needed to fix up permissions to pap-secrets and chap-secrets, So I stuck that in where I had others in my init.d script, and all works without any problems.

Used my patched version all day today, I hardly had any problems with my data network

btw, thx for the tip for HSPL4 (3.03), running now and all works. :D

I presume, I can just stick with 1.3, and no need for me to go to 1.3.1
[HD2 Android NAND Development] wolfpack612:
working for me.
[HD2 Android NAND Development] Satyan:
works for me too on Sharp panel ...

thanks cede
[HD2 Android NAND Development] seadersn:
and i don't check it how to enable ppp *grmpf* but finally, i'm tired. and without internet on pc this isn't funny; so gn8 :)

p.s.: what's the matter / benefit with spl 3.03...?
[HD2 Android NAND Development] FrAsErTaG:
What rom/kernel you guys using?
[HD2 Android NAND Development] seadersn:
for me it's charansinghs unofficial cm7 with his kernel; other kernels don't work or help...

everything is fine except ppp. but as said: without internet for research... no way atm.
[HD2 Android NAND Development] arif-ali:
I am using Revolution HD, which I am modifying to now work with cLK

I can upload if anyone wants the RC version to test this.

here's the link to the ROM that I uploaded today, here

I will write a small howto this evening with how to convert a ROM to work, shouldn't be much work to do though
[HD2 Android NAND Development] diesburg:
Can't wait for the how to... I wanted to try this out but need some more info on how to use it... I think I got as far as getting the phone ready to copy the rom files over with fastboot command but got stopped at the driver it asks for when you plug the phone in..... I installed htc sync for android thinking it may have the driver that's needed but after installing it, still no driver found..... anyways, update us when you get the "how to" up!
[HD2 Android NAND Development] arif-ali:
Try the following link, it may help.

http://xdaforums.com/showpost.php?p=3083753&postcount=1

My howto was going to be more about if your ROM doesn't work, then how to make it work wrt to PPP and ril_wrapper. The howto on flashing is in the OP

i have updated the link in my previous post to include the fastboot for windows
[HD2 Android NAND Development] diesburg:
I get "waiting for device" and nothing else when I attempt to use fastboot... i installed adb drivers succesfully, after holding back key when poering on, the screen fades to black, and the driver prompt came up and adb installed just fine, in my device manager I now have a group at the top called android phone and under it android adb interface... any suggestions? maybe a link to alternate adb drivers for me to try....

I tried getting adb drivers from android sdk, but after i choose to install it, a windows saying fetching resources never finishes fetching resources so i cant download the driver from android sdk right now
[HD2 Android NAND Development] cedesmith:
drivers fastboot and adb comes with Android SDK from google.

if you need them and don't want the full sdk you can download them from here
[HD2 Android NAND Development] diesburg:
Thanks for the link! Android sdk is getting stuck at: Fetching http://innovator.samsungmobile.com/android/repository/repository.xml when I try to download through it. I'm guessing the server at that location is down? Just my luck....lol....but thanks for the link, I was trying to find a package of jsut the driver to download somewhere else besides the sdk and had no luck yet...

EDIT: My drivers were fine... the fastboot.exe in the android sdk was the problem, I tried to use fastboot.exe that was in the link you gave me before messing with the drivers... and it worked no problem...
[HD2 Android NAND Development] diesburg:
EDIT: Have it all working now..... will the misc partition not being there cause any issues in CWM ?
[HD2 Android NAND Development] arif-ali:
The patches are for > 1.3, and these are for a kernel so that they work correctly with cLK

By default you need to install the ROM using fastboot method, and therefore you need a system.img and zImage and initrd.gz,

So you need to flash by running

fastboot flash system system.img

fastboot -c "" -b 0x11800000 flash:raw boot zImage initrd.gz

The boot partition cannot be flashed by CWM

The home key should get you into CWM nevertheless, so not sure what happend with your flash. Maybe try again
[HD2 Android NAND Development] diesburg:
So if the boot partition cannot be flashed by CWM, if I install a rom using zip update in CWM, after flashing zip, I will have to do what you instructed for boot?

EDIT: I flashed 1.3 nbh, used fastboot to flash recovery... then used CWM recovery to flash my zip rom.... then used fast boot to flash boot like you instructed to do so.... and everything seems to be working, booted right away after doing the steps I mentioned above.... I like how it goes from splash screen to android boot screen with nothing in between (like magldr showing the system booting before android boot screen) And about features in magldr.... all the features were useless to me, the only one I wanted to use was usb mass storage mode but it never worked right, even with the latest magldr I couldnt copy more than a few small files without the disk just disappearing in the middle of copy and then the sdcard would be corrupted.....plus the usb mass storage mode in magldr was not needed because its in CWM. And I like that this only boots android, not wp7 or other stuff.... when you start releasing stuff for public that's already compiled, I think for android only users, this will be used more than magldr.

One thing I just experienced on first boot... after screen shut off, I couldn't get it back on, had to reset with button under battery cover..... if I immediately turn the screen on after it goes off, it works, but wait a couple minutes and it wont come back on everytime..... is that an issue for others? I'm using typhoon cyanogen mod, the one released just earlier today..... I will try a different rom and post if it does it on another rom....
[HD2 Android NAND Development] arif-ali:
You need to have a ROM that supports PPP, any ROM that has rmnet will not work using cLK, this is clearly in the OP.
[HD2 Android NAND Development] diesburg:
Ok, I thought rmnet simply wouldn't work, I didn't see anything in the OP saying it would cause the device not to wakeup.... anyways, is that whats causing it to not wakeup? If so, will disabling RMNET fix it? I don't need ppp or rmnet, I use my device on wifi only, I don't even have a sim card in the phone....

When I say by disabling rmnet, I realize it might not be as simple as disabling it but I mean taking it out, disabling it, deleting it, or anything along those lines, I'm sure I can figure it out myself how to do it, I just want to make sure that's what's causing the screen not to wakeup
[HD2 Android NAND Development] arif-ali:
When I tried this at 1.1, I wasn't sure at the time. When indeed I tried setting up the data connection, it used to freeze and reboot (i think at the ROM at the time was rmnet). so that's why I say. I am not sure about the wakeup issue.

But i guess if you are only using for Wifi, then it shouldn't be a problem at all then
[HD2 Android NAND Development] diesburg:
Ok, well then I wonder why it's not waking up....:mad: I am not trying to setup any cellular internet connection or use one, as I stated before, I'm all wifi. I tried typhoon cyanogen mod, the one released today and also tried motomans black and blue remix that he just released today and they both won't wakeup after the screen shuts off for too long..... do you think HSPL4 would be a possible solution? Never tried it because it states in the thread for it that it's not for android but I noticed your sig says your using it....lol.... If it could be kernel related, on both roms I tried, I used the kernels provided with them.... I used the fastboot commands to make boot with initrd.gz and zimage that I pulled out of the zipped roms /boot directory..... am I doing anything wrong there?
[HD2 Android NAND Development] arif-ali:
I only use HSPL4 for the fun, to see if it worked, my setup still worked with HSPL3, so I had no problems there at all.

btw, I am using Froyo rather than GB, I've not tried any GB builds yet in cLK, so not sure what they are like, and how they perform. I wanted to make sure it worked for a few days for me before I tested another build under cLK.
[HD2 Android NAND Development] diesburg:
Kernel I was using wasn't patched.... time for me to learn how to compile things and whatever else knowledge is needed to do things like patch a kernel for this bootloader....as a workaround for the wakeup issue for now, I just used the boot.img from the revolution hd build that you made for this bootloader....
[HD2 Android NAND Development] arif-ali:
Hey diesburg,

There's a kernel patched already that cedesmith has a link to in this same thread, you could potentially use that (use search). I will release a RC kernel on my thread as well as here in a couple of hours if you just want to use the kernel.
[HD2 Android NAND Development] diesburg:
Ok, thanks, I will keep a lookout in your thread. What is "RC" kernel?
[HD2 Android NAND Development] arif-ali:
RC means Release Candidate (i.e. not fully released, it's a test release)

btw, here's the link to the kernel I am using
[HD2 Android NAND Development] diesburg:
It was said earlier that you can't flash /boot with CWM. When doind zip install of roms in CWM, afterwards it wouldn't boot unless I used fastboot to flash the boot.img or make the boot.img and flash it. Will the zip you provide be able to successfully flash with CWM? If not, I know how to do it without CWM, was just wondering.
[HD2 Android NAND Development] arif-ali:
no it won't. so you will need to create a boot.img file, and do it that way, but you still need a way to copy over the /system/lib/modules/* files
[HD2 Android NAND Development] diesburg:
For the modules files, I found a script for installing a different kernel I can modify to do it with adb..... but because I don't have linux, the only way I can make a boot.img is with fastboot. Is the initrd.gz the same in all kernels? I ask because I noticed initrd.gz is not in kernel update zips so in order to make boot.img with fastboot, I need to take initrd.gz from somewhere else. EDIT: noticed in different builds, initrd was different sizes.... should I use initrd.gz from the build I will be flashing? I don't know if initrd.gz goes with the kernel or if it goes with the rom...

Why won't it flash boot from CWM? Is boot partition using a different filesystem with this bootloader than with magldr or something like that ?
[HD2 Android NAND Development] arif-ali:
Use the initrd.gz from the build you are using, it may have calls in them that might be there that makes the build better in some way.

Other initrd.gz might work, but not guaranteed to work, it's not part of the kernel, but part of the build.
[HD2 Android NAND Development] diesburg:
Would anyone be willing to recompile the kernel for typhoons latest cyanogenmod build with the appropriate patches? It comes with tytung by default I think but on OP of the thread you can download rafpigna 1.7 OC-Standard for his rom. If someone could do a patched kernel for it, that would be awesome!

I haven't messed with the cm7 nightlies rom yet but I did try to get typhoons functioning. I tried the kernel that was posted a few pages back and I also tried the kernel just made today by arif-ali . I can get kernel and modules installed and working fine on other builds but not typhoons. I know I'm doing everything right because as I said above, I have got it working on a couple other builds. Maybe because it's GB ?

If someone could do patched kernels for the builds I mentioned or some other popular build(s), I would be willing to pack it up into an easy installation. I was thinking, after flashing the nbh, a script could be made to automatically copy all the .img files to the partitions using fastboot. The NBH, fastboot, adb, adb drivers and all could be packed in so its as simple as flashing the NBH with customruu and then clicking the script to copy the partitions. I could even host the rom packages on my website for 1 click downloads.(I've got paid hosting)

If I could do all that without breaking any rules....lol
[HD2 Android NAND Development] seadersn:
i've posted a 122MB layout, together with a patched kernel, in charansinghs unofficial cm7 build thread :) hope this is ok...?

http://xdaforums.com/showpost.php?p=11807966&postcount=1380

btw: it's running very fine / nice. no problems so far, i believe :D thxthxthx ;)
[HD2 Android NAND Development] MotoMudder77:
Im fairly noob when it comes to linux, dont know how to compile, but am very interested in this.

for cLK to work, we need a patched kernal, and a patched recovery? is the kernal for recovery or for the ROM itself?

If I can help in anyway let me know, currently I've been running typhoons ROM's
[HD2 Android NAND Development] arif-ali:
Kernel: there are 3 now available (used for the ROM)

* cedesmith, search this thread

* mine, search my thread in Revolution HD, in my sig (AA 0.3b)

* charans kernel, that seadersn has patched, check charans thread (or follow the previous post)

recovery: is in OP

Then you need to make sure that the ROM is PPP enabled and working
[HD2 Android NAND Development] M..N:
seadersn im wondering if you ever had any problems with ppp when running android on sd, i.e connection drops, connection getting stuck.
[HD2 Android NAND Development] MotoMudder77:
Yea the recovery in the OP is 1.1 and doesnt support off charging, so would gain nothing really from going to that. which is why I brought up the compiling issue.

Has anyone tried talking with the two main kernal dev's and seeing about them comiling there kernals to work with cLK?

And would it be possible to rewrite cLK and CWM, and merge the two of them, so we would just have a recovery instead of a bootloader, which would make the HD2 a true android phone, other than the h/w buttons. I've been curious about this since magldr and cwm was released. Just wondering. Im tired of having to use windows to flash certain things.
[HD2 Android NAND Development] arif-ali:
OK, that should have been the second post sorry. it's there as an attachement
[HD2 Android NAND Development] cedesmith:
i would had go for the following partition layout:

misc 1M

recovery 5M

boot 5M

system 150M

is is more generic and could work for probably all Cyanogen.

i would also like a name of the one who compiled/released it in archive name and in a readme.txt in archive along with partition layout.

when ppl compile their own version we need to be able to distinguish between different versions.
[HD2 Android NAND Development] seadersn:
sure, this was a "quick and dirty" upload :D this layout is what i used for this particular build; it's not universal. especially the system and boot partition (boot was this "big" because of testing many kernels, one had 7,2mb).

should i compile a new one with your recommended settings and a readme txt? np, in roundabout 2 hours :)
[HD2 Android NAND Development] cedesmith:
TyphooN CM7 on post #3
[HD2 Android NAND Development] seadersn:
you should change threadtitel and headline of first post showing 1.3.1. ;) this will get more attention as people see status change.
[HD2 Android NAND Development] Satyan:
it only works with standard edition not the ram edition ... ?
[HD2 Android NAND Development] seadersn:
i believe, it works with ram ed. too. isn't it 'initrd.gz dependent'? should work.
[HD2 Android NAND Development] MotoMudder77:
This is awesome, simple, small, and to the point. Thank you for building for Typhoon's

Is it a bug that when off charging, any button press will power on.

Also if unplug during off charging, led stays on, and same any button will power up.

Just wondering if its known
[HD2 Android NAND Development] diesburg:
Thanks a lot! Can I host all of the appropriate files on my website? I can provide links in a post or give to you to put in OP. It will be direct links to the download to provide one click downloading. It is paid hosting, server is in USA so mirrors should still remain for other countries, I get 100gb bandwidth. And could I also put up a zipped package of the cLK nbh, recovery image, fastboot/adbdrivers, latest typhoon rom, and pp and kernel update? If I can, I will also put the package up w/o typhoons rom for the people who already have his latest downloaded. I could include what is in your original posts as a readme.

EDIT: If ok to do this, will also include task29 to run before flashing.
[HD2 Android NAND Development] tyween:
going to try my own build with this tomorrow! :D
[HD2 Android NAND Development] diesburg:
I'm flashing now! lol, I'm using a 130mb partition though, not 150. If you compile any other kernels for your rom, like rafpignas latest, could you please share? I am plenty happy being able to use your rom with cLK but would love it if I could use it with rafpignas latest! lol
[HD2 Android NAND Development] diesburg:
I don't know if others know but I didn't. I will see if it does what you mentioned to me also and report.

EDIT: Just checked, does the same for me.
[HD2 Android NAND Development] MotoMudder77:
So I'm having really horrible battery life. Like 1 percent a minute, even on standby?

Ill upload my current widget log when I get back to my PC.

And here's my current widget log, Is there any kind of log I can get for you

http://pastebin.com/vaRY9zzS

Space towards the end is when I rebooted to find my batter toast.
[HD2 Android NAND Development] diesburg:
Battery for me in a quick 10 minute test with screen on the whole time.

10:23pm - 54%

10:33pm - 50%

10 minute test with screen off the whole time.

10:34pm - 50%

10:44pm - 48%

Is this excessive battery drain caused by the kernel or something to do with the bootloader and the NBH? If it is by the kernel, I read about quite a few people having wifi problems with rafpignas latest in his thread so hopefully he will release a soon update because of that with patches for cLK.(I asked him to include patches for cLK in his thread and he said he will try next update) If he does, would it have to be modified further to work correctly with typhoons latest?
[HD2 Android NAND Development] MotoMudder77:
Got battery up to around 34 percent running typhoons of cLK. reflashed magldr, CWM, and a fresh copy of Typhoons standard build. Battery at 83 percent when booted up.

So im assuming my battery wasnt really dead, just that something in cLK is screwing up the reading.
[HD2 Android NAND Development] cedesmith:
yes i know,

when off charging led will not change color even if full because code to do that is missing from cwm. to be 100% as one should expect it still needs to:

CWM:

- power off phone when cable removed

- check battery status and change led color to match status

- reboot only on power ? ( now on any key )

Kernel:

- do not turn on keypad backlight on key press when offcharging

i compiled kernel with google prebuilt arm-eabi 4.4.3 that may be the problem. i will recompile the kernel and reupload update to post#3 as soon as is found out which toolchain was used to compile kernel in rom.

after i installed/upladed i went to sleep and let phone charge. bettery behaves as good for me.
[HD2 Android NAND Development] arif-ali:
I have added a 300M system partition cLK to my thread

The link is here

recovery 5M

boot 5M

system 300M

cache 5M

userdata remaining

My kernel, with patches available here
[HD2 Android NAND Development] diesburg:
Is your kernel based off of another one? If so, which one and what changes have you made besides the clk patches?