yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] tordne:
I have tried android-msm-2.6.29 I didn't find support for qsd8250 and the bcm4329 so I left this one on the side.

The android-msm-2.6.29-nexusone had support for it(obviously) but made many compile errors.

I've uninstalled wicd, and played with static IP addresses. Nothing worked...

Only thing I noticed when I had android-msm-2.6.29-nexusone that a module nl80211 was included. In android-msm-2.6.32 it dissapeared but nl80211_testmode was unchecked so let's hope this solves the problems.
[Nexus One Android Development] :
Still no progress, but atleast now I know a what goes wrong.

Booted in debian with my zImage I've tried the command iwevent.

and this gives me the output:

Custom driver event:Conn EncrypMismatch 00 01

Custom driver event:Conn ConfigMismatch 01 00

Scan request completed

Set mode:Managed

Set Frequency:24.37Ghz

Don't really understand, except that there is probably something wrong with the bcm4329.ko

I'm running out of ideas.
[Nexus One Android Development] Rafase282:
From http://xdaforums.com/showpost.php?p=5521417&postcount=5
[Nexus One Android Development] jairuncaloth:
So looks like a custom recovery image that boots into openmoko from the SD card.

Upside is you can dual boot without another machine

Downside is you lose your recovery partition.

Still pretty cool :)

I had considered attempting something like this. Maybe I'll have a chance to poke at it later.
[Nexus One Android Development] tordne:
I modified the kernel and added USB host.

Modified one of my micro USB cables made it dual powered and OTG.

Now I can work again in debian on the phone, cause the wifi still doesn't associate with the AP.

I wanna thank you jairuncaloth and Sven killing for giving me the ideas and howto's.
[Nexus One Android Development] ivanfor:
Hi guys.

Does any of you have the N1 serial cable?? If yes, where did you buy it?? or how did you built it?

I've managed to boot debian following this guide without too many problems, and now I'm interested in a bit of kernel hacking for improving the debian-arm behaviour in our N1.

Thanks in advance.
[Nexus One Android Development] Rafase282:
Hello, can anyone post what would be the command to install ubuntu lucid using debootstrap?
[Nexus One Android Development] Rafase282:
I Installed ubuntu lucid using this instractions with some modifications, I'm using this room

I would like to know if using the same drivers from the post here is fine and I used the same kernel but it didnt work, it has been on the "X" for quite some time now.

Can anyone provide a newer kernel already built? I can test it out for you. I just want to be able to boot it. So far I can only chroot it. Which is not that bad, better than using a .img file.
[Nexus One Android Development] tordne:
I'm having problems, in September my phone suddenly didn't wanna boot in X anymore. Unfortunatelly I had to move and now the last few weeks I builded up again my server and I got some time to work on it.

So when I use the zimage included in this thread he boots X, but when I use my own kernel he doesn't want to. Even when I use the config file and compile it on the kernel 2.6.29 (same as original config ).

Now I'm using the 2.6.35.7 with modifications towards USB host and I see the kernel messages changed so he booted up that far. But he doesn't seem to auto-login and start X.

I need somebody who wants to try out my configuration file and kernel image!!!!

When I read the kernel messages he makes a fault with i2c.

Send me a message and I'll send you the necessary files. I need somebody for testing.

PLEASE NOTE I DONT USE ADB, I USE THE PHONE AS USB HOST WITH A USB2ETHERNET AND SSH.

So you'll need a similar setup.

Or if you just want to read my boot messages tell me

Thanks,

Tordne
[Nexus One Android Development] tordne:
It's allright for the moment, I didn't read all my log files. Apparently I didn't install mingetty for the auto-login.
[Nexus One Android Development] D200P13:
wow lots of steps
[Nexus One Android Development] Lancealot:
That's an interesting idea. Perhaps if Amon_RA were so inclined, he could integrate a feature into his recovery image which would allow us to dual-boot. Just a thought.
[Nexus One Android Development] Gimpeh:
I remember loading this up on my G1 back in the day. How does this perform on the Nexus one versus how it did with the G1 and its very limited resources?
[Nexus One Android Development] jairuncaloth:
I got the matchbox WM running last night. It has a pretty nice on screen keyboard that interfaces with open windows well. It's GTK theme is fugly, but that should be simple to change. I'm probably going to ditch XFWM in favor or matchbox.

I was sort of hoping Amon_RA or someone else with some C-fu might be able to hack that into recovery.

