Post Reply

[DEV Q]VS980 ROM Port Debugging Help

OP PWn3R

14th February 2014, 05:47 AM   |  #1  
PWn3R's Avatar
OP Senior Member
Flag Flagstaff
Thanks Meter: 59
 
175 posts
Join Date:Joined: Dec 2010
Donate to Me
More
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.
14th February 2014, 05:00 PM   |  #2  
savoca's Avatar
Recognized Developer / Recognized Contributor
Flag Cuyahoga Falls
Thanks Meter: 4,150
 
1,453 posts
Join Date:Joined: Oct 2011
Donate to Me
More
Quote:
Originally Posted by PWn3R

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
The Following User Says Thank You to savoca For This Useful Post: [ View ]
14th February 2014, 06:18 PM   |  #3  
PWn3R's Avatar
OP Senior Member
Flag Flagstaff
Thanks Meter: 59
 
175 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by Savoca

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!!!!!!!!!!!!!!!!!!!!
15th February 2014, 03:34 AM   |  #4  
PWn3R's Avatar
OP Senior Member
Flag Flagstaff
Thanks Meter: 59
 
175 posts
Join Date:Joined: Dec 2010
Donate to Me
More
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?
16th February 2014, 06:10 PM   |  #5  
PWn3R's Avatar
OP Senior Member
Flag Flagstaff
Thanks Meter: 59
 
175 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Bumping
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in G2 Q&A, Help & Troubleshooting by ThreadRank