maemo.org - Talk

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

ahmadka 2010-07-15 11:22

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Nope, I didn't have any such brackets .. After completing step 3, the output shows the old and new partition tables, i checked them and they look fine .. Now the first partition is just 1 MB long, which is of FAT32 FS, and then the second partition takes the rest of the space ..

EDIT: Here is the complete output from my N900 from the beginning (the first unmount command probably didn't work because I had already unmounted the microSD card in the previous xterm session):


Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # umount /dev/mmcblk1p1
umount: cannot umount /dev/mmcblk1p1: Invalid argument
/home/user # sfdisk -uM /dev/mmcblk1 << EOF
> ,1,C
> ,,L
> ,,
> ,,
> EOF
Checking that no-one is using this disk right now ...
OK

Disk /dev/mmcblk1: 60352 cylinders, 4 heads, 16 sectors/track
Old situation:
Warning: The partition table looks like it was made
  for C/H/S=*/64/63 (instead of 60352/4/16).
For this listing I'll assume that geometry.
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start  End    MiB    #blocks  Id  System
/dev/mmcblk1p1        0+  1884-  1885-  1929244+  6  FAT16
/dev/mmcblk1p2        0      -      0          0    0  Empty
/dev/mmcblk1p3        0      -      0          0    0  Empty
/dev/mmcblk1p4        0      -      0          0    0  Empty
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start  End    MiB    #blocks  Id  System
/dev/mmcblk1p1        0+    0      1-      1023+  c  W95 FAT32 (LBA)
/dev/mmcblk1p2        1  1885  1885    1930240  83  Linux
/dev/mmcblk1p3        0      -      0          0    0  Empty
/dev/mmcblk1p4        0      -      0          0    0  Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user # umount /dev/mmcblk1p1
/home/user # mkdosfs /dev/mmcblk1p1
mkdosfs 3.0.1 (23 Nov 2008)
37
#####################################/home/user # mke2fs -j -m0 /dev/mmcblk1p2
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Could not stat /dev/mmcblk1p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
/home/user # mke2fs -j -m0 /dev/mmcblk1p2
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Could not stat /dev/mmcblk1p2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
/home/user #


ahmadka 2010-07-15 21:42

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Any idea with the above mystery people ?

Blobster2k 2010-07-15 21:53

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Firstly a big thanks to everyone who has contributed to this so far!

I've followed the excellent instructions on the wiki and had NITDroid running in no time at all. Not sure however what I've done wrong but although I can boot into Android with no issues and save various settings settings (ie wifi password, market details etc.) I can't launch any applications (theY crash straight after launching) or download anything from the market - it just gets stuck on prepping to download.

Could this be a partitioning issue? I'm using a 2gb card at the mo with 1mb set to fat the rest to ext3...

dj_steve 2010-07-15 22:02

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
if you read the above you see the error :

Code:

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

try rebooting and then doing
Code:

ls /dev/mmcblk1*
it should show both p1 and p2

dj_steve 2010-07-15 22:05

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by Blobster2k (Post 753318)
Firstly a big thanks to everyone who has contributed to this so far!

I've followed the excellent instructions on the wiki and had NITDroid running in no time at all. Not sure however what I've done wrong but although I can boot into Android with no issues and save various settings settings (ie wifi password, market details etc.) I can't launch any applications (theY crash straight after launching) or download anything from the market - it just gets stuck on prepping to download.

Could this be a partitioning issue? I'm using a 2gb card at the mo with 1mb set to fat the rest to ext3...

just experiment with partition sizes. maybe try 512mb fat32 and rest ext3 then your absolutly certainly off 2gb limit

ahmadka 2010-07-16 08:59

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 753329)
if you read the above you see the error :

Code:

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

try rebooting and then doing
Code:

ls /dev/mmcblk1*
it should show both p1 and p2

Okay, so after rebooting, do I repeat the entire partition procedure from step 1, or do I just continue from where I experienced the problem (from second command in step 5 and onwards) .. ?

dj_steve 2010-07-16 09:08

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
provided the ls command shows both mmcblk1p1 and mmcblk1p2 just continue with formatting then install

dj_steve 2010-07-16 09:20

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
anyone who hasnt seen this yet : http://www.youtube.com/watch?v=1POI8yiuWCo - preview of the next release

