Hi,
Does anyone know where to get source code for battery monitor for A101? The application is called batteryd in Android, but I couldn't find its source anywhere...
[email protected] said:
Hi,
Does anyone know where to get source code for battery monitor for A101? The application is called batteryd in Android, but I couldn't find its source anywhere...
Click to expand...
Click to collapse
It isn't GPL, so no source was released.
divx118
divx118 said:
It isn't GPL, so no source was released.
divx118
Click to expand...
Click to collapse
It's a pity... Is there any other app for A101g8 to read battery status?
I have their 2.6.29-omap1 kernel, but it seems that /proc doesn't report battery status correctly. It always shows 50% charge...
[email protected] said:
It's a pity... Is there any other app for A101g8 to read battery status?
Click to expand...
Click to collapse
Yep, I already asked archos a few times for the source... Nothing yet.
[email protected] said:
I have their 2.6.29-omap1 kernel, but it seems that /proc doesn't report battery status correctly. It always shows 50% charge...
Click to expand...
Click to collapse
Not that I know of. On debian I just copied the batteryd binary from archos and start that. It must however be started from /system/bin else it wouldn't work. I guess they used some hardlinks.
If started /sys/class/power_supply/battery/capacity will show the right value.
divx118
Unfortunately, this doesn't work for me...
Code:
[email protected]:/system/bin# /system/bin/batteryd
-bash: /system/bin/batteryd: No such file or directory
[email protected]:/system/bin# file batteryd
batteryd: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
[email protected]:/system/bin# ldd batteryd
./batteryd: error while loading shared libraries: /usr/lib/arm-linux-gnueabi/libc.so: invalid ELF header
[email protected]:/system/bin# file /usr/lib/arm-linux-gnueabi/libc.so
/usr/lib/arm-linux-gnueabi/libc.so: ASCII text
So, maybe it doesn't like libc.so...
Probably, it really needs /lib/arm-linux-gnueabi/libc.so which is an ELF, but I'm not sure...
You are probably right, I did it the easy way on debian. See http://dev.openaos.org/wiki/Debian gen8#a14Startupscript
I just mount the squashfs file and create a link. So it also has the libs from android available.
divx118
divx118 said:
You are probably right, I did it the easy way on debian. See http://dev.openaos.org/wiki/Debian gen8#a14Startupscript
I just mount the squashfs file and create a link. So it also has the libs from android available.
divx118
Click to expand...
Click to collapse
Great, thanks!
I have it working now.
Do you know what options batteryd has besides -i ?
[email protected] said:
Great, thanks!
I have it working now.
Do you know what options batteryd has besides -i ?
Click to expand...
Click to collapse
No, sorry I don't know for sure, you could try -v which I believe was verbose. I do know there are some differences in the options available during firmware upgrades. IIRC they stripped some, so there should be some more options available on the older versions.
divx118
divx118 said:
No, sorry I don't know for sure, you could try -v which I believe was verbose. I do know there are some differences in the options available during firmware upgrades. IIRC they stripped some, so there should be some more options available on the older versions.
divx118
Click to expand...
Click to collapse
Oops, sorry... Right, how stupid I was!
Code:
[email protected]:~$ /system/bin/batteryd -h
usage: batteryd [-dn] [-i interval] [-f file] [-v voltage]
-d increase debug level,
-i specify a mesurement interval (in seconds),
-f output file for debug messages,
-n dry run mode,
-s no shutdown mode,
-v get the battery level for the specified idle voltage.
Yes, that was it. I now also added them to the wiki http://dev.openaos.org/wiki/Debian gen8#a10Batterymonitor for future reference.
May I ask what OS you are running on the archos?
divx118
divx118 said:
May I ask what OS you are running on the archos?
divx118
Click to expand...
Click to collapse
Sure. I have Debian Wheezy on 2.6.29-omap1 kernel from gitorious.org, with small fixes.
Related
Kernel version: 2.6.32.9 [email protected] #1
Base: Cotulla's Source Tree w/ latest drivers enhancements
Instruction:
- Delete zImage
- Unpack/replace my files in your sd
Please refer to this kernel as "michyprima's build" for not making people confused.
Ram Patch from Manus Freedom (http://git.linuxtogo.org/?p=groups/...it;h=65276d5b73d2de9e446cc379c76f03c7e4f8f914)
File up!
I'd appreciate a thanks
EDIT: This is an experimental build. Something maybe will not work for you, or worse this kernel will not be stable on your device. For daily use use a kernel from cotulla's tree
michyprima said:
Kernel version: 2.6.32.9 [email protected] #1
Base: Cotulla's Source Tree w/ latest drivers enhancements
Instruction:
- Delete zImage
- Unpack/replace my files in your sd
Please refer to this kernel as "michyprima's build" for not making people confused.
File up!
I'd appreciate a thanks
Click to expand...
Click to collapse
nevermind ;D
Great, but you forgot to add the modules. I'm not able to enable Wifi.
michyprima said:
Kernel version: 2.6.32.9 [email protected] #1
Base: Cotulla's Source Tree w/ latest drivers enhancements
Instruction:
- Delete zImage
- Unpack/replace my files in your sd
Please refer to this kernel as "michyprima's build" for not making people confused.
File up!
I'd appreciate a thanks
Click to expand...
Click to collapse
wifi is working?
Well, compiled it myself.
It belongs into: /system/lib/modules
Thanks for your kernel. The 384mb patch from manusfreedom works great!
is 384mb max right now? or is there a way to bump it further to 512mb using the same method to bump it to 384mb?
is this only for ubuntu.or i can us for android,too.
ElBartoME said:
Well, compiled it myself.
It belongs into: /system/lib/modules
Thanks for your kernel. The 384mb patch from manusfreedom works great!
Click to expand...
Click to collapse
Thanks for remembering me to give credit...
Wrote the post too fast
ElBartoME said:
Well, compiled it myself.
It belongs into: /system/lib/modules
Thanks for your kernel. The 384mb patch from manusfreedom works great!
Click to expand...
Click to collapse
Great work Michiprama.
By the way how to push this ko file to /system/libs/modules?
If you can tell me a way using the Terminal emulator in the device it would be great.
Thanks
arifqur said:
Great work Michiprama.
By the way how to push this ko file to /system/libs/modules?
If you can tell me a way using the Terminal emulator in the device it would be great.
Thanks
Click to expand...
Click to collapse
Isn't it better to change the file directly in android file system?
On Debian distribution...
Code:
sudo su
mount system.ext2 /MountPoint1 -o loop
rm /MountPoint1/lib/modules/bcm4329.ko
cp bcm4329.ko /MountPoint1/lib/modules
umount /MountPoint1
exit
Otherwise if you have write access directly on the phone you can do the same here.
thx Micy for Kernel
an thx ElBartoME for fix
adb shell mount -o remount,rw /system
adb push "your Path" /system/lib/modules/bcm4329.ko
edit
anyway had sleep of death!! always! for me at least
michyprima said:
Isn't it better to change the file directly in android file system?
On Debian distribution...
Code:
sudo su
mount system.ext2 /MountPoint1 -o loop
rm /MountPoint1/lib/modules/bcm4329.ko
cp bcm4329.ko /MountPoint1/lib/modules
umount /MountPoint1
exit
Otherwise if you have write access directly on the phone you can do the same here.
Click to expand...
Click to collapse
Thanks man
I keep getting errors trying to unpack the .rar file in various ways. Anyone else? Is it corrupted?
michyprima said:
Isn't it better to change the file directly in android file system?
On Debian distribution...
Code:
sudo su
mount system.ext2 /MountPoint1 -o loop
rm /MountPoint1/lib/modules/bcm4329.ko
cp bcm4329.ko /MountPoint1/lib/modules
umount /MountPoint1
exit
Otherwise if you have write access directly on the phone you can do the same here.
Click to expand...
Click to collapse
Can you tell me how to do this for shubCRAFT's build? =)
I got the ram working but I can't overwrite the bcm4329.ko file in module.
3G aint working, wont connect but says connected
RaiderX303 said:
3G aint working, wont connect but says connected
Click to expand...
Click to collapse
Yes, can confirm, no mobile connection possible
Wlan was working fine with the fix, also no SOD within first hour.
tried it, the ram worked but the Wifi didn't work and it gave me SOD
using TMOUS
Downy said:
Yes, can confirm, no mobile connection possible
Wlan was working fine with the fix, also no SOD within first hour.
Click to expand...
Click to collapse
Yes, i confirm this too: Wlan is working with the patch, but mobile connection doesn't works.
Sent from my HTC Desire using XDA App
Well our leo is not ready for more ram right now
Adding on first post an "experimental" warning...
michyprima said:
Well our leo is not ready for more ram right now
Adding on first post an "experimental" warning...
Click to expand...
Click to collapse
unfortunately yes......
Hi!
I modified the Camera.apk by decompile it with APKTool, and then build it again.
But i can't install it because it isn't signed..
How can i sign it?
Thanks in advance
BTW i'm on Mac OS X Snow Leopard
Usage:
Code:
java testsign appthatneedssigned.apk
I didn't make this, just use it a lot. In fact, I don't know who made it. (it's been that long)
http://www.multiupload.com/628DHBUFDA
zaduma said:
Usage:
Code:
java testsign appthatneedssigned.apk
I didn't make this, just use it a lot. In fact, I don't know who made it. (it's been that long)
http://www.multiupload.com/628DHBUFDA
Click to expand...
Click to collapse
Thanks
Can you tell me where i have to place the file?
Don't you have your own keystore? Seems like that ought to work better than some random key from who-knows-where:
Code:
jarsigner -verbose -keystore [your-keystore] unsigned.apk [your_keystore_alias]
Gene Poole said:
Don't you have your own keystore? Seems like that ought to work better than some random key from who-knows-where:
Code:
jarsigner -verbose -keystore [your-keystore] unsigned.apk [your_keystore_alias]
Click to expand...
Click to collapse
I'm completely new to Android development, so i've got no idea where to get one.. Can you please help me out
Thanks in advance
http://developer.android.com/guide/publishing/app-signing.html
Warning From TheRomMistress:
8. Donations.
We appreciate all donations to xda-developers.com, it keeps our forum online and well maintained. As a user you're allowed to ask for donations in your signature as a thank you for your hard work. However donations up front are not allowed, this forum is about sharing, not about getting paid to do something, that's what your job is for.
Hello guys !!!
So I am endrix and I am trying to port the linux kernel to our Toshiba TG01. I am an h.264 developer who loves linux. Many of you may hate the phone (I do a little too) because of the crappy windows mobile operating system that Toshiba has offered us. Beside the resistive touch screen our phones have a strong processor that is used almost in each smartphone (ok Samsung and Apple are not using snapdragon but is still Cortex A8).
So to the main point!
Firstly is not an easy task and I do not somebody to write in this thread when Android will work with our phones, I truly do not know if I will (or we will) achieve this! Secondly think to contribute as you can to this project, I am here to guide you if you have any questions about how to compile the kernel and if you have any other problem just send me a message or write it in this thread!
My git repository of the TG01 kernel is this one
github.com/endrix/kernel_common
System compilers and libraries:
I used the one given by source.android.com
apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev.
certainly you do not need all of them but is ok to have it
So how can you compile the kernel?
Steps:
Use an Ubuntu Linux distribution or virtualise it with Virtualbox
I am using this cross tools: arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
in my system I have created a directory in my /opt folder, to that just do "sudo mkdir /opt/cross"
Now go to the directory with "cd /opt/cross"
now rember where you have download the tar archieve and execute the following command, in this command i have downloaded my tar in /home/endrix/Download: so for my directory I do " tar xjvf /home/endrix/Downloads/gnueabi-i686-pc-linux-gnu.tar.bz2"
Now that we have our cross tools installed in our system is it good to create an eviromental varibale to easy our task of ceoss compiling. do this command "gedit ~/.bashrc" and at the end of the file put this line: export CROSS_TOOLS=/opt/cross/arm-2009q1/bin/arm-none-linux-gnueabi-
now execute this command "source ~/.bashrc" so that you command can be activated for the current command, the next time that you will open another console or reboot the varibale $CROSS_TOOLS will work
This is all for the cross tools
Next step Compile the linux kernel:
Create a directory for example "Projects" in your main directory(home), "mkdir ~/Projects"
Clone the repository of my git address: "git clone github.com/endrix/kernel_common.git"
Now you wait, take a coffe or eat a fruit
now you execute this command in the "kernel_common" directory, "make ARCH=arm htcleo_defconfig"
and then to compile the kernel" make ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
To make the process even faster if you have a multicore system, put -j4 (for 2 cores) or -j16 (if you have an intel iCore7 with 4 cores double threaded), that means, "make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
After a while depending you system you will get the kernel image file in the arch/arm/boot directory
So now you have the kernel compiled
Next step test the kernel with Haret:
1) Create the file default.txt with :
set mtype 2675
set ramaddr 0x11800000
set ramsize 0x18C00000
set kernel Image
boot
2)Download My modified version of Haret with TG01 support!
Haret for TG01
3)Create a folder in your sd card --> "ToshDroid and put the Image the haret.exe and the default.txt in it.
4) Finally execute the haret.ext and clik on run!
That's all folks! Now I am focusing in the Memory Map...
PS: sorry for links, As a junior member i cannot give a full url
I will update also my blog too for TG01
endri-bezati.blogspot.com
Hi endrix and welcome to xda-developers
I very much appreciate your work.. i've the same device.. it's a beautiful phone.. with a powerful hardware.. but windows mobile is not worthy of the hardware it runs on.. so we look forward for a release of android!
BTW.. i'd know what do you need to do your work.. can you make a list of thing that you need to accelerate your work? the first thing is compile android kernel.. but next? need you we post results? how we can fix the errors?
Sorry for my english but i'm italian.. and thank you.. hoping to see soon a first version of android..
Image Compiled without errors..
running haret it stops to "Jumping to kernel(custom). and freeze..
isikil87 : Ok! forgot something!
Do
1) make clean
2) git checkout android-msm-2.6.32-tg01
3) make ARCH=arm htcleo_defconfig
4) make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image
actually I am working on the android-msm-2.6.32-tg01 branch
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.
now we need the right address to write memory.
Cool !
isikil87 said:
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.
now we need the right address to write memory.
Click to expand...
Click to collapse
Exactly, the framebuffer is wrong too i think the addresse in the msm_iomap is not correct
#define MSM_RAM_CONSOLE_BASE IOMEM(0xF8010000)
have you dump the memory???
dump ?
isikil87 said:
have you dump the memory???
Click to expand...
Click to collapse
I have run haret with "dump mmu" but is not easy to understand everything, I am really a beginner in this domain I am currently searching for documentation!
I am beginer too. How can I help?
Can you share with us that Image file?
The image file
TruckyBN said:
I am beginer too. How can I help?
Can you share with us that Image file?
Click to expand...
Click to collapse
It will not help you a lot but here is the compiled kernel
megaupload.com/?d=W027CS8P
this is interesting
http://htc-linux.org/wiki/index.php?title=Talk:Tg01
About the code
isikil87 said:
this is interesting
http://htc-linux.org/wiki/index.php?title=Talk:Tg01
Click to expand...
Click to collapse
Actually if you compare my modified code for the tg01 branch you will see that I have done the same modification (I was inspired by this pages too)!
endrix said:
It will not help you a lot but here is the compiled kernel
megaupload.com/?d=W027CS8P
Click to expand...
Click to collapse
Thanks for share.
I already to boot up. But error is (teminating haret due to unhandled exception pc=00017254)
please tell me how to config and boot it. thank so much.
best regard !
nhattuong said:
Thanks for share.
I already to boot up. But error is (teminating haret due to unhandled exception pc=00017254)
please tell me how to config and boot it. thank so much.
best regard !
Click to expand...
Click to collapse
have you downloaded the latest version of haret?
check it http://netripper.com/leo/haret-pre-0.5.3-20100914_124354.exe
isikil87 said:
have you downloaded the latest version of haret?
check it http://netripper.com/leo/haret-pre-0.5.3-20100914_124354.exe
Click to expand...
Click to collapse
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
nhattuong said:
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
Click to expand...
Click to collapse
that is only an alpha version. it doesn't boot up untill we have the right addresses of nand iomap ram ecc of the device.
regards
isikil87 said:
that is only an alpha version. it doesn't boot up untill we have the right addresses of nand iomap ram ecc of the device.
regards
Click to expand...
Click to collapse
oops ! I understand. Thanks.
Best Regard,
No questions about Android please, this thread is only for the kernel!!!
nhattuong said:
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
Click to expand...
Click to collapse
For the moment the kernel has a problem because I have not figured out all the memory addresses and the reset is normal. Now you have to wait for a long time till we achieve to find the memory values. For android is another story if the kernel does not work correctly android will not work!
endrix said:
For the moment the kernel has a problem because I have not figured out all the memory addresses
Click to expand...
Click to collapse
how can we help in reading memory addresses? maybe there is a way that we all could divide work on many tg01 users?
endrix said:
For the moment the kernel has a problem because I have not figured out all the memory addresses and the reset is normal. Now you have to wait for a long time till we achieve to find the memory values. For android is another story if the kernel does not work correctly android will not work!
Click to expand...
Click to collapse
yeap ! i see. Thanks for your great works.
Hey folks. I've wanted to add this functionality to Android Builder for a while, but being me... I've done other things. We'll here's what I have now. It's a script that grabs CM6 source, Conap's vendor tree, and compiles it all into a zip. It's currently a standalone script and has some remnants from the Froyo AOSP version, but anyway... It seems to work although the resulting ROM needs tweaking.
(I had to change out the kernel and modules and it still wouldn't pull up the home screen. It did flash and boot though. Progress!)
Many thanks to Armin Čoralić for the first part of the script, Conap for the vendor tree and helping me to work this out, and the CM team for their awesome work.
Code:
#!/bin/bash
# Armin Čoralić http://blog.coralic.nl
# Part 1 modified by gnarlyc
# Part 2 created mostly by gnarlyc although I just took the commands from the CM site and made them into a script.
# Set $KITCHEN_ROOT equal to the current directory. This makes the code 'portable'.
export KITCHEN_ROOT=`pwd`
echo "Setting up the folders....."
# Create the folder structure. This can be slimmed down, but I made this script by cutting and pasting some of Android Builder...
mkdir -p $KITCHEN_ROOT/builder/source/projects/CM6/
if [ ! -d $KITCHEN_ROOT/builder/bin ]
then
mkdir $KITCHEN_ROOT/builder/bin
fi
# Make sure that buidler/bin is in the path and then get the repo binary.
export PATH=$PATH:$KITCHEN_ROOT/builder/bin
curl http://android.git.kernel.org/repo > $KITCHEN_ROOT/builder/bin/repo
chmod a+x $KITCHEN_ROOT/builder/bin/repo
# Initialize the repo.
echo "Initialize GIT repo....."
cd $KITCHEN_ROOT/builder/source/projects/CM6
repo init -u git://github.com/CyanogenMod/android.git -b froyo
# grab the CM6 source. This will just do updates after you do it once, so there's no harm in doing this every time. Although, you could start over if you wanted...
echo "Sync repo....."
repo sync
# Probably not needed for CM6...
echo "Import GPG key"
echo "-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV
lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7
8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMD
u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0Z
wNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq
/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5
jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4
MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9
b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJv
aWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5k
cm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIX
gAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI
2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAl
QN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806Up
hisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbk
C2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX
LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+
OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M
pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7s
KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb
N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjA
vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo
G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ
hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l
EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=
=Wi5D
-----END PGP PUBLIC KEY BLOCK-----" > /tmp/android.gpg
gpg --import < /tmp/android.gpg
rm -rf /tmp/android.gpg
echo "All Done."
# Cleanup (optional, but I like to start fresh... Just comment out if you want.)
cd $KITCHEN_ROOT/builder/source/projects/CM6/device/htc
rm -rf desirec/
# grab vendor tree
git clone https://github.com/Conap30/android_device_htc_desirec.git
# rename the resulting folder
mv android_device_htc_desirec/ desirec/
#remove unneeded folder
rm -rf desirec/vendor/
# I have already grabbed the needed proprietary files and zipped them up into a zip in a folder above the current folder.
# There are different ways that you can do this.
mkdir -p $KITCHEN_ROOT/builder/source/projects/CM6/vendor/htc/desirec/proprietary
rm -rf $KITCHEN_ROOT/builder/source/projects/CM6/vendor/htc/desirec/proprietary/*
cd $KITCHEN_ROOT
cp ../proprietary.zip $KITCHEN_ROOT/builder/source/projects/CM6/vendor/htc/desirec/proprietary
cd $KITCHEN_ROOT/builder/source/projects/CM6/vendor/htc/desirec/proprietary
unzip proprietary.zip
# I don't know why it wouldn't work for me without modding this. I can't change the source directly, so...
echo 'ro.modversion=CyanogenMod6-Eris' >> $KITCHEN_ROOT/builder/source/projects/CM6/device/htc/desirec/system.prop
# run extract-files.sh --- This needs to be run even though the proprietary files are already there.
cd $KITCHEN_ROOT/builder/source/projects/CM6/device/htc/desirec
./extract-files.sh
# setup the enviroment
cd $KITCHEN_ROOT/builder/source/projects/CM6
. build/envsetup.sh
# If you take out the 'generic_desirec-eng', it will give you a menu instead.
lunch generic_desirec-eng
# This compiles the source with the vendor tree included, makes the zip, signs it, and drops it into the out/target/product/desirec directory. It will tell you this.
make -j$(grep -c processor /proc/cpuinfo) otapackage
Please feel free to use this and help me tweak it. Your comments will be appreciated. You can cut and paste the code or download the attachment and take the '.txt' off of the end. This is LINUX ONLY by the way...
EDIT: Adding latest version to OP.
Thanks!
Thanks for doing this!
It'll be great when this is finished into something that can prompt you for which kernel you would like to use (e.g. conap's CFS) and build a working rom that will always be as up to date as often each of us is willing to build. When I get some time I'll take a look at helping to make contributions back to this.
This is delicious gold. Thanks so much! I know an early version of this helped me out immensely!
Sent from my ERIS using XDA App
Yeah, I thought about pulling the kernel source down too. That won't be hard to add at all.
Thanks!
hoban_eris said:
Thanks for doing this!
It'll be great when this is finished into something that can prompt you for which kernel you would like to use (e.g. conap's CFS) and build a working rom that will always be as up to date as often each of us is willing to build. When I get some time I'll take a look at helping to make contributions back to this.
Click to expand...
Click to collapse
Ok. I am going to run another test with a freshly wiped directory, but here's what I have now...
I've added the code to make it grab the current CFS kernel source from Conap's github, compile it and wlan module, and insert them into the tree... This currently does not get the other modules or give you the option for different kernels, but those can be added later.
great....i'm being replaced by a script....thanks alot lmao....
Conap said:
great....i'm being replaced by a script....thanks alot lmao....
Click to expand...
Click to collapse
ConapBot. 10 char....
It'll be great when this is ready. Good luck guys.
Sent from my Tazz Vanilla
Conap said:
great....i'm being replaced by a script....thanks alot lmao....
Click to expand...
Click to collapse
I've been looking for a good name for the standalone version of this. Maybe I should call it ConapScript? Or how about just c0nap?
Can you tell me what else you can do, so I can add that to the script?
lol
Thanks man for sticking in there and just getting neat things done. Maybe I can 'finish' this one...
EDIT: Sorry, 'roirraW "edor" ehT', I missed this one - "ConapBot". That's it! We have a winner.
gnarlyc said:
... Maybe I can 'finish' this one...
Click to expand...
Click to collapse
I highly doubt it
Conap said:
great....i'm being replaced by a script....thanks alot lmao....
Click to expand...
Click to collapse
lol, I for one, will not be using this script, conap... so, you can feel wanted/needed still
... you know how gnarly gets man, pay no attention
workshed said:
I highly doubt it
Click to expand...
Click to collapse
Well. Since these kinds of things are never really done, I highly doubt it too. As long as it helps others to save time or understand something a little quicker & better than they would otherwise, I'm happy with it.
Jerk. I think you made me cry again. lol
EDIT: Oh, yeah. I forgot to mention. I wrote Android Builder. And this ROM sucks.
gnarlyc said:
Well. Since these kinds of things are never really done, I highly doubt it too. As long as it helps others to save time or understand something a little quicker & better than they would otherwise, I'm happy with it.
Jerk. I think you made me cry again. lol
EDIT: Oh, yeah. I forgot to mention. I wrote Android Builder. And this ROM sucks.
Click to expand...
Click to collapse
Obviously you DIDN'T forget to mention anything
And who's really the "Jerk" here? I don't give people false hopes lol
Oh, and btw... nice job gnar!
workshed said:
Oh, and btw... nice job gnar!
Click to expand...
Click to collapse
Thanks. You're the best. If you weren't in Delaware, I'd hug you.
Polished it up a little and ran it successfully from a fresh and clean directory. My next step is to test the resulting ROM again. Anybody else is free to give it a go and report back though.
gnarlyc said:
Thanks. You're the best. If you weren't in Delaware, I'd hug you.
Click to expand...
Click to collapse
lol, you're thinking of a different, awesomely cool dev named nocap
Awesome. Definitely going to try this...
So it creates a ROM or an update script?
Hungry Man said:
Awesome. Definitely going to try this...
So it creates a ROM or an update script?
Click to expand...
Click to collapse
From the OP page...
It's a script that grabs CM6 source, Conap's vendor tree, and compiles it all into a zip. It's currently a standalone script and has some remnants from the Froyo AOSP version
Click to expand...
Click to collapse
Hungry Man said:
Awesome. Definitely going to try this...
So it creates a ROM or an update script?
Click to expand...
Click to collapse
Yeah man. It creates a ROM. The next update should allow you to select between different kernels too. If I get around to converting it to a plugin for the kitchen, it will drop the ROM into the original_update folder just like Android Builder does.
Is it possible to find which app uses which libraries? For example I would like to know which libs are used by the Camera application in order to port it or to completely remove any dependencies from the system. Thank you!
Normally, you use the ldd command http://linux.die.net/man/1/ldd for this.
Another one would be
readelf -d executable | grep NEEDED
Unfortunately, these are missing on android, if I am correct.
Best way would be to look on the build-machine I guess, using a full set of Linux and cross-compiler-tools.
This may be useful for you:
http://forum.xda-developers.com/showthread.php?t=2737126
hardcoremildred said:
Normally, you use the ldd command http://linux.die.net/man/1/ldd for this.
Another one would be
readelf -d executable | grep NEEDED
Unfortunately, these are missing on android, if I am correct.
Best way would be to look on the build-machine I guess, using a full set of Linux and cross-compiler-tools.
This may be useful for you:
http://forum.xda-developers.com/showthread.php?t=2737126
Click to expand...
Click to collapse
I will check it, thank you very much!