- โ๏ธ WiFi
- โ Can-Bus
- โ๏ธ Vehicle Hal
- โ Secondary screen / Instrument Cluster
- โ GPS
- โ Bluetooth
- โ Camera Support
- โ๏ธ Support more Can-Bus Hat's
$ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r39 --current-branch --no-tags --no-clone-bundle --depth 1
$ git clone https://github.com/android-rpi/local_manifests .repo/local_manifests -b arpi-10
- 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"/>
$ 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
$ 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
- set
CONFIG_CAN
toCONFIG_CAN=y
- set
CONFIG_CAN_RAW
toCONFIG_CAN_RAW=y
- set
CONFIG_CAN_BCM
toCONFIG_CAN_BCM=y
- set
CONFIG_CAN_GW
toCONFIG_CAN_GW=y
- set
CONFIG_CAN_J1939
toCONFIG_CAN_J1939=y
- set
CONFIG_CAN_SLCAN
toCONFIG_CAN_SLCAN=y
- set
CONFIG_CAN_DEV
toCONFIG_CAN_DEV=y
- set
CONFIG_CAN_CALC_BITTIMING
toCONFIG_CAN_CALC_BITTIMING=y
- add
CONFIG_CAN_MCP25XXFD=y
- set
CONFIG_CAN_MCP251X
toCONFIG_CAN_MCP251X=y
- set
CONFIG_SPI_BCM2835
toCONFIG_SPI_BCM2835=y
- set
CONFIG_SPI_BCM2835AUX
toCONFIG_SPI_BCM2835AUX=y
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4 zImage
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4 dtbs
$ 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.
Insert sdcard, get <device>
with lsblk cmd and run
$ device/arpi/rpi4car/mksdcard.sh <device>
- TODO