Insignia X series development 14---Add board level configuration file

Analysis command:
source ./build/envsetup.sh
including device/halley2/norflash/model1/vendorsetup.sh
including device/halley2/spinand/model1/vendorsetup.sh


Copy the original board level file to the new board level file
cd device
mkdir br1600
CP -R & lt halley2 / * br1600 /


modified file board device.mk


ifeq absolute expression ($ ($ Strip (TARGET_BUILD_VARIANT)), ENG) UBOOT_BUILD_CONFIG: = halley2_nor_config
UBOOT_BUILD_CONFIG: = br1600debug_nor_config the
else
UBOOT_BUILD_CONFIG: = br1600_nor_config
endif


KERNEL_BUILD_CONFIG: = br1600_nor_v10_linux_defconfig KERNEL_BUILD_CONFIG: = halley2_nor_v10_linux_defconfig
KERNEL_BUILD_CONFIG := br1600_nor_v10_linux_defconfig




Where is the analysis halley2_nor_v10_linux_defconfig?
grep "halley2_nor_v10_linux_defconfig" * -R
device/halley2/device.mk:KERNEL_BUILD_CONFIG := halley2_nor_v10_linux_defconfig


find . -name "halley2_nor_v10_linux_defconfig"
./kernel/arch/mips/configs/halley2_nor_v10_linux_defconfig
The default configuration file of the kernel
will be generated after lunch .config


needs to add the configuration file
cd kernel/arch/mips/configs/
cp halley2_nor_v10_linux_defconfig halley2_br1600_nor_V10_linux_defconfig //This file needs to be configured according to the actual situation grep "halley2_nor_config" * -R bootable/bootloader/x-loader/README: make halley2_nor_config bootable/bootloader /x-loader/Makefile:halley2_nor_config:unconfig








device/halley2/device.mk:UBOOT_BUILD_CONFIG := halley2_nor_config




find . -name "halley2_nor_config"
nothing


Check the instructional file bootable/bootloader/x-loader/README
1. Add the board file
cd bootable/bootloader/x-loader/boards/
mkdir br1600debug
mkdir br1600 cp
halley2/* br1600debug/
cp halley2/* br1600/ See what is


in the board-level documentation New board build target 388 halley2_br1600_nor_config: unconfig 389 @./mkconfig $(@:_config) br1600 nor 390  391 halley2_br1600debug_nor_config: unconfig 392 @./mkconfig $(@:_config) br1600debug nor













Where is the board configuration file?
=================
in include/configs/BOARD_NAME.h
cd include/configs/
ls
boards_common.h burner.h halley2.h media.h phoenix.h qrcode.h skyworth.h speaker .h yak.h zlm60.h
cp halley2.h br1600debug.h
cp halley2.h br1600.h


in document br1600.h add
// disable uart printk
#ifdef CONFIG_CONSOLE_ENABLE
#undef CONFIG_CONSOLE_ENABLE
#endif


change baud rate to 115200


xburst Test whether it is OK
pwd
bootable/bootloader/x-loader
make halley2_br1600debug_nor_config
make


success***


After the above operation lunch, the target appears
cui@cui-vir:~/ingenic/ingenic_shenzhen_Halley2base$ lunch


You're building on Linux


Lunch menu... pick a combo:
     1. halley2_norflash-eng
     2. halley2_norflash-user
     3. halley2_spinand-eng
     4. halley2_spinand-user
     5. halley2_br1600_norflash-eng
     6. halley2_br1600_norflash-user


Which would you like? [phoenix_nor_userdebug] 5
selection is halley2_br1600_norflash-eng
product is halley2_br1600_norflash
variant is eng
PATH=/home/cui/ingenic/ingenic_shenzhen_Halley2base/prebuilts/toolchains/mips-gcc472-glibc216/bin:/home/cui/ingenic/ingenic_shenzhen_Halley2base/bootable/bootloader/u-boot/tools:/opt/allwiner_compiler/external-toolchain/bin:/opt/qtcreator-4.2.2/bin:/opt/Trolltech/bin:/home/cui/arm-2013.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin
PATH=/home/cui/ingenic/ingenic_shenzhen_Halley2base/prebuilts/toolchains/mips-gcc472-glibc216/bin:/home/cui/ingenic/ingenic_shenzhen_Halley2base/bootable/bootloader/u-boot/tools:/opt/allwiner_compiler/external-toolchain/bin:/opt/qtcreator-4.2.2/bin:/opt/Trolltech/bin:/home/cui/arm-2013.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/work/tools/gcc-3.4.5-glibc-2.3.6/bin
halley2
br1600
norflash
============================================
TARGET_PRODUCT=halley2_br1600_norflash
TARGET_DEVICE=halley2 //有问题
TARGET_STORAGE_MEDIUM=br1600
TARGET_EXT_SUPPORT=norflash
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
OUT_DIR=out
============================================




#### make completed successfully  ####




回到kernel的板级目录
修改文件/device/br1600/device.mk
23 else #for x-loader
 24 ifeq ($(strip $(TARGET_BUILD_VARIANT)),eng)
 25 UBOOT_BUILD_CONFIG := halley2_br1600debug_nor_config
 26 else
 27 UBOOT_BUILD_CONFIG := halley2_br1600_nor_config
 28  endif


cd device/br1600/norflash/model1
gedit system_patch.sh
将halley2替换成br1600





Add the board-level file mkdir halley2_br1600
cp -r halley2/* halley2_br1600 under /kernel/arch/mips/xburst/soc-x1000/chip-x1000/ halley2/


Modify the Makefile in the halley2 directory; add
obj-$(CONFIG_BOARD_X1000_HALLEY2_BR1600) += $(CONFIG_BOARD_NAME)/


OK

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325741701&siteId=291194637