yashsingh1/xdaforums huggingface dataset:
[HTC Desire X] alibabzo:
[MENTION=6290051]shyvam[/MENTION]

Vendor tree information you need to extract from your base ROM. This is detailed in the guide I just linked. How to make your device tree is also mentioned there. I can't help you with this as I do not own a Desire X Dual Sim and I don't have the time nor knowledge to write a device tree for a phone I don't own.

Just to warn you, this is going to be pretty hard. If making CM ports was easy we'd already have the latest version :p

To even boot CM12 you will need to write/find new drivers as the MSM8225 doesn't support some stuff in Lollipop as far as I remember. This, among other things, is part of the reason that arslankirmani/nightwalkerkg/I started with CM11 as we could get a booting build relatively easily, but it still took a month. I would suggest starting with KitKat. No reference point on GitHub makes the job harder as well. You could look at our source here (https://github.com/htclegacy and find the protou repos) but I don't know how close in hardware DX and DX dual sim are.
[HTC Desire X] shyvam:
[MENTION=6358387]alibabzo[/MENTION]

uh omg i think this will be pretty hard for me i will also need learn more about this i have tried almost all cm roms of single sim on dual siim for fun and some roms booted on my dual sim but in some rom device automticaly rebooting afer 20-30 seconds

so think device tree of single sim this idea will not good for dual sim [about device tree]

requests to devs please help if u can
[HTC Desire X] shyvam:
htc desire x dual sim has no cm rom so how can i extract files for vendor

this device has only sense4+ roms and i think sense4+ vendor files cannot work on cm12

and desire x device tree will [ work or not] for dual sim? because i tried all cm roms of single sim on dual sim ,,,, siingle sim rom sucessfully booting but dual sim automatically rebbot after 50 or 1min
[HTC Desire X] junkie994:
I know I'm bumping an old thread that's almost a year old BUT, :)

Am I the only one having problems with wifi with this build?

I can connect to networks but it takes forever to react and load websites. Is there something I can do to fix this?
[HTC Desire X] hell_lock:
My build server was getting dust so decided to build something new(cm10.2)...

http://www.androidfilehost.com/?fid=23212708291675961

First try booting with the kernel given in the package otherwise try any other kernel given in our forums..
[HTC Desire X] neXus PRIME:
Committed changes to git ?
[HTC Desire X] hell_lock:
Built from original protou sources and did this:https://github.com/prototype-U/andr...mmit/148630f4599f662bdb6446da81c8b1c9363ea2bb
[HTC Desire X] nightwalkerkg:
The boot is black like the ginger's soul. But there is a haptic feedback from capacitive buttons.

I can't get adb from the kernel or infinity kernel.
[HTC Desire X] coco070:
I have checked on atis112's github but there's no activity,

what about here?
[HTC Desire X] xpirt:
He's working on his computer now.

xpirt
[HTC Desire X] hell_lock:
On my build server now :p
[HTC Desire X] Mr.Jay:
In which version of cm he is working now? Cm 10.2?

HTC Desire X || Android 4.1.2 || mySENSEdx5 RC3.0
[HTC Desire X] nightwalkerkg:
[MENTION=4449607]InfinityShooter[/MENTION] I lost my internet connection,so i nees to ask you for a litle help. If you can check the git on ProtoU for android_kernel_protou and try to find out why i can't get adb to work. The kernel on ProtouProject is updated with 3.4 source. This was the only 3.0 and it's booting with it. I updated a device tree and i think i can get sd and wifi to work. Also did you try to use device tree on your github that was edited and build with 3.0 kernel ? If you find out the problem please send them to my email nightwalkerkg@gmail.com in a txt forma. I am using my phone to browse and the speed is around 50kB/s. :P
[HTC Desire X] hell_lock:
The ramdisk is at fault for adb
[HTC Desire X] Tresox:
Is atis112 still working on his pc?

I've checked github vor cm 10.2 but no updates:(
[HTC Desire X] dansou901:
You'll never know unless he tells you... And please stop asking...
[HTC Desire X] zawata:
did you ever solve this error? ive searched all of the internet and havent found a single lead about fixing it just a bunch of unanswered question about people having it
[HTC Desire X] dansou901:
Not really, as I stopped CM compiling for now. Problem is in our kernel, if I recall correctly; some drivers need to be updated for it to work with CM. And now I don't have time to concentrate on that...
[HTC Desire X] ekulnitsua:
All I want for Christmas is cyanogenmod! Can Santa debug our ramdisk?

