Jump to content


Photo

Q&A regarding gellmar's notes on E400 development

- - - - -

  • Please log in to reply
85 replies to this topic

#41
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
crazybyte, got my LG back with a new board :) So I am able to check your commands

the first command:

~ # echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nq\n" | fdisk /dev/b
ock/mmcblk0
echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nq\n" | fdisk /dev/bl
ock/mmcblk0
The number of cylinders for this disk is set to 238592.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes
1 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
			 Device Boot	 Start		 End	 Blocks Id System
/dev/block/mmcblk0p1 *		 1		 3		 20 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			 3		 128	 1003+ 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			 129		 256	 1024 46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4			 257	 238592	 1906688 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		 8193	 8704	 4096 47 Unknown
/dev/block/mmcblk0p6		 8705	 9216	 4096 2c Unknown
/dev/block/mmcblk0p7		 9217	 9728	 4096 58 Unknown
/dev/block/mmcblk0p8		 9729	 12800	 24576 77 Unknown
/dev/block/mmcblk0p9		 12801	 13824	 8192 48 Unknown
/dev/block/mmcblk0p10		 13825	 14336	 4096 4a Unknown
/dev/block/mmcblk0p11		 14337	 14848	 4096 4b Unknown
/dev/block/mmcblk0p12		 14849	 18432	 28672 49 Unknown
/dev/block/mmcblk0p13		 18433	 22016	 28672 6c Unknown
/dev/block/mmcblk0p14		 22017	 70656	 389120 83 Linux
/dev/block/mmcblk0p15		 70657	 71680	 8192 83 Linux
/dev/block/mmcblk0p16		 71681	 80896	 73728 83 Linux
/dev/block/mmcblk0p17		 80897	 81920	 8192 60 Unknown
/dev/block/mmcblk0p18		 81921	 82944	 8192 83 Linux
/dev/block/mmcblk0p19		 82945	 84480	 12288 6b Unknown
/dev/block/mmcblk0p20		 84481	 215552	 1048576 83 Linux
/dev/block/mmcblk0p21		 215553	 236032	 163840 83 Linux
/dev/block/mmcblk0p22		 236033	 238080	 16384 83 Linux
/dev/block/mmcblk0p23		 238081	 238592	 4096 ff Unknown
Command (m for help): Partition number (1-23):
Command (m for help): Partition number (1-22):
Command (m for help): First cylinder (258-238592, default 258): Last cylinder o
+size or +sizeM or +sizeK (84482-236032, default 236032):
Command (m for help): x: unknown command
Command Action
a	 toggle a bootable flag
b	 edit bsd disklabel
c	 toggle the dos compatibility flag
d	 delete a partition
l	 list known partition types
n	 add a new partition
o	 create a new empty DOS partition table
p	 print the partition table
q	 quit without saving changes
s	 create a new empty Sun disklabel
t	 change a partition's system id
u	 change display/entry units
v	 verify the partition table
w	 write table to disk and exit
Command (m for help): f: unknown command
Command Action
a	 toggle a bootable flag
b	 edit bsd disklabel
c	 toggle the dos compatibility flag
d	 delete a partition
l	 list known partition types
n	 add a new partition
o	 create a new empty DOS partition table
p	 print the partition table
q	 quit without saving changes
s	 create a new empty Sun disklabel
t	 change a partition's system id
u	 change display/entry units
v	 verify the partition table
w	 write table to disk and exit
Command (m for help): r: unknown command
Command Action
a	 toggle a bootable flag
b	 edit bsd disklabel
c	 toggle the dos compatibility flag
d	 delete a partition
l	 list known partition types
n	 add a new partition
o	 create a new empty DOS partition table
p	 print the partition table
q	 quit without saving changes
s	 create a new empty Sun disklabel
t	 change a partition's system id
u	 change display/entry units
v	 verify the partition table
w	 write table to disk and exit
Command (m for help):
Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes
1 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
			 Device Boot	 Start		 End	 Blocks Id System
