yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] nickleby:
Whatever you decide will be great :good: Don't know which method will be easier for you to implement.
[Desire Android Development] loading。。。:
amazing~~:good: Firstly,THANKS for your ROM [MENTION=5091819]spezi77[/MENTION]

------------------------------------------------------------------------------------------------------------

but I'm surprised to find that if I use 4ext-RC9 recovery and hboot(I've forget the version, maybe the 250.It shows HBOOT-6.93.9999 in bootloader)which is suitable for kitkat,I can also successfully to flash the Rom.

However, it took me about half an hour to finish boot.And it showed me the notification that my SD card was corrupt........:confused:

And, it's a little weird my phone won't boot when I chose "reboot now" in recovery. I mean that it just stopped in the boot first screen,unless I force to restart.....

------------------------------------------------------------------------------------------------------------

looking for Android 7.0
[Desire Android Development] ze7zez:
Today I tried to install BS.

Since my SD do not allow flash PB99IMG.zip, I used methods

fastboot flash hboot hboot.img

(Hboot.img pulled out of the PB99IMG.zip)

Wiping the memory using TWRP ends with an error of access to the data partition.

The same problem has installer ROM: lack of access to /data.
[Desire Android Development] spezi77:
Do you have two sd-ext partitions created in your SD?
[Desire Android Development] ze7zez:
In the first post, I have not found information on two partitions.

So, as I understand it, to be two?

What size are you suggesting?

In thread ParanoidAndroid 5.0 Alpha 2 | Kernel 3.0.101, I found:

Furthermore you need to create two sd-ext partitions on your SD-card AND also a SWAP partition besides the remaining FAT partition -- so in the end you will have three partitions (please exactly follow the instructions below, otherwise the ROM won't boot!).

Should I also do a swap partition?
[Desire Android Development] spezi77:
Same sizes as in lollipop. Swap is optional but could be useful later when we have gapps running, and more memory needs to be allocated.
[Desire Android Development] ze7zez:
E:\bravo5\BeanStalk>.\fastboot erase cache
erasing 'cache'...
OKAY [ 0.511s]
finished. total time: 0.511s

E:\bravo5\BeanStalk>.\fastboot flash boot boot.img
sending 'boot' (3122 KB)...
OKAY [ 0.511s]
writing 'boot'...
FAILED (remote: image update error)
finished. total time: 0.521s

E:\bravo5\BeanStalk>
E:\bravo5\BeanStalk>.\fastboot flash boot boot-k2.img
sending 'boot' (2716 KB)...
OKAY [ 0.441s]
writing 'boot'...
OKAY [ 0.831s]
finished. total time: 1.272s

Is it possible to insert K2 to the ROM? After replacing the kernel by fastboot, optimization 74 applications takes a long time.
[Desire Android Development] spezi77:
Yes, but then USB and SELinux dont work, that's why I decided to stay with K3.

Here you can find a kernel 2 built for M: http://xdaforums.com/showpost.php?p=65062119&postcount=33
[Desire Android Development] Spezi_Ist_Spitze!:
Ultrageil! Android 6 für's Desire! :laugh:
[Desire Android Development] nickleby:
[MENTION=5091819]spezi77[/MENTION] I saw dalvik-cache is been stored in the sd-ext2 partition instead using the nand (data) partition. It's supposed to be like that?
[Desire Android Development] spezi77:
Thanks for taking notice of it. You are right, I have identified the root cause and testing the solution right now...
[Desire Android Development] spezi77:
BeanStalk 6.07 is now available!

About dalvik-to-nand:
[MENTION=1244844]nickleby[/MENTION] I am not sure, if this commit is a proper fix. In theory this should work and at least with the new ROM version, I feel that it works faster now.

What else has been fixed:

- Mounting SD Card via MTP works!

- WiFi fix: added a new option in Developer settings to set up a static default gateway address
[Desire Android Development] nickleby:
Right now I don't have access to my Ubuntu disk to use fastboot and boot the recovery to flash the new ROM. However, I managed to edit the kernel ramdisk to include that change in the init.bravo.rc file but dalvik-cache is still on the sd-ext2 partition. I also tried flashing the new kernel (by using a .zip file in the old recovery) but dalvik-cache is not been moved to the nand partition. I'll try further later tonight once I flash the new ROM.

Edit: [MENTION=5091819]spezi77[/MENTION] I flashed the new ROM but dalvik-cache is still on the sd-ext2 partition (checked with adb Shell)

Edit 2: the system ask for root permissions as soon as the home screen is loaded, if I give root access then the screen turns black and the phone hangs.
[Desire Android Development] spezi77:
And after giving root access, your phone does not recover at all?

[MENTION=382340]walter79[/MENTION] do you maybe have an idea about how to properly move dalvik cache to nand (dataint) instead of sd-ext (data)?
[Desire Android Development] walter79:
loop file with ext4 on nand. Nand mtd partition not working with selinux.

or use a fast sdcard with /data to 2nd partition.
[Desire Android Development] nickleby:
I wiped data and started again. The ROM feels a little bit faster, MTP works fine and the option to setup the default gw is very helpful!
[Desire Android Development] spezi77:
Hey there, I did a new build with a few small improvements, but wasn't able to test it at all because my primary computer has a defect hdd and it needs to be repaired.

If you are interested get it from here: https://www.androidfilehost.com/?fid=24421527759882325

And let me know how it works for you.

Changes:

- Update external storage configuration (hopefully the sdcard corrupted warnings disappear)

- Fstab update and specify the sdcard (fat) partition as non-removable

- Don't apply new gateway settings a multiple times

I couldn't work further yet on swapping Dalvik-cache to NAND...
[Desire Android Development] nickleby:
I'll try it later tonight because I can't use fastboot with Windows 10. I've only tested the kernel, the corrupted warnings are gone :good:
[Desire Android Development] spezi77:
I remember that in Lollipop times we didn't manage to get loopback to work with htc bravo. That is why I decided to accept the fact that dalvik should go to sd-ext. Because I feel that not using the internal memory in our device is a big waste, I decided to put a SWAP image into NAND: https://github.com/spezi77/android_device_htc_bravo/commit/96030c4c1ec576ad519c204a15b0ae1b0a41e825

If this works out, then we get more RAM available and better performance. *fingers-crossed*
[Desire Android Development] 3xpc:
1. Set rekaveri-bravo-twrp-2.8.7.0.img

2. Download Firmware BeanStalk-6.07-20160214-bravo.zip

3. INSTALL BeanStalk-6.07-20160214-bravo.zip gives an error error executing updater binary in zip /sdcard/BeanStalk-6.07-20160214-bravo.zip

What is the problem? How to solve it?
[Desire Android Development] spezi77:
You followed exactly the steps mentioned in OP?

Maybe the firmware file downloaded is corrupt, check md5, please.
[Desire Android Development] spezi77:
[MENTION=3805419]123xdagsm[/MENTION] did you flash the custom hboot mentioned in OP?
[Desire Android Development] 123xdagsm:
Yes,after extra PB99IMG.zip and flash hboot this method

# fastboot flash hboot hboot.img
sending 'hboot' (512 KB)...
OKAY [ 0.094s]
writing 'hboot'...
OKAY [ 0.145s]
finished. total time: 0.239s
[Desire Android Development] jejehtc:
Hello,

I have the same concern for boot and recovery.
[Desire Android Development] spezi77:
The problem seems to be that the kernel image does not fit. I have no idea why is it. Either htc has manufactured a few devices with smaller boot partition or you have some bad blocks which reduce the free space.

Only possible solution for you guys is to flash the kernel 2 image.

Fallback: HTC Desire Kernel 2 for M (Don't use unless K3 fails to be installed on your device) - updated 02/14/2016

I have also added the download link to the OP.
[Desire Android Development] spezi77:
Oh stop. Now it should work in your device, right?
[Desire Android Development] jejehtc:
Ok thank you for info
[Desire Android Development] spezi77:
Hey Desire folks,

Has somebody time for testing the new build BS 6.08 with SWAP to NAND?

ROM: https://www.androidfilehost.com/?fid=24421527759887768

Kernel 3: https://www.androidfilehost.com/?fid=24421527759887769

Cheers,

- spezi
[Desire Android Development] nickleby:
My SD card has died and I don't have another available. I'll see if I can borrow one from a friend to test the ROM :D

Does something else have changed in the ROM?
[Desire Android Development] 123xdagsm:
Thanks

not work

flash hboot success but same problem post #81
[Desire Android Development] spezi77:
Ah, i think that now it's clear. Your SD card is not working with kernel 3. Have you tried to flash kernel 2?
[Desire Android Development] spezi77:
Yes, there have been quite a few updates in BS 6.08 rom, too.

No worries, maybe someone else is volunteering.

I am still waiting for my computer to be returned. The one I use atm has WIN10, and I cannot make fastboot to work! :/
[Desire Android Development] nickleby:
I formatted one of my computers (the oldest one) back to Windows 7 to use fastboot :p Looking around I found a 2GB SD card, fortunately it worked. Sound is working now :D WiFi took me a few tries to connect (no internet). Swap doesn't seem to be working.
[Desire Android Development] spezi77:
Excellent, tanks for your prompt feedback! :D

Maybe something needs to be aligned to marshmallow, e.g. place the swap script into init.d. If you are interested you could try to manually install the turbo mode script by delta-roh. It is provided somewhere in xda.
[Desire Android Development] nickleby:
I've found the script, but I guess it must be modified? I mean, change the partition /data to /dataint right?
[Desire Android Development] spezi77:
Yes, exactly. On dataint we have 400mb available.
[Desire Android Development] nickleby:
I've changed all references from /data partition into /dataint in the script and in logcat I can see

I sysinit : Running /system/etc/init.d/98swap

but is not working, the img file is not been created on /dataint :confused:
[Desire Android Development] spezi77:
Same as I did. :/ Maybe it is a permission problem. Adding some log output could help to locate the root cause.

I will look into it again when my computer is back.. :)
[Desire Android Development] 123xdagsm:
No. I don't flash kernel 2 I don't have kernel 2.

please give me link kernel 2
[Desire Android Development] spezi77:
You find the download link in the OP. :P
[Desire Android Development] 123xdagsm:
Thanks for added link kernel 2
[Desire Android Development] wollac11:
This looks great. Any chance you could build this for the Nexus One? They are essentially the same phone apart from the exterior and hardware buttons vs capacitive.
[Desire Android Development] swc1209:
error scrren " Encrtption unsuccessful"

hi spezi77

it was a such good news to desire, when i finished flash the roms and enter into the final UI screen ,i reciceved a error shown as " Encryption unsuccessful",i token all my tried to this issue, but no reasons was found ,except the error of mount /data in TWRP recovery,why is it happend and how the solve it ,thanks

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

hi spezi77

it was a such good news to desire, when i finished flash the roms and enter into the final UI screen ,i reciceved a error shown as " Encryption unsuccessful",i token all my tried to this issue, but no reasons was found ,except the error of mount /data in TWRP recovery,why is it happend and how the solve it ,thanks
[Desire Android Development] spezi77:
I won't as I don't have the exact know-how and also my spare time is very very rare.

My sources are on github..

You should ask a n1 dev for doing it or start yourself deving! :D
[Desire Android Development] spezi77:
Could you attach your recovery.log here?
[Desire Android Development] 123xdagsm:
For me, there is the problem

for me not work kernel 3 after flash kernel 2

show error. Encryption unsuccessful
[Desire Android Development] 123xdagsm:
recovery.log
[Desire Android Development] stratoll:
If you need more testers I'd be happy to dig out my Desire and help you out. It's bound to be lying around here somewhere
[Desire Android Development] ths@justremotephone.com:
Thanks for your work!

Hello Spezi77,

Many thanks for your enthusiastic work on our god old HTC Desire.

Keep it alive!

Regards,

Thomas.
[Desire Android Development] swc1209:
here is log file

here is log
[Desire Android Development] fireball0093:
If I give full credit to your ROM in the thread if it goes anywhere in my free time, as well as the sources of course, do you care if I mess around on it to try and port it to the Desire Z?
[Desire Android Development] spezi77:
Ok, fine with me. Best of luck! ;)
[Desire Android Development] spezi77:
Problem found. It seems that you don't have two sd-ext partitions as mentioned in the OP. One partition is required for /system and one is for /data.