cardiff-blues 2010-07-16 09:57

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
OK with DJ steve's massive help I have got this running. Doesn't want to allow me to add a wireless network though?

xgrind 2010-07-16 10:07

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
hi all

I encountered an issue when I was booting Nitdroid:

Buffer I/O error at mmcblk0p2
Lost page write I/O error at mmcblk0p2

Nitdroid did not manage to boot and reset itself to multi boot menu. Anyone know what's the issue?

cardiff-blues 2010-07-16 10:08

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by xgrind (Post 753722)
hi all

I encountered an issue when I was booting Nitdroid:

Buffer I/O error at mmcblk0p2
Lost page write I/O error at mmcblk0p2

Nitdroid did not manage to boot and reset itself to multi boot menu. Anyone know what's the issue?

Is it a problem with your SD Card?

kingoddball 2010-07-16 11:16

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
I had problems with an 16GB SanDisk (Original). I just could not get Android to boot AT ALL.
But my 8GB SanDisk is triple booting.
See if you can test on an old (or any other) SD card. You can use 512MB... I think 256MB is a tad too small.

cardiff-blues 2010-07-16 11:19

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
I used an old 1GB sd card as my 4GB brand new SanDisk wouldn't play ball. Anyone know how I get wireless up and running?

moepda 2010-07-16 12:14

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
apologies if this already available but any tutorial on installing flash 10.1 ?

and any list(s) of apps/games that work well on latest build ?

many thanks

dj_steve 2010-07-16 12:16

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
if you get any file manager from market then look in extras folder for flash installer

cardiff-blues 2010-07-16 12:18

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
To get the phone and 3g do I have to enter an APN or something?

dj_steve 2010-07-16 12:21

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
no phone support yet lol

cardiff-blues 2010-07-16 12:24

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
That would be why then :)
Cheers Steve

datjomp 2010-07-16 12:32

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 753829)
if you get any file manager from market then look in extras folder for flash installer

Hey
I tried that with astro manager but it said "no sd card avaliable"
The same answer when i tried running spotify(it got installed though)
Have i missed something during the setup?

Nitdroid is working great except that and the phone running a bit hot :D
Looking forward to the next build

xgrind 2010-07-16 16:19

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Hi,

Unlikely.

I have formatted the SD card twice and the FAT partition is detectable in Maemo.

mmcblk0 seems to be eMMC instead of SD card. Can dj_steve confirm?

Quote:

Originally Posted by cardiff-blues (Post 753723)
Is it a problem with your SD Card?


dj_steve 2010-07-16 16:34

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
mmcblk0 is indeed the emmc in maemo, in android its the microsd

Dousan 2010-07-16 16:36

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by xgrind (Post 754016)
Hi,

Unlikely.

I have formatted the SD card twice and the FAT partition is detectable in Maemo.

mmcblk0 seems to be eMMC instead of SD card. Can dj_steve confirm?

As far as i know the mmcblk0p1/p2 is the sdcard when it's mounted in multiboot (when booting NITdroid) and the mmcblk1p1/p2 is the eMMC (when booting NITdroid). Android sees the sdcard as internal storage and the eMMC as external.

In maemo it's correct mmcblk0 is the eMMC and mmcblk1 is the sdcard.

e: Haha beat me to it steve ;)

xgrind 2010-07-16 17:49

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
So I guess,

I have to reformat the SD card again?

Quote:

Originally Posted by dj_steve (Post 754026)
mmcblk0 is indeed the emmc in maemo, in android its the microsd


dj_steve 2010-07-16 18:01

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
check the microsd is formatted /partitioned first

*Sonic* 2010-07-16 21:13

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Any ideas anyone

Ive completly reformatted the sd card and gone through all the steps again and I still get lots of errors with processess shutting down constantly making android completly unusable

I never had any of these errors with the previous build

and nothing is different at all

The errors I get are as follows, follwed by a force close option

com.android.deskclock
com.android.sipdroid
com.android.amazon.mp3
com.android.mms
com.google.android.gm
com.android.providers.calendar
com.android.bluetooth
android.process.media
com.android.email
com.android.voicedialer
com.google.android.apps.maps
com.google.android.apps.googlevoice
com.android.inputmethod.latin
com.android.quicksearchbox
com.google.process.gapps
com.android.settings
com.google.android.talk
com.android.launcher

