5,593,876 Members 46,558 Now Online
XDA Developers Android and Mobile Development Forum

[DEV Q]VS980 ROM Port Debugging Help

Tip us?
 
PWn3R
Old
#1  
PWn3R's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 101
Join Date: Dec 2010
Location: Flagstaff

 
DONATE TO ME
Default [DEV Q]VS980 ROM Port Debugging Help

Hi all,
I am working on porting a ROM to the VS980. I am trying to get it to boot, but it sits with the kernel started on a black screen. The last_kmsg doesn't show anything that points me to a problem, but ADBD never starts so I can't logcat the boot. I am attempting to modify the stock kernel's RAMDISK and edit the init.rc to start ADBD as early as possible. Does anyone have any advice on how to extract the ramdisk? I downloaded the splitramdisk tool from here: http://forum.xda-developers.com/show....php?t=1477845 but the zip that comes out is not gzip or lzma. I can't open it with the archive tool in linux either.

Any help here would be appreciated.
Devices: Verizon LG G2 | nVidia Shield | Motorola Xoom
 
Savoca
Old
#2  
Savoca's Avatar
Recognized Contributor
Thanks Meter 2290
Posts: 1,068
Join Date: Oct 2011
Location: Cuyahoga Falls

 
DONATE TO ME
Quote:
Originally Posted by PWn3R View Post
Hi all,
I am working on porting a ROM to the VS980. I am trying to get it to boot, but it sits with the kernel started on a black screen. The last_kmsg doesn't show anything that points me to a problem, but ADBD never starts so I can't logcat the boot. I am attempting to modify the stock kernel's RAMDISK and edit the init.rc to start ADBD as early as possible. Does anyone have any advice on how to extract the ramdisk? I downloaded the splitramdisk tool from here: http://forum.xda-developers.com/show....php?t=1477845 but the zip that comes out is not gzip or lzma. I can't open it with the archive tool in linux either.

Any help here would be appreciated.
If it's a stock kernel the ramdisk should be *.lz4

Use this to decompress the ramdisk.

Code:
chmod a+x lz4demo
./lz4demo -d ramdisk.lz4 output_ramdisk.cpio
To recompile, you can use lz4demo again, or you can use gzip, just make sure your rom supports it.

Code:
chmod a+x mkbootfs
./mkbootfs <path_to_ramdisk_dir> | gzip > ramdisk.gz

Want free FTP access for your LG development projects? Just ask!
The Following User Says Thank You to Savoca For This Useful Post: [ Click to Expand ]
 
PWn3R
Old
#3  
PWn3R's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 101
Join Date: Dec 2010
Location: Flagstaff

 
DONATE TO ME
Quote:
Originally Posted by Savoca View Post
If it's a stock kernel the ramdisk should be *.lz4

Use this to decompress the ramdisk.

Code:
chmod a+x lz4demo
./lz4demo -d ramdisk.lz4 output_ramdisk.cpio
To recompile, you can use lz4demo again, or you can use gzip, just make sure your rom supports it.

Code:
chmod a+x mkbootfs
./mkbootfs <path_to_ramdisk_dir> | gzip > ramdisk.gz
THANK YOU!!!!!!!!!!!!!!!!!!!!
Devices: Verizon LG G2 | nVidia Shield | Motorola Xoom
 
PWn3R
Old
#4  
PWn3R's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 101
Join Date: Dec 2010
Location: Flagstaff

 
DONATE TO ME
Savocca,
I was able to get unzipped, edit the init.rc and I zipped it back up. However, it doesn't boot. The original was 16mb and the version I created was 9mb. I used the perl script and pointed it at the kernel file and the folder where I extracted ramdisk. Did I do something wrong?
Devices: Verizon LG G2 | nVidia Shield | Motorola Xoom
 
PWn3R
Old
#5  
PWn3R's Avatar
Senior Member - OP
Thanks Meter 22
Posts: 101
Join Date: Dec 2010
Location: Flagstaff

 
DONATE TO ME
Bumping
Devices: Verizon LG G2 | nVidia Shield | Motorola Xoom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes