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?


All times are GMT. The time now is 16:41.

vBulletin® Version 3.8.8