02使用常规步骤编译NanoPiM1Plus的Android4.4.2

02使用常规步骤编译NanoPiM1Plus的Android4.4.2

 

 

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

21504965 AT qq.com

完成时间:2017/12/5 17:51

版本:V1.0

 

开发板:NanoPi M1 Plus/zh

SDK:Android4.4.2

 

 

按照全志A33平台编译调通的功能:

0、HDMI(只有720p50Hz)

1、U盘(USB摄像头必须在启动到Android自后再插入,否则是黑屏!)

2、TF

3、RJ45/以太网卡

4、AP6212A0的wifi+BT

5、声音

6、MIC

7、GPIO(以后验证)

8、SPI(以后验证)

9、UART(以后验证)

10、CSI接口的摄像头(以后验证)

11、红外(以后验证)

 

 

(一)、解压缩SDK:

rootroot@cm-System-Product-Name:~$ cd /home/wwt

rootroot@cm-System-Product-Name:/home/wwt$

rootroot@cm-System-Product-Name:/home/wwt$ mv nanopi-H3-bsp/ nanopi_h3_bsp

rootroot@cm-System-Product-Name:/home/wwt$

rootroot@cm-System-Product-Name:/home/wwt$ cd nanopi_h3_bsp/

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$ ll

总用量 3246640

-rw------- 1 rootroot rootroot 996147200 12月  4 11:17 h3-android-20170608.7z.001

-rw------- 1 rootroot rootroot 996147200 12月  4 11:15 h3-android-20170608.7z.002

-rw------- 1 rootroot rootroot 996147200 12月  4 11:29 h3-android-20170608.7z.003

-rw------- 1 rootroot rootroot  67405448 12月  4 11:19 h3-android-20170608.7z.004

-rw------- 1 rootroot rootroot 268684287 12月  4 11:25 h3-lichee-20170608.7z

-rw------- 1 rootroot rootroot       188 12月  4 11:25 README.txt

-rw------- 1 rootroot rootroot       188 12月  4 11:25 解压方法.txt

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$ 7za x h3-lichee-20170608.7z -r -o./

 

Extracting  lichee/brandy/u-boot-2011.09/arch/arm/cpu/arm1136/mx31

Extracting  lichee/brandy/u-boot-2011.09/arch/arm/cpu/arm1136

Extracting  lichee/brandy/u-boot-2011.09/arch/arm/cpu

Extracting  lichee/brandy/u-boot-2011.09/arch/arm

Extracting  lichee/brandy/u-boot-2011.09/arch

Extracting  lichee/brandy/u-boot-2011.09/api

Extracting  lichee/brandy/u-boot-2011.09

Extracting  lichee/brandy/toolchain

Extracting  lichee/brandy

Extracting  lichee

 

Everything is Ok

 

Folders: 4241

Files: 52956

Size:       949571074

Compressed: 268684287

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$ 7za x h3-android-20170608.7z.001 -r -o./

 

Extracting  android/art/compiler/dex/quick/arm

Extracting  android/art/compiler/dex/quick

Extracting  android/art/compiler/dex/portable

Extracting  android/art/compiler/dex

Extracting  android/art/compiler

Extracting  android/art/build

Extracting  android/art

Extracting  android/abi/cpp/src

Extracting  android/abi/cpp/include

Extracting  android/abi/cpp

Extracting  android/abi

Extracting  android

 

Everything is Ok

 

Folders: 42578

Files: 364611

Size:       9514031537

Compressed: 996147200

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp$

 

 

 

 

(二)

由于按照常规步骤编译的IMG不能打开NanoPi M1 Plus上面自带的AP6212的A0版本的WIFI+BT。

下面附带上修改记录:

 

1、

W:\nanopi_h3_bsp\android\device\softwinner\nanopi-h3\bluetooth\libbt\conf\bt_vendor.conf

# UART device port where Bluetooth controller is attached

UartPort = /dev/ttyS2

 

# Firmware patch file location

FwPatchFilePath = /system/vendor/modules/

 

#Firmware name

#FwPatchFileName = bcm4339a0.hcd

FwPatchFileName = bcm43438a0.hcd

 

 

 

 

2、

W:\nanopi_h3_bsp\android\device\softwinner\nanopi-h3\bluetooth\libbt\include\vnd_dolphin-fvd-p1.txt

BLUETOOTH_HCI_USE_USB = TRUE

USE_CONTROLLER_BDADDR = TRUE

SCO_USE_I2S_INTERFACE = FALSE

FW_PATCHFILE_LOCATION = "/system/etc/firmware"

BTVND_DBG = FALSE

BTHW_DBG = TRUE

VNDUSERIAL_DBG = FALSE

UPIO_DBG = FALSE

USB_DBG = TRUE

直接按照全志A33平台的全部替换掉:

BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyS2"

FW_PATCHFILE_LOCATION = "/system/vendor/modules/"

