# orangepi_r1 **Repository Path**: QHCH/orangepi_r1 ## Basic Information - **Project Name**: orangepi_r1 - **Description**: 香橙派简单上手 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-30 - **Last Updated**: 2021-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## before you start uboot: main line 2021.01 linux: main line 4.19.180 toolchain: linaro 6.3.1 make sure the power is consecutive and the current payload is strong enough. ## build uboot ``` $ make ARCH=arm orangepi_r1_defconfig $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- ``` the env will be changed in pack.sh, because i don't know how to make a bootable uefi sdcard. ## build linux ``` $ vim arch/arm/configs/sunxi_defconfig # for wifi -# CONFIG_WLAN is not set +CONFIG_STAGING=y +CONFIG_WLAN=y +CONFIG_CFG80211=y +CONFIG_RTL8723BS=m # for usb-ethernet +CONFIG_USB_RTL8152=y $ make ARCH=arm sunxi_defconfig $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- ``` ## build wifi module the RTL8189 is not supported by linux, need finding source from other place. ``` # i don't know the official RTL8189 address, just find that work $ git clone https://gitee.com/LIJIN0088/rtl8189ES_linux.git $ cd rtl8189ES_linux/ $ vim Makefile diff --git a/Makefile b/Makefile index d44e822..7c00759 100755 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ CONFIG_PLATFORM_DMP_PHILIPS = n CONFIG_PLATFORM_MSTAR_TITANIA12 = n CONFIG_PLATFORM_MSTAR = n CONFIG_PLATFORM_SZEBOOK = n -CONFIG_PLATFORM_ARM_SUNxI = n +CONFIG_PLATFORM_ARM_SUNxI = y CONFIG_PLATFORM_ARM_SUN6I = n CONFIG_PLATFORM_ARM_SUN7I = n CONFIG_PLATFORM_ARM_SUN8I_W3P1 = n @@ -1306,10 +1306,10 @@ endif ARCH := arm #CROSS_COMPILE := arm-none-linux-gnueabi- -CROSS_COMPILE=/home/android_sdk/Allwinner/a10/android-jb42/lichee-jb42/buildroot/output/external-toolchain/bin/arm-none-linux-gnueabi- -KVER := 3.0.8 +CROSS_COMPILE=/root/Software/toolchain/linaro-6.3.1/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- +KVER := 4.19.180 #KSRC:= ../lichee/linux-3.0/ -KSRC=/home/android_sdk/Allwinner/a10/android-jb42/lichee-jb42/linux-3.0 +KSRC=/root/Work/orangepi_r1/linux-4.19.180 endif ifeq ($(CONFIG_PLATFORM_ARM_SUN6I), y) ``` ## build rootfs i had provided a buildroot filesystem: rootfs.tar that login with root, no pass word. ## burning ``` # ./pack.sh ```