It runs pretty smoothly. This phone is a BEAST!

It could be possible. Right now I have no idea if we can even use the GSM radio from debian. One resource I've been pointed towards is a project called oFono. http://ofono.org/
[Nexus One Android Development] Gimpeh:
Wow. I wonder how well it would run with Gnome or KDE on it then. I'm feeling randy!
[Nexus One Android Development] Imperial.mack:
Can someone tell me is aircrack is working? would be trey cool...
[Nexus One Android Development] jairuncaloth:
I would think aircrack would be pretty easy to get working.

As far as booting from recoery-ra. I think android init allows loading of a secondary bootloader. Maybe something like qi would be a good choice.

http://wiki.openmoko.org/wiki/Qi
[Nexus One Android Development] swetland:
Modem control on N1 happens via /dev/ttySMD0 which is a virtual serial channel to the modem that uses AT commands (some standard, some HTC specific). The HTC ril is a userspace library used by the ril daemon (rild) to provide a bridge between the android telephony layer and the HTC-specific modem interface.

One could probably rig up the smd tty driver to do some tracing / logging if one wanted to figure out exactly how this works...
[Nexus One Android Development] Antiskunk:
Sorry, I haven't read through the whole thing so this may be a stupid question.

Is there or could there be a way just to have it installed onto an SD card which you can put in and then have an option to choose which OS to boot? Like if you have two OS's on a computer.

Also, is this booting the underlying Debian on the phone already, or is it a custom debian you've made yourself, or is it just the debian grabbed from somewhere?
[Nexus One Android Development] jairuncaloth:
I just sent an SMS using ofono :)
[Nexus One Android Development] Gimpeh:
Looks like your making good progress!
[Nexus One Android Development] rheza02:
anyone have success install this in your phone ?
[Nexus One Android Development] digitalirony:
I did all of this. Btw, it wouldn't hurt to put a little more info around where to get the bcm4329 driver. When I try to use the fastboot in order to boot into debian, my phone goes to the screen where the little 'un-locked lock' is at the bottom, then after about 30 seconds, it just reboots and then ends up booting into cyanogenmod. Am I missing something ?

"$ fastboot -c 'root=/dev/mmcblk0p2 rw rootfs=ext2 init=/sbin/init noinitrd' boot ./<kernelroot>/arch/arm/boot/zImage" the part here, should this be /dev/block/mmcblk0p2 ? or /dev/mmcblk0p2? If so, what about in the /etc/fstab where it lists

/dev/block/mmcblk0p2 and then it says /dev/mmcblk0p1 ....shouldn't these both be one or the other, but not different? In my past experience it was always /dev/block/mmcblkXpX . Can anyone elaborate on this? Can anyone explain or help me with why it won't boot? I have tried the above combinations a few diff ways.
[Nexus One Android Development] rheza02:
i can't find mmcblk0p# :( on my sd,

someone help me please.
[Nexus One Android Development] digitalirony:
When I was doing this, I thought that was the problem I was having at first, due to the message. But, assume that this wasn't the problem, and you will probably realize that the real problem is that /data/local/mnt doesn't exist and will need to be created. The error message from doing the mount is a bit ambiguous, but this is what I had to do in order to get this to work.

If you don't know the command would be 'mkdir /data/local/mnt'.

Then try and do the mount.
[Nexus One Android Development] rheza02:
thanks man, its installing core packages now :D

------------------------------------------------------------

another error :(
[Nexus One Android Development] Driskol:
Use another mirror :)
[Nexus One Android Development] rheza02:
i'm give up, too much to learn :(.

looking for simple solution.
[Nexus One Android Development] digitalirony:
try another mirror, its not too much more :X, you are almost there. Use Hxxp://debian.usu.edu/debian/

Also be sure to use this when setting up your /etc/apt/sources.lst file

`echo 'deb Hxxp://debian.usu.edu/debian/ squeeze main' >> /etc/apt/sources.list`

replace 'xx' with 'tt' I can't post links as I am new member.
[Nexus One Android Development] rheza02:
may i ask one more question,

where i need to copy zimage ?
[Nexus One Android Development] liam.lah:
This seems like an awesome project, do you need to have root to be able to do this?