LPM_IDLE_TIMEOUT_MULTIPLE = 5

UART_TARGET_BAUD_RATE = 1500000

BT_WAKE_VIA_PROC = TRUE

#LPM_SLEEP_MODE = FALSE

BTVND_DBG = TRUE

BTHW_DBG = TRUE

VNDUSERIAL_DBG = TRUE

UPIO_DBG = TRUE

 

 

 

 

3、

W:\nanopi_h3_bsp\android\device\softwinner\nanopi-h3\bluetooth\bdroid_buildcfg.h

/*

 * Copyright (C) 2012 The Android Open Source Project

 *

 * Licensed under the Apache License, Version 2.0 (the "License");

 * you may not use this file except in compliance with the License.

 * You may obtain a copy of the License at

 *

 *      http://www.apache.org/licenses/LICENSE-2.0

 *

 * Unless required by applicable law or agreed to in writing, software

 * distributed under the License is distributed on an "AS IS" BASIS,

 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

 * See the License for the specific language governing permissions and

 * limitations under the License.

 */

 

#ifndef _BDROID_BUILDCFG_H

#define _BDROID_BUILDCFG_H

 

#define BTM_DEF_LOCAL_NAME "dolphin-p1"

 

// SERVICE_CLASS:0x5A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer,Bit22 -Telephony)

// MAJOR CLASS: COMPUTER

// MINOR CLASS: TABLET

//##define BTA_DM_COD {0x5A, 0x01, 0x1C}

 

//#define BTIF_HF_SERVICES (BTA_HSP_SERVICE_MASK)

//#define BTIF_HF_SERVICE_NAMES  { BTIF_HSAG_SERVICE_NAME }

#endif

 

 

 

 

4、SDK默认为realtek8188eu(USB接口的),需要修改为AP6212的A0版本。

W:\nanopi_h3_bsp\android\device\softwinner\nanopi-h3\BoardConfig.mk

# BoardConfig.mk

#

# Product-specific compile-time definitions.

#

 

include device/softwinner/dolphin-common/BoardConfigCommon.mk

 

# image related

TARGET_NO_BOOTLOADER := true

TARGET_NO_RECOVERY := false

TARGET_NO_KERNEL := false

 

INSTALLED_KERNEL_TARGET := kernel

BOARD_KERNEL_BASE := 0x40000000

BOARD_KERNEL_CMDLINE :=

TARGET_USERIMAGES_USE_EXT4 := true

BOARD_FLASH_BLOCK_SIZE := 4096

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 805306368

#BOARD_USERDATAIMAGE_PARTITION_SIZE :=

 

# wifi and bt configuration

# 1. wifi Configuration

WPA_SUPPLICANT_VERSION := VER_0_8_X

BOARD_WPA_SUPPLICANT_DRIVER := NL80211

BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd

BOARD_HOSTAPD_DRIVER        := NL80211

BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd

 

#WIFI_VENDOR_NAME    := realtek

#WIFI_MODULE_NAME    := 8188eu

#WIFI_DRIVER_NAME    := 8188eu

 

WIFI_VENDOR_NAME    := broadcom

WIFI_MODULE_NAME    := ap6212

WIFI_DRIVER_NAME    := bcmdhd

 

include hardware/broadcom/wlan/bcmdhd/firmware/firmware-bcm.mk

 

# 2. Bluetooth Configuration

# make sure BOARD_HAVE_BLUETOOTH is true for every bt vendor

#include device/softwinner/common/hardware/realtek/bluetooth/rtl8723bs/firmware/rtlbtfw_cfg.mk

BOARD_HAVE_BLUETOOTH := true

BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/softwinner/common/

 

 

 

 

5、语言默认为英文(国际版本),这里修改为简体中文了!

W:\nanopi_h3_bsp\android\device\softwinner\nanopi-h3\nanopi_h3.mk

## default language setting

#PRODUCT_PROPERTY_OVERRIDES += \

#    persist.sys.timezone=Asia/Shanghai \

#    persist.sys.country=US \

#    persist.sys.language=EN

 

PRODUCT_PROPERTY_OVERRIDES += \

persist.sys.timezone=Asia/Shanghai \

persist.sys.language=zh \

persist.sys.country=CN

 

 

 

 

6、无效修改(尝试在底部加入导航条!):

W:\nanopi_h3_bsp\android\frameworks\base\core\res\res\values\config.xml

    <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be

         autodetected from the Configuration. -->

    <bool name="config_showNavigationBar">false</bool>

修改为:

    <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be

         autodetected from the Configuration. -->

    <bool name="config_showNavigationBar">true</bool>

 

 

 

 

7、AP6212的A0和A1的兼容版本实现:

W:\nanopi_h3_bsp\android\hardware\broadcom\wlan\bcmdhd\firmware\ap6212\device-bcm.mk

#

# Copyright (C) 2008 The Android Open Source Project

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

#      http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

#

 

