yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] jairuncaloth:
You can make mahimahi_defconfig to get the default android kernel config and add stuff on from there with make menuconfig. Not sure about the usb issue. Swetland said there could be issues with the .32 kernel since they just started working on it.

I used the .32 kernel over the weekend. Overall I found I got worse battery life, The auto brightness adjust doesn't work since the sensors don't work with it yet, and the button backlights were very flaky. I went back to .29 and decided to hold off on .32 till the android devs tuned it up for the N1.

Not trying to persuade you not to use it. Just wanted to let you know what my experience was.
[Nexus One Android Development] staulkor:
I can confirm the issue. I just tried compiling and I get the same issue.

CC drivers/usb/function/ether.o
drivers/usb/function/ether.c: In function 'usb_ether_setup':
drivers/usb/function/ether.c:295: error: 'struct net_device' has no member named 'open'
drivers/usb/function/ether.c:296: error: 'struct net_device' has no member named 'stop'
drivers/usb/function/ether.c:297: error: 'struct net_device' has no member named 'hard_start_xmit'
drivers/usb/function/ether.c:298: error: 'struct net_device' has no member named 'get_stats'
make[2]: *** [drivers/usb/function/ether.o] Error 1
make[1]: *** [drivers/usb/function] Error 2
make: *** [drivers] Error 2

Edit:

After looking through the .config I yanked off the phone with cyanogen's addon, I found CONFIG_USB_FUNCTION_ETHER=y. I switched it to no and it has compiled fine. No clue on if it boots yet, still trying.
[Nexus One Android Development] RonnieFoxxx:
Sorry if this is a dumb question. But will this kernel implement more or all of the n1's available ram?
[Nexus One Android Development] jairuncaloth:
A really nice way you can test if your kernel boots without having to overwrite your old kernel is this command

fastboot boot /path/to/zImage

If it doesn't boot, you can power cycle your phone and you're back to the kernel that you had before. Once you've tested the kernel and want to flash it

fastboot flash zimage /path/to/zImage
[Nexus One Android Development] humancyborg:
Aha. Doing that, compiling, then fastboot boot zImage worked!

Thanks all

EDIT: Wow, this thing is really really fast. Animations and overall performance while running the Nexus livewallpaper are equivalent to the 2.6.29 kernel on non-live wallpapers. Don't have working backlights on the 4 touch buttons, assume this is a lib/hw/sensors.so issue. Also can't compile the Wifi module without it erroring out as well. Looking forward to seeing rom's based on this!
[Nexus One Android Development] staulkor:
WOW that saves a lot of time! Thanks for the tip :D

I was using the packaging method at the bottom of this wiki page http://wiki.cyanogenmod.com/index.php/How_to_build_a_kernel_port

It that the correct method on making the correct boot.img? Whenever I tried it I couldnt get it to boot. I just did the direct zImage boot and it worked fine, nothing changed.

Edit: Got my zImage booting with the fastboot method. Haven't tried the "traditional" way. And Wow! It is so much faster with the live wallpapers. I can confirm the 4 touch button backlights dont work along with auto dim and proximity sensor. It is also still only seeing 217352 kB of ram. I saw the "High Memory" option in the .config. I will play with that and see if I can enable all 512mb on this sucker :)
[Nexus One Android Development] humancyborg:
Were you able to compile the wireless driver?
[Nexus One Android Development] staulkor:
Yes, wireless is working fine. The module is put in drivers/net/wireless/bcm4329/bcm4329.ko. Just push it to /system/lib/modules/bcm4329.ko and reboot and your wireless should work.
[Nexus One Android Development] jairuncaloth:
I don't reboot after pushing the wifi driver and haven't had any trouble out of it.
[Nexus One Android Development] swetland:
The module is loaded when wifi is turned on, so yeah, no reboot needed. I sometimes try to turn on wifi after updating the kernel, see it fail, push the driver module, try again and off it goes.
[Nexus One Android Development] staulkor:
So it does. Just tried it and what do you know :P

Any luck with you guys getting the sensors working?
[Nexus One Android Development] humancyborg:
Unfortunately no. No light sensor also means no proximity sensor which is awful when making phonecalls.
[Nexus One Android Development] jairuncaloth:
Done that a few times as well :)
[Nexus One Android Development] TheDudeOfLife:
I can't live without the proximity sensor :(

That thing has spoiled me from the cliq and now n1
[Nexus One Android Development] Mi|enko:
Woah man. Been wondering what happened to you. lol You gonna be devvin' up the N1?
[Nexus One Android Development] dahui9:
good work everyone now I need to remember my programming from college and such to help work out some bugs can't wait to get mine tomorrow!
[Nexus One Android Development] humancyborg:
Anyone know how or where the /lib/hw/ sensor files get built? Is there source available?
[Nexus One Android Development] TheDudeOfLife:
Not yet. Last I checked it was a bunch of empty projects. I'm hoping they'll have it soon.
[Nexus One Android Development] humancyborg:
I see two new commits in the experimental tree today regarding the CM3602 (light and proximity sensor for Nexus).

Going to do a git pull and see if it works.

Also noticed that the accelerometer is not working either using 2.6.32.

EDIT: SUCCESS! Light, proximity and accelerometer sensors are now working with this new build!!
[Nexus One Android Development] dwang:
Does the high memory option works? Does it give you the additional RAM that svetland talked about?

I still haven't rooted my phone, but if all the sensors are working in addition to high memory, that may push me to root.
[Nexus One Android Development] humancyborg:
It compiles fine, but I am not seeing any additional memory in /proc/meminfo.

Also worth noting that the camera does not appear to be working using the newest build.
[Nexus One Android Development] staulkor:
Highmem works just fine, the problem is the memory tables havent been redone to allow for more memory allocation.

Great news the sensors work. I will have to git pull and recompile and test it out :)
[Nexus One Android Development] swetland:
If anybody sees something that doesn't work in 2.6.32 that works in the stock 2.6.29 kernel, I'm interested in knowing (especially if you have good repro steps for the issue). Just saying something here in the thread is fine.
[Nexus One Android Development] stereoLT:
woohoo! can someone please make a custom rom with 2.6.32? :)
[Nexus One Android Development] meld0:
Hi guys

I have a question. Do you need to be root to try your selfbuilt kernel via fastboot? Does somebody have a good tutorial on how to build the kernel for android?

meld0
[Nexus One Android Development] meld0:
Okay nevermind. I guess

creating boot image...

creating boot image - 1998848 bytes

downloading 'boot.img'... OKAY

booting... FAILED (remote: not allowed)

means that i need root... or at least the unlocked bootloader with security switched off...

But i have another question. I want to write a little hack for Webkit.

Can i do that using the current Android Source Code or do i need for Google to release a special Nexus One source ? Or is it possible to do it like e.g. Modaco and how he builds his roms ?

I really would appreciate some answers on this, maybe even some Tutorial Links?

Thanks in advance

meld0
[Nexus One Android Development] TonyHoyle:
Makes sense, otherwise you could root any phone by merely booting a hacked kernel.
[Nexus One Android Development] nolsen311:
defconfig?

are all the "defconfigs" somewhere in the kernel source tree? Or would mahimahi work for even the Motorola Droid? I'd love to be able to push some of this a little further on the "red-headed stepchild" of Android.

I'm thinking of a kernel port (similar to the 32a work) that would allow CyanogenMod and such to be run on the Droid simply.
[Nexus One Android Development] meld0:
well after deciding too root the phone, the kernel is working fine...

But because of the faster speed you mentioned, is it possible that with the new kernel, the phone does not lower the cpu speed like with the stock kernel? Because setCPU shows always 998 MHZ...

Can anybody confirm this ?

meld0
[Nexus One Android Development] meld0:
here is another problem... sorry

I build the kernel with the .config file from the modaco rom

when i run fastboot boot zImage, phone boots, everything's fine

but when i try to flash the zimage with

fastboot flash zimage zImage

