#Kernel files for OrangePI i96(Orange PI 2g-iot)
You need add this files to kernell directory.
I use gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf for compilation.
After that:
make ARCH=arm CROSS_COMPILE=/"path to toolchain"/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- defconfig
make ARCH=arm CROSS_COMPILE=/"path to toolchain"/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- menuconfig
Set options:
- System type-->RDA Micro SoCs
- Device drivers-->Character devices-->Enable TTY-->Serial Drivers-->RDA Micro serial port support-->Console on RDA Micr serial port
- Device drivers-->GPIO Support-->Memory Mapped GPIO drivers-->RDA Micro GPIO controller support
- Device drivers-->RDA support (You need set all options in "RDA support" submenu)
- Device drivers-->RDA support-->RdaMicro IEEE802.11 emdedded FullMac WLAN driver Need set as Y not m. For this you need change set for:
- Networking support-->Wireless-->cfg80211-wireless configuration API
make ARCH=arm CROSS_COMPILE=/"path to toolchain"/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16
In releases you can find Image compilled on 6.5.1 kernell and Busybox 1.36.1. Login:root password:root
#Wi-Fi
If you want wi-fi you need create wi-fi acsses point with ssid="i96" password:123456789 IP:192.168.1.1. OrangePI will appear on IP 192.168.1.252. For change ap IP change /etc/rc.d/rc.network. For change ssid and password you need edit file /etc/wpa_supplicant.conf, use for it command:
wpa_passphrase i96 123456789
Or you can modify Image from PC:
sudo mount -o loop,offset=2097152 NewImg.img /tmp/tmp (for modify boot partition)
sudo mount -o loop,offset=54525952 NewImg.img /tmp/tmp (for modify root system partition)
Сборка прошивки из исходников для Orange PI i96(Orange PI 2g-iot) / Building firmware for Orange PI i96 (Orange PI 2g-iot) from scratch
Структура драйвера Linux для одноплатного компьютера / Structure of Linux driver for single-board computer.