mount: failed to mount /dev/block/mmcblk0p3 at /data: No such file or directory
[Desire Android Development] spezi77:
You did the recovery.log with 4EXT Recovery Touch, but I expected that you take it with help of TWRP. Flashing Marshmallow with different recovery than mentioned in the OP will miserably fail.

Just in case, please ensure that you have created two sd-ext partitions in your SD card.
[Desire Android Development] V3ctorX:
How big are the partitions required by the ROM cause i really wanna try it.
[Desire Android Development] spezi77:
board_systemimage_partition_size := 1048576000 # 1000m

board_userdataimage_partition_size := 1572864000 # 1500m
[Desire Android Development] V3ctorX:
Really wanted to flash the ROM but i killed my micro usb port its buggy. No other way i can think of to get the recovery to boot maybe twrp might work :D
[Desire Android Development] hphuchao:
Is this working on htc dessire 616 CPU mediatek ? @@! Anyone help me, Plz !
[Desire Android Development] nickleby:
This is for the first HTC Desire (2010), so it won't work for you.
[Desire Android Development] V3ctorX:
I havent yet installed the ROM but I wanna do that soon just a quick question though, would these gapps work on this ROM considering its CM based and the gaps have been successful on CM 13.

http://xdaforums.com/android/general/gapps-gapps-6-0-1-minimal-t3276606
[Desire Android Development] spezi77:
Probably yes. The only thing you should be aware of is that gapps for 5.x and 6.x roms have become heavyweight, which means that Desire can hardly cope with it.
[Desire Android Development] V3ctorX:
I installed it successfully tho just to tempt fate I wanna try installing it on a 2GB sdcard with partitions of;

