device/rockchip: add the 32bit support for rk3326 and px30

if you need build the 32bit by default, you need modify the xml on
.repo/manifests.
for example, the px30:
.repo/manifests$
--- a/px30_linux.xml
+++ b/px30_linux.xml
@@ -17,7 +17,7 @@
     <linkfile dest="mkfirmware.sh" src="common/mkfirmware.sh"/>
     <linkfile dest="build.sh" src="common/build.sh"/>
     <linkfile dest="rkflash.sh" src="common/rkflash.sh"/>
-    <linkfile dest="device/rockchip/.BoardConfig.mk" src="px30/BoardConfig.mk"/>
+    <linkfile dest="device/rockchip/.BoardConfig.mk" src="px30/BoardConfig_32bit.mk"/>
   </project>

Then run the build.sh

Change-Id: I86500f054d51bf185129dfa53fe9309252dcb6fb
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
This commit is contained in:
Caesar Wang
2018-08-28 17:03:57 +08:00
parent 8277126a79
commit 933fa2d626
4 changed files with 78 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export RK_BOOT_IMG=boot.img
# parameter for GPT table # parameter for GPT table
export RK_PARAMETER=parameter-buildroot.txt export RK_PARAMETER=parameter-buildroot.txt
# Buildroot config # Buildroot config
export RK_CFG_BUILDROOT=rockchip_px30 export RK_CFG_BUILDROOT=rockchip_px30_64
# Recovery config # Recovery config
export RK_CFG_RECOVERY=rockchip_px30_recovery export RK_CFG_RECOVERY=rockchip_px30_recovery
# Pcba config # Pcba config

38
px30/BoardConfig_32bit.mk Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
# Target arch
export RK_ARCH=arm64
# Uboot defconfig
export RK_UBOOT_DEFCONFIG=evb-px30
# Kernel defconfig
export RK_KERNEL_DEFCONFIG=px30_linux_defconfig
# Kernel dts
export RK_KERNEL_DTS=px30-evb-ddr3-v10-linux
# boot image type
export RK_BOOT_IMG=boot.img
# parameter for GPT table
export RK_PARAMETER=parameter-buildroot.txt
# Buildroot config
export RK_CFG_BUILDROOT=rockchip_px30_32
# Recovery config
export RK_CFG_RECOVERY=rockchip_px30_recovery
# Pcba config
export RK_CFG_PCBA=rockchip_px30_pcba
# Build jobs
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=px30
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# rootfs image path
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal

View File

@ -13,7 +13,7 @@ export RK_BOOT_IMG=boot.img
# parameter for GPT table # parameter for GPT table
export RK_PARAMETER=parameter-buildroot.txt export RK_PARAMETER=parameter-buildroot.txt
# Buildroot config # Buildroot config
export RK_CFG_BUILDROOT=rockchip_rk3326 export RK_CFG_BUILDROOT=rockchip_rk3326_64
# Recovery config # Recovery config
export RK_CFG_RECOVERY=rockchip_rk3326_recovery export RK_CFG_RECOVERY=rockchip_rk3326_recovery
# Pcba config # Pcba config

38
rk3326/BoardConfig_32bit.mk Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
# Target arch
export RK_ARCH=arm64
# Uboot defconfig
export RK_UBOOT_DEFCONFIG=evb-rk3326
# Kernel defconfig
export RK_KERNEL_DEFCONFIG=rk3326_linux_defconfig
# Kernel dts
export RK_KERNEL_DTS=rk3326-evb-lp3-v10-linux
# boot image type
export RK_BOOT_IMG=boot.img
# parameter for GPT table
export RK_PARAMETER=parameter-buildroot.txt
# Buildroot config
export RK_CFG_BUILDROOT=rockchip_rk3326_32
# Recovery config
export RK_CFG_RECOVERY=rockchip_rk3326_recovery
# Pcba config
export RK_CFG_PCBA=rockchip_rk3326_pcba
# Build jobs
export RK_JOBS=12
# target chip
export RK_TARGET_PRODUCT=rk3326
# Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPE=ext4
# rootfs image path
export RK_ROOTFS_IMG=buildroot/output/$RK_CFG_BUILDROOT/images/rootfs.$RK_ROOTFS_TYPE
# Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPE=ext2
# Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPE=ext2
# Set flash type. support <emmc, nand, spi_nand, spi_nor>
export RK_STORAGE_TYPE=emmc
#OEM config: /oem/dueros/aispeech/iflytekSDK/CaeDemo_VAD/smart_voice
export RK_OEM_DIR=oem_normal
#userdata config
export RK_USERDATA_DIR=userdata_normal