/dev/block/mmcblk0p1 *		 1		 3		 20 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			 3		 128	 1003+ 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			 129		 256	 1024 46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4			 257	 238592	 1906688 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		 8193	 8704	 4096 47 Unknown
/dev/block/mmcblk0p6		 8705	 9216	 4096 2c Unknown
/dev/block/mmcblk0p7		 9217	 9728	 4096 58 Unknown
/dev/block/mmcblk0p8		 9729	 12800	 24576 77 Unknown
/dev/block/mmcblk0p9		 12801	 13824	 8192 48 Unknown
/dev/block/mmcblk0p10		 13825	 14336	 4096 4a Unknown
/dev/block/mmcblk0p11		 14337	 14848	 4096 4b Unknown
/dev/block/mmcblk0p12		 14849	 18432	 28672 49 Unknown
/dev/block/mmcblk0p13		 18433	 22016	 28672 6c Unknown
/dev/block/mmcblk0p14		 22017	 70656	 389120 83 Linux
/dev/block/mmcblk0p15		 70657	 71680	 8192 83 Linux
/dev/block/mmcblk0p16		 71681	 80896	 73728 83 Linux
/dev/block/mmcblk0p17		 80897	 81920	 8192 60 Unknown
/dev/block/mmcblk0p18		 81921	 82944	 8192 83 Linux
/dev/block/mmcblk0p19		 82945	 84480	 12288 6b Unknown
/dev/block/mmcblk0p20		 236033	 238080	 16384 83 Linux
/dev/block/mmcblk0p21		 238081	 238592	 4096 ff Unknown
/dev/block/mmcblk0p22		 84482	 236032	 1212408 83 Linux
Partition table entries are not in disk order
Command (m for help):

the second

~ # echo -e "p\nd\n20\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n8
t\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0
echo -e "p\nd\n20\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\n
t\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0
The number of cylinders for this disk is set to 238592.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes
1 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
			  Device Boot	  Start		 End	  Blocks  Id System