or repack the whole rom including the wlan driver like discribed in the cyano wiki (Post #7)

the phone is stuck at the screen with the 4 arrows pointing to the middle (Pre Boot Screen?)

Any suggestions ?

meld0
[Nexus One Android Development] staulkor:
That is not how you flash it, lol. You need to create a boot.img and flash that.

Go here: http://wiki.cyanogenmod.com/index.php/How_to_build_a_kernel_port and download the unpack-H.pl script. Run it with "perl unpack-H.pl boot.img" and it will make a gz that has the kernel and another that has the ramdisk. Delete the kernel one, then follow the direction in the next link below.

This will show you how to rebuild a boot.img. Note that base needs to be --base 0x20000000

http://xdaforums.com/showthread.php?t=551711

And as for the wifi drivers, they are in a different location. The Cyanogen wiki is not updated for the Nexus. The bcm4329.ko file is in <kernel dir>/drivers/net/wireless/bcm4329. They are compiled when you compile the kernel. Once you have flashed the boot.img and get into android, just adb push the file to /system/lib/modules and then your wireless should work, no reboot necessary.
[Nexus One Android Development] humancyborg:
Actually fastboot flash zimage <kernel zimage> works fine over here.
[Nexus One Android Development] meld0:
Well, now it worked. I used the guide in your link staulkor. Thank you very much.

But i wonder why fastboot flash zimage <new zImage> does not work...

and could you explain why --base 0x20000000 ?

Thanks again

meld0
[Nexus One Android Development] swetland:
fastboot and the mkbootimg tool use a default base (physical start of external ram) of 0x10000000, which is correct for 7201A based devices like G1/Dream or mytouch/sapphire, but incorrect of 8250 based devices like N1. The base address is used to calculate a number of addresses in the boot.img header that the bootloader uses to figure out where to load the kernel, ramdisk, etc.
[Nexus One Android Development] asbkar:
Just compiled a 2.6.32 myself. Everything seems to work fine so far (after several minutes! :) Had to disable CONFIG_USB_FUNCTION_ETHER, and say y to multimedia (default was n). Even camera/camcorder works fine!

Karl Erik
[Nexus One Android Development] DanOtero:
Just for kicks I decided to try this... compile seems to have gone fine (took the config from my running MoDaCo 1.2.2) with no edits (not even the USB mentioned above).

I place the N1 on 'fastboot usb' and this is what I get when I try to fastboot the kernel...:

> fastboot boot zImage
creating boot image...
creating boot image - 2496512 bytes
downloading 'boot.img'... OKAY
booting... FAILED (remote: reproduce boot image with on-flash ramdisk error)

Any quick pointers?
[Nexus One Android Development] asbkar:
You did the "make oldconfig"? If not, no idea... I copied from cyanogen bacon1. My config is at karlerik.mine.nu:88/android/myconfig.gz

Karl Erik
[Nexus One Android Development] meld0:
Hi,

i just noticed that with Bluetooth headset you can't control the music...

It plays fine through the headset but the forward/previous and play buttons do not work...

Works fine with original modaco so i think it must be a kernel issue...

meld0
[Nexus One Android Development] mykenyc:
is there a big difference with this kernel?
[Nexus One Android Development] staulkor:
Just got the camera working :D

And I am afraid I dont have any bluetooth headset to test that meld0
[Nexus One Android Development] humancyborg:
Camera and Bluetooth both working great!
[Nexus One Android Development] Driskol:
Nice! :)

Any ETA time to start cooking on 2.6.32? xD
[Nexus One Android Development] meld0:
if you have a headset capable of a2dp, can you select previous/next song with the headset ?
[Nexus One Android Development] swetland:
If you're seeing a regression in BT functionality on .32, could you let me know what make/model headset you're seeing it on?

Thanks!
[Nexus One Android Development] asbkar:
Problems like this could also be caused by incorrect kernel config, so bare with us amateurs! :) The camera not working initially was caused by a missing option. If we could get an "official" default 2.6.32-config for the nexus, that would help.

Anyway, thanks for all the help Brian! Awesome work, love the openness of both the nexus and the OS. Just waiting for the 2.1 source now...

Karl Erik
[Nexus One Android Development] swetland:
It's checked in. This is how we do an "official" kernel build:

% export ARCH=arm

% export CROSS_COMPILE=arm-eabi- (assuming the standard android toolchain is in your path)

% make distclean

% make mahimahi_defconfig

% make
[Nexus One Android Development] asbkar:
Thanks, will try that soon!
[Nexus One Android Development] meld0:
The headset is a Sennheiser MM400.

and with make do you mean my .config ?
[Nexus One Android Development] swetland:
Nope -- I meant "manufacturer" (Sennheiser in this case).

If you can verify with a kernel built with the standard configuration I described above, that'd be helpful. If it's still not working, it goes on the BT regression list and we'll check it out.
[Nexus One Android Development] asbkar:
Works fine here. Have not tested bluetooth yet, will test a jawbone handsfree thingy tomorrow.

|<
[Nexus One Android Development] jairuncaloth:
woot, seems button backlights are working :)
[Nexus One Android Development] meld0:
I just built the standard kernel and tried it. Same problem...