Merry Christmas y'all!
[HTC Desire X] hell_lock:
Should we start working on cm for kernel 3.x? That way we might also get cm11.
[HTC Desire X] ekulnitsua:
That's a good idea. Which devs are still here / still active? [MENTION=4588971]dansou901[/MENTION] and [MENTION=4804114]nightwalkerkg[/MENTION] did a great job learning last time, and I'll be in a position to set up a Linux box shortly. We probably need a bit more experience this time too, but if we don't do it ourselves then it won't get done. I say hit it hard...
[HTC Desire X] nightwalkerkg:
Well since we can't boot it with 3.4 and i can't find Atis to share the sources,it's our only option. You will be able to compile cm 11 and get it to boot with it but because of ramdisk adb won't work,we can't do any logcating. I don't know when i am going to get internet,my parents said today but nothing. Since i am a teen with no source of income i just have to wait. :P I really want to start working.

Infinity,you can ask the guys from HTC Desire HD for help,they did a great job for their device.
[HTC Desire X] waza97:
I think atis has already booted it with 3.4 he said he is working on a clean ramdisk that we can then use for all cm versions
[HTC Desire X] hell_lock:
Well I can't wait anymore cuz I have got less than 2 months to work with this device.. [MENTION=373710]others[/MENTION] I have got lot of free time these days so what do you guys want us to do?

Ofcourse I will be needing my old developers(dansou and nightwalker) for helping me out and all the other members of this forum for their support.
[HTC Desire X] ekulnitsua:
I've got about 9 months left with this phone until I get an upgrade, so yeah! I'm in. With [MENTION=4804114]nightwalkerkg[/MENTION] offline, I'm happy to step in with a build machine.
[HTC Desire X] $îMpŁÿ_¢ØmPłİÇåŤęĎ:
Yeah please do something! I desperately want cm !:good::p
[HTC Desire X] ekulnitsua:
Just partitioning my ext hdd for an Ubuntu install. 250gb recommended for a build machine yeah? I've got no graphics work on for the whole of January, so this can have my whole attention...
[HTC Desire X] nightwalkerkg:
Nightwalkerkg is back online starting from today. :D
[MENTION=5057856]ekulnitsua[/MENTION] if you need any help please ask.

I have some stuff to do today,but i will start to work on cm asap.
[HTC Desire X] ekulnitsua:
Well in that case we don't need me to do builds! Good news!
[HTC Desire X] nightwalkerkg:
Nah,you can also do builds. You can help Infinity. I plan to work on CM10.1 will you can work on CM11. :D
[HTC Desire X] hell_lock:
Lets do only 1 thing for now.. I'll do cm11 in free time(which I wont get :p). So cm10.1 it is?? We need loads of people who can read and understand logcat(even 50% will work)
[HTC Desire X] atis112:
Guys, I think, the best if we make a fully working CM10 (4.1) first. It's easier, because we can use prebuilts from stock ROM.

My CM10 (with 3.4 kernel) is avaliable here: http://www.androidfilehost.com/?fid=23269279319199444

It's boot, but Wifi, BT and camera is not working. (I know the camera fix, but It need time.)

I know, that there are some member, who can make great works with prebuilts (as [MENTION=830797]ckpv5[/MENTION] [MENTION=5132229]xpirt[/MENTION] ...)

If anybody can help with Wifi/BT fix, I will fix camera. :)

I used this wifi config:

BOARD_LEGACY_NL80211_STA_EVENTS := true
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
WIFI_BAND := 802_11_ABG
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcm4330_b2.bin"
WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcm4330_apsta_b2.bin"
WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcm4330_p2p_b2.bin"
WIFI_DRIVER_MODULE_NAME := bcmdhd
WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/firmware/fw_bcm4330_b2.bin nvram_path=/etc/calibration iface_name=wlan0"
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
WPA_SUPPLICANT_VERSION := VER_0_8_X
[HTC Desire X] nightwalkerkg:
Can anything from here help ?

http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html
[HTC Desire X] dansou901:
Guys, great you start working on CM again. Just for the record... are there any current device and vendor trees or an updated manifest to build on? A few github links would be helpful to get all of us started, because a few people worked on it silently in the past and I don't know which sources are the current ones...
[HTC Desire X] nightwalkerkg:
Sources are here : https://github.com/prototype-U/android

Device tree : https://github.com/prototype-U/android_device_htc_protou

You can find common and vendor on prototype-U github. :D