/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown
/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown
/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown
/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown
/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown
/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown
/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown
/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown
/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown
/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux
/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux
/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux
/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown
/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux
/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown
/dev/block/mmcblk0p20		  84481	  215552	 1048576  83 Linux
/dev/block/mmcblk0p21		 215553	  236032	  163840  83 Linux
/dev/block/mmcblk0p22		 236033	  238080	   16384  83 Linux
/dev/block/mmcblk0p23		 238081	  238592	    4096  ff Unknown
Command (m for help): Partition number (1-23):
Command (m for help): First cylinder (259-238592, default 259): Last cylinder
+size or +sizeM or +sizeK (84482-215552, default 215552):
Command (m for help): First cylinder (259-238592, default 259): No free secto
available
Command (m for help): 2: unknown command
Command Action
a	   toggle a bootable flag
b	   edit bsd disklabel
c	   toggle the dos compatibility flag
d	   delete a partition
l	   list known partition types
n	   add a new partition
o	   create a new empty DOS partition table
p	   print the partition table
q	   quit without saving changes
s	   create a new empty Sun disklabel
t	   change a partition's system id
u	   change display/entry units
v	   verify the partition table
w	   write table to disk and exit
Command (m for help): x: unknown command
Command Action
a	   toggle a bootable flag
b	   edit bsd disklabel
c	   toggle the dos compatibility flag
d	   delete a partition
l	   list known partition types
n	   add a new partition
o	   create a new empty DOS partition table
p	   print the partition table
q	   quit without saving changes
s	   create a new empty Sun disklabel
t	   change a partition's system id
u	   change display/entry units
v	   verify the partition table
w	   write table to disk and exit
Command (m for help): f: unknown command
Command Action
a	   toggle a bootable flag
b	   edit bsd disklabel
c	   toggle the dos compatibility flag
d	   delete a partition
l	   list known partition types
n	   add a new partition
o	   create a new empty DOS partition table
p	   print the partition table
q	   quit without saving changes
s	   create a new empty Sun disklabel
t	   change a partition's system id
u	   change display/entry units
v	   verify the partition table
w	   write table to disk and exit
Command (m for help): r: unknown command
Command Action
a	   toggle a bootable flag
b	   edit bsd disklabel
c	   toggle the dos compatibility flag
d	   delete a partition
l	   list known partition types
n	   add a new partition
o	   create a new empty DOS partition table
p	   print the partition table
q	   quit without saving changes
s	   create a new empty Sun disklabel
t	   change a partition's system id
u	   change display/entry units
v	   verify the partition table
w	   write table to disk and exit
Command (m for help): Partition number (1-23): Hex code (type L to list codes
Command (m for help): Partition number (1-23): Hex code (type L to list codes
Command (m for help):
Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes
1 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
			  Device Boot	  Start		 End	  Blocks  Id System
/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown
/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown
/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown
/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown
/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown
/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown
/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown
/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown
/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown
/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux
/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux
/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux
/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown
/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux
/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown
/dev/block/mmcblk0p20		 215553	  236032	  163840  83 Linux
/dev/block/mmcblk0p21		 236033	  238080	   16384  83 Linux
/dev/block/mmcblk0p22		 238081	  238592	    4096  ff Unknown
/dev/block/mmcblk0p23		  84482	  215552	 1048568  83 Linux
Partition table entries are not in disk order
Command (m for help):

Edited by gellmar, 19 March 2013 - 02:01 PM.

  • 0

#42
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
I used crazybyte's first sequence, then

mke2fs -Ldata /dev/block/mmcblk0p22 1212392

then installed a fresh cyanogenmod 9 from /sdcard/ and fix zip and it worked!

The second sequence fails:

~ # echo -e "p\nd\n20\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\n
t\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0
echo -e "p\nd\n20\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\n
t\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0
The number of cylinders for this disk is set to 238592.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes
1 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
			  Device Boot	  Start		 End	  Blocks  Id System
/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown
/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown
/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown
/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown
/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown
/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown
/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown
/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown
/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown
/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux
/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux
/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux
/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown
/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux
/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown
/dev/block/mmcblk0p20		 236033	  238080	   16384  83 Linux
/dev/block/mmcblk0p21		 238081	  238592	    4096  ff Unknown
/dev/block/mmcblk0p22		  84482	  236032	 1212408  83 Linux
Partition table entries are not in disk order
Command (m for help): Partition number (1-22):
Command (m for help): First cylinder (258-238592, default 258): Sector 1351696 i
s already allocated
First cylinder (236034-238592, default 236034): Value is out of range
First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d
efault 236034): Value is out of range
First cylinder (236034-238592, default 236034): Value is out of range
First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d
efault 236034): First cylinder (236034-238592, default 236034): First cylinder (
236034-238592, default 236034): First cylinder (236034-238592, default 236034):
Value is out of range
First cylinder (236034-238592, default 236034): Value is out of range
First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d
efault 236034): Value is out of range
First cylinder (236034-238592, default 236034): Value is out of range
First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d
efault 236034): First cylinder (236034-238592, default 236034): Using default va
lue 236034
Last cylinder or +size or +sizeM or +sizeK (236034-238080, default 238080): ~ #

Edited by gellmar, 19 March 2013 - 02:39 PM.

  • 0

#43
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus

I used crazybyte's first sequence, then

mke2fs -Ldata /dev/block/mmcblk0p22 1212392

then installed a fresh cyanogenmod 9 from /sdcard/ and fix zip and it worked!


I will check for typo, it should work, but seems that your fdisk doesn't have expert mode.LG original rom have it! (http://linuxman.wiki...k#x-Expert mode)

Please test the second one after joining the partitions (if you writed the first secuence to the disk use directly, else use this command), to check if we restored successfully the original partition table.

echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0

Edited by crazybyte, 19 March 2013 - 02:43 PM.

  • 0
There is no place like 127.0.0.1

#44
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400

~ # echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\nn\n84482\n215

552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /dev/bloc

k/mmcblk0

echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\nn\n84482\n215

552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /dev/bloc

k/mmcblk0

The number of cylinders for this disk is set to 238592.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes

1 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown

/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown

/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown

/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown

/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown

/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown

/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown

/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown

/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown

/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux

/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux

/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux

/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown

/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux

/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown

/dev/block/mmcblk0p20		 236033	  238080	   16384  83 Linux

/dev/block/mmcblk0p21		 238081	  238592	    4096  ff Unknown

/dev/block/mmcblk0p22		  84482	  236032	 1212408  83 Linux

Partition table entries are not in disk order

Command (m for help): Partition number (1-22):

Command (m for help): Partition number (1-21):

Command (m for help): First cylinder (258-238592, default 258): Sector 1351696 i

s already allocated

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): First cylinder (236034-238592, default 236034): First cylinder (

236034-238592, default 236034): First cylinder (236034-238592, default 236034):

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): Value is out of range

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): Value is out of range

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): First cylinder (236034-238592, default 236034): First cylinder (

236034-238592, default 236034): First cylinder (236034-238592, default 236034):

Value is out of range

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): Value is out of range

First cylinder (236034-238592, default 236034): Value is out of range

First cylinder (236034-238592, default 236034): First cylinder (236034-238592, d

efault 236034): First cylinder (236034-238592, default 236034): Using default va

lue 236034

Last cylinder or +size or +sizeM or +sizeK (236034-238592, default 238592): ~ #


  • 0

#45
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
And please note that data now is p23 and sdcard is p22 not 20/21

  • 0

#46
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus
Ok, it needs some debugging. Let me test the second one later, i will see my girlfriend soon and i will make the "restore" command. We need the expert mode fix option if we are going to mount the partition later, because as you see the partitions without fixing are unsorted.

EXAMPLE:


/dev/block/mmcblk0p20 236033 238080 16384 83 Linux
/dev/block/mmcblk0p21 238081 238592 4096 ff Unknown
/dev/block/mmcblk0p22 84482 236032 1212408 83 Linux <---- THIS SHOULD BE 20!!


Try to fdisk manually type x. Should enable expert mode otherwise try to use echo "..." | busybox fdisk "...". The first one should works because i tested days ago.

Edited by crazybyte, 19 March 2013 - 02:59 PM.

  • 0
There is no place like 127.0.0.1

#47
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
Yes, while it is 22 :) So I fixed a patch for 22 right now

  • 0

#48
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus

Yes, while it is 22 :) So I fixed a patch for 22 right now


Don't release a rom with "wrong" partitions numbers, it could make a lot of troubles if some user by a mistake flash a "standar" rom that formats mmcblk20. Let me fix it before :)

Edited by crazybyte, 19 March 2013 - 03:07 PM.

  • 0
There is no place like 127.0.0.1

#49
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
I am not going to release this. Stability first, I don't want others to RMA their phones. Mine is on warranty yet :)

UPD: I did a stock KDZ reflash and the baseband is fine. It looks like sfdisk killed the first part of sbl3's baseband partition and thus locked the baseband chip in hardware on next reboot. So be aware of sfdisk - use fdisk, even with p22, cause it can be reverted to stock safely.

Edited by gellmar, 19 March 2013 - 06:37 PM.

  • 0

#50
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus
Well my girlfriend said me that she'll give me the phone during the weekend. Are you sure that your fdisk don't have expert mode (x)? Could you try to use fix(order of partitions) option (f) works outside expert mode?

Maybe your fdisk it's diferent than mine,( i rooted my phone using SuperOneClick 1.7 for Windows (http://www62.zippysh...49888/file.html)) because i tested the join command last weekend and worked flawlessly :S

Take notice that maybe your antivirus warns you about the file. It's because rageagainsthecage root method uses a trojan to achieve root. Don't be afraid, the program it's safe. Also from now i will call the two commands join (the first one, joins two partitions into bigger one) and split (restores the original layout) :)

EDIT: Did you found any bug related to the new partition map during your tests? If everything works, i will be a very great news for L3 owners :) I'm proud of us :P
EDIT2: DON'T add the write flag to split yet, because i writed it thinking that the partitions was ordered in join. We don't want to mess again the other partitions!

