yashsingh1/xdaforums huggingface dataset:
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
how to install adb and how to use it

it just reboots

can i flash a kernel through the bootloader?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
http://developer.android.com/sdk/index.html

Install that first...it'll take its sweet little time too. lol
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
for the things to download in android sdk manager what do i download?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Just do the regular package by default, it'll install.
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
ok everything is downloaded

now what?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
That was fast.

I recommend moving the android sdk folder to the desktop, then rename it to android , all lower case, to make the next steps easier.

First, open the folder, go to platform-tools, you'll see 2 adb.dll files, copy and paste them into the tools folder.

Next downloas the fastboot exe binary > https://rs297dt.rapidshare.com/#!do...xe|992|R~C829F930319D3A214E1FC6C0D2ED57FC|0|0

Save that in the android/tools folder

anything in [brackets] is a comment

boot into the bootloader, select fastboot, connect to the pc via usb

next open command prompt, type in:

cd /desktop/android/platform-tools [now in the platform-tools folder]

adb devices [you should see some serial number showing it can see your evo]

we'll continue after you get that far.
[EVO 4G Q&A, Help & Troubleshooting] {ParanoiA}:
Download the PC36IMG.zip of amon ra recovery from the thread in dev section and follow directions to flash recovery. It seems that u don't have recovery that's all. No big deal. Your not bricked so stay calm. Its time to get your learn on

Support TrevE!!
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
inside the tools folder theres a file that says adb has been moved to platform-tools is that normal?
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
i'll try it right now
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
yea that's supposed to there, because it used to be in the tools folder, but was moved to the other folder.
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
i did it and when it says list of devices attached it doesnt show my phone
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Connect your phone to the pc via usb. Open device manager on your pc. Do you see android bootloader interface, or android 1.0 ! ?
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
all i see is android usb devices

and then inside that it says my HTC
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Do you have HTC sync installed?
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
yes i do have it
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
how can i put it in the sd card if i cant turn it on?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
-uninstall the drivers

-uninstall htc

-re-install the usb driver you downloaded earlier

-re-install htc sync

^ can mess up in you install the drivers with sync installed.
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
ok i installed everything ima try it

ok so i tried it and when i plugged it in it gave me an error saying android 1.0 not installed
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Make sure you re-install those drivers like the tutorial said, and it should say adb interface.
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
i give up -_- lol
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Did you not see how in the tutorial? And you got this.
[EVO 4G Q&A, Help & Troubleshooting] carbaj12:
What tutorial? Lol the one you did a few posts back?
[Nexus S General] winsys:
re: [DEV] Ubuntu on Nexus S (natively)

I'm new so I can't answer to the thread : [DEV] Ubuntu on Nexus S (natively) in the dev section.

I have a root image (based on the HD2 image) and a netarchy kernel (2.6.35) which contain :

- working wifi module : scanning does not work with iwlist but with wpa_cli, it does (cause of driver and combo scan feature).

- working touchscreen : patched mxt224 kernel module to have ABS_X, ABX_Y and BTN_ events + evdev 2.6

I have converted the ext2 image to an ext4 one. I will try to make proper patches and readme if they are people interrested in.

In 2.6.39, there is a bcm driver in staging. Maybe with 3.0 kernel (waiting ICS kernel sources), we can have a working wifi module with wireless-tools such as wicd or iwlist.
[Nexus S General] blizzake:
This is awesome... I've been waiting for this just to mess with it :p
[Nexus S General] shinigami13:
Wow this would be awesome. Any chance you could work on something for the NS4G?
[Nexus S General] winsys:
It seems they have the same configuration (instead of wimax support). This may work.

