Sign Up

Custom ROM building

Posted Mar 12, 2017 by Xarion

  1. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    Hi Guys

    I am trying to get my head around the ROM building procedure. I have followed the AOSP guide and am at the point that I am ready to build. The step says 'obtain proprietary binaries'. The tablet I have is not one of the big brands, how do I know what binary to use? All I know it is intel based.

    Thanks

    Xarion
     
  2. Akash Jain

    Akash Jain Well-Known Member Sentient Droid HAL

    Messages:
    3,651
    Likes Received:
    768
    Devices:
    HTC Butterfly 2, Vido M9i (Dual Boot)
    Check the source code of other similar devices, start building the device tree from scratch and then you can pull the vendor files from the device. Also, if the kernel source isn't available, you would need to use prebuilt kernel, you can get it from boot.img of your device.
     
  3. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    Hi Akash, thanks for the reply,
    1) How would I know what devices are similar to mine?
    The only way I would think of would be CPU architecture,I'm not sure what sensors and other drivers would be needed.
    2) I don't know if kernel source is available as I don't know the tablet. you say i should be able to pull the boot.img from the device? is this done through adb?
     
  4. Akash Jain

    Akash Jain Well-Known Member Sentient Droid HAL

    Messages:
    3,651
    Likes Received:
    768
    Devices:
    HTC Butterfly 2, Vido M9i (Dual Boot)
    The devices with same processor will do I think. There's a good guide by CyanogenMod on porting CM to unsupported devices, you can have it for your reference,
    http://web.archive.org/web/20161224...o_Port_CyanogenMod_Android_To_Your_Own_Device (This is the cached version. The official site is down now)
    Yup, google it:).
     
  5. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    Thanks I'll give it a go, is it possible to check the repo that I've spend days downloading? My connection dropped a few times so i'd like to make sure that all was downloaded correctly.
     
  6. Akash Jain

    Akash Jain Well-Known Member Sentient Droid HAL

    Messages:
    3,651
    Likes Received:
    768
    Devices:
    HTC Butterfly 2, Vido M9i (Dual Boot)
    Try compiling the code for some other device.
     
  7. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    have managed to cook my first rom, dying to test it on an emulator, however when I run emulator i get
    emulator: ERROR: No initial system image for this configuration!
    i tried the --help but there is no info for emulator. How can I emulate?
     
  8. Akash Jain

    Akash Jain Well-Known Member Sentient Droid HAL

    Messages:
    3,651
    Likes Received:
    768
    Devices:
    HTC Butterfly 2, Vido M9i (Dual Boot)
    Testing in a emulator? Why don't you test it in your device itself?
     
  9. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    Unfortunately when I plug in my USB cable there is no ADB interface detected so I think the USB port is only for charging, have tried many cables
     
  10. Xarion

    Xarion Member Scrap Metal

    Messages:
    6
    Likes Received:
    0
    ok so the reason emulator didnt work is because the compile didnt run to the end, all compiled now and emulator is working. I have compiled for x86, does this mean I can install on a PC ? if so how does one install a custom compiled rom and bootloader onto a pc?
     
  11. Akash Jain

    Akash Jain Well-Known Member Sentient Droid HAL

    Messages:
    3,651
    Likes Received:
    768
    Devices:
    HTC Butterfly 2, Vido M9i (Dual Boot)
    I think you need to use grub as the bootloader but am not sure, you may take a look here,
    http://www.android-x86.org/
     

Share This Page