700MB system

1GB Data

Possible brick I smell

Also the gapps worked seamlessly on the Phone with no lags or gags.
[Desire Android Development] spezi77:
Nice to hear about your success story. Which gapps do you use?
[Desire Android Development] V3ctorX:
https://drive.google.com/file/d/0B4rcO7KguyMadnh3cXg0el9rZGM/view?usp=docslist_api

I've added the original thread link at the bottom its also on my drive, drive link on top its around 35MB, while I have the opportunity how safe is flashing it on a 2GB sdcard, I flashed PA 5.0.2 with 1GB system 1GB data and it worked fine. :mad:

http://xdaforums.com/android/general/gapps-gapps-6-0-1-minimal-t3276606
[Desire Android Development] V3ctorX:
curious, just for testing purposes i tried to flash it to flash it on a 2gig sd card one problem was it didnt get past the splash screen
[Desire Android Development] spezi77:
Pls take a logcat, and share it with us.
[Desire Android Development] V3ctorX:
Cool I'll try to get it in that state again
[Desire Android Development] 123xdagsm:
Yes, I have one sd-ext partition

please add this note in the master thread

you don't mention

Thanks
[Desire Android Development] spezi77:
Woops, thanks for mentioning this. Fixed.
[Desire Android Development] abaaaabbbb63:
Oh nice! Thanks for mentioning, I would have never known the Desire got Marshmallow. Congrats!
[Desire Android Development] spezi77:
Ha-ha, thanks.

And your tutorial about how to create ext4 partitions is always a great lecture and indeed still very useful! [emoji16]

Sent from my beanstalked N4.
[Desire Android Development] V3ctorX:
Flashed the ROM successfully on a 2GB SDCard.

Noticed the ROM won't get flashed on a system partition less than 1024MB.

com.android.phone is constantly crashing when I try to access the Mobile Networks menu, hope its fixed in 6.08 (just downloaded it)

But overall it's really smooth. You've done an awsome job Spezi77
[Desire Android Development] macs18max:
[MENTION=5091819]spezi77[/MENTION]

Let's discuss here.

Can you get last_kmsg?

Does desire have hard reset button incase it hangs on boot?

For example when hd2 hangs on boot, instead of remove battery, we have a tiny button under the battery cover which reboots the device, then I can just go to recovery and get last_kmsg. Does desire have somethin like this?
[Desire Android Development] spezi77:
Thank you for your time to discuss.. Nope, HTC Desire don't have such a reset button to get last kmesg, unfortunately. :/

Sent from my beanstalked N4.
[Desire Android Development] V3ctorX:
Tried pulling out the USB cable after flashing boot img
[Desire Android Development] ze7zez:
I totally do not know much about it, but whether Riff Box could be helpful?
[Desire Android Development] V3ctorX:
Testing this in an hour, hope mobile network settings don't crash.

[UPDATE] Kernel won't get flashed/loaded on the device, Kernel 3 is too big to fit and still no internet.:D
[Desire Android Development] wowa tatarin:
I'm not expect that's possible. Sometimes, I think htc bravo never die. That is amazing.

Good luck with next rom's
[Desire Android Development] spezi77:
Well, I don't think so. But thanks for contributing ideas. :good:

[MENTION=2473151]macs18max[/MENTION] I just remembered one idea for early debugging by Thomas Lehner, which he has explained in the Q&A section: http://xdaforums.com/htc-desire/help/qa-porting-kernel-3-0-desire-t3021038

What are your thoughts about this?
[Desire Android Development] bouzouksis:
Stuck on "Starting apps" message

Hi, this is my very first post :)

First of all a BIG BIG THANK YOU to spezi77 for keeping the

HTC Desire at the bleeding edge of Android Development. Amaaaazing!!! :D:D:D

Now to my problem: after installation of the latest 6.08 release on my HTC Desire (same happens with 6.07 btw) the apps are getting dex2oat'ed without error (75 apps), then it hangs when trying to start the apps, looping on "ServiceManager: Waiting for service media.audio_policy..." repeatedly.

I followed all the steps of the installation guide without any errors, I only had to plug off the cable for the initial boot after boot.img installation. I'm using a 8GB class 10 sdcard with 1st paritition being the vfat about 5GB, 2nd partition ext4: 1536MB, 3rd partition ext4: 1024MB, swap: 512MB.

Attached is my logcat file.
[Desire Android Development] spezi77:
Thx for writing your very first post into my thread. I will soon look into your recovery.log. btw, I am currently working on porting the latest BS version 6.14 to htc bravo. So, you better stay tuned.. ;)

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] V3ctorX:
I managed to get Beanstalk 6.08 and the latest 6.07(not sure which), I couldn't get a logcat sorry :(.

Only problem I'm facing is the original boot.img in the ROMs and from the link provided is too big by I'm guessing by around 250kb(seriously).

So i had to flash the k2 img so really my account is very inaccurate due to the kernel, could you please make a smaller one.

Thanks for the MM experience Sir, best Dev and OP.

Also I noticed that both ROMs have no internet access.
[Desire Android Development] spezi77:
Please read 2nd post about how to connect to WiFi (default gateway).

I have tried to shrink k3, but it won't go further.. :/
[Desire Android Development] spezi77:
BTW, in my build I made yesterday, I managed to get swap/turbo boost to work.

See here..

View attachment 3715476

..uploading the new build now.
[Desire Android Development] spezi77:
I checked your logcat, and it obviously gets into a loop at the end, where we can observe the flood of:

01-06 00:31:01.030 1016 1653 W AudioSystem: AudioPolicyService not published, waiting...
01-06 00:31:01.531 1016 1653 I ServiceManager: Waiting for service media.audio_policy...
01-06 00:31:02.532 1016 1653 I ServiceManager: Waiting for service media.audio_policy...

Honestly, I have no clue what exactly went wrong on your end. I suggest that you give BS 6.14 a shot! *fingers-crossed*
[Desire Android Development] V3ctorX:
And so dies the Bravo to all users who can't fit the kernel on their device.

:(

:'(

it was awesome while it lasted.

I followed the instructions on setting up the WiFi gateway but i mean mobile data.
[Desire Android Development] spezi77:
Oh, I see. I guess that you were on k2, right? Seems to me that with k2 mobile data don't work. K2 isn't a reliable solution, I am really sorry for you.

Don't give up.. maybe if we talk about 250K, someone finds a way to cheat.. ;)
[Desire Android Development] V3ctorX:
Thought so, never trusted k2 but I never knew 250KB could be such a huge limitation.

I'm so disappointed right now.

Time to go geeky on this one.

Let's see if I can cheat the 250k.

---------- Post added at 10:06 PM ---------- Previous post was at 09:58 PM ----------

I ask for a friend if he has any solution to my problem and he suggests this

http://softwarebakery.com/shrinking-images-on-linux

:D

:D

guess I'm in for a long one tryna figure this one out.
[Desire Android Development] nickleby:
I've tried the new ROM. Swap says "0", that means is not working. Swap image is not been created on /dataint partition.
[Desire Android Development] spezi77:
Woops, my bad. When I discovered a swap file in /dataint, I thought that this is it. Sorry for not properly checking it beforehand.

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] bouzouksis:
Currently booting 6.14, this looks totally different from 6.08 during the first boot. Now I have a nice graphical logo of Beanstalk, didn't have this with 6.08, so hopefully this one will go on... :fingers-crossed:
[Desire Android Development] V3ctorX:
Flashed the new one today :D still on k2, its neat.

question; is it possible to fix k2 for the less privileged.
[Desire Android Development] spezi77:
Maybe. :)

Sent from my beanstalk'd & hellspawn'd N4.
[Desire Android Development] V3ctorX:
Could you please try if possible :-| , my BRAVO is just itching to get it flashed.

*Praying*Praying* and hoping
[Desire Android Development] spezi77:
I tried many things to get swap on nand to work, by hand and with help of swapper2.

But the finding is that it won't work, even though I have enabled mtd_swap support in kernel. It simply fails to swapon (invalid argument). See screenshots. :/
[Desire Android Development] spezi77:
Update: I tried to get wifi connection to work in k2. But I couldn't manage it as k2 lacks SELinux support and wifi module depends on it in my understanding. Unfortunately, I don't know how to fix SELinux.

Shrinking the boot.img of k3 also didn't work.

We have to find another way... maybe kernel image can be swapped to another internal partition, who knows?! Maybe we could ask [MENTION=382340]walter79[/MENTION] for his advice??
[Desire Android Development] V3ctorX:
Ok, I've had little to no luck either if it's small enough the Bravo probably won't boot. I'll ask Walter79

just maybe
[Desire Android Development] spezi77:
If you could specify the exact amount in KB or byte that k3 is too big to fit into your phone.. that would be extremely helpful.

Sent from my beanstalk'd & hellspawn'd N4.