Skip to content

Commit

Permalink
try to fix new lzma problem and use lz4 legacy format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopicl committed Jul 17, 2016
1 parent a570a99 commit ebfd6ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/build_boot_img_lz4
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ cd BOOT-EXTRACTED

echo
echo "Creating ramdisk cpio archive ..."
./$mkbootfs_file boot.img-ramdisk | lz4 > ramdisk.lz4
./$mkbootfs_file boot.img-ramdisk | lz4 -l > ramdisk.lz4



Expand Down
6 changes: 3 additions & 3 deletions scripts/build_boot_img_lzma
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ cd BOOT-EXTRACTED

echo
echo "Creating ramdisk cpio archive ..."
./$mkbootfs_file boot.img-ramdisk | lzma > ramdisk.xz
./$mkbootfs_file boot.img-ramdisk | lzma --format=lzma > ramdisk.lzma



Expand Down Expand Up @@ -292,9 +292,9 @@ fi

if [ "$cmd_line" == "" ]
then
./$mkbootimg_file --kernel zImage --ramdisk ramdisk.xz -o newBoot.img --base $base $ramdisk_params
./$mkbootimg_file --kernel zImage --ramdisk ramdisk.lzma -o newBoot.img --base $base $ramdisk_params
else
./$mkbootimg_file --kernel zImage --ramdisk ramdisk.xz --cmdline "$cmd_line" -o newBoot.img --base $base $ramdisk_params
./$mkbootimg_file --kernel zImage --ramdisk ramdisk.lzma --cmdline "$cmd_line" -o newBoot.img --base $base $ramdisk_params
fi


Expand Down
2 changes: 1 addition & 1 deletion tools/extract_boot_files/extract-ramdisk.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ sub extract {
system ("gzip -d -c ../$ARGV[0]-ramdisk.cpio.gz | cpio -i");
system ("rm ../$ARGV[0]-ramdisk.cpio.gz");
}
elsif ($ram1 =~ /\x5D\x00...\xFF\xFF\xFF\xFF\xFF\xFF/)
elsif (substr($ram1, 0, 2) eq "\x5D\x00")
{
print "lzma\n";
open (RAM1FILE, ">$ARGV[0]-ramdisk.cpio.lzma");
Expand Down

0 comments on commit ebfd6ea

Please sign in to comment.