yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] SDogo:
You dont need the sys/modules folder to load modules. You just need an working and well installed Busybox with the insmod binary (modprobe force you to have the right folders path). With insmod you can load modules even from the sdcard. you only need to compile the modules for you kernel with the same version source (take care of the right "version" string or the kernel will reject the module load request)(since the source is available in git. you just need to grab a copy :D).

Actually im loading various modules in my tablet. But since y can't have the /lib/modules y the root (need to edit the bootimage to do it). I load the modules (compiled for my obviously) for my joystick and usb-serial cable from my sdcard and the devices works like a charm.
[XPERIA X1 Android Development] taninos:
Were you able to make wifi tether work? Could you give us instructions step by step to accomplish it?

Thanks in advance.
[XPERIA X1 Android Development] santos81:
Hi all!

I tried to install TeamViewer, but it's not success. The app is not compatible with Xperia x1. Does anybody know why? Maybe the promblem in GPU, that Kovsky have not?

Thanks!
[XPERIA X1 Android Development] SDogo:
i never tried to make tether work since i dont needed and here in my country the data charges are really expensive. But in theory all the modules can be loaded in the same way.

1 .- Make sure you have an working Busybox instalation with the insmod binary installed (on market you can find lots of busybox "updater/installers")

2 .- Grab a copy of the modules that you need. If you dont have it. You can compile a new one from the sources (take care of the version/build string in the config file or the module will reject to load) (i suppose that the kernel has the module support included. i haven't looked in the config).

3 .- Install and open an termina emulator (again.. you can find it in the market if you dont have any)

4 .- go to the folder where you have the modules. cd /sdcard/the_path_to_the_modules_blah_blah_blah

5 .- type "su" and accept the permisions request

6 .- type "insmod module_to_load.ko"

7 .- to view if the module was loaded to kernel you can type "lsmod".

8 .- profit

notes:

1 .- if you dont have any module. you can compile your own. Just need a machine with linux installed (a virtual machine also works), the kernel sources (you can get it from the git of this project), and the compiler toolchain (the most common and recomended is the Sourcery CodeBench 2010).

2 .- before to load a module. you need to check if there is any depency to load. First you need to load the modules from what you depend and next you can load the other module. check it with "moddep module_to_check.ko". Just as an example. To load the joypad support on any usb host enabled device. First you need the joydev.ko, next the ff-memless.ko and then you joypad module ex: xpad.ko

3 .- if the load of the module gives you a message saying something about "exec format". You need to check that the build correspond to your architecture (in this case is armv6 i think (i dont remember now)). If after that the error remains. You need to do a full compile of the kernel but with the needed modules selected "as modules". This will be a little tricky in some cases. but some modules dont even load without a full compile (something about certain strings that only are generated on full compile and not when you make an "make modules" (i dont remember now))

4 .- to speed up the things a bit in daily use. I recomend to install gscript and make a "autoload" batch. It will saves you a lot of time when you have a lot of modules to load (again.... look for it on the market).
[XPERIA X1 Android Development] HATA28:
Allright thanks for the information.

However, sometimes I am really unable to wake up my phone. I believe this issue only happens when I leave WIFI on, and then turn off the screen and wait several minutes. For some reason, the screen won't go back on. I know its not just a backlight issue, because when I slide the keyboard open, the keyboard light doesn't turn on.

I can only solve this by removing the battery or pressing the softreset button.

I see you added battery temp reading, very nice!

Are you going to upload a compiled version of the ROM sometime?

I had no luck in compiling it my self.

Your work is much appreciated!

Thanks again for this great ROM, for our old kovsky device :)
[XPERIA X1 Android Development] taninos:
Many thanks. To be honest I really don't know which modules are necessary for wifi-tether.
[XPERIA X1 Android Development] Taranis:
Hi all,