Also is it likely this process can be simplified in the future? through some semi-automated process? this is pretty advanced stuff, i wouldnt trust myself to get past "6" before tearing my hair out.
[Nexus One Android Development] digitalirony:
You keep it on your local HDD somewhere. You will need it at the end, to flash a new boot image and the kernel over once everything else is done.

This is the part where I am stuck. I mean I know what to do, but when I flash it, and boot, it will start to boot, then reboot and end up going into my normal ROM. Does the boot image from cyanogenmod stop this from working somehow?
[Nexus One Android Development] rheza02:
:(, i just modded the zimage to overclock the cpu.

thanks btw.

–---------——----------—-------------------

this thing just doesn't work on me
[Nexus One Android Development] digitalirony:
Has anyone else gotten this to work other than the author? What did you do different from me lol?
[Nexus One Android Development] jairuncaloth:
This through me for a bit of a loop as well. When you're in android it's /dev/block/mmcblk0p2. When you're in debian it's /dev/mmcblk0p2.

The reason my fstab used /dev/block/mmcblk0p2 is when I first made the fstab, that's what I set it to and it worked. I never bothered to see if it worked without being /dev/block/. However, the kcmdline will not work for me if I use /dev/block/mmcblk0p2. 0.o

I just tested setting fstab to /dev/mmcblk0p2 and it works fine that way. I'll update the howto to use /dev/mmcblk0p2.
[Nexus One Android Development] jairuncaloth:
If anyone is having trouble booting. When you're back in android mount the debian partition and have a look around in /data/local/mnt/var/log/dmesg and /data/local/mnt/messages. I was able to troubleshoot my install with a serial cable, which really makes life much easier.
[Nexus One Android Development] digitalirony:
@jairuncaloth

My dmesg is empty, as it never makes it that far. It stops before it manages to load the kernel I think. as for /messages or /data/local/mnt/messages it doesn't exist.
[Nexus One Android Development] rheza02:
nvm, i solve it. :(
[Nexus One Android Development] jairuncaloth:
If logs are all empty then it's failing at or before mounting the root filesystem. Double check your fstab entries, and your kernel cmdline.

It's really hard to troubleshoot without knowing where it's failing. Framebuffer console doesn't work and I haven't figured out a way to get adb up early enough to get any information during boot. Without a serial cable you're flying blind until pretty late into boot.
[Nexus One Android Development] rheza02:
jairuncaloth, can you just backup the debian partition using gparted.. ?, and we just restore it if anyone wants to install. :(

----------------

i already have this error from the first time i'm trying it. its already fourth time. :(

i'm trying to change the address still give me same error. :(
[Nexus One Android Development] digitalirony:
/dev/mmcblk0p2 / ext2 defaults 1 1

proc /proc proc defaults 0 0

/dev/mmcblk0p1 /media/sdcard vfat defaults 0 0

Is what I have.

Also using '"./fastboot-linux -c 'root=/dev/mmcblk0p2 rw rootfs=ext2 init=/sbin/init' boot ./zImage "

with your precompiled kernel.
[Nexus One Android Development] digitalirony:
change your mirror to something else. Try the first one I suggested to you.
[Nexus One Android Development] rheza02:
thanks man, but your suggested mirror also have the same error.

maybe i have bad connection.
[Nexus One Android Development] jairuncaloth:
Are you using wifi?
[Nexus One Android Development] digitalirony:
Thats what it looks like to me. From inside of the debain chroot, or adb shell try doing a 'ping google.com' and see what happens.
[Nexus One Android Development] digitalirony:
I am about to format and start over, perhaps I messed up somewhere along the way.
[Nexus One Android Development] digitalirony:
@jairuncaloth

going through it again I noticed:

adb push /etc/resolv.conf /data/local/etc/resolv.conf

this should be /data/local/mnt/etc/resolv.conf

and so forth for each of the next few lines.
[Nexus One Android Development] bobtentpeg:
Now if only some kind soulw ould image their entire card and upload it somewhere for theose of us who are lazy :p

I don't have the time to tweak all this stuff with school at the moment
[Nexus One Android Development] jairuncaloth:
Good catch! I'll fix that.

If I have time this week, I'll put together a base image with most everything set up to ease some of the pain of installation.
[Nexus One Android Development] jairuncaloth:
I think the trouble you are having booting may be with the kernel cmdline I posted in the howto. I'm troubleshooting that right now and will update shortly.

[edit]

Yeah, I left rootwait out of the kernel cmdline in the howto. It got to mounting root, and would reboot immediatly.

Try this.

fastboot -c 'root=/dev/mmcblk0p2 rw rootfs=ext2 init=/sbin/init rootwait noinitrd' boot zImage
[Nexus One Android Development] digitalirony:
Anytime. I do tech support, so its my job to find stuff like that :P I am just finishing up the second install. I will let you know how it turns out.
[Nexus One Android Development] digitalirony:
sweet, so I got it to install just fine, and even logged in. So now to get wifi to work. Will dhcp work? What are the default interace names?
[Nexus One Android Development] jairuncaloth:
the wifi's default interface name is eth0. DHCP works fine. If you use the /etc/network/interfaces file I put up and add your access points to /etc/wpa_supplicant.conf you should be good to go for wifi & DHCP.

Beware, wpa_supplicant is friken picky as hell... I left out some quotes and it took me an hour to figure out why it wouldn't work.
[Nexus One Android Development] digitalirony:
can you post the version of the wifi module that you use. Apparently the one I have isn't loading for some odd reason. Also the kernel looks for modules in /lib/modules/2.6.9-droid-debian/ it wouldn't hurt to make this folder at the part where you copy it over.
[Nexus One Android Development] jjkwasnik:
@jairuncaloth

so i did pretty good so far with getting debian running on my phone, ran into a few glitches here and there but figured them out.

but i am at a part that i cant seem to get working, i searched on the internet and wasn't having any luck. i cant get my device recognized when running "fastboot devices" so i cant load the kernel.

i went in to the folder rules.d and made the different android.rules files so that the divece could be recognized but i still cant get it working. if you had any pointers it would be helpful. this is what i have tried....

--------------------------------------------------------------------------------

Create a file called "52-android.rules" in /etc/udev/rules.d directory.

Contents for file follows:

SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

---------------------------------------------------------------------------------

thanks!!
[Nexus One Android Development] digitalirony:
Have you made sure that when you do the 'fastboot devices' command your phone is at the fasboot menu?(hold the track ball while bootings, or use 'adb reboot bootloader')? Might sound silly, but 'always check the plug'.
[Nexus One Android Development] jairuncaloth:
Sure thing

http://irregular-expression.com/tmp/bcm4329.ko
[Nexus One Android Development] charnsingh_online:
If u guys want a debian image with everything installed, its in my signature though u have to modify the resolution coz its 480x320
[Nexus One Android Development] rheza02:
how to fix it now ?
[Nexus One Android Development] digitalirony:
This means you don't have DNS at least. Test if you have connection at all, what happens if you do 'ifconfig' if it shows an ip, then try and ping your gateway, usually 192.168.1.1. Also this suggest that you aren't using your 3g access.

So I played around a bit and worked a few more 'bugs' out of the guide. The end name of the kernel is going to be 2.6.29-droid-debian(if you use the zImage supplied from the author), so at the part BEFORE you copy the bcm4329.ko over, you should create a directory for this, 'mkdir /lib/modules/2.6.29-droid-debian/' .

If you already ran 'depmod -a' before you created this, or before you copied over the driver, you should run it again to update the new module.* files so the driver will load on boot.
[Nexus One Android Development] rheza02:
i already fix it, edit the resolv file with vi command,

sorry man, i'm so new about linux.
[Nexus One Android Development] rheza02:
@digitalirony

any solution for this ?,i'm already push bcm4329.ko from my pc to phone

using this command. but still its cannot file.
[Nexus One Android Development] digitalirony:
I am not using DHCP, and setup a static ip configuration in my interfaces file. This all comes up just fine, but I still can not seem to ping my router. When using 'iwconfig' to try and setup the interface, it doesn't seem to take any of the changes I or settings I use.
[Nexus One Android Development] digitalirony:
yep redo the push.

'adb push <kernelroot>/drivers/net/wireless/bcm4329/bcm4329.ko /data/local/mnt/etc/firmware/'

first make sure that /data/local/mnt/etc/firmware/ exists(mkdir /data/local/mnt/etc/firmware/),
[Nexus One Android Development] rheza02:
got boot looping , after flashing the zimage.

i can't execute this command :(
[Nexus One Android Development] jairuncaloth:
Odd.. I haven't attempted to manipulate wifi in this way or setup a static IP. I might have time to play around with it later today.

I've updated the guide to add directories before we start pushing the wifi files to the device.

Thanks for helping me squash some bugs in the guide @digitalirony

I wrote this thing mostly in one sitting after it had been a few days from the time I set everything up the first time. I'm really glad you were able to get yours up and working. :)
[Nexus One Android Development] jairuncaloth:
I think there is a similar debian installer for the N1 floating around on the forums somewhere. I don't think it includes X or anything else and will still need some manual configuration.
[Nexus One Android Development] rheza02:
did you see my question above your post ?,

do you have any idea how to fix it ?

thanks
[Nexus One Android Development] jairuncaloth:
I'm sorry rheza, I don't quite understand your question.
[Nexus One Android Development] rheza02:
sorry jairuncaloth, i can't execute this command, can you give me some information what this command do ?, and what i need to do with zimage(from your site) ?

thanks
[Nexus One Android Development] jairuncaloth:
fastboot packages up the zImage into a bootable image, and tells the bootloader to boot it. You have to put the phone into fastboot mode before you can boot into debian.

If you have not rooted your phone, adb reboot bootloader will not work. To boot into fastboot you will need to hold the trackball while powering on the phone. If you have not unlocked the bootloader, none of this will work.

It would be helpful if you could post the errors you get when you attempt to run the commands.
[Nexus One Android Development] rheza02:
this is what i got, when i'm trying to do step no 9.
[Nexus One Android Development] olearyp:
Stabbing in the dark, but try using double quotes instead of single around the argument to -c, so it looks like `fastboot-windows -c "kernel options" boot zImage`?
[Nexus One Android Development] rheza02:
thanks man, its worked. but i have another problem.

its boot, after 20seconds, turn off it self and boot normally :(

i'm looking at fstab file now.

-----------------------------------------------------------------------

i'm stuck on nexus screen no boot(screen before nexus animation), nothing happen.

already waiting like 10 minutes. :(. and my debian partition is on #5

so its like

do you think i need to change the fstab and boot command ?

thanks
[Nexus One Android Development] digitalirony:
This is normal, this means you did it. You won't see anything on there until you install X. Try using 'adb shell' on it now, and check to see if its debian. try 'uname -a'.
[Nexus One Android Development] Breakthecycle2:
What's the best way to add an additional partition? I have currently an ext2 and a swap.
[Nexus One Android Development] rheza02:
Yeah man, i'm in the process installing xcfe now, its like 100mb to download.

and i'm installing it like i do in step no 7. boot to normal android, mount, start installing. :D

i don't know if it's possible, :D :D
[Nexus One Android Development] digitalirony:
I am running into a problem now, where my wifi seems to stop responding after only a little usage. Not sure about any more details at this point yet.

----------------------------------------------------------------------------------------------------------------------------

I have to keep restarting the networking init script every so often. Which doesn't seem to load or unload the driver, so I think that this may be related to networking, perhaps the wifi signal.
[Nexus One Android Development] digitalirony:
You can either put the sd card into your computer wtih an sd card reader, or you can load into your normal ROM, and plug it up via usb, then in the top left drag down bar choose to 'mount' the card so it can be read by your computer. And use something like 'gparted' or 'fdisk' from a linux machine. Not sure what there is out there for windows. Do people still use partion magic?
[Nexus One Android Development] rheza02:
i'm always getting this error, while installing it. i don't know if its making worse to debian installation. :(

----------------------------------------------------------------------------

finally i can boot to debian.

just that one finally can boot, when i'm trying to boot for another time,

its doesn't work, adb didn't listed any devices :(

time to sleep.

thanks for helping me.
[Nexus One Android Development] tordne:
little help

thanks for everything...

I bought this phone with having in mind to install linux on it and you showed me the perfect way.

Now for the people that had a few problems like me, as fastboot detected my phone, adb didn't.

I had to type in most of my commands on the phone " very time consuming!"

I also thought that I did something wrong when I restarted my phone and it hung at the startup logo of nexus. (currently I'm still downloading the xcfe4 window manager, so I can really see if it works)

For the people that didn't understand what they all have been doing during all these steps. don't worry you don't need to reformat and do all the steps again.

If you want to install the xcfe4 on your phone without the adb connection.

-> startup the phone normally

-> copy the attachment on your vfat of the sd-card (rename it and give it the executable flag if necessary)

-> start connectbot

-> su

-> cd to your /sd-card

->execute this little file...

=> You're back in your Debian as you left it...

Cheers