Skip to content

Running android. #7

Closed
Closed

Description

@e2002e

Is it possible to run Android with this kernel ?
I would like to run marshmallow from unlegacy android, but I would be glad with the lollipop stock rom also.
What is the requirement to make this work ? I can see that many of the options that are present in the kernels from these OS are not recognized here. For instance BCMDHD_FW_PATH will not be added to the final config.
What I was able to do so far is booting a zImage, using the configuration named tegra_defconfig. Packing it with a ramdisk from LP or MM will produce a kernel panic.
I'd like to find out the exact configuration that is needed to boot these systems, if possible.
Thanks in advance.

Activity

  1. digetx commented on Jun 3, 2020

    @digetx
    Member

    Android won't work out-of-the-box with this kernel. You'll need to port downstream drivers + Android specific patches. It is doable, but this is quite a lot of work.

    See https://github.com/digetx/picasso_upstream_support and https://github.com/digetx/picasso-kernel for an example. Note that it's for Tegra20, the Tegra30 bits may need some extra work. I switched away from Android to a proper Linux on Tegra devices few years ago, so those repos are a bit outdated in comparison to the latest kernel version. Sometime ago I was helping to port video driver to a newer kernel version and http://ftp.redsleeve.org/pub/tmp/004-tegra-downstream-video-driver.patch should contain some fixes needed for 4.8+ kernel.

    BCMDHD is custom WiFi driver that is not present in upstream kernel. Brcmfmac is a generic driver that upstream uses.

    For a working ramdisk you'll need to reduce zImage size by compiling most of the drivers as a loadable kernel modules. Ramdisk is getting clobbered if kernel is bigger than a certain size, it's a known issue of the upstream kernel that hasn't been resolved yet.

  2. e2002e commented on Jun 3, 2020

    @e2002e
    Author

    Thanks you for enlightening this.
    When you say 'a proper linux', do you mean that you have a solution to run ubuntu or debian for instance ?
    I would be more interested in working toward that.
    Now that I think twice, I might finally read linux from scratch and make a proper system.
    I need to do a ramdisk for the kernel, what about which part of the OS goes into the system partition and which one goes in userdata ?

  3. okias commented on Jun 4, 2020

    @okias
    Contributor

    Well supported system on Tegra 3 in postmarketOS, but generally when you compile kernel, you can run any distribution, just installation will be slightly harder (I'd like to see PureOS or Mobian running on these tables).

  4. e2002e commented on Jun 4, 2020

    @e2002e
    Author

    Much thanks for that, I was missing the bottom of the iceberg.

  5. digetx commented on Jun 4, 2020

    @digetx
    Member

    In the case of Ubuntu or Debian you can download armhf rootfs, extract it to /data partition and then boot to it. Ubuntu works great on Nexus 7. Also see https://github.com/grate-driver/grate/wiki/Grate-driver.

  6. added a commit that references this issue on Jun 13, 2020
  7. 70 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions