mkbootimg_tools icon indicating copy to clipboard operation
mkbootimg_tools copied to clipboard

repacking error

Open pintuk opened this issue 6 years ago • 9 comments

I get this error when I try to unpack the working folder -> OUT

mkbootimg_tools$ ./mkboot OUT new-boot.img mkbootimg from OUT/img_info. ./mkboot: line 145: /home/pintu/PINTU/Y2017/tools/PACK_TOOL/mkbootimg_tools/mkbootfs: No such file or directory kernel : kernel ramdisk : new_ramdisk page size : 2048 kernel size : 14512164 ramdisk size : 20 second_size : 37528 base : 0x10000000 kernel offset : 0x00008000 ramdisk offset : 0x01000000 second_offset : tags offset : 0x00000100 cmd line : ramdisk is gzip format. ./mkboot: line 101: /home/pintu/PINTU/Y2017/tools/PACK_TOOL/mkbootimg_tools/mkbootimg: No such file or directory Make boot.img Error! pls check img_info file.

This is my boot.img image for Amazon fire TV having MTK-8173 chipset

Please help and reply me on email: [email protected]

pintuk avatar Aug 07 '17 09:08 pintuk

Hi, Any status or suggestion on the above issue? Please find the boot.img attached. Amazon_Fire_TV_MT8173.zip

pintuk avatar Aug 16 '17 08:08 pintuk

Install dependencies. Assuming you're on a Debian-based distro:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

Sadly there's no mention of this anywhere except under one of the closed issues.

serankua avatar Aug 31 '17 04:08 serankua

@ramattos not working it literally said that mkbootimg file not found. but it is available in directory

TonyStark avatar Jan 02 '18 18:01 TonyStark

You're getting that error because you need 32 libs, specifically libc6-dev-i386.

dylangerdaly avatar Feb 04 '18 01:02 dylangerdaly

@dylangerdaly
Thank you, what the 32 bit lib missing for me !

maxime-poulain avatar Apr 23 '18 12:04 maxime-poulain

Solved by docker and ubuntu i386

  • from host
docker run -it --rm --name mkbootimg_tools i386/ubuntu:latest
  • from container
apt update && apt install cpio gzip git
git clone https://github.com/xiaolu/mkbootimg_tools.git
  • from host copy boot.img to container
docker cp boot.img mkbootimg_tools:/mkbootimg_tools/boot.img
  • from container
cd mkbootimg_tools
./mkboot boot.img unpackedboot
# ... modify unpackedboot ...
./mkboot unpackedboot newboot.img
  • copy newboot.img from container to host
docker cp mkbootimg_tools:/mkbootimg_tools/newboot.img newboot.img

rhrn avatar Jul 27 '19 10:07 rhrn

@ramattos Thanks! you are nice 👍

JohnRyk avatar Oct 13 '19 06:10 JohnRyk

Solved by docker and ubuntu i386

  • from host
docker run -it --rm --name mkbootimg_tools i386/ubuntu:latest
  • from container
apt update && apt install cpio gzip git
git clone https://github.com/xiaolu/mkbootimg_tools.git
  • from host copy boot.img to container
docker cp boot.img mkbootimg_tools:/mkbootimg_tools/boot.img
  • from container
cd mkbootimg_tools
./mkboot boot.img unpackedboot
# ... modify unpackedboot ...
./mkboot unpackedboot newboot.img
  • copy newboot.img from container to host
docker cp mkbootimg_tools:/mkbootimg_tools/newboot.img newboot.img

Thank God you guys found solutions to this I was having to use magiskboot on my Droid which wasn't ideal for my needs. Hopefully one of these methods works out

ghost avatar Jan 31 '23 21:01 ghost

Yep installing the missing libs fixed it!!! Hell yeah guys thank you for this!!!!

ghost avatar Jan 31 '23 21:01 ghost