[MENTION=3834787]atis112[/MENTION] can you share the sources for 3.4 kernel ? Is it this : https://github.com/atis112/android_kernel_protou_3.4 ?
[HTC Desire X] dansou901:
Ok, will start building if you have something new to test, but I can only do so from the day after tomorrow in the evening, then I have some time for that....
[HTC Desire X] atis112:
https://github.com/ProtouProject/android_kernel_htc_protou/tree/jellybean
[HTC Desire X] nightwalkerkg:
I didn't start yet,i will from tomorrow. I have a lot of things to do first. I didn't have any internet for two months. :P

I hope that atis will share his kernel soruces so i can start to work with adb and debug. For now only thing i know about wifi is that it's not loading the driver.
[HTC Desire X] hell_lock:
If we are going with cm10 then I haven't made any device trees for it yet..
[HTC Desire X] nightwalkerkg:
Nah,i'll stick to 10.1,i already have the sources downloaded and i really hate downloading them again. I'll just change the kernel and start building now. It should be done in about an hour.

EDIT:

Also i decompiled the stock boot.img and got this. http://www.dodaj.rs/f/2m/K2/34FJmsBj/screenshot-from-2013-12-.png There are a lot more files then ones on github,do we need them or not ?
[HTC Desire X] hell_lock:
Ohk then cm10.1 with kernel 3.0.x it is. Lets start working :D
[HTC Desire X] nightwalkerkg:
Sure thing,i am on #protou if you need me.
[HTC Desire X] hell_lock:
I need sleep right now :p not you

Edit:build started.. should be finished till the time I wake up
[HTC Desire X] ekulnitsua:
I'm available for logcat-ing as ever. I'm gonna pick up an SSD before I set up my build machine, but should be available for builds in a few days if still required.
[HTC Desire X] hell_lock:
First build:http://www.androidfilehost.com/?fid=23269279319199539

Try booting it with the kernel given in the package or try the kernel in cm10.1 made by atis. If it boots tell me. Otherwise give logs

EDIT: its booting! lets the cm games begin :D
[HTC Desire X] ekulnitsua:
Confirmed Booting! WiFi / BT are the most obvious bugs. No ADB as yet, so I can't supply a log.
[HTC Desire X] nightwalkerkg:
Build the kernel that atis provided few posts before. And try to boot with that.
[HTC Desire X] hell_lock:
Go in terminal emulator and type this: mount -t vfat -o umask=777,gid=1015,uid=1000 /dev/block/mmcblk1p1 /storage/sdcard0

Now for logcat type this: adb logcat > storage/sdcard0/log.txt

That should be sufficient..

Try this new build and check to see if sdcard is getting detected or not in settings. If you see anything different there then pls tell me..

One more thing, try video recording and provide me its logs. That should be the easy to fix compared to other bugs.
[HTC Desire X] hell_lock:
If I use 3.4 kernel then the problem of vendors will come up again because I need to use JB vendor with jb kernel. I am not sure whether they are complete or not and on top of it unavailability of logcat makes it worse for us. We can make it boot with that but it requires rigorous testing.. A man who has loads of time and sharp pair of eyes might come in handy here.
[HTC Desire X] ekulnitsua:
Cool, just pushing now. Have you updated kernel stuff for trhat build, or am I ok just using the original kernel?

PS I'm on IRC now, if anyone wants the logs...
[HTC Desire X] hell_lock:
Use the one which worked previously... I need to work more on the kernel in the package so don't use it yet.
[HTC Desire X] ekulnitsua:
Yeah, it's bootlooping with the new build. I'll revert to -227.

Alright, so "mount: operation not permitted"

tried with sudo, and of course "sudo: not found".

Has anyone got a copy of that kernel that hellacopter made with an automatic logcat dump?
[HTC Desire X] nightwalkerkg:
Ok i am at my pc now and i'll start to work,just have to sync.

I am also on #protou if you need me. :P
[HTC Desire X] xpirt:
sudo? Android has su as command.

xpirt
[HTC Desire X] ekulnitsua:
Si, sono un idiota.

I've sorted that....

Still no adb from terminal emulator though, hanging "waiting for device".
[HTC Desire X] xpirt:
lol Are you italian? Or you know the language?

Sorry for OT.

xpirt
[HTC Desire X] hell_lock:
try this then..

su

logcat > [location here]
[HTC Desire X] nightwalkerkg:
Flash the kernel from [MENTION=3834787]atis112[/MENTION] alpha 2 build of CM10.1 and see if adb works.

If its working,atis can you remember what did you do to make it work ?

Also we can decompile the boot.img and inspect the ramdisk.

I think there is an app that can do a logcat and save the files on the device itself. Download it via pc and try that if nothing works. You can open the sd card on the pc,right ?
[HTC Desire X] ekulnitsua:
La mia regazza e Italiano, ma viviamo in Scozia.

Anyone got any smart ideas for this logcat hurdle, (now I've remembered preschool level android commands)? I think we're probably stuck until we have a clean ramdisk.
[HTC Desire X] nightwalkerkg:
[MENTION=4350492]neXus PRIME[/MENTION] did you test any of these https://github.com/ProtouProject/android_device_htc_protou/pulls ?

Also,i see that you guys fixed the wifi in CM9,can anyone remember how ?

I am finishing a build now,so i will upload a build soon,it might fix the adb.
[HTC Desire X] hell_lock:
The adb problem is in ramdisk so you don't need to build again for that. As far as WiFi is concerned, I tried my fix on it long back but it worked partially.
[HTC Desire X] nightwalkerkg:
Yeah i know,but i wanted to check if everything is working and if it will finish.

I am uploading a build right now. Ok,can you explane to me what,in this case,partially means ? Did it work after reboot like bt or there was a change in the logcat ?
[HTC Desire X] hell_lock:
It worked randomly. Once you press the on button, it goes into a loop and after 20-25 tries it automatically turned on. I found nothing which was the cause of such behaviour in the logcats. BT worked only after reboot.
[HTC Desire X] nightwalkerkg:
Well,it's something. xD I will add it to the next build (if the adb is fixed) and work from there.

It means you were close to finish line. :D

---------- Post added at 08:59 PM ---------- Previous post was at 08:49 PM ----------

Oh,also i never got to thank you for teaching me how to compile.

Thank you, Sensei ! :D

Here is the rom,test adb and report back. I hope it works.

http://d-h.st/DGO
[HTC Desire X] atis112:
To fix SDcard you need to use CM init, not the prebuilt from sense. I already did it here: https://github.com/ProtouProject/an...mmit/154fd517d181fa5a2db80ba84f02454af8bbc7d6

But it need fstab fixes and other fixes in init.*.rc, because it's buggy.
[HTC Desire X] nightwalkerkg:
The ramdisk inside your alpha 2 boot.img is with CM init or prebuilt ? I am using that.

Edit :

For the fstab i think we just need to add :

/devices/platform/msm_sdcc.1/mmc_host/storage/sdcard0 vfat defaults voldmanaged=sdcard:auto

About others i am not sure. I am still learning.
[HTC Desire X] atis112:
Alpha2 is with prebuilt init. I never shared this version. If you build the ROM with these changes, the SDcard will working fine, but you will get random reboots and other bugs. You need to fix system/data and cache mount in fstab. And others in the init.*.rc.
[HTC Desire X] nightwalkerkg:
Is that cm10.1-wip branch ? If it is,i already used that for my builds. I am using it right now,i just replaced the init.protou.rc and init.protou,usb.rc from the one inside your boot.img. Can you guide me somehow ? :D
[HTC Desire X] dansou901:
Just for clarifying as I want to download the sources again... We still use androidarmv6 sources? Because when I repo init -u git://github.com/androidarmv6/android.git -b cm-10.1 I get a gpg error...
[HTC Desire X] nightwalkerkg:
We are using this : https://github.com/prototype-U/android/tree/cm-10.1 .

So you do :

repo init -u git://github.com/prototype-U/android.git -b cm-10.1
[HTC Desire X] dansou901:
Ok, about the gpg error... Should have updated my repo binary, did so now. Also, you are missing a : in your github link above... should be git://github...
[HTC Desire X] nightwalkerkg:
Fixed. :P

Also did anyone test the build i posted here : http://xdaforums.com/showpost.php?p=48907227&postcount=320 ?
[HTC Desire X] dansou901:
I can do so tomorrow, will spend lots of time on the train, so there is plenty of time to test it. I should use atis cm alpha 2 kernel, right?
[HTC Desire X] nightwalkerkg:
Nope,use the one inside the zip. :D

I'll recompile the kernel tomorrow with the cm init. And try,somehow,to fix it. :P As atis stated.
[HTC Desire X] ekulnitsua:
I just got a bootloop with atis' kernel and infinitys build.
[HTC Desire X] nightwalkerkg:
Did you test the build i provided here ?
[HTC Desire X] ekulnitsua:
No, sorry I didn't get time. I'll be back on it tomorrow though, just note down any combinations you want me to try.
[HTC Desire X] nightwalkerkg:
Use the boot.img from the zip and check if it boots and if adb and sdcard work.
[HTC Desire X] hell_lock:
Dont try my build with his kernel because my build uses ICS drivers and his kernel is 3.4. Btw [MENTION=3834787]atis112[/MENTION] has finally decided to help us with 3.4 kernel and its drivers! I'll be updating my sources now..
[HTC Desire X] dansou901:
Great news! I'll be on the train in half an hour, so I can test then a bit...
[HTC Desire X] nightwalkerkg:
[MENTION=3834787]atis112[/MENTION] will this do ?

# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/mmcblk0p27 /boot emmc defaults defaults
/dev/block/mmcblk0p21 /recovery emmc defaults defaults
/dev/block/mmcblk0p26 /cache ext4 nosuid,nodev,barrier=1 wait,check
/dev/block/mmcblk0p24 /system ext4 ro,barrier=1 wait
/dev/block/mmcblk0p25 /data ext4 nosuid,nodev,noauto_da_alloc,barrier=1 wait,check

/devices/platform/msm_sdcc.1/mmc_host /storage/sdcard1 auto defaults voldmanaged=sdcard:auto
/devices/platform/msm_sdcc.3/mmc_host /storage/sdcard0 auto defaults voldmanaged=emmc:19,nonremovable

Also i unpacked the recovery.img and the recovery.fstab is a litle bit different,nothing major :

# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# mount point	fstype	device	[device2]

/boot	emmc	boot
/cache	ext4	cache
/data	ext4	userdata
/misc	emmc	misc
/recovery	emmc	recovery
/sdcard	vfat	/dev/block/mmcblk1p1	/dev/block/mmcblk1
/system	ext4	system
/devlog	ext4	devlog
/internal_sdcard	vfat	fat
[HTC Desire X] dansou901:
I've got bad news for you, [MENTION=4804114]nightwalkerkg[/MENTION]: The build and kernel you provided a few posts above didn't boot, also adb didn't work. If you need more testing, I can do, but I can't download CM builds now as I am on the go. Kernels are fine f though, they're not that big.
[HTC Desire X] nightwalkerkg:
It's all i needed to know. Thanks.
[HTC Desire X] ekulnitsua:
That's me back, available for testing. I'll be here and in IRC if anyone has anything they want tried.
[HTC Desire X] nightwalkerkg:
[MENTION=4449607]InfinityShooter[/MENTION] you alive ?

Will you be here in about an hour or two ? I could use some help.
[HTC Desire X] hell_lock:
I am always here. Tell how can I help you?
[HTC Desire X] nightwalkerkg:
Well first,i need to know how can i build ramdisk or kernel without doing a whole build.

Also did you upload the sources for 3.4 kernel and did a build ?

And the last,do you have any idea what to do with the ramdisk ? I spent the whole morning checking about 20 githubs for devices that have similar specs or they are htc smartphones,but all ramdisk are different,i found most similarity in the fstab. If you know any documentation i could use to learn more about ramdisk.
[HTC Desire X] hell_lock:
1.Take out the boot.img from any of your builds and start modifying its ramdisk by extracting it. During the build process there are no changes in the kernel source made (zImage) so you can make your changes directly in the boot.img without building it again and again.

2.I will do the JB build tomorrow. Today I completed the vendors for android 4.1 thanks to atis. Now our vendors are complete and fit for cm10 atleast.

3.There aren't any guides for ramdisks. But normal bash shell knowledge might come in handy there. You can google majority of the commands inside it like chown,symlink etc.

4.Adb problem lies in init.rc and init.usb.rc.(as far as I remember). Till then you can use terminal emulator for getting the logs( logcat > sdcard0/log.txt). I'll look into it later on.

Hey I have some work for you. I added some new files in the vendors today. Can you make their entries in protou-vendor-blobs.mk? I don't think I need to explain you how to go about that, just open the file and see the pattern. You have to add the new entries which are not there and maybe remove some old ones. That way our vendors would be 100% fixed. I can do it but only tomorrow after my exams are over.
[HTC Desire X] dansou901:
You just uploaded it to your github? If yes, I'll try to sync it and do something when I'm back on the train again. I'll have over two hours of going by train left from reaching my destination.
[HTC Desire X] nightwalkerkg:
Here you go https://github.com/nightwalkerkg/android_vendor_htc_protou/blob/cm-10.2/protou-vendor-blobs.mk .

I checked and all are there and i removed all duplicates. But just to make sure,please check again. :D