I have to say it's good ROM, but I've noticed that it is not good for daily use. Today I've had about 5 freezes (can't wake up OS from sleep). Performance in apps it's not bad, but freezing in standby mode is really annoying. I've also been using PowerAmp and I noticed that locking screen stops music. :(

Do you have any tips or something?

Well, I'll try some WM ROMs.
[XPERIA X1 Android Development] Seduce:
Hi,

actually I am trying to use it everyday...

Just a short question to everyone: What launcher are you using? I am refering to to "tweak" list in the section..

greez
[XPERIA X1 Android Development] CoolrunnerII:
I just uploaded Build 20130310.

This includes:

* Battery temp readout ( Big applause for Syahmixp for the patch :D )

* Battery driver i2c cleanup. This may fix the lost keys bug.

* Backlight value is remembered during suspend. This will make the screen brighter faster if used outdoors.

* tun.ko is now included in the rom and loaded at boot time.

You can grab it from the Google code download page
[XPERIA X1 Android Development] HATA28:
You should disable WIFI before locking the phone/turning of the screen. I noticed it will only freeze when WIFI is on while the screen is off.

Also, if you use the default music player it won't stop playing when turning off the screen.

@CoolrunnerII

Thanks for the upload!

However, the hardware keys are sometimes still not working after waking up.
[XPERIA X1 Android Development] Seduce:
I think that is by design to use the phone as mp3player.

Well I installed this version today and tomorrow I will try vpn. Today I tried it at my college (with vpnroot) and somehow it couldn't connect...

I hope it will work this time.

greez
[XPERIA X1 Android Development] CoolrunnerII:
I haven't had the lost keys bug in ages. Are you certain you got it flashed correctly?

If I experienced it some myself I would probably fix it quite fast.
[XPERIA X1 Android Development] Seduce:
Hi,

After I installed this rom I flashed the boot_LCD_Power_off.img on it. Was that nessesary? Because I notice that the battery temp. is stuck...
[XPERIA X1 Android Development] CoolrunnerII:
No, the kernel in the new rom has some improvements over the one in boot_LCD_power_off.img

Temp and vpn won't work after flashing that.

Maybe we should remove some of the old files now. What do you think BrianXP?
[XPERIA X1 Android Development] Seduce:
Hi, thx for your fast reply.

I made a full wipe and flash and now the battery temp works. (sometimes it stucks on 60C but dont matter, restart fix this).

But I still could get the vpn to work. I tried the stock method and the app vpnroot. Do you use vpn?

My next step will be the app vpn_connections. Lets see..

greez
[XPERIA X1 Android Development] santos81:
Try VPNC. It works fine, if you connect to cisco asa
[XPERIA X1 Android Development] CoolrunnerII:
That's very nice of you :)

I started working on a gingerbread revision compile now. It looks like it compiles now, after some issues with CMStat. I'll publish a rom when I have tried it myself.

CRII
[XPERIA X1 Android Development] CoolrunnerII:
I finally got the gingerbread build through. The rom is in the download list. Please give feedback if you have any.

I tried the antutu benchmark and got 500.

If the build works OK I think I'll base future ROM's on this branch.

CRII
[XPERIA X1 Android Development] CoolrunnerII:
Most of it is translations, but I think there are some optimizations in the java runtime.

I have been trying to figure out a way to get a changelog with repo but havent figured out anything yet.

I looks like vpn is included by default now, so you wont need a separate app to do that anymore. Apart from that I havent found anything radical yet.
[XPERIA X1 Android Development] CoolrunnerII:
I have been thinking about the battery level. I am so fed up with it being all over the place, so I am thinking about just reporting a linear value based on battery voltage. When charging for short periods this will give misleading readings, but the readings are bogus anyway.

When charging it will go to 100% very fast, but it won't stop charging until the current had dropped below a certain threshold. It could also be possible to use the current to calculate how far the charging has gone during charging and report that as the level.

What do you guys think? Isn't this a better way to do it?

CRII
[XPERIA X1 Android Development] Elibl:
for charging-end detection current would be for sure a good identifier...

but as i mentioned a few times a while ago there is a sony ericsson driver for our battery chip out

there

from the native android device xperia x10(same battery) the kernel is not that far from our so i think it should be possible to use it...

it must be modified to match with the board file. especially power_supply struct but the detection in board file(or userspace?) is anyway buggy so maybe just use the one from driver...

so i think this would be the best solution ;)

i wanted to do it all the time somewhen but i just have to less free time

i already spent time on it so if you do it and keep a new branch up to your progress i could maybe help you with some commits if i got the time... but for sure point you to some key locations in the kernel...

all the best
[XPERIA X1 Android Development] santos81:
Hi! Could we use xperia x1 like usb-modem? Where can I get drivers?
[XPERIA X1 Android Development] Marcintosh:
USB tethering works on ZeamDroid. I couldn't get WiFi tethering to work even on the EXT3 builds.

EDIT: Wait.... What was I saying? I never even tried WiFi tethering on the EXT3 builds. Maybe it was my Galaxy Tab 2 that I thought when I got to that part. WiFi tethering never did work on that thing until I rooted it.
[XPERIA X1 Android Development] kuskro:
Also, you can wifi-tether with GoDroid v8 EXT3 ROM. Follow the thread instructions: http://xdaforums.com/showthread.php?t=1331521
[XPERIA X1 Android Development] Light_Sephiroth:
This is the dmesg.

For the logcat, i tried to do it via adb but it returns "Unable to open log device '/dev/log/main':No such file or directory"

So i tried to re-enable it commenting the line " rm /dev/log/main" in /system/etc/init.d/19speedy_modified but it did not solve the issue..
[XPERIA X1 Android Development] Elibl:
i successfully compiled a build with the correct gps settings but there is somehow a problem with baseband read out for amss detection in init_gps_android_props() in gps-rpc.c on boot therefore i'm in a bootloop...

i think i'll rewrite/update whole gps code and add it directly to our device tree without amss detection stuff. i'm planning to adapt htc leo's libgps which is the same base and looks the best for me out there. i think it only needs to be changed to amss 5225. correct me if i'm wrong...

@coolrunnerii: would that be ok if i do that?

EDIT: for log: it looks like it's something with rpcrouter 15 at the first view but logcat would give more info but i can't sadly say atm how you enable it again jerry disabled it somehow...
[XPERIA X1 Android Development] CoolrunnerII:
Thanks for the log.

Obviously there is something wrong in the rpcrouter. At least I know where to start now.
[XPERIA X1 Android Development] Elibl:
search for 0xe in gps-rpc.c i think it may must be 0xc : 0xd referring to leo's leo-gps-rpc.c

EDIT: yep that should solve interrupt...
[XPERIA X1 Android Development] CoolrunnerII:
I noticed that you changed to that repo. The reason I chose SP3DEV/Alex's repo was that he had commited a patch fixing the amss version detect stuff. I think the library that is actually in the roms now is a build from Alex's source.

At least his fix has to be ported to the code we choose to use.

his repo is here:

https://gitorious.org/~ast/xdandroid/asts-hardware_xdandroid_gps

Check the logs, he did some quite important stuff there.

EDIT: I got some dmesg logs myself with the lib in the november Sundream rom. I didn't see any rpcrouter errors, but still got the strange touchscreen behaviour. I will have to turn on debugging in the touchscreen driver and see why it suddenly stops working. I even got a period where swiping would work to switch between home screens, but pressing an icon didnt work.
[XPERIA X1 Android Development] Elibl:
yeah alex's commits were pulled to the repo i pushed if you have a look at the earlier commits or the code... but somehow with the build from your tree baseband isn't yet available at the gps init or something like that. i wrote some deeper debug and all the stringvalues read out for baseband and stored in tok in init_gps_android_props() are zero what causes a bootloop
[XPERIA X1 Android Development] CoolrunnerII:
If you could do this it would be very nice of you :)

Not much seems to happen with the gps lib at the moment, so forking now would be a good idea.
[XPERIA X1 Android Development] Elibl:
hey how is it going?

1) i think leo gps will get a great thing could you maybe have a look too if you've got time? makefiles are driving me crazy:silly:

in the leo device tree the leo-gps is compiled to /system/lib/libgps.so. but in gingerbread the devices use the gps."bootloader_name".so gps lib if i understood right. finally gps.htcleo.so is inluded via proprietary files to system/lib/hw/ after research i think it's just the compiled already known leo-gps source. after testing i think the defines from leo's boardconfig: *gps_loc_api* need this proprietary file. all very very weird:eek:

but the gps lib is doubly this way isn't it? maybe you know a better way to implement this... i'm very unadvanced with makefiles...

on what are you currently working?

2) another thing is that i already was on the point were the module loaded completely fine at boot but know i'm just not able to find back to the makefile configuration where everything was right. it's driving me really crazy and i already spent hours... maybe my working directory is corrupted cause my virtual machine had a sudden death caused by a reboot after a windows update:rolleyes:

i'll push the defines i'm playing around with... so you can maybe have a look at

all the best

EDIT: i think i solved 2) need to compile and test. bug of shame: i forgot to define board_gps_libraries
[XPERIA X1 Android Development] Feed_Rulz:
does this thread mean we are about to get fully working/functional adnroid for X1?
[XPERIA X1 Android Development] CoolrunnerII:
I'm deligthed to hear of you progress with the GPS. Good work :) Just keep pushing all the changes you make to github.

I'm working on the sd boot issue. I couldn't make a card that worked and I am fed up with having to remove it before booting.

When you have a gps lib that works more or less we'll have to look into the touchscreen bug thet comes with the gps on.
[XPERIA X1 Android Development] Elibl:
My guide for manipulating sdcard mbr didn't work for you? I thought it should be working with every card?!