-include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk

 

PRODUCT_COPY_FILES += \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0.bin:system/vendor/modules/fw_bcm43438a0.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0_apsta.bin:system/vendor/modules/fw_bcm43438a0_apsta.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a0_p2p.bin:system/vendor/modules/fw_bcm43438a0_p2p.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1.bin:system/vendor/modules/fw_bcm43438a1.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1_apsta.bin:system/vendor/modules/fw_bcm43438a1_apsta.bin \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/fw_bcm43438a1_p2p.bin:system/vendor/modules/fw_bcm43438a1_p2p \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/config.txt:system/vendor/modules/config.txt \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/nvram_ap6212.txt:system/vendor/modules/nvram_ap6212.txt \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/nvram.txt:system/vendor/modules/nvram.txt \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/bcm43438a0.hcd:system/vendor/modules/4343a0.hcd \

    hardware/broadcom/wlan/bcmdhd/firmware/ap6212/bcm43438a1.hcd:system/vendor/modules/bcm43430a1.hcd

 

 

 

 

8、(直接使用官方编译生成的.config)

W:\nanopi_h3_bsp\lichee\linux-3.4\.config

 

 

 

 

9、可选修改:

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\default\env.cfg

bootdelay=3

 

#default bootcmd, will change at runtime according to key press

bootcmd=run setargs_nand boot_normal#default nand boot

 

#kernel command arguments

console=ttyS0,115200

nand_root=/dev/block/system

mmc_root=/dev/block/mmcblk0p7

init=/init

loglevel=8

mac=

wifi_mac=

bt_mac=

specialstr=

 

#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this

setargs_nand=setenv bootargs console=${console} root=${nand_root} init=${init} loglevel=${loglevel} vmalloc=384M partitions=${partitions} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} serialno=${serialno}

setargs_mmc=setenv bootargs console=${console} root=${mmc_root} init=${init} loglevel=${loglevel} vmalloc=384M partitions=${partitions} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} serialno=${serialno}

 

#nand command syntax: sunxi_flash read address partition_name read_bytes

#0x40007800 = 0x40008000(kernel entry) - 0x800(boot.img header 2k)

boot_normal=fatload mmc 0:2 0x43000000 script.bin;sunxi_flash read 40007800 boot;boota 40007800 boot

boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800 recovery

boot_fastboot=fastboot

 

#recovery key

recovery_key_value_max=0x13

recovery_key_value_min=0x10

 

#fastboot key

fastboot_key_value_max=0x8

fastboot_key_value_min=0x2

 

 

 

 

10、拷贝当前开发板的sys_config.fex(尝试1080p60Hz失败)

兼容版本

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\nanopi-h3\board\sys_config_nanopi-air.fex

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\nanopi-h3\board\sys_config_nanopi-m1.fex

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\nanopi-h3\board\sys_config_nanopi-m1-plus.fex

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\nanopi-h3\board\sys_config_nanopi-neo.fex

 

W:\nanopi_h3_bsp\lichee\tools\pack\chips\sun8iw7p1\configs\nanopi-h3\sys_config.fex

[boot_disp]

advert_disp = 0

auto_hpd = 1

output_type = 4

hdmi_channel = 0

hdmi_mode = 4

cvbs_channel = 1

cvbs_mode = 11

output_full = 1

hdmi_mode_check = 1

 

[disp_init]

disp_init_enable = 1

disp_mode = 0

screen0_output_type = 3

screen0_output_mode = 5

screen1_output_type = 2

screen1_output_mode = 14

fb0_format = 0

fb0_width = 0

fb0_height = 0

fb1_format = 0

fb1_width = 0

fb1_height = 0

 

[hdmi_para]

hdmi_used = 1

hdmi_power = "vcc-hdmi-18"

修改为:

;全志A20的屏幕参数:

;-------------------------------------------------------------------------------

;disp init configuration

;

;disp_mode            (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>

;                      3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)

;screenx_output_type  (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)

;screenx_output_mode  (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)

;screenx_output_mode  (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)

;fbx format           (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)