Music streaming works fine with bluetooth, but the controls do not.
[Nexus One Android Development] fykick:
This may be against some unspoken code, but could someone maybe upload a working compiled kernel of 2.6.32 wrapped in an update.zip and maybe just pm me a link to an uploaded one. I'm not so interested in a whole cooked rom as I am in just the extra ram.

Sorry, I'd do this myself, but I've tried following all the kernel porting manuals and links in this thread, and I get too many errors in the process. And sorry if this is ignorant of me to ask, I'm just impatient for the extra ram I guess :eek:

**Okay sorry, I misread an earlier post and it caused my misunderstanding**
[Nexus One Android Development] staulkor:
Nobody has got the extra ram working. It requires a rewrite of the memory tables and possibly more.
[Nexus One Android Development] zambezy:
What is the acctual availiable ram on the device. After the radio and other stuff has taken up some of it... Does anyone have the memory tables at least maped out?

There is realy good post on that issue under the Magic or G1 sections that explains much of the process in rewriting the memory tables...
[Nexus One Android Development] banzap:
Hello

I compiled the Kernel (2.6.32-nexusonec) but the wlan module for broadcom is not in the directory drivers/net/wireless. How I compiled the kernel? there is some specific flag to compile the wireless module?

Thank you
[Nexus One Android Development] at314:
cyanogen beta 5 arabic 14/02/2010

1- Download and then apply Cyanogenmod rom stable version

2- apply google add ons apply it.

3- Download the http://code.google.com/p/arabicandroid/downloads/list zip file for arabic libraries and then apply it.

4- you are done

Thanks to Cyanogen for his great effort.

Fully Arabized rom.

BIG thanks to -Ayman (Arabic Android Project Leader - arabicandroid). for the great effort. we were waiting for this since the launch of the android OS so BIG BIG thanks.

just flash the rom into your device and you will be able to read arabic everywhere.

http://code.google.com/p/arabicandroid/downloads/list

Follow Ayman on Twitter

Follow Me Twitter

2nd March

if you notice when you restart your device disconnected arabic words,

go to the project page and download the latest version of arabization.

http://code.google.com/p/arabicandroid/downloads/list

apply it and everything will go back to normal
[Nexus One Android Development] momohammed20:
can you post the arabic fonts you used.

thanks
[Nexus One Android Development] at314:
give me a second
[Nexus One Android Development] fataldeath44:
where do i need to type these commands? please help. thankyou
[Nexus One Android Development] melterx12:
download the android sdk (google it), extract it, then open run window (windows + r), and type in cmd, press enter. In the command prompt, type in "cd [directory to /android-sdk-windows/tools]"

example:

and press enter. then type the commands in.
[Nexus One Android Development] aehashim:
You are awesome, thank you so so so so much. The phone was almost useless to be until this post, did it and it worked great.
[Nexus One Android Development] asaad399:
i think arabic will be supported when google sells it in the midlle east

also multitouch outside US
[Nexus One Android Development] slimfady:
Why did you use the donut (1.6) version? There seems to be an Eclair version on the same website you posted
[Nexus One Android Development] Dr.Dev:
Glad it worked on N1. I'll further work on developing a complete Arabic support for Android Phone.

Note: I hope you explicitly mention the source where you've taken the file.

-Ayman (Arabic Android Project Leader - arabicandroid).
[Nexus One Android Development] fataldeath44:
thanks alot melterx12, will try it.
[Nexus One Android Development] at314:
yes i mentioned 2.0 in my post
[Nexus One Android Development] habibas:
thanks to the both of you
[Nexus One Android Development] slimfady:
Opps, my bad
[Nexus One Android Development] king_dani:
mmmm , I am wondering if this could be used to add Farsi capabilities to N1 as well , any ideas ?
[Nexus One Android Development] thedeathblow:
I'm totally new with the android system, i was working with WM for a long time since i-mate jam

anyway, can you tell me what to do to make nexus read and write arabic ?

step by step and also how to root the devise and thus stuff that needed

I might by the HD2 but nexus one seems much more fun and good than the HD2

and if you can speak in Arabic that will be helpful for me to understand better

Thank
[Nexus One Android Development] at314:
YES

i went to farsi websites, it shows all farsi lettes, it works perfectly you can add farsi keyboard from the market as well
[Nexus One Android Development] at314:
The post is already referring to the project site, im just helping people how to do it.
[Nexus One Android Development] ghassan99:
@at314, thank you for this post.