I noticed a chmod in a *.rc file that sets permissions of sdcard path to 0000 but it's generated during compilation... i wanted to have a look at later so it may gives you an idea, maybe it's normal don't know sounds strange.

EDIT: didn't load module again:eek: but i got also no boot animation and sim request... -> deleted my whole working directory and also the corrupted git from .repo/sync/ cause i had a fetch error after repo sync -f

I hope i'll get the gps to work again soon

Gesendet von meinem U8160 mit Tapatalk
[XPERIA X1 Android Development] CoolrunnerII:
I tried the guide, but I couldn't get it to work on the only windows computer I have access to.

I have found out something that makes it boot with the SD card in. In the file init.rc in the boot.img file there is a line "exec /system/bin/sysinit". If I remove this it the phone boots with the sdcard in.

Doing this causes lots of other trouble, but it means I have at least found something close to the problem.
[XPERIA X1 Android Development] Elibl:
Did you try to modify the chmod "sdcard mount path" 0000 line in init.rc?

Gesendet von meinem U8160 mit Tapatalk
[XPERIA X1 Android Development] djkarl:
are flashable zips going to be updated for this? i'm X1 is gathering dust and it would be nice to bring it back in to daily use
[XPERIA X1 Android Development] CoolrunnerII:
We are working on it, but don't hold you breath ;)

I am using the X1 with the latest kernel and the sundream rom from last year, and I find it good enough for daily use. So if you want to use your X1 just flash jerrytan's icedroid zip's and the latest boot.img file from the kernel thread.

When we have some actual functionality improvements we will post zips.
[XPERIA X1 Android Development] djkarl:
cheers guys i will give that ago.

you work on trying to breath fresh air in to our ageing device is appreciated
[XPERIA X1 Android Development] CoolrunnerII:
I tried you SD-card fix guide again and made it work with my sdcard :)

I also figured out where exactly it hangs with a card with a proper mbr:

When the wireless lan driver is initialized in the 02kovsky script in /system/etc/init.d the kernel also initializes the sdcard driver. This is because both wlan and sdcard are attached to the sdio hardware in the msm7201 chip. (sdcard is connected to channel 0 and wlan to channel 1). For some reason sdcard init hangs when the driver is able to read the partition table.

I won't do anything else with this now, and move on to other things, but if I happen upon a solution to this I will of cause publish it.
[XPERIA X1 Android Development] Elibl:
yes we can focus on this later as it's temporarily fixed... there are more important things to do...

nice to hear that my guide finally worked for you...

i now have an independent ubuntu on my laptop alongside windows (repo sync in about 10s) :D

but the issue with leo-gps is still the same...

i read somewhere that alex wrote the baseband detection in gps-rpc to avoid modem crashes in cause of gps init while baseband isn't yet available. maybe this happens to me... applying alex's amss detection to leo-gps won't be a problem but we already know that baseband isn't yet available at gps init so this wouldn't help anything

i won't have much time the next two weeks cause of some exams at my studying place and i need to finish my laptop configuration... i'll be back afterwards...

should we first focus on detules xda-gps?????

btw some ot i'll own a new (broken) daily phone today. my huawei ideos u8160 will be replaced by a hd2/leo :laugh: how much more speed :laugh: maybe need to replace digitizer before.... hopefully i'll learn enough for the exams!!!!

all the best
[XPERIA X1 Android Development] CoolrunnerII:
I have released a new zip. See second post

GPS is now working, but touchscreen doesn't when the gps is on :p
[XPERIA X1 Android Development] CoolrunnerII:
I figured out why the camera isn't working as it used to.

In the old roms the HTC dream propriatary libcamera.so library is used. If I cant find another solution fast I'll just add this file to the tree and we'll have to keep on using it.
[XPERIA X1 Android Development] CoolrunnerII:
Just uploaded a zip with the old libcamera.so file included. I have also added it to the extract-files.sh script in the git repo so anyone building their own roms should get the same result.

cm-7-20120902

The GPS bootloop fix has not been push to github yet.
[XPERIA X1 Android Development] kuskro:
Thank you man, you are great.
[XPERIA X1 Android Development] CoolrunnerII:
Thanks :)

I figured out what the touchscreen issue really is. The values read from the hardware registers are actually about 1/3 of what they were supposed to be. After turning off gps and going into suspend and out again everything is back to normal. What can cause this is still a mystery, but even if I can't figure out why, it may be possible to make a dirty scaling work-around.
[XPERIA X1 Android Development] Elibl:
great job! not only later init but also xtra and agps implementation :)

