maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] NITDroid V2 Development Topic (https://talk.maemo.org/showthread.php?t=49811)

dj_steve 2010-07-01 18:15

Re: [Android] NITDroid V2 Development Topic
 
usually its best to wipe to updatye as their could be settigns or ioptions incompatible and that would cause problems

giannoug 2010-07-01 18:15

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 737565)
no but setting up a simple service (nice and easy thanks to android init.rc structure) to run a permanent loop every x secs should do it - getting someone to test a simple theroy as i type :) my n900 is still out of commision (dead batt lol)

I'm waiting for the results :)

The Milestone Droid also has the same watchdogs. I'm trying to figure out how do they treat them.

dj_steve 2010-07-01 18:16

Re: [Android] NITDroid V2 Development Topic
 
thats a good route to take that, depends if the milestone/droid actualyl let the hardware listen to said watchdogs though

Tiboric 2010-07-01 18:17

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Dousan (Post 735061)
@dj_steve and e-yes first of all a big thanks for all of your hard work on this, really great job by both of you :D

I have one question though, my fm radio app doesn't work after flashing the zImage4, the radio module, in maemo, wont load, it comes up with an error on it. Anything you've come across?

yeah I got this problem too. don't use it much though, it was also a problem with titans early kernels.

dj_steve 2010-07-01 18:24

Re: [Android] NITDroid V2 Development Topic
 
ok if anyone is fairly competant in editing files etc and up for testing some new ideas re watchdogs please join the #nitdroid room could you

giannoug 2010-07-01 18:27

Re: [Android] NITDroid V2 Development Topic
 
I couldn't find anything related to "android watchdog" or "droid watchdog", except a data counter named "3G watchdog" or something :p

Waiting for Dj_Steve's input on his script :)

dj_steve 2010-07-01 18:27

Re: [Android] NITDroid V2 Development Topic
 
twl4030 watchdog your probably needing giannoug

Dousan 2010-07-01 18:31

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by bonkel (Post 737507)

Nice one bonkel :) Where to put it though?...

dj_steve 2010-07-01 18:35

Re: [Android] NITDroid V2 Development Topic
 
drop that new bootanimation into the /system/media folder overwrite current file

Siggen 2010-07-01 18:35

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Dousan
@dj_steve and e-yes first of all a big thanks for all of your hard work on this, really great job by both of you

I have one question though, my fm radio app doesn't work after flashing the zImage4, the radio module, in maemo, wont load, it comes up with an error on it. Anything you've come across?

Quote:

Originally Posted by Tiboric (Post 737581)
yeah I got this problem too. don't use it much though, it was also a problem with titans early kernels.

Then in theory, applying Titans newest patches should fix the problem. And also give maemo the lot of the features that you get when installing Enhanced Linux Kernel For Power Users from the Application Manager.

Dousan 2010-07-01 18:39

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Siggen (Post 737624)
Then in theory, applying Titans newest patches should fix the problem. And also give maemo the lot of the features that you get when installing Enhanced Linux Kernel For Power Users from the Application Manager.

So when you flash the zImage4 does that overwrite titans kernel, cause i didn't uninstall that before jumping into nitdroid and flashing zImage4?

dj_steve 2010-07-01 18:41

Re: [Android] NITDroid V2 Development Topic
 
lol ask e-yes that hes the kernel expert :)

dj_steve 2010-07-01 18:42

Re: [Android] NITDroid V2 Development Topic
 
yea it wipes oput the kernel but not the software side

giannoug 2010-07-01 18:45

Re: [Android] NITDroid V2 Development Topic
 
No luck at all with the watchdogs. Did your scripts work, Dj_Steve?

dj_steve 2010-07-01 18:45

Re: [Android] NITDroid V2 Development Topic
 
first attempt didn but it being looked at still

Dousan 2010-07-01 18:46

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 737643)
yea it wipes oput the kernel but not the software side

Will it at some point get titans patches then, that would be great? :D

dj_steve 2010-07-01 18:47

Re: [Android] NITDroid V2 Development Topic
 
it has most of titans patchs far as i know

MohammadAG 2010-07-01 18:47

Re: [Android] NITDroid V2 Development Topic
 
You'll need to recompile the kernel modules if one of them fails to load on maemo (fm one in this case), I'll do it when I get back home, if the patches on gitorious are newest.
The kernel is stored on /dev/mtd3, when you flash a kernel dpkg might show it as installed, but the kernel image loaded is the last one flashed (uname -a to see which one).
/dev/mtd3 is 2.6-ish MBs iirc.

dj_steve 2010-07-01 19:11

Re: [Android] NITDroid V2 Development Topic
 
anyone else fancy helping me dev this watchdog situation ?

Jay-C 2010-07-01 19:17

Re: [Android] NITDroid V2 Development Topic
 
Just joined in, so _HELLO_ to everybody!

I've got a solution to the watchdog problem. With my patch it is possible to disable R&D mode, which is not possible at the moment because of a limitation in the wdt driver.

Actually, I have been integrating the Titan's kernel patches with the latest patches in android-common-2.6.29. Some highlights:

- Fully compatible dualboot: Maemo and Android
- WDT problem solved
- Touchscreen driver compatible with both Maemo and Android (module option to select)
- overclock capable
- nearly all Titan's modules included
- latest bug fixes from Nokia

... just to mention a few.

My plan is to make a initrd image, which includes the bootmenu, kernel modules, and templates to boot both Maemo and Android, without any changes to the existing Maemo system.

anybody interested in trying out my beta kernel?

cheers
jay

dj_steve 2010-07-01 19:18

Re: [Android] NITDroid V2 Development Topic
 
hell yes, any chance you could integrate the pvr driver from milestone ? (can provide info if needed

dj_steve 2010-07-01 19:22

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Jay-C (Post 737697)
Just joined in, so _HELLO_ to everybody!

I've got a solution to the watchdog problem. With my patch it is possible to disable R&D mode, which is not possible at the moment because of a limitation in the wdt driver.

Actually, I have been integrating the Titan's kernel patches with the latest patches in android-common-2.6.29. Some highlights:

- Fully compatible dualboot: Maemo and Android
- WDT problem solved
- Touchscreen driver compatible with both Maemo and Android (module option to select)
- overclock capable
- nearly all Titan's modules included
- latest bug fixes from Nokia

... just to mention a few.

My plan is to make a initrd image, which includes the bootmenu, kernel modules, and templates to boot both Maemo and Android, without any changes to the existing Maemo system.

anybody interested in trying out my beta kernel?

cheers
jay

can you join the nitdroid irc room may be easier to discuss their

Tiboric 2010-07-01 19:26

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Jay-C (Post 737697)
Just joined in, so _HELLO_ to everybody!

I've got a solution to the watchdog problem. With my patch it is possible to disable R&D mode, which is not possible at the moment because of a limitation in the wdt driver.

Actually, I have been integrating the Titan's kernel patches with the latest patches in android-common-2.6.29. Some highlights:

- Fully compatible dualboot: Maemo and Android
- WDT problem solved
- Touchscreen driver compatible with both Maemo and Android (module option to select)
- overclock capable
- nearly all Titan's modules included
- latest bug fixes from Nokia

... just to mention a few.

My plan is to make a initrd image, which includes the bootmenu, kernel modules, and templates to boot both Maemo and Android, without any changes to the existing Maemo system.

anybody interested in trying out my beta kernel?

cheers
jay

I think we'd all like to try this!!!

Jay-C 2010-07-01 19:27

Re: [Android] NITDroid V2 Development Topic
 
About the watchdog problem...

when N900 is booting up, the NOLO bootloader enables the watchdogs, apparently both OMAP and TWL4030 wdt's.
When the OS is booting up, the watchdogs are still enabled, and assumed to be reseted ASAP. We already have drivers for both watchdogs, but there is a small problem with the twl4030 driver. It does not reset the watchdog when loaded into the kernel.

The fix is simple:
Quote:

--- linux.orig/drivers/watchdog/twl4030_wdt.c 2010-07-01 18:55:26.870280000 +0100
+++ linux/drivers/watchdog/twl4030_wdt.c 2010-07-01 18:42:23.044153000 +0100
@@ -247,6 +247,9 @@
twl4030_wdt_debugfs, &wdt->poweroff_on_suspend);
#endif
twl4030_wdt_dev = pdev;
+
+ twl4030_wdt_disable(wdt);
+
return 0;
}
And, in Android, just load this module in load_modules.sh.

Cheers
Jay

dj_steve 2010-07-01 19:30

Re: [Android] NITDroid V2 Development Topic
 
hmm cool, jay-c can you hop into one of the irc rooms would love to try out new kern

Siggen 2010-07-01 20:04

Re: [Android] NITDroid V2 Development Topic
 
@Jay-C
Okay so if im understanding this right, with your initrd we wont need a separate bootmenu like fanoush's bootmenu?

e-yes 2010-07-02 01:09

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Jay-C (Post 737714)
About the watchdog problem...

when N900 is booting up, the NOLO bootloader enables the watchdogs, apparently both OMAP and TWL4030 wdt's.
When the OS is booting up, the watchdogs are still enabled, and assumed to be reseted ASAP. We already have drivers for both watchdogs, but there is a small problem with the twl4030 driver. It does not reset the watchdog when loaded into the kernel.

The fix is simple:


And, in Android, just load this module in load_modules.sh.

Cheers
Jay

dsme && bme already runs on Nitdroid.
also I wrote simple watchdog pinger ('popingui') and it started as service in android (from init.nokia.rc). some watchdog doesn't reset its timeout anyway (I don't remember exactly which one, seems 'external') and system reset occurs. and in my opinion, ought not to disable watchdogs. we ought to fix kernel or userspace problem instead.

in other words: there is no difference in R&D enabled and disabled R&D (with broken watchdogs).

New touchscreen module, "bottom inaccuracies" problem solved (at least for me).

v1 (3450 2900):
http://slil.ru/29420775
MD5: 9dadaf9c9c071dbddc0d9925801b3b2f

v2 (3450 3100):
http://slil.ru/29420842
MD574c79c2e7f50c46ec1a8828668f6a64c
place it in /system/lib/modules

Please report which one works better for you. Thanks.

Man_Utd_4Ever 2010-07-02 04:20

Re: [Android] NITDroid V2 Development Topic
 
hi everybody
please help me
i always see this error
Quote:

getbootstate: Invalid selection
Choose bootup option:
2) MMC
9) Start a shell
what i can to do?
i did all srtucture

maemosboy 2010-07-02 05:02

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Man_Utd_4Ever (Post 738130)
hi everybody
please help me
i always see this error


what i can to do?
i did all srtucture

Same here.:confused:

M00NB34M 2010-07-02 06:16

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by maemosboy (Post 738148)
Same here.:confused:

You need to configure Bootmenu to search for the right partition...im at an airport atm and dont have time to paste the code but in the bootmenu settings file you need to direct the bootmenu to the correct partition (one with android on it...EXT4 on memory card)

Hope this helps

Btw if you jump a few dozen paes back you'll find the code...i THINK Toja pasted it somewhere and a various few others!!

hidetoshi777 2010-07-02 07:26

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by Man_Utd_4Ever (Post 738130)
hi everybody
please help me
i always see this error


what i can to do?
i did all srtucture

I'm Italian and this is my first post here. Sorry for my bad english :o

I've the same error :(:(:(

Same here.
Quote:


You need to configure Bootmenu to search for the right partition...im at an airport atm and dont have time to paste the code but in the bootmenu settings file you need to direct the bootmenu to the correct
partition (one with android on it...EXT4 on memory card)
I added this code in leafpad android.etc.item

Code:

ITEM_NAME="Android (external SD, partition 2)"
ITEM_ID="android3"
ITEM_DEVICE="${EXT_CARD}p2"
ITEM_MODULES="mbcache jbd ext3 fat vfat"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="noatime,rw"

I must write "ext4" in "ITEM_FSTYPE"?

thundead 2010-07-02 08:38

Re: [Android] NITDroid V2 Development Topic
 
Hey Dj-Steve & E-Yes, just found this link regarding n900 hardware and drivers. http://www.natisbad.org/N900/n900-co...are-specs.html Donno if it's old news or not but thought it might help.

dj_steve 2010-07-02 08:41

Re: [Android] NITDroid V2 Development Topic
 
quite old lol but still a very worthwhile page :)

thundead 2010-07-02 08:54

Re: [Android] NITDroid V2 Development Topic
 
Oohh, alright then :) any news btw ?

Quote:

Originally Posted by dj_steve (Post 738286)
quite old lol but still a very worthwhile page :)


dj_steve 2010-07-02 08:55

Re: [Android] NITDroid V2 Development Topic
 
nothing of interest at min :(

thundead 2010-07-02 08:57

Re: [Android] NITDroid V2 Development Topic
 
Darn :( I was thinking of PMing the xda devs of Xandroid ports for some support... what do u think ?

dj_steve 2010-07-02 09:09

Re: [Android] NITDroid V2 Development Topic
 
feel free any helps welcome, esp at trying to get gsm/3g goin

giannoug 2010-07-02 09:21

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by dj_steve (Post 738310)
feel free any helps welcome, esp at trying to get gsm/3g goin

No one has got Cellular to work on other OSes. Look at this page, I found it interesting while searching for the watchdogs :)

https://elektranox.org/website/debian_on_n900.html

kevinm2k 2010-07-02 09:22

Re: [Android] NITDroid V2 Development Topic
 
when you dual boot android, do you need to boot it on an SD card? Is it updatable, like when you release updates?

dj_steve 2010-07-02 10:22

Re: [Android] NITDroid V2 Development Topic
 
Quote:

Originally Posted by giannoug (Post 738315)
No one has got Cellular to work on other OSes. Look at this page, I found it interesting while searching for the watchdogs :)

https://elektranox.org/website/debian_on_n900.html

yes but pnatd emulates what we need if it could be made to run in chroot. or ofono if i could compile it for android

Quote:

Originally Posted by kevinm2k
when you dual boot android, do you need to boot it on an SD card? Is it updatable, like when you release updates?

yes it boots from sd, i refuse to provide info on how to do it from internal mem . and yes updateable by means of wiping out the old install currently


All times are GMT. The time now is 07:30.

vBulletin® Version 3.8.8