Giter Club home page Giter Club logo

device_arpi_rpi4car's Introduction

Android Automotive Rapberry Pi 4

๐Ÿ“ TODO

  • โœ”๏ธ WiFi
  • โœ… Can-Bus
  • โš™๏ธ Vehicle Hal
  • โŒ Secondary screen / Instrument Cluster
  • โž– GPS
  • โŒ Bluetooth
  • โž– Camera Support
  • โš™๏ธ Support more Can-Bus Hat's

Initialize AOSP source

  $ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39 --current-branch --no-tags --no-clone-bundle --depth 1

Set local repos

  $ git clone https://github.com/android-rpi/local_manifests .repo/local_manifests -b arpi-10

Make changes to local manifest

  • edit .repo/local_manifests/defualt.xml
  • add remote <remote name="arpicar" fetch="https://github.com/manmountain"/>
  • change <project path="device/arpi/rpi4" name="device_arpi_rpi4" revision="arpi-10" remote="arpi"/>
  • to <project path="device/arpi/rpi4car" name="device_arpi_rpi4car" revision="arpi-10" remote="arpicar"/>
  • add remote <remote name="linux-can" fetch="https://github.com/linux-can"/>
  • add <project path="vendor/can/can-utils" name="can-utils" revision="master" remote="linux-can"/>

Get the AOSP source

  $ repo sync --current-branch --no-tags --no-clone-bundle --force-sync -j4

Install kernel driver patch for can bus hat

  $ cd kernel/arpi
  $ patch -p2 < ../../device/arpi/rpi4car/patches/mcp25xxfd-V8.2.patch

Configure Kernel

  $ cd kernel/arpi
  $ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2711_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config

Edit Kernel .config

  • set CONFIG_CAN to CONFIG_CAN=y
  • set CONFIG_CAN_RAW to CONFIG_CAN_RAW=y
  • set CONFIG_CAN_BCM to CONFIG_CAN_BCM=y
  • set CONFIG_CAN_GW to CONFIG_CAN_GW=y
  • set CONFIG_CAN_J1939 to CONFIG_CAN_J1939=y
  • set CONFIG_CAN_SLCAN to CONFIG_CAN_SLCAN=y
  • set CONFIG_CAN_DEV to CONFIG_CAN_DEV=y
  • set CONFIG_CAN_CALC_BITTIMING to CONFIG_CAN_CALC_BITTIMING=y
  • add CONFIG_CAN_MCP25XXFD=y
  • set CONFIG_CAN_MCP251X to CONFIG_CAN_MCP251X=y
  • set CONFIG_SPI_BCM2835 to CONFIG_SPI_BCM2835=y
  • set CONFIG_SPI_BCM2835AUX to CONFIG_SPI_BCM2835AUX=y

Build Kernel

  $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4 zImage
  $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4 dtbs

Build Android source

  $ source build/envsetup.sh
  $ lunch rpi4car-userdebug
  $ make -j4 ramdisk systemimage vendorimage userdataimage

Use -j[n] option with make, if build host has a good number of CPU cores.

Write to sdcard

Insert sdcard, get <device> with lsblk cmd and run

  $ device/arpi/rpi4car/mksdcard.sh <device>

Checks we can do to verify that the can-bus works

  • TODO

device_arpi_rpi4car's People

Contributors

manmountain avatar

Watchers

James Cloos avatar

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.