BPI-R1 CAN Bus
In order to port
can4linux
to the BananaPi, the CAN module description is needed from the A20 hardware manual.
can4linux is a character-driver-based Linux driver used already on desktop PCs and embedded platforms like Freescale
FlexCAN (the i.MX series of micro controllers) or Xiliny Zynq.
There is a more detailed document about CAN on the A20 at
https://dl.linux-sunxi.org/A20/CAN%20Bus1.pdf
This is a tutorial for using CAN BUS on bananapi with bananian 15-01
Thank selqcir share this example:
Download and install "bananian-1501.img" into 8 GB SDCard.
Expand the root file system using "bananian-config"
Install missing package:
apt-get install git
apt-get update
apt-get upgrade
reboot
Get last bananian available, and continu to install missing package:
git clone https://github.com/Bananian/linux-bananapi
apt-get install build-essential u-boot-tools uboot-mkimage
apt-get install libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev libncurses5-dev
apt-get install subversion
Build kernel:
cd linux-bananapi
make menuconfig
Exit without saving when menu appears
zcat /proc/config.gz > /root/linux-bananapi/.config
make uImage modules
make INSTALL_MOD_PATH=output modules_install
At this step, kernel should be compiled and "Module.symvers" should be available
Then rename modules and firmware provide by Bananian, and replace by the new one.
mv /lib/modules /lib/modules.old
mv /lib/firmware /lib/firmware.old
mv /root/linux-bananapi/output/lib/modules /lib/modules
mv /root/linux-bananapi/output/lib/firmware /lib/firmware
Same for uImage:
mount /dev/mmcblk0p1 /mnt
cd /mnt
mv uImage uImage.old
mv /root/linux-bananapi/arch/arm/boot/uImage /mnt
reboot
Create link for further build:
BPI-R1 CAN Bus
16
Содержание BPI-R1
Страница 5: ...BPI R1 hardware interface BPI R1 hardware interface Front Back BPI R1 hardware interface 5...
Страница 6: ...Hardware connect sketch map Front Back BPI R1 hardware interface 6...
Страница 7: ...BPI R1 hardware interface 7...
Страница 8: ...BPI R1 hardware spec BPI R1 hardware spec 8...
Страница 14: ...J13 P01 UART0 RX PB23 J13 P02 UART0 TX PB22 BPI R1 GPIO Pin define 14...
Страница 28: ...please note value 0 value 1 press is 1 unpress is 0 BPI R1 IR interface 28...
Страница 41: ...BPI R1 RoHS Certification BPI R1 CE FCC RoHS Certification 41...
Страница 42: ...BPI R1 CE FCC RoHS Certification 42...
Страница 43: ...BPI R1 Software BPI R1 support linux android and openwrt system BPI R1 Software 43...
Страница 59: ...Linux kernel 3 4 BSP image 59...
Страница 76: ...BPI R1 OpenBSD BPI R1 booting OpenBSD current http www openbsd org armv7 html BPI R1 OpenBSD 76...
Страница 84: ...Reference documents Thank many user writer document for banana pi BPI R1 Reference documents 84...