Edited by crazybyte, 19 March 2013 - 10:55 PM.

  • 0
There is no place like 127.0.0.1

#51
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
Well, basic tests - baseband, wifi, wifi tethering, bluetooth, bt tether, usb mass storage, camera, GPS - work flawlessly. Encryption works too with fix. Today I will sync the repos and build a new recovery with standard partition alignment and try the fdisk expert mode in it. CWM 5.8.4.5 lacks fdisk 'x' mode flag. If everything goes right - I mean applying and reverting, I will PM the recovery.img for fastboot and the commands related to hacks so we can continue.

  • 0

#52
Ygreck

Ygreck

    Regular

  • Members
  • PipPip
  • 133 posts
I'm so excited!!

  • 0

#53
nikufellow

nikufellow

    Regular

  • Members
  • PipPip
  • 61 posts

I'm so excited!!

Me too :)
Being a noob Though I really don't understand what you guys are working on in here - am really happy that you are trying. Good luck from all l3 owners ;)

  • 0

#54
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
For developers:

my clone repos for E-400:

https://github.com/g...oid_system_core
https://github.com/g...device_lge_e400
https://github.com/g...oid_system_vold

And Suxsem's overclocked kernel repo I incorporated the patch for kernel part of USB Mass Storage support:

https://github.com/S...lge-kernel-e400

  • 0

#55
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus

For developers:

my clone repos for E-400:

https://github.com/g...oid_system_core
https://github.com/g...device_lge_e400
https://github.com/g...oid_system_vold

And Suxsem's overclocked kernel repo I incorporated the patch for kernel part of USB Mass Storage support:

https://github.com/S...lge-kernel-e400


You wan't the LG original fdisk binary?

  • 0
There is no place like 127.0.0.1

#56
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
No, I am going to re-build CM9 with these patches and flash recovery and check if new recovery's fdisk works in expert mode. If not, recompile with flag enabled.

  • 0

#57
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
UPDATE: The CM9 recovery really lacks ENABLE_FEATURE_FDISK_ADVANCED flag, so I re-compiled a new recovery and flashed it. It requires google Nexus ADB drivers to get into debug. Now I will test the crazybyte's safe sequences and report back.

First sequence:

Spoiler


Second sequence:

Spoiler

Edited by gellmar, 22 March 2013 - 01:13 PM.

  • 0

#58
crazybyte

crazybyte

    Newbie

  • Members
  • Pip
  • 46 posts
  • Gender:Male
  • Devices:Galaxy Nexus
Hum gellmar, please run

echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\np\nn\n84482\n215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /dev/block/mmcblk0

It runs join and split and print result. (Before you was running split with the original partition map, and this why it fails)

PS: join works flaweslly :) maybe we could relase a one way rom and if the people want to revert the must flash original kdz?

Edited by crazybyte, 22 March 2013 - 01:38 PM.

  • 0
There is no place like 127.0.0.1

#59
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400

~ # echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\np\nn\n844

215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /d

lock/mmcblk0

echo -e "p\nd\n20\nd\n20\nn\n84482\n236032\nx\nf\nr\np\nd\n20\np\nn\n84482\n

215552\nn\n215553\n236032\nx\nf\nr\nt\n20\n83\nt\n21\n83\np\nq\n" | fdisk /d

lock/mmcblk0

The number of cylinders for this disk is set to 238592.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes

1 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown

/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown

/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown

/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown

/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown

/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown

/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown

/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown

/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown

/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux

/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux

/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux

/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown

/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux

/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown

/dev/block/mmcblk0p20		  84481	  215552	 1048576  83 Linux

/dev/block/mmcblk0p21		 215553	  236032	  163840  83 Linux

/dev/block/mmcblk0p22		 236033	  238080	   16384  83 Linux

/dev/block/mmcblk0p23		 238081	  238592	    4096  ff Unknown

Command (m for help): Partition number (1-23):

Command (m for help): Partition number (1-22):

Command (m for help): First cylinder (258-238592, default 258): Last cylinde