do you still have something locally you didn't push?

gps_xtra_set_data() for example is missing in gps-rps.c
[XPERIA X1 Android Development] CoolrunnerII:
No, only change is the delayed init. The rest is directly from Alex's repo.
[XPERIA X1 Android Development] Elibl:
:confused: now i'm very very confused... following, the main code for xtra interface and agps you pushed with your commit is not from Alex's repo!? as far as i can see or am i totally wrong?? or what do you mean with directly from alex's repo

/***** GpsXtraInterface *****/

static int gps_xtra_init(GpsXtraCallbacks* callbacks) {
pr_dbg_xtra("%s() is called", __func__);
GpsState* s = _gps_state;

s->xtra_callbacks = *callbacks;

return 0;
}

static int gps_xtra_inject_xtra_data(char* data, int length) {
pr_dbg_xtra("%s(): xtra size = %d, data ptr = 0x%x\n", __func__, length, (int) data);
GpsState* s = _gps_state;
if (!s->init)
return 0;

gps_state_thread_ctl(s, CMD_PAUSE);

int rpc_ret_val = -1;
int ret_val = -1;
unsigned char *xtra_data_ptr;
uint32_t part_len;
uint8_t part;
uint8_t total_parts;
uint16_t len_injected;

total_parts = (length / XTRA_BLOCK_SIZE);
if ((total_parts % XTRA_BLOCK_SIZE) != 0)
{
total_parts += 1;
}

len_injected = 0; // O bytes injected
// XTRA injection starts with part 1
for (part = 1; part <= total_parts; part++)
{
part_len = XTRA_BLOCK_SIZE;
if (XTRA_BLOCK_SIZE > (length - len_injected))
{
part_len = length - len_injected;
}
xtra_data_ptr = data + len_injected;
#if 0
pr_dbg_xtra("%s(): inject part = %d/%d, len = %d\n", __func__, part, total_parts, part_len);
#endif
if (part < total_parts)
{
rpc_ret_val = gps_xtra_set_data(xtra_data_ptr, part_len, part, total_parts);
if (!rpc_ret_val)
{
LOGE("gps_xtra_set_data() for xtra returned %d, part=%d/%d, len=%d; aborting! \n", rpc_ret_val, part, total_parts, part_len);
ret_val = EINVAL; // return error
break;
}
}
else // part == total_parts
{
ret_val = gps_xtra_set_data(xtra_data_ptr, part_len, part, total_parts);
break; // done with injection
}

len_injected += part_len;
}

gps_state_thread_ctl(s, CMD_RESUME);
return ret_val;
}

static const GpsXtraInterface sGpsXtraInterface = {
sizeof(GpsXtraInterface),
gps_xtra_init,
gps_xtra_inject_xtra_data,
};

/***** AGpsInterface *****/

static void agps_init(AGpsCallbacks* callbacks) {
pr_dbg_xtra("%s() is called", __func__);
GpsState* s = _gps_state;
s->agps_callbacks = *callbacks;

}

static int agps_data_conn_open(const char* apn) {
pr_dbg_xtra("%s(): apn=%s", __func__, apn);
/* not yet implemented */
return 0;
}

static int agps_data_conn_closed() {
pr_dbg_xtra("%s() is called", __func__);
/* not yet implemented */
return 0;
}

static int agps_data_conn_failed() {
pr_dbg_xtra("%s() is called", __func__);
/* not yet implemented */
return 0;
}

static int agps_set_server(AGpsType type, const char* hostname, int port) {
pr_dbg_xtra("%s(): type=%d, hostname=%s, port=%d", __func__, type, hostname, port);
/* not yet implemented */
return 0;
}

static const AGpsInterface sAGpsInterface = {
sizeof(AGpsInterface),
agps_init,
agps_data_conn_open,
agps_data_conn_closed,
agps_data_conn_failed,
agps_set_server,
};

and this would also need several additional functions in gps-rpc.c!
[XPERIA X1 Android Development] CoolrunnerII:
Ooops. :p

I'll have to figure out what happened. Something must have gone wrong when I moved everything from gitorious to github. I'll try to look into it later this week. The plan was to to just move everything from git://gitorious.org/~coolrunnerii/xdandroid/coolrunneriis-asts-hardware_xdandroid_gps.git and then remove the init code.
[XPERIA X1 Android Development] Elibl:
if you give write access i could clean it up for you...
[XPERIA X1 Android Development] CoolrunnerII:
done :)