;fbx pixel sequence   (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android

;lcd0_bright          (lcd0 init bright,the range:[0,256],default:197

;lcd1_bright          (lcd1 init bright,the range:[0,256],default:197

;-------------------------------------------------------------------------------

[boot_disp]

advert_disp = 0

auto_hpd = 1

output_type = 4

hdmi_channel = 0

;hdmi_mode = 4

hdmi_mode = 10

cvbs_channel = 1

cvbs_mode = 11

output_full = 1

hdmi_mode_check = 1

 

[disp_init]

disp_init_enable = 1

disp_mode = 0

screen0_output_type = 3

;screen0_output_mode = 5

screen0_output_mode = 10

screen1_output_type = 3

screen1_output_mode = 10

fb0_format = 0

fb0_width = 0

fb0_height = 0

fb1_format = 0

fb1_width = 0

fb1_height = 0

 

[hdmi_para]

hdmi_used = 1

hdmi_power = "vcc-hdmi-18"

 

 

 

 

11、编译链:

W:\nanopi_h3_bsp\lichee\brandy\toolchain

 

如果没有拷贝编译链就会在编译内核的时候出错:

  Building modules, stage 2.

  MODPOST 1 modules

WARNING: "drm_release" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_free_key" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_set_manager" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_owner_cleanup" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_mmap" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_owner_clean" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_init" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_platform_exit" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_platform_init" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_err" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_ioctl" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_alloc" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_takedown" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_set_range" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_ut_debug_printk" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_sman_cleanup" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_poll" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_fasync" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

WARNING: "drm_open" [/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko] undefined!

  CC      /home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.mod.o

  LD [M]  /home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko

make[2]: Leaving directory `/home/wwt/nanopi_h3_bsp/lichee/linux-3.4'

make[1]: Leaving directory `/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali/DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm'

cp DX910-SW-99002-r4p0-00rel0/driver/src/devicedrv/mali/mali.ko /home/wwt/nanopi_h3_bsp/lichee/linux-3.4/output/lib/modules/3.4.39/

cp DX910-SW-99002-r4p0-00rel0/driver/src/egl/x11/drm_module/mali_drm/mali_drm.ko /home/wwt/nanopi_h3_bsp/lichee/linux-3.4/output/lib/modules/3.4.39/

if [ 0 -eq 1 ]; then \

cp DX910-SW-99002-r4p0-00rel0/driver/src/devicedrv/ump/ump.ko /home/wwt/nanopi_h3_bsp/lichee/linux-3.4/output/lib/modules/3.4.39/; \

fi

make: Leaving directory `/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/modules/mali'

regenerate rootfs cpio

9895 blocks

10659 blocks

build_ramfs

Copy boot.img to output directory ...

Copy modules to target ...

 

sun8iw7p1 compile Kernel successful

 

 

INFO: build kernel OK.

INFO: build uboot ...

INFO: prepare toolchain ...

Prepare toolchain ...

tar: ./toolchain/gcc-linaro-arm.tar.xz:无法 open: 没有那个文件或目录

tar: Error is not recoverable: exiting now

Prepare toolchain ...

tar: ./toolchain/gcc-linaro-arm.tar.xz:无法 open: 没有那个文件或目录

tar: Error is not recoverable: exiting now

ERROR: build uboot failed

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$ ./build.sh config

 

 

 

 

(三)编译lichee/内核和Android/系统:

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$ ./build.sh config

 

Welcome to mkscript setup progress

All available chips:

   0. sun8iw6p1

   1. sun8iw7p1

   2. sun8iw8p1

   3. sun9iw1p1

Choice: 1

All available platforms:

   0. android

   1. dragonboard

   2. linux

Choice: 0

All available business:

   0. dolphin

   1. secure

   2. karaok

Choice: 0

LICHEE_BUSINESS=dolphin

using kernel 'linux-3.4':

==================================

INFO: ----------------------------------------

INFO: build lichee ...

INFO: chip: sun8iw7p1

INFO: platform: android

INFO: business: dolphin

INFO: kernel: linux-3.4

INFO: board:

INFO: output: out/sun8iw7p1/android/

INFO: ----------------------------------------

INFO: build kernel ...

INFO: prepare toolchain ...

Prepare toolchain ...

tar: ./toolchain/gcc-linaro-arm.tar.xz:无法 open: 没有那个文件或目录

tar: Error is not recoverable: exiting now

Building kernel

/home/wwt/nanopi_h3_bsp/lichee/linux-3.4/output/lib/modules/3.4.39-h3

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/zconf.hash.c

  SHIPPED scripts/kconfig/zconf.lex.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

scripts/kconfig/conf --silentoldconfig Kconfig

  WRAP    arch/arm/include/generated/asm/auxvec.h

  WRAP    arch/arm/include/generated/asm/bitsperlong.h

  WRAP    arch/arm/include/generated/asm/cputime.h

  WRAP    arch/arm/include/generated/asm/emergency-restart.h

 

 

 CC      /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw7/spl/eabi_compat.c ...

make[2]:正在离开目录 `/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/spl'

make -C /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/spl/lib/

make[2]: 正在进入目录 `/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/spl/lib'

make[2]: 没有什么可以做的为 `all'。

make[2]:正在离开目录 `/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/spl/lib'

/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/../toolchain/gcc-arm/bin/arm-linux-gnueabi-gcc -E -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE="(0x4A000000)" -I/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/include -I/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/include/openssl -fno-builtin -ffreestanding -nostdinc -isystem /home/wwt/nanopi_h3_bsp/lichee/brandy/toolchain/gcc-arm/bin/../lib/gcc/arm-linux-gnueabi/4.6.3/include -pipe  -DCONFIG_ARM -D__ARM__ -mfpu=neon -D__NEON_SIMD__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -mcpu=cortex-a7 -include /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/include/u-boot/u-boot.lds.h -DSBROMSWADDR="(0x480)"  -ansi -D__ASSEMBLY__ -P - </home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/main/sboot.lds >/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/sboot.lds

/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/../toolchain/gcc-arm/bin/arm-linux-gnueabi-ld /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw7/dram/libchipid.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw7/dram/libdram.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw7/mmc/libmmc.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw7/nand/libnand.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/lib/openssl/libopenssl.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/flash/libflash.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/libs/libgeneric.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/load/libload.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/main/libmain.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/spl/libsource_spl.o /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/spl/lib/libgeneric.o -L /home/wwt/nanopi_h3_bsp/lichee/brandy/toolchain/gcc-arm/bin/../lib/gcc/arm-linux-gnueabi/4.6.3 -lgcc  -T/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/sboot.lds -o sboot.axf -Map sboot.map

/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/../toolchain/gcc-arm/bin/arm-linux-gnueabi-objcopy --gap-fill=0xff -O binary /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/sboot.axf /home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom/sboot.bin

make[1]:正在离开目录 `/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/sunxi_spl/sbrom'

fatal: Not a git repository (or any parent up to mount point /home/wwt)

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

build_sboot

"sboot_sun8iw7p1.bin" -> "/home/wwt/nanopi_h3_bsp/lichee/brandy/u-boot-2011.09/../../tools/pack/chips/sun8iw7p1/bin/sboot_sun8iw7p1.bin"

INFO: build uboot ok.

INFO: ----------------------------------------

 

INFO: build sun8iw7p1 android dolphin lichee OK

 

INFO: ----------------------------------------

 

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$ ll

总用量 36

drwxrwxr-x  4 rootroot rootroot 4096  5月 16  2017 brandy

drwxr-xr-x  3 rootroot rootroot 4096  4月 27  2017 buildroot

-rwxr-xr-x  1 rootroot rootroot   55  1月 16  2017 build.sh

drwxr-xr-x  2 rootroot rootroot 4096  6月  9 10:04 doc

drwxr-xr-x  2 rootroot rootroot 4096  6月  8 18:40 fa_tools

drwxr-xr-x 27 rootroot rootroot 4096 12月  6 15:00 linux-3.4

drwxrwxr-x  3 rootroot rootroot 4096 12月  6 14:52 out

-rw-r--r--  1 rootroot rootroot   66  1月  9  2017 README

drwxrwxr-x  7 rootroot rootroot 4096 12月  6 10:20 tools

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/lichee$ cd ../android/

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$ source build/envsetup.sh 

including device/softwinner/nanopi-h3/vendorsetup.sh

including device/softwinner/eagle-fvd-p1/vendorsetup.sh

including device/softwinner/eagle-fvd-p1-secure/vendorsetup.sh

including device/softwinner/common/vendorsetup.sh

including device/softwinner/dolphin-fvd-p1/vendorsetup.sh

including device/lge/mako/vendorsetup.sh

including device/lge/hammerhead/vendorsetup.sh

including device/samsung/manta/vendorsetup.sh

including device/generic/x86/vendorsetup.sh

including device/generic/mips/vendorsetup.sh

including device/generic/armv7-a-neon/vendorsetup.sh

including device/asus/tilapia/vendorsetup.sh

including device/asus/deb/vendorsetup.sh

including device/asus/grouper/vendorsetup.sh

including device/asus/flo/vendorsetup.sh

including sdk/bash_completion/adb.bash

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$ lunch

 

You're building on Linux

 

Lunch menu... pick a combo:

     1. aosp_arm-eng

     2. aosp_x86-eng

     3. aosp_mips-eng

     4. vbox_x86-eng

     5. nanopi_h3-eng

     6. eagle_fvd_p1-eng

     7. eagle_fvd_p1_secure-eng

     8. dolphin_fvd_p1-eng

     9. aosp_mako-userdebug

     10. aosp_hammerhead-userdebug

     11. aosp_manta-userdebug

     12. mini_x86-userdebug

     13. mini_mips-userdebug

     14. mini_armv7a_neon-userdebug

     15. aosp_tilapia-userdebug

     16. aosp_deb-userdebug

     17. aosp_grouper-userdebug

     18. aosp_flo-userdebug

 

Which would you like? [aosp_arm-eng] 5

 

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.4.2

TARGET_PRODUCT=nanopi_h3

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a7

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty

HOST_BUILD_TYPE=release

BUILD_ID=KOT49H

OUT_DIR=out

============================================

 

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$ extract-bsp 

/home/wwt/nanopi_h3_bsp/android/device/*/nanopi-h3/bImage copied!

/home/wwt/nanopi_h3_bsp/android/device/*/nanopi-h3/modules copied!

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$ make -j12

 

 

aapt: warning: **** string 'widget_unread' has no default or required localization for 'az_AZ' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

aapt: warning: **** string 'widget_unread' has no default or required localization for 'normal' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

aapt: warning: **** string 'widget_unread' has no default or required localization for 'hdpi' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

aapt: warning: **** string 'widget_unread' has no default or required localization for 'xhdpi' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

aapt: warning: **** string 'widget_unread' has no default or required localization for 'xxhdpi' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

aapt: warning: **** string 'widget_unread' has no default or required localization for 'nodpi' in packages/apps/Email/../../../frameworks/support/v7/gridlayout/res

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

target Strip: libwebviewchromium (out/target/product/nanopi-h3/obj/lib/libwebviewchromium.so)

Install: out/target/product/nanopi-h3/system/lib/libwebviewchromium.so

Install: out/target/product/nanopi-h3/system/framework/webviewchromium.jar

Install: out/target/product/nanopi-h3/fake_packages/webview-timestamp

Install: out/target/product/nanopi-h3/system/app/Email.apk

get/product/nanopi-h3/obj/NOTICE_FILES/src

Combining NOTICE files into HTML

Combining NOTICE files into text

Installed file list: out/target/product/nanopi-h3/installed-files.txt

Target system fs image: out/target/product/nanopi-h3/obj/PACKAGING/systemimage_intermediates/system.img

ts

/bin:/opt/jdk1.6.0_45/jre/bin'

t/jdk1.6.0_45/jre/bin

+ ENABLE_SPARSE_IMAGE=

+ '[' -s = -s ']'

+ ENABLE_SPARSE_IMAGE=-s

+ shift

+ '[' 6 -ne 5 -a 6 -ne 6 ']'

+ SRC_DIR=out/target/product/nanopi-h3/system

+ '[' '!' -d out/target/product/nanopi-h3/system ']'

+ OUTPUT_FILE=out/target/product/nanopi-h3/obj/PACKAGING/systemimage_intermediates/system.img

+ EXT_VARIANT=ext4

+ MOUNT_POINT=system

+ SIZE=805306368

+ FC=out/target/product/nanopi-h3/root/file_contexts

+ case $EXT_VARIANT in

+ '[' -z system ']'

+ '[' -z 805306368 ']'

+ '[' -n out/target/product/nanopi-h3/root/file_contexts ']'

+ FCOPT='-S out/target/product/nanopi-h3/root/file_contexts'

nopi-h3/system'

em

make_ext4fs -s -S out/target/product/nanopi-h3/root/file_contexts -l 805306368 -a system out/target/product/nanopi-h3/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nanopi-h3/system

+ make_ext4fs -s -S out/target/product/nanopi-h3/root/file_contexts -l 805306368 -a system out/target/product/nanopi-h3/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nanopi-h3/system

Creating filesystem with parameters:

    Size: 805306368

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8192

    Inode size: 256

    Journal blocks: 3072

    Label:

    Blocks: 196608

    Block groups: 6

    Reserved block group size: 47

Created filesystem with 1403/49152 inodes and 84282/196608 blocks

+ '[' 0 -ne 0 ']'

Install system fs image: out/target/product/nanopi-h3/system.img

out/target/product/nanopi-h3/system.img+out/target/product/nanopi-h3/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=822163584 blocksize=4224 total=335045504 reserve=8308608

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$ pack

============================================

chip       = sun8iw7p1

platform   = android

board      = nanopi-h3

debug      = uart0

mode       = normal

function   = none

sigmode    = none

============================================

copying tools file

copying configs file

copying boot resource

copying boot file

"sys_config.bin" -> "script.bin"

packing for android

normal

/home/wwt/nanopi_h3_bsp/lichee/tools/pack/pctools/linux/eDragonEx/

/home/wwt/nanopi_h3_bsp/lichee/tools/pack/out

Begin Parse sys_partion.fex

Add partion bootloader.fex BOOTLOADER_FEX00

Add partion very bootloader.fex BOOTLOADER_FEX00

FilePath: bootloader.fex

FileLength=5b4400Add partion env.fex ENV_FEX000000000

Add partion very env.fex ENV_FEX000000000

FilePath: env.fex

FileLength=20000Add partion boot.fex BOOT_FEX00000000

Add partion very boot.fex BOOT_FEX00000000

FilePath: boot.fex

FileLength=b81800Add partion system.fex SYSTEM_FEX000000

Add partion very system.fex SYSTEM_FEX000000

FilePath: system.fex

FileLength=13eb0f58Add partion recovery.fex RECOVERY_FEX0000

Add partion very recovery.fex RECOVERY_FEX0000

FilePath: recovery.fex

FileLength=c64800Add partion sysrecovery.fex SYSRECOVERY_FEX0

Add partion diskfs.fex DISKFS_FEX000000

sys_config.fex Len: 0x5a47

config.fex Len: 0x8998

split_xxxx.fex Len: 0x200

sys_partition.fex Len: 0x117a

boot0_nand.fex Len: 0x8000

boot0_sdcard.fex Len: 0x8000

u-boot.fex Len: 0xe4000

fes1.fex Len: 0x31e0

toc1.fex Len: 0x8

toc0.fex Len: 0x8

usbtool.fex Len: 0x23000

aultools.fex Len: 0x26ead

aultls32.fex Len: 0x238dd

cardtool.fex Len: 0x14000

cardscript.fex Len: 0x6ea

sunxi_mbr.fex Len: 0x10000

dlinfo.fex Len: 0x4000

arisc.fex Len: 0x217aa

bootloader.fex Len: 0x5b4400

Vbootloader.fex Len: 0x4

env.fex Len: 0x20000

Venv.fex Len: 0x4

boot.fex Len: 0xb81800

Vboot.fex Len: 0x4

system.fex Len: 0x13eb0f58

Vsystem.fex Len: 0x4

recovery.fex Len: 0xc64800

Vrecovery.fex Len: 0x4

sysrecovery.fex Len: 0xb

diskfs.fex Len: 0x200

BuildImg 0

Dragon execute image.cfg SUCCESS !

cat: ../../../.config: 没有那个文件或目录

----------image is at----------

 

/home/wwt/nanopi_h3_bsp/lichee/tools/pack/sun8iw7p1_android__uart0.img

 

pack finish

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

rootroot@cm-System-Product-Name:/home/wwt/nanopi_h3_bsp/android$

 

 

现在就可以直接使用PhoenixSuit V1.10刷机了!

 

 01默认中文启动界面360手机助手截图1206_16_06_01.png




02默认应用界面360手机助手截图1206_16_07_01.jpg

 

转载于:https://www.cnblogs.com/wb4916/p/7997628.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/428483.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

验证 Swarm 数据持久性 - 每天5分钟玩转 Docker 容器技术(104)

上一节我们成功将 Rex-Ray Volume 挂载到了 Service。本节验证 Failover 时&#xff0c;数据不会丢失。 Scale Up 增加一个副本&#xff1a; docker service update --replicas 2 my_web 运行之前我们先推测一下&#xff0c;理想的结果应该是&#xff1a;swarm 在 swarm-worker…

java multimap 序列化_C++ JSON库的使用

1. 如何使用&#xff1f;2. 常用方法2.1 创建json对象2.1.1 使用cin,cout输入输出流2.1.2 提供根据键直接生成键值对的方法2.1.3 json::array json::object2.1.4 几个区别2.2 序列化2.2.1 标准输出自动序列化2.2.2 使用dump()函数2.3 反序列化2.3.1 从标准输入反序列化2.3.2 通…

【Excle数据透透视表】如何删除数据透视表

选中区域A4:C17,在键盘上按DELETE键删除&#xff0c;结果提示&#xff1a;那么如何删除呢&#xff1f;解决方案选中整个数透视表&#xff0c;再删除具体操作&#xff1a;选中整个数据透视表→DELETE注意&#xff1a;删除之后&#xff0c;源数据不会受到影响转载于:https://www.…

java 启动redis服务器_docker启动redis并使用java连接

一、先查找镜像docker search redis二、拉取镜像docker pull redis三、等待拉取完毕四、查看拉去的镜像docker iamges五、运行redis连接1&#xff1a;https://blog.csdn.net/weixin_38956287/article/details/80423607连接2&#xff1a;http://www.runoob.com/docker/docker-in…

【算法学习】整体二分

我们开门见山&#xff0c;讲讲一道sb题&#xff1a; 给你一个数组&#xff0c;查这个数组的第x大元素。 排序&#xff1f;可以 二分&#xff1f;怎么做啊&#xff1f; 二分出一个mid&#xff0c;判断这个数组中有多少个数小于等于mid&#xff0c;如果个数大于等于x&#xff0c;…

mysql100个优化技巧_完整篇:100+个MySQL调试和优化技巧(2)

▼MySQL模式优化51.检查和经常优化表.52. 经常重写InnoDB表优化.53. 有时&#xff0c;当添加列时删除索引&#xff0c;然后在添加回来索引&#xff0c;这样就会更快.54. 针对不同的需求&#xff0c;使用不同的存储引擎.55. 使用归档存储引擎日志表或审计表-这是更有效地写道.56…

简单的SQL注入学习

引贴&#xff1a; http://blog.163.com/lucia_gagaga/blog/static/26476801920168184648754/ 首先需要编写一个php页面&#xff0c;讲php页面放入/opt/lampp/htdocs目录下&#xff1a; 解释一下这个页面&#xff1a; 1.通过if语句判断变量是否初始化 2.if语句中通过mysql_conne…

什么是网站监控?

网站监控是跟踪网站的可用性和性能&#xff0c;以最小化宕机时间&#xff0c;优化性能并确保顺畅的用户体验。维护网站正常运行对于任何企业来说都是至关重要的&#xff0c;因而对大多数业务来说&#xff0c;网站应用监控都是一个严峻的挑战。Applications Manager网站应用监控…

intellij idea 分屏设置 与快捷键

1、找到分屏功能 File -> setting -> keymap&#xff0c;搜索&#xff08;注意大小写&#xff09;&#xff1a;   Split Vertically 水平分屏   Split Horizontally 垂直分屏 2、设置快捷键&#xff0c; 编辑快捷键的地方在搜索框同一行&#xff1a;    在标签上直…

SSH整合方案二(不带hibernate.cfg.xml)

整体结构: 1.引入相关jar包 2.编写实体类和映射文件 package cn.zqr.domain;public class Customer {private Long cust_id;private String cust_name;private Long cust_user_id;private Long cust_create_id;private String cust_source;private String cust_industry;privat…

POJ 1742 Coins ( 经典多重部分和问题 DP || 多重背包 )

题意 : 有 n 种面额的硬币&#xff0c;给出各种面额硬币的数量和和面额数&#xff0c;求最多能搭配出几种不超过 m 的金额&#xff1f; 分析 : 这题可用多重背包来解&#xff0c;但这里不讨论这种做法。 如果之前有接触过背包DP的可以自然想到DP数组的定义 > dp[i][j] 表示…

css用hover制作下拉菜单

首先我们的需求就是 制作一个鼠标移动到某个区域就会有下拉菜单的弹出,这样会有更多的子类内容,示例代码如下: <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>Title</title><style>*{mar…

mysql 字典索引_【大白话mysql】你真的了解 mysql 索引吗?

本文来源于公众号&#xff1a; 跬步匠心什么是索引&#xff1f;当我们使用汉语字典查找某个字时&#xff0c;我们会先通过拼音目录查到那个字所在的页码&#xff0c;然后直接翻到字典的那一页&#xff0c;找到我们要查的字&#xff0c;通过拼音目录查找比我们拿起字典从头一页一…

mysql使用jtable_jtable 的简单使用

做后台管理管理系统时&#xff0c;基于ajax的数据操作和富有表现力的数据绑定插件jtable绝对是一个不错的选择&#xff0c;他接收来自服务器端的json格式的数据。而且他是一款开源的基于jquery和jquery ui的插件&#xff0c;您可以根据自己的需要修改其表现&#xff0c;如css&a…

java自定义菜单跳转页面_微信公众号开发 自定义菜单跳转页面并获取用户信息实例详解...

微信公众号开发 自定义菜单请先读完本文再进行配置开发请先前往微信平台开发者文档阅读“网页授权获取用户基本信息”的接口说明在微信公众账号开发中&#xff0c;往往有定义一个菜单&#xff0c;然后用户点击该菜单就进入用户个人中心的功能&#xff0c;通常应用于各个公众账号…

贝叶斯理论基础理解

从贝叶斯方法谈到贝叶斯网络&#xff1a; http://blog.csdn.net/zdy0_2004/article/details/41096141 1 思考模式 比如往台球桌上扔一个球&#xff0c;这个球落会落在何处呢&#xff1f;如果是不偏不倚的把球抛出去&#xff0c;那么此球落在台球桌上的任一位置都有着相同的机…

C++如何实现DNS域名解析转

C如何实现DNS域名解析 这片文章介绍了C如何实现DNS域名解析&#xff0c;还有对相关技术的介绍&#xff0c;代码很详细,需要的朋友可以参考下一、概述 现在来搞定DNS域名解析&#xff0c;其实这是前面一篇文章C实现Ping里面的遗留问题&#xff0c;要干的活是ping的过程中画红线的…

高等代数第3版下 [丘维声 著] 2015年版_2020年成人高考 专升本 高等数学复习攻略...

成人高考的高等数学考试按照专业属性分为理工类和经管类&#xff0c;高等数学一直是成考中的比较不好拿分的科目&#xff0c;也是大家复习备考的难点。今天&#xff0c;小编给大家分享一些答题技巧和必备的公式&#xff0c;帮助大家一起来搞定高等数学&#xff0c;希望这份资料…

java虚拟机10.内存模型与线程

多任务处理在现代计算机操作系统中是一项必备的功能&#xff0c;让计算机同时去做几件事情&#xff0c;不仅是因为计算机的运算能力强大了&#xff0c;更重要的原因是计算机的运算速度与它的存储和通信子系统速度的差距太大&#xff0c;大量的时间都花费在磁盘I/O&#xff0c;网…

php仿微信上传图片压缩,PHP仿微信多图片预览上传实例代码

生产图片区域&#xff0c;上传按钮#btn可替换自己想要的图片plupload上传var uploader new plupload.Uploader({//创建实例的构造方法runtimes: html5,flash,silverlight,html4, //上传插件初始化选用那种方式的优先级顺序browse_button: btn, // 上传按钮url: "ajax.php…