Jump to content

Project:Android 2.3.X Gingerbread (gb) Porting on Samsung i8000 (Omnia 2 - O2) !!!


Guest argentinos
 Share

Recommended Posts

i copied the files from minlroid final 2.2.3

So i recapitulate: Bluetooth and wifi folder, iwconfig iwlist wpa_cli wpa_supplicant libertasspi are all from minlroid final 2.2.3 from this link?

Edited by spiderman1961
Link to comment
Share on other sites

So i recapitulate: Bluetooth and wifi folder, iwconfig iwlist wpa_cli wpa_supplicant libertasspi are all from minlroid final 2.2.3 from this link?

yes

but libertasspi is from twister2

According minlroid final 2.2.3 above files should be in sbin folder.

iwconfig and iwlist are in /system/xbin

wpa_cli and wpa_supplicant are in /system/bin

Edited by dni123
Link to comment
Share on other sites

just from system/etc i guess

and copied from system/bin iwconfig iwlist wpa_cli wpa_supplicant

then i loaded the libertasspi

then ifconfig wlan0 up

then iwlist scan

and i see my wlan in the list

but i have not managed to connect yet...

@Spiderman1961

the location for iwlist and iwconfig is ok...

ifconfig wlan0 up tells the wlan0 interface to start up, so that wpa_supplicant can use it.

yes

but libertasspi is from twister2

iwconfig and iwlist are in /system/xbin

wpa_cli and wpa_supplicant are in /system/bin

Hi dni123 thank again!!!!!!!!!!

But which post is exact? :o

If we join our effort posting without errors we will help us better :D

However i repeat: without your rapidity maybe we are still trying fix ginger beta

Grat job

Thanks :)

Edited by spiderman1961
Link to comment
Share on other sites

well in minlroid

iwconfig and iwlist are in /system/xbin

wpa_cli and wpa_supplicant are in /system/bin

and i copied all to /system/bin

but i think it doesnt matter in which folder iwconfig and iwlist are... because they are just for testing wifi from console... Android itself doesnt use this files for turning wifi on i think... i might be wrong

Link to comment
Share on other sites

well in minlroid

iwconfig and iwlist are in /system/xbin

wpa_cli and wpa_supplicant are in /system/bin

and i copied all to /system/bin

but i think it doesnt matter in which folder iwconfig and iwlist are... because they are just for testing wifi from console... Android itself doesnt use this files for turning wifi on i think... i might be wrong

Yes ok :) but we can help you testing :)

Last thing please: when you write

then ifconfig wlan0 up: this parameter is written on init.rc "#service ifcfg_wlan0 /system/bin/ifconfig wlan0 up"? Right?

then iwlist scan: this where is coded?

Link to comment
Share on other sites

Yes ok :) but we can help you testing :)

Last thing please: when you write

then ifconfig wlan0 up: this parameter is written on init.rc "#service ifcfg_wlan0 /system/bin/ifconfig wlan0 up"? Right?

then iwlist scan: this where is coded?

Please dont misunderstand me... your help is appreciated :-)

with correct configured wpa_supplicant there is no need for "ifconfig wlan0 up" because wpa_supplicant does it on its own i think...

then iwlist scan: this where is coded?

Sorry i dont understand the question?

Progress:

For wifi to start i just have to write "start wpa_supplicant" in console and it connect with my Router which is saved in "/system/etc/wifi/wpa_supplicant.conf"

But over the Settings menu Wifi just gives Error <- i dont know how to fix this

in Twister2 the file where AP's saved is "/data/misc/wifi/bcm_supp.conf" <- so you can copy this file to /system/et/wifi/wpa_supplicant.conf

for dns to work write in console:

setprop net.dns1 8.8.8.8

setprop net.dns2 8.8.8.8

for dhcpcd:

mkdir /data/misc/dhcp

chmod 0777 /data/misc/dhcp

here is updated init.rc and mount.sh

http://www70.zippyshare.com/v/95452681/file.html

if its not working for you:

what is the output of:

dmesg | grep -i wlan

logcat | grep -i wlan

Edited by dni123
Link to comment
Share on other sites

Please dont misunderstand me... your help is appreciated :-)

Sorry i dont understand the question?

if its not working for you:

what is the output of:

dmesg | grep -i wlan

logcat | grep -i wlan

No problem dni, i know you appreciate help :)

I only want follow your reasoning to contribute to project.

BTW you wrote:

-just from system/etc i guess

-and copied from system/bin iwconfig iwlist wpa_cli wpa_supplicant

-then i loaded the libertasspi

-then ifconfig wlan0 up

-then iwlist scan It's about i asked you: what is this?

-and i see my wlan in the list

Moreover: if you wrote:

what is the output of:

dmesg | grep -i wlan

logcat | grep -i wlan

i suppose that you fixed usb mass storage mode and adb mode...Rights?

Last thing: when you write "i just have to write "start wpa_supplicant" in console" do you mean Terminal emulator?

Edited by spiderman1961
Link to comment
Share on other sites

I applied all the suggested changes:

probably I became suddenly and really stupid ... :blush:

now with the new init.rc and mount.sh the network does not work .. :angry: .

Now I will rest and then I will decide whether to continue working on the project :angry2: :angry2: :angry2: :angry: :angry: :angry:

Edited by spiderman1961
Link to comment
Share on other sites

I applied all the suggested changes:

probably I became suddenly and really stupid ... :blush:

now with the new init.rc and mount.sh the network does not work .. :angry: .

Now I will rest and then I will decide whether to continue working on the project :angry2: :angry2: :angry2: :angry: :angry: :angry:

please do not abandon the project. very few people work on android i8000 2.3 project. not all people have the same skills. other are better testers, others are better programmers, others better on settings etc etc. on team work anyone can and must offer what he knows and can offer. we can follow this project closer or more far but better for ourselves and other users to keep working on it. new users should study and try to contribute, not wait to serve them the ROM.

i know you have another phone too. many of us have. i know you are working on other projects too. i know this phone is old. but keep in mind that working on this phone can evolve the knowledge of us all, and make us understand deeply the future's os, since it was constucted as wm, and it can run smoothly android 2.2, and WE CAN make it run smoothly android 2.3 as well.

remember. participation makes us stonger!!!

Link to comment
Share on other sites

Hi Spiderman,

pls do not give up :)

i dont have fixed usb at all, because my usb port of my Omnia2 is broken, so i cant help with usb at all...

if i write console i always mean the terminal emulator!

with "iwlist scan" you can scan for networks via wifi

therefore you only need to load the libertasspi module -> insmod /system/lib/modules/libertasspi.ko

and then bring the interface online with -> ifconfig wlan0 up

after the wlan0 adapter is online you can scan for networks with -> iwlist scan

if this is working your wifi is ready to be configured.

the outoput of "dmesg | grep -i wlan" and "logcat | grep -i wlan" is not long (only a few lines), so you can wrote it here

i will upload a new backup soon

Link to comment
Share on other sites

I continue share information:

dni123 bluetooth fix doesn't discover other devices, so i preferred fix bluetooth with Twister2 files and driver and sharing with you.

Apply patch under ubuntu opening file manager with "sudo nautilus"; this give you superuser access and when you copy patch permissions are preserved automatically (otherwhise system might not restart).

On my device Bluetooth start, but not discover devices, but i prefer fixing with twister sources. Next step will be fix discovering

bluetooth_fix.tar.gz

Link to comment
Share on other sites

Thx for the suggestion with bluetooth

i didnt test anything with bluetooth before

after copying all nessecary files from minl official1 i have a bluetooth headset succesfully connected.

Link to comment
Share on other sites

Temporary wifi fix

According efforts's dni123 here is reconstucted process to temporary fix wifi:

-Apply under ubutnu patch attached

-Open terminal emulator and type "su"---->Enter

-type "insmod /system/lib/modules/libertasspi.ko"---->Enter

-type "start wpa_supplicant"

-type "ifconfig wlan0 up"---->Enter

-type "iwlist scan"---->Enter

Your terminal now show wlan actives.

Note:

1) I don'know how connect (maybe it's better that dni123 explain us)

2) Wifi remains on: to swithc off it must reboot

On settings ui wifi don't start because (i think) android framework expects that the WLAN driver is a loadable module, not built into the kernel. When WLAN is turned on in the Settings UI, the framework calls platform code to insmod the module.

When WLAN is turned off, the module is unloaded.

Then on Twister libertasspi is not loaded with wlan_loader according wifi.conf: we must discover how to enable it trough Settings UI

Temporary wifi fix.tar.gz

Edited by spiderman1961
Link to comment
Share on other sites

Note:

1) I don'know how connect (maybe it's better that dni123 explain us)

2) Wifi remains on: to swithc off it must reboot

On settings ui wifi don't start because (i think) android framework expects that the WLAN driver is a loadable module, not built into the kernel. When WLAN is turned on in the Settings UI, the framework calls platform code to insmod the module.

When WLAN is turned off, the module is unloaded.

Then on Twister libertasspi is not loaded with wlan_loader according wifi.conf: we must discover how to enable it trough Settings UI

1)

To connect to a wlan network it must be saved in the /system/etc/wifi/wpa_supplicant.conf

As i mentioned before in twister2 the file where networks are saved is /data/misc/wifi/bcm_supp.conf

So if you have connected once to your network in twister2 you can copy the file from twister2:/data/misc/wifi/bcm_supp.conf to cm7:/system/etc/wifi/wpa_supplicant.conf

so when this is done and you start the wpa_supplicant it should automatically connect to your network

set the nameservers to googlenameservers for example and you can browse over wifi!

"setprop net.dns1 8.8.8.8"

"setprop net.dns2 8.8.4.4"

Another way to connect to a network that is not saved in /system/etc/wifi/wpa_supplicant.conf is over terminal emulator with "wpa_cli":

-Open terminal emulator and type "su"---->Enter

-type "insmod /system/lib/modules/libertasspi.ko"---->Enter

-type "start wpa_supplicant"

-type "wpa_cli -p/data/misc/wifi/ -iwlan0"---->Enter

-type "scan"---->Enter