For now, I can't post on the right thread on DEV section and I can't post the link :(
[Nexus S General] winsys:
You can grab files on : http://www.okazoo.eu/~yan/ubuntu_on_nexuss

The root image file is still uploading ... be patient !
[Nexus S General] winsys:
Find a way to enable iwlist and wicd scanning using combo-scan bcm4329 feature.

I have written a wrapper, to use it you need to :

- mv /sbin/iwlist /sbin/iwlist.old

- cp the wrapper script to /sbin/iwlist ...

This is a crappy way as this way is not robust to wireless-tools update !

I can connect to my home wireless router with wicd !
[Nexus S General] winsys:
Root image file is uploaded !
[Nexus S General] winsys:
I found an interesting stuff to control the modem (2G and maybe 3G) :

http://trac.osuosl.org/trac/replicant/wiki/libsamsung-ipc

I will check if I need to write a RIL library to make a simple interface to write/read SMS and make calls.

The next step is to find GUI apps to do those things !
[Nexus S General] breakingspell:
For some reason, i get a kernel panic while booting. The rootfs at http://xdaforums.com/showthread.php?p=10486278 works fine, but still, no touchscreen or anything
[Nexus S General] winsys:
Can you give me some details :

- hardware (Nexus S or Nexus S4G and what version S-LCD or Amoled) ?

- last messages (reason of kernel panic) ?

Did you use my boot image file ?
[Nexus S General] radianter:
looks cool, but how to use it without a mouse.
[Nexus S General] breakingspell:
It's the i9020A, the non-Sprint 4G one. I placed your rootfs image into the /sdcard/ubuntu/ folder, and used fastboot to boot the boot.img that you provided in initramfs.tgz. The errors themselves, i'll copy the file back and run it again to pinpoint it.

Doing the same thing with the .ex2 that the other thread uses lets me boot to the GUI, but still, no interaction
[Nexus S General] winsys:
I don't understand the question. Is your touchscreen working ?
[Nexus S General] winsys:
I am waiting the output. For now, I am working on a i9023 version. I have uploaded new initramfs archive which contain a more generic boot image file. Can you test it ?
[Nexus S General] PLEEZEFRAGME:
can you tell me how to install this? I am waiting for so long for an working Ubuntu or XP on our beloved nexus s
[Nexus S General] breakingspell:
Sure thing, i'll test it for you. Let me download it real quick.

---------- Post added at 02:07 AM ---------- Previous post was at 01:38 AM ----------

It boots and the touchscreen works. Yay. For some reason, there's no option to configure the Wifi. I'm going to snoop and tweak, see if i can't find it.

---------- Post added at 02:32 AM ---------- Previous post was at 02:07 AM ----------

The app launcher loaded on my second reboot, and after switching to "Wifi mode" It still does not detect any wifi networks. Setting up the At&t APN in the 3G settings doesn't work either.
[Nexus S General] winsys:
Normal, it's normal, the module bcm4329 provided in the root image file was build for i9023 kernel.

You can download this file : https://www.okazoo.eu/~yan/ubuntu_on_nexuss/bcm4329.ko

After download, issue : adb push bcm4329.ko /lib/modules/2.6.35.13+/kernel/drivers/net/wireless/bcm4329/bcm4329.ko

Wifi should work after that !

---> download new image files !
[Nexus S General] breakingspell:
Still no luck, after a couple reboots. I'm still faced with "No wireless networks found" in the Wicd network manager. I compared the MD5 sums of the file on the device with the file you linked me, and they match, so i know i pushed it successfully.

The Network Tools lists a Loopback device and several unknown devices occupying different ports, (rmnet0, usb0, sit0), with the Loopback device (lo) selected. Are those imperative?
[Nexus S General] winsys:
Hum, at your point, do you see eth0 in the iwconfig listing ?

Do you have copy the iwlist wrapper I made ? iwlist-wrapper must be pushed as iwlist. What is the iwlist scan output ?
[Nexus S General] breakingspell:
iwlist

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

I'll mess with it, see if i can't get it working

---------- Post added at 02:53 AM ---------- Previous post was at 02:34 AM ----------

Running iwconfig returns

# iwconfig

iwconfig

lo no wireless extensions.

rmnet0 no wireless extensions.

ifb0 no wireless extensions.

ifb1 no wireless extensions.

usb0 no wireless extensions.

sit0 no wireless extensions.

ip6tnl0 no wireless extensions.

No mention of eth0.
[Nexus S General] winsys:
Why iwlist deals with wpa_supplicant ?

What do you see if you issue dmesg ? (about bcm4329 module loading)

There is something wrong, eth0 does not appear, I think bcm4329 module is not loaded.
[Nexus S General] benseoul:
Hello and thanks,

You have advanced in this project?

I download the files right now to test ;)
[Nexus S General] ltlollo:
#ln -s 2.6.35.13+ 2.6.35.13-00022-g7e3f0b3-dirty fixed it.

then

#modprobe bcm4329

#wpa_supplicant -Dwext -ieth0 -c/etc/wpa_supplicant.conf -B

#dhclient&

ping works , wget works, but firefox doesn't seem to load pages;

What am i missing?
[Nexus S General] winsys:
I should think about uname !!! So, we have the same problem and I don't understand why Firefox does not work.

At your point, you can use wicd (wifi mode icon).
[Nexus S General] winsys:
I have some tracks to explore but I have not yet dig enough:

- modem with libsamsung-ipc and maybe SMS ...

