Giter VIP home page Giter VIP logo

boottools's People

Contributors

enjens avatar hadess avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

boottools's Issues

Nexus 7 flo -- Images from mkbootimg hang device (borked boot.img?)

When using the 2013 model Asus Nexus 7 flo to boot an image like one generated by mkbootimg --kernel <kernel> --ramdisk <ramdisk> --cmdline <cmdline> -o boot.img, fastboot is unable to boot the image.

After generating my image with mkbootimg --kernel origboot.img-kernel --ramdisk origboot.img-ramdisk.gz --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3" -o newboot.img and booting with fastboot boot newboot.img, the following results:

downloading 'boot.img'...
OKAY [  0.296s]
booting...

It is at this point that both the device and fastboot appear to hang. Turning off the device by holding in the power button yields the final two fastboot lines:

FAILED (status read failed (No such device))
finished. total time: 68.910s

At first I had assumed this error was my doing, seeing as I was mostly trying to get my own compiled kernels and hand written inits to boot. However, today (after a little more than a week of attempting to debug) I tried to use the mkbootimg binary compiled from this repo to rebuild the boot.img from the CyanogenMod 11 nightly release for my device and tried to boot it as above. When it failed in much the same manner, I used diff to get the difference between the official boot and my boot image. The difference was a few bytes in the header as follows:

origboot.img (0x13 - 0x23)

00 00 00 20 82 00 00 00 00 00 00 10 81 00 01 20 80

newboot.img (0x13 - 0x23)

00 00 80 30 11 00 00 00 00 00 00 F0 10 00 01 00 10

Besides from these two sequences, the rest of the respective files were identical to one another. As expected, correcting this seemingly defective sequence in the new file resulted into a normal boot into CM11 on my device

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.