dj_steve 2010-07-16 21:14

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
if you can get into adb sonic check dmesg as im beginnign to think your microsd may be dodgy

realceday 2010-07-16 21:22

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
how to remove multiboot application?

*Sonic* 2010-07-16 21:34

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 754325)
if you can get into adb sonic check dmesg as im beginnign to think your microsd may be dodgy

Cheers Steve

You know what I posted that whilst I rebooted and everything at the moment appears to be working quite well

setup the wireless, gone onto google market and been browsing a few apps and downloading them (which is why ive not been back here to post been a bit busy LOL)

I think I have a couple of other sd cards knocking about (as long as the kids dont mind not using their DS's :D)

ahmadka 2010-07-16 22:36

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 753662)
provided the ls command shows both mmcblk1p1 and mmcblk1p2 just continue with formatting then install

Alright, thanks! Well I rebooted and did what you said (both p1 and p2 showed, so I went ahead and ran the two commands in step 5 for formatting). Here's the output so far:


Code:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # ls /dev/mmcblk1*
/dev/mmcblk1    /dev/mmcblk1p1  /dev/mmcblk1p2
/home/user # mkdosfs /dev/mmcblk1p1
mkdosfs 3.0.1 (23 Nov 2008)
6
######/home/user # mke2fs -j -m0 /dev/mmcblk1p2
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
120720 inodes, 482560 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=494927872
15 block groups
32768 blocks per group, 32768 fragments per group
8048 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
/home/user #

My question is that I didn't necessarily un-mount the microSD card bore running the said steps (you can see there's no un-mounting happening in the above log) ... is this ok ?

ahmadka 2010-07-17 00:42

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
OK in addition to the above, I have another question ..

I followed this guide right till the end .. And right at the end, I have an error with the last unmounting command; the unmounting doesn't happen:

Code:

/ # umount /and
umount: cannot umount /and: Device or resource busy
/ #

Also, what do I do now .. ? Like, is NITDroid installed at this point !? :confused: .. Don't we have to configure the bootloader or something ?

dj_steve 2010-07-17 09:15

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
try umount again

juaki 2010-07-17 09:47

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
http://www.fileden.com/files/2008/1/.../Imagen002.jpg


someone can help me remove that image to start the phone? Android kernel installed but I repented and returned to titan kernel but still goes out lyrics to boot. I reflashing firmware and EMM, but unchanged. Additionally, the phone is turned on by placing the battery and when I pulse the power button. What should I do? Thank you, forgive my English

dj_steve 2010-07-17 10:01

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
disable r&d mode

Code:

flasher-3.5 --disable-rd-mode -R

juaki 2010-07-17 10:07

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 754754)
disable r&d mode

Code:

flasher-3.5 --disable-rd-mode -R

thank you, thank you very much friend, I solved

ahmadka 2010-07-17 10:58

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 754717)
try umount again

Still getting the same message .. note that I didn't restart my phone or anything because I dont know if I have to ... Should I restart my phone ? and is android now installed with multibooting ?

dj_steve 2010-07-17 11:01

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
try and see ?

ahmadka 2010-07-17 11:07

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 754813)
try and see ?

Alright well I couldn't wait .. tried restarting my phone .. it came back into Maemo .. I didn't see anything different .. Is android even installed ? I followed all the step mentioned here: http://wiki.nitdroid.com/index.php?title=N900-install

I tried running the umount /and command now, and here's what I got:

Code:

/home/user #umount /and
umount: cannot umount /and: Invalid argument


dj_steve 2010-07-17 11:11

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
try opening kb during boot lol

ahmadka 2010-07-17 11:26

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by dj_steve (Post 754821)
try opening kb during boot lol

not sure what that means .. totally clueless what to do now .. :(

*Sonic* 2010-07-17 11:40

Re: [Android] NITDroid V2 Help/Tutorial Topic
 
Quote:

Originally Posted by ahmadka (Post 754830)
not sure what that means .. totally clueless what to do now .. :(

Slide the keyboard out then power on the phone, you should get a lot of scrolling text then the boot menu

once the boot menu is on, press number 4 (R) on the keyboard to boot into Android


All times are GMT. The time now is 02:25.

vBulletin® Version 3.8.8