- screen rotation

- why firefox prints "Server not found"
[Nexus S General] _jan_:
The Firefox problem can probably be fixed temporarily by unchecking offline mode in the file menu. (Firefox relies on the network status of NetworkManager and doesn't detect the network connection established by Wicd)

But I can't even get the wireless connection working. I'm trying with the i9023 kernel, I did create the iwlist wrapper.

iwlist scan gives "Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory".

Wicd gives the message "No wireless networks found".
[Nexus S General] winsys:
I don't understand why iwlist raise a wpa_supplicant related error.

iwlist should be: https://www.okazoo.eu/~yan/ubuntu_on_nexuss/iwlist-wrapper

and iwlist binary must be iwlist.old
[Nexus S General] _jan_:
I double checked. The wrapper is saved as /sbin/iwlist and iwlist is moved to /sbin/iwlist.old.
[Nexus S General] winsys:
84e6eeddeed3cbf56d2b94ac74fa0246 /sbin/iwlist

a10dbc9a9c5586ba601b8d1ed90f1449 /sbin/iwlist.old

I just issued iwlist eth0 scan, no wpa_supplicant is running !

https://www.okazoo.eu/~yan/ubuntu_on_nexuss/iwlist.old

---> download new image files !
[Nexus S General] breakingspell:
Sorry, i was at work, wasn't able to reply.

I had originally pushed iwlist into /bin/. After moving it to /sbin/, it gives me this

# iwlist eth0 scan

eth0 Interface doesn't support scanning.
[Nexus S General] winsys:
Can you post md5sum of /sbin/iwlist and /sbin/iwlist.old ?
[Nexus S General] _jan_:
After updating iwlist.old to the version you posted, scanning works fine for me. I can connect to an unprotected network, but wpa encryption doesn't work. And even then, the user htc-linux can't use the network connection, only root can. Firefox does work as root.
[Nexus S General] winsys:
I can connect to my home wireless router (wpa2). Maybe I did a mistake too with wpa_supplicant.

I found why only root can access to the internet. There is an android feature 'CONFIG_ANDROID_PARANOID_NETWORK' which is set.

I have updated all tarballs to reflect all changes !
[Nexus S General] ltlollo:
So that was the problem :P

#addgroup --gid 3003 inet

#usermod –aG 3003 htc-linux ;if this is the user

should fix
[Nexus S General] winsys:
The best way is to disable the option in the kernel. I have rebuilt boot images.
[Nexus S General] ltlollo:
it is, but the current version of rootfs doesn't seem to include the up-to-date bcm4329.ko.

Can you include the recent /lib/modules/* in the initramfs.tgz?

Good job, btw.
[Nexus S General] winsys:
Thanks ! I have rebuilt rootfs (ext4) image which provides modules for the two boot image versions.
[Nexus S General] cahir_cz:
Im sorry to interrupt, but whats the "HTC Linux"´s user password? Thank you
[Nexus S General] ltlollo:
it doesn't work for me :(

pastebin com iZpvXn6j

2664243470056c1e90fd6867d667094c bcm4329.ko

b30bbe4d6b354218753839e551d19317 initramfs.tgz

f5a97e3ca1ca2616408140590b6952c1 rootfs.ext4(2).tgz

try "ubuntu"
[Nexus S General] cahir_cz:
Oh gods... Tried everything from root, admin, htclinux to password... :D
[Nexus S General] winsys:
boot image in initramfs.tgz is fixed now (should work) !

rootfs.ext4.tgz is updated also !
[Nexus S General] breakingspell:
Okay, using the new rootfs image, i can see my networks, but attempting to connect to my WEP-enabled one gives me "Required encryption information is missing (key)"
[Nexus S General] winsys:
Sure, you need to click to properties (button near connect) and enter the passphrase !
[Nexus S General] winsys:
Planned roadmap:

- modem with libsamsung-ipc and maybe SMS ...

- screen rotation

How-to:

- download fastboot: http://koushikdutta.blurryfox.com/G1/

- download initramfs, rootfs.ext4: https://www.okazoo.eu/~yan/ubuntu_on_nexuss/

- decompress archives

- push rootfs.ext4 into you sdcard in a folder called ubuntu

- reboot your smartphone in bootloader mode (shutdown the phone; press volume up + power on)

- in initramfs folder: issue fastboot boot boot-nexuss-generic.img (or fastboot boot boot-nexuss-i9023.img if you have a nexuss-i9023).
[Nexus S General] breakingspell:
Easiest way to do that is just issue "adb reboot bootloader"
[Nexus S General] winsys:
Easiest but this is an hardware reboot ... if you ran android, filesystems are not properly unmounted !
[Nexus S General] breakingspell:
Hmm... It fails on obtaining IP address, and setting a static IP makes it fail to associate. Odd...
[Nexus S General] cluster2a:
Is there any way to use ClockworkMod to boot ubuntu?

In the x10 mini section, they modified Clockwork to switch between two roms.

Or do I always need a Computer to boot ubuntu?
[Nexus S General] ltlollo:
i think you can:

-build the android kernel/CWR whit kexec support (you will have to change the init script, maybe)

-flash the recovery partition with the linux kernel (you will lose the ability to boot on CWR)

-try to replace 2stageBl with uboot (you will have to change something in the source to map the hw buttons)
[Nexus S General] winsys:
dual boot: I'm working on a solution ! Be patient XD
[Nexus S General] cluster2a:
Thank you :)
[Nexus S General] winsys:
I have got something but each one must take the boot.img which is specific to your android system (custom rom) and extract the initrd !

It works for me, I use the same kernel for android and ubuntu (no need to kexec something). I'm thinkink about autoboot after X seconds.
[Nexus S General] benoit2600:
It's a great new ! I look forward to try that !
[Nexus S General] jamesadalpiaz:
How did I miss this? Downloading the files now for my NS4G. :cool:
[Nexus S General] Epic_VS:
any update on dual boot?
[Nexus S General] winsys:
No, I will push my current work !

EDIT: new initramfs.tgz uploaded, enjoy !
[Nexus S General] cluster2a:
Are you working on dual boot? Would be nice to see your results :)
[Nexus S General] winsys:
No, my current work is in initramfs tarball.

You need to rebuild your boot.img with the initramfs of your android distribution.

I will upload an updated readme with guideline to build a boot.img with a simple dualboot support.
[Nexus S General] cluster2a:
That would be nice... take your time :)
[Nexus S General] PLEEZEFRAGME:
first of all thanks for your work!

but i don´t get it. Maybe because my english is not the best.

i dont understand what you mean with "- in initramfs folder: issue fastboot boot boot-nexuss-generic.img (or fastboot boot boot-nexuss-i9023.img if you have a nexuss-i9023)."

do I have to make a folder /fastboot/boot/boot-nexuss-i9023.img or what do i have to do?

A real step by step guide would be helpfull for me^^

it should be working via clockwork but i guess thats a dream right now.

thx anyways
[Nexus S General] ugothakd:
A couple of things.

Maybe format part of the sd card as ext4? That way you wouldn't have to change the entire rootfs for a few files.

Also, what changes have you made? Is it still pure stock with the one option enabled?
[Nexus S General] skaboy89:
what about modem

Hi, i'm really interested to this project... Is there a telephone stack? Can we implement something like ofono ( ofono dot org )?
[Nexus S General] winsys:
In the initramfs.tgz, you should find at least two version of the boot image. One is for the Nexus S i9020 and the other is for Nexus S i9023.

Just, reboot your phone and do "fastboot boot the_right_boot_image"
[Nexus S General] winsys:
Sources are available with tarball. Any change are distributed outside the root image file.

You have everything to rebuild the boot image file, the wrapper for the wifi.
[Nexus S General] winsys:
I did not search any project to the phone stack. There is nothing yet, I found something to manage the samsung modem but i did not take time to test it ...

It's interesting to check if we can control the Nexus S modem with oFono.
[Nexus S General] skaboy89:
ofono is already installed in system... but it's a really old version!

root@htcleo:/dev# ofonod -v

0.26

So i will try ( i hope soon ) to install the latest version ( 1.3 ) and do some test.
[Nexus S General] Epic_VS:
can i use this on NS4G?
[Nexus S General] amitabhr:
Yes, its working on the Nexus S 4G (ie CDMA version of Nexus S).

Just copy the root.ext4 to your nexus under /mnt/sdcard/ubuntu and then use the boot-nexuss-i9023.img (which you get on unzipping the initramfs) by specifying fastboot boot boot-nexuss-i9023.img (after doing a adb reboot bootloader first obviously)
[Nexus S General] Epic_VS:
generic image works as well.
[Nexus S General] unbas:
Hi guys,

First of all I apologize for the English, I am using a translator: (

I'm trying to work on my Nexus S Ubuntu but I can not start in the middle of the load there is a kernel panic but I can not read that.

The features are:

Nexus S = i9023

Firmware = 4.1.1 native

Inside my / sdcard / I created a folder called / ubuntu / ubuntu and inside I have the file "rootfs.ext4.tgz" after fasboot launched with the file "boot-nexuss-i9023.img" and not get it to work.

Do I have to do something else?

Another thing, is there any way to dualboot in the Nexus S?

Thanks for all guys!
[Nexus S General] winsys:
Hello !

rootfs.ext4 should be in /sdcard/ubuntu and not in /sdcard/ubuntu/ubuntu. Can you post the panic message ?

This needs some work. I published something but in your case, it will not work cause you have Android 4.1.1. Since Android 4, the kernel revision jumps to 3.0 or something like that. The kernel provided to boot ubuntu is still a 2.6 kernel which will obviously not work with your Android version.

You need to rebuild a kernel in order to boot Ubuntu with a 3.0 kernel. Since, I sold my Nexus S, I can try to build something but I can't test it.
[Nexus S General] jing95916:
3perfect...
[Nexus S General] unbas:
Hi winsys

The path is /sdcard/ubuntu/ intro this path are the "rootfs.ext4.tgz"

The traductor dont work corretly ..:(

The log of kernel panic i dont paste because i see the line but i dont read full text
[Nexus S General] DejvikCZ:
error

Hi guys,

Iam tryin this out with my Samsung Nexus S GT-i9023

and iam kinda stuck here...

i was going through this

i had bootloader on PC and i copied rootfs.ext4 on /sdcard/ubuntu on my phone... then i went to boot loader on phone and tryied to boot with

and i cant pass through this :

sorry for my english :)
[EVO 4G Q&A, Help & Troubleshooting] gacn87:
Alright, so my wife's phone stopped sending/receiving texts and calls today. Whenever she calls out it says "Account Cannot Be Validated" then tells her to call sprint customer service. So, I did a quick google and found out that the most common fix is to reprogram the phone, and you have to get sprint tech support to work you through it. So, I did and after a few failed attempts by the customer service rep to get me to key in some code I told her I'd try something else and call back if I couldn't fix it myself. What I didn't tell her is that the phone is rooted, running CM7.1

So, I figured that these access codes weren't working because of that. So, what would you guys suggest? Should I just flash a stock rom, and try calling tech support again? Is there something else that would work better?

Thanks
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
Yea, you need to flash a SPRINT sense rom [i.e. no sense 3.5 rom], then try the ## codes again. You should be good to go.
[EVO 4G Q&A, Help & Troubleshooting] gacn87:
Alright, so I tried a SPRINT sense rom...no good. that made for another very awkward conversation while a sprint tech was trying to get me to install OTA updates and do other things that didn't work.

So, I ended up having to unroot it just to get it reprogrammed , and now it's time to root it over again. Thanks for the attempt anyways.
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
That's awkward, didn't wana have to unroot, but glad you are squared away.
[EVO 4G Q&A, Help & Troubleshooting] nttcar:
HTC EVO 4g Your account could no be validated issue after swapping donor and evo

ALL,

My evo 4g was working fine the day before I swap. Because I miss some call but not even show miss called on my flash evo 4g, so I went back to original phone, after a 7 hours, i swap it back to my 4g. It suddenly not working and get can't not validate message. My 3G data was working fine. I wipe out all data and let it activated, it successful without error just can not update PRL. But 3 G was gone for sure. I wipe it out and put NVRAM back, 3G is back but just slow.

I check my ESN/MEID and rewrite NVRAM back and check all the mobile programming file. they all seeems correct, but still not able to make call. any suggestion ?

rom 3.70.651.1

Android 2.2

baseband 1.39.00.04.26

kernel 2.6.32.17

pri 2.15_003

PRL 60678

I updated to latest 4.54.651.1 still no voice call
[EVO 4G Q&A, Help & Troubleshooting] nttcar:
ALL,

Please share some light

I rescan my ENS and MEID location compare with previous one.

for example

the MEID location 0x01D12768 used to have my MEID value but now the value has changed. the same thing happen to my ESN two of locations.

Do I need to update my ENS and MEID

QXDM MEID location mismatch

0x01D12768 00 00 00 09 07 24 26 00 00 00 31 31 30 31 2E DF

Do I need to change MEID from

0x01D12768 00 00 00 09 07 24 26 00 00 00 31 31 30 31 2E DF

TO

0x01D12768 2F 20 d1 03 00 24 26 00 00 00 31 31 30 31 2E DF

if my meid is 2F 20 d1 03 00 24 26

for esn

the two location scan from the CDMAWS all show zeros.

should i add the value from the beginning of the location