+size or +sizeM or +sizeK (84482-236032, default 236032):

Command (m for help):

Expert command (m for help): Done.

Expert command (m for help):

Command (m for help):

Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes

1 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown

/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown

/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown

/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown

/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown

/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown

/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown

/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown

/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown

/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux

/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux

/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux

/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown

/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux

/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown

/dev/block/mmcblk0p20		  84482	  236032	 1212408  83 Linux

/dev/block/mmcblk0p21		 236033	  238080	   16384  83 Linux

/dev/block/mmcblk0p22		 238081	  238592	    4096  ff Unknown

Command (m for help): Partition number (1-22):

Command (m for help):

Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes

1 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown

/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown

/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown

/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown

/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown

/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown

/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown

/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown

/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown

/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux

/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux

/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux

/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown

/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux

/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown

/dev/block/mmcblk0p20		 236033	  238080	   16384  83 Linux

/dev/block/mmcblk0p21		 238081	  238592	    4096  ff Unknown

Command (m for help): First cylinder (258-238592, default 258): Last cylinde

+size or +sizeM or +sizeK (84482-236032, default 236032):

Command (m for help): First cylinder (258-238592, default 258): Sector 34488

s already allocated

First cylinder (215554-238592, default 215554):

Command (m for help):

Expert command (m for help): Done.

Expert command (m for help):

Command (m for help): Partition number (1-23): Hex code (type L to list code

Command (m for help): Partition number (1-23): Hex code (type L to list code

Command (m for help):

Disk /dev/block/mmcblk0: 1954 MB, 1954545664 bytes

1 heads, 16 sectors/track, 238592 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

			  Device Boot	  Start		 End	  Blocks  Id System

/dev/block/mmcblk0p1   *		   1		   3		  20  4d Unknown

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2			   3		 128	    1003+ 45 Unknown

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3			 129		 256	    1024  46 Unknown

Partition 3 does not end on cylinder boundary

/dev/block/mmcblk0p4			 257	  238592	 1906688   5 Extended

Partition 4 does not end on cylinder boundary

/dev/block/mmcblk0p5		    8193	    8704	    4096  47 Unknown

/dev/block/mmcblk0p6		    8705	    9216	    4096  2c Unknown

/dev/block/mmcblk0p7		    9217	    9728	    4096  58 Unknown

/dev/block/mmcblk0p8		    9729	   12800	   24576  77 Unknown

/dev/block/mmcblk0p9		   12801	   13824	    8192  48 Unknown

/dev/block/mmcblk0p10		  13825	   14336	    4096  4a Unknown

/dev/block/mmcblk0p11		  14337	   14848	    4096  4b Unknown

/dev/block/mmcblk0p12		  14849	   18432	   28672  49 Unknown

/dev/block/mmcblk0p13		  18433	   22016	   28672  6c Unknown

/dev/block/mmcblk0p14		  22017	   70656	  389120  83 Linux

/dev/block/mmcblk0p15		  70657	   71680	    8192  83 Linux

/dev/block/mmcblk0p16		  71681	   80896	   73728  83 Linux

/dev/block/mmcblk0p17		  80897	   81920	    8192  60 Unknown

/dev/block/mmcblk0p18		  81921	   82944	    8192  83 Linux

/dev/block/mmcblk0p19		  82945	   84480	   12288  6b Unknown

/dev/block/mmcblk0p20		  84482	  215552	 1048568  83 Linux

/dev/block/mmcblk0p21		 236032	  236032		   8  83 Linux

/dev/block/mmcblk0p22		 236033	  238080	   16384  83 Linux

/dev/block/mmcblk0p23		 238081	  238592	    4096  ff Unknown

Command (m for help):

~ #


  • 0

#60
gellmar

gellmar

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:LG Optimus L3 E400
Please note the second (split-back) sequence was tested on a stock layout! I will join partitions with first sequence and split them again with the second.

Yes, the second sequence is wrong. Let me re-assemble it now. If we succeed, no kdz reflashing will be required

Edited by gellmar, 22 March 2013 - 02:29 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users