I have included in my existing image file (update.zip) the libwebcore.so

You can download it from here: http://dumpytips.blogspot.com

@Dr.Dev Thanks for the great work.

-Gus
[Nexus One Android Development] king_dani:
great news mate , really happy , now if you could see farsi fonts in RSS and Google Reader.

i am so getting impatient with the idea of waiting for my phone to arrive.

c'mon DHL...
[Nexus One Android Development] fataldeath44:
How should the phone be connected to the pc, usb mode or just connect it without usb mode and does it work on windows 7. please reply. thankyou
[HD2 General] _Rayearth:
hello

1. where's the option to automaticly lock phone when "end call" button is pressed? I saw it somewhere but now I cannot find it...

2. is there a way to disable 3G connections? standard battery will last longer problably if this would be done.

3. finally, how to disable automatic keyboard open when cursor is places on a text field (like when entering new message composing)? I tried adding "TurnOffAutoDeploy" 1 string in this registry location -> HKEY_CURRENT_USER\ControlPanel\Sip but that didnt worked.
[HD2 General] doodles123:
(Music stops playing shortly after the HD2 screen turns off)

Anyone found a solution to this yet? Searched all the topics and there isn't a definitive solution. Tried to appled some AudioMan_Eng.cab fix but that didn't work.

Seems to only keep playing if I use windows media player I think.
[HD2 General] awillys:
I have the same problem. I think it has something to do with the album art update function. when i play a song i can see that it tries toget the album art for it. when that fails the song stops.

A
[HD2 General] varunml:
same problem album art problem plz somebody help...
[HD2 General] Mj23foreva:
this issue is extremely annoying. Something that seems so simple yet HTC manages to mess it up. This happened to me today and I've never experience this kind of problem with any other form of media player. This is unacceptable and it really is things like this that separates apple from its competitors.
[HD2 General] doodles123:
This is starting to really piss me off, I just deleted my music folder and tried doing the syncing method through windows media player (thought maybe having more folders would help), that didn't do anything.

Reduced the amount of songs to 100 and that didn't do anything.

Tried installing different media players and they all have the same problem.. wow this is bull****
[HD2 General] Gajet:
Did you see my thread?

http://xdaforums.com/showthread.php?t=616814

Have you re-formatted the card using the phones application?

I ended up using Mediamonkey to sync as I can specifically setup conversion rules. I have the paid version, I'm not 100% sure that Auto-conversion is part of the free version.

However everything is running great now.
[Hero, G2 Touch Android Development] stuliv12:
Hi,

I have found instructions on preparing your Mem card so that you can always keep installed apps with ext2/3 etc, but what if i have installed apps before this, is there anyway of converting what i have already so that i dont lose them. I am running the latest recovery image and tried Hikiris Rom, but have gone back to modaco 2.9?

Thanks in advance.
[Hero, G2 Touch Android Development] foxmeister:
I believe the Modaco ROMs will automatically move all your existing apps over to the SD card once it is appropriately partitioned.

I could be wrong though, as I don't bother with A2SD.

Regards,

Dave
[Hero, G2 Touch Android Development] Bad4ss:
How do you move the ext 2/3 apps over to another card? I want to move over to a different higher capacity card now.
[Nexus One General] Blueman101:
I cant get any videos playing on my nexus one!! Sometimes they only play the audio and the video is a black screen! Youtube works fine but podcasts dont work! The myPod app (for podcasts) finds the podcasts fine, but when i click to watch the video of it, only the audio plays and a black screen. Same thing with a .m4v on my sdcard. Black screen with audio. Anyone else have videos working?
[Nexus One General] s15274n:
.m4v is apple protected file right?

I had this issue with downloading files from NPRs app. I was told to just change the file extension and it would work, but it did not for me. If you install doubletwist (in the market) I think this will solve your issue. I was just reading a review of the nexus from an iPhone guys perspective and he was gushing over the app and how it played ALL of his video files..

http://www.doubletwist.com/dt/Home/Index.dt

I have no experience with it (but I will tomorrow).
[Nexus One General] Blueman101:
anyone else get videos to work?

why can the nexus one read the audio of mp4 podcasts but not the video, only displaying a black screen?
[Nexus One General] Fresh50:
The podcats on Revision3 stream perfectly. m.revision3.com