-type "scan_results"---->Enter //This lists the available Networks

-type "add_network"---->Enter //This creates a new Network and gives you a number which is the network_id

-type "set_network network_id ssid "the_name_of_your_network""---->Enter /for example: set_network 0 ssid "My WiFi 1"

-type "set_network network_id psk "the_password_of_your_network""---->Enter

-type "set_network network_id key_mgmt WPA-PSK"---->Enter

-type "enable_network network_id"---->Enter

-type "save_config"---->Enter

-type "reconfigure"---->Enter

-type "quit"---->Enter

This saves you desired network to the wpa_supplicant config file.

You can also edit the wpa_supplicant config file by hand, which is much faster i think...

Example:

ctrl_interface=/data/misc/wifi

ctrl_interface_group=wifi

update_config=1


network={

ssid="My WiFi 1"

psk="mypassword"

key_mgmt=WPA-PSK

}

You only need to do this once! Next time just start "wpa_supplicant" and it will automatically connect to the saved network!

Check if dhcpcd is running with: "ps | grep dhcpcd"---->Enter

if not start it with "dhcpcd wlan0"---->Enter

For setting Nameservers:

-type "setprop net.dns1 8.8.8.8"---->Enter

-type "setprop net.dns2 8.8.4.4"---->Enter

2)

For me its working to simply unload the libertasspi module -> then network is offline and phone goes to deepsleep again

Link to comment
Share on other sites

I would like to put forward a proposal to argentinos and dni123: there are good progress in the project.

I think the initial post must to be updated constantly, to allow readers to find updates without having to scroll through the thread.

I therefore propose to partner work as a team (we will agree on name):

I noticed that if you work as a team so you can work quickly and accurately:

this has happened to me and frenkie999999999 in Twister Team, we have produced the Twister Rom and relathed themes;

the ADC Team (CastagnaIT, Christopher83, Educk, Ivendor, Krislibaeer) is churning out monthly updates of Android 4.2.2 for my S +.

In a few weeks thanks to the work of dni123, of spiderman1961 and valuable informative contributions of argentinos (which first launched project and that we expect after overcoming difficulties preventing it for now to be more present) we are at an advanced stage.

This morning I also fixed the usb mass storage mode: now we can connect phone under Windows an Ubuntu. Next step will be fix adb mode to easier work with developement and debugging tools

Soon i am going to publish the update.

Therefore, the results are there and many: soon will start again work or study for each of us and certainly time to devote to project will be minor: if we divide the tasks in coordination and sharing knowledge, information and procedures, we could certainly continue to move forward .

I await your answers

Edited by spiderman1961
Link to comment
Share on other sites

So until now we have working

  1. phone
  2. adb
  3. screen
  4. mobile data
  5. deep sleep
  6. superuser
  7. sound
  8. vibration
  9. bluetooth

Partially working

-wifi

how about

gps ?

Camera in photo and movie recording mode ?

FM Radio ?

I agree about the team. one proposal is SOTA (Samsung Omnia Two Android) team

Link to comment
Share on other sites

So until now we have working....

  1. bluetooth

Partially working

-wifi

how about

gps ?

Camera in photo and movie recording mode ?

FM Radio ?

I agree about the team. one proposal is SOTA (Samsung Omnia Two Android) team

-Bluetooth partially working: on my phone doesn't discover other devices (on yours does it discover?)

-Wifi works only with a very complicated and not dayly use: so works very very very partially

Camera, FM, Gps still working on...Need time

I'm glad you both agree on the formation of Team: as the name suggest "Advanced Developers Porting Omnia Team" (ADOPTeam)

Edited by spiderman1961
Link to comment
Share on other sites

since you verify the same hardware working or not i think next goal should be making camera to work.

for an average user i think is more important than wifi (because can use mobile data for download/upload) or bluetooth (can use microphone or speaker directly) and fm (some phones do not ship with fm at all)

so for me the priority should be fixing

  1. camera
  2. wifi
  3. gps
  4. fm
Link to comment
Share on other sites

I agree with a team, too...

i think it ist not easy to fix wifi... in my oppinion the problem is libhardware_legacy.so and without recompiling we can not fix wifi!

Link to comment
Share on other sites

I agree with a team, too...

i think it ist not easy to fix wifi... in my oppinion the problem is libhardware_legacy.so and without recompiling we can not fix wifi!

Very well dni123!!! :) It's ok

I propose that Argentinos (pending that can devote more time to the project) could keep first post updated with all news as one after another,

in meantime I could link full rom with fix usb and adb included

and while you are looking for a way to completely fix wif, i I could to take care of gps on which I have already started working.

What do you think about?

BTW

About your fix with bluetooth did it were possible discover and pair two phones?

Edited by spiderman1961
Link to comment
Share on other sites

yes i work on wifi at the moment and after that i take a look at camera...

i have no other phone here with bluetooth, so i cant test it.

I will upload a new backup today!

Link to comment
Share on other sites

yes i work on wifi at the moment and after that i take a look at camera...

i have no other phone here with bluetooth, so i cant test it.

I will upload a new backup today!

With adb and usb mass storage working?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.