全志 T113 SDK V1.2 学习记录
离线
build/mkcmd.sh
function make_ext4()
{
}
function pack_rootfs()
{
...
case ${LICHEE_BOARD} in
*nor*)
make_squashfs ${ROOTFS}
;;
*nand*)
make_ubifs ${ROOTFS}
;;
*)
if [ "x${LICHEE_FLASH}" = "xnor" ]; then
echo "build spi nor flash rootfs"
make_squashfs ${ROOTFS}
elif [ "x${LICHEE_FLASH}" = "xnand" ];then
echo "build spi nand flash rootfs"
make_ubifs ${ROOTFS}
else
echo "build emmc rootfs"
make_ext4 ${ROOTFS}
fi
;;
esac
...
}
function mkrootfs()
{
...
pack_rootfs $1
...
}
function mklichee()
{
...
mkrootfs $1
...
}
离线
build/mkcommon.sh
################ Parse other arguments ###################
while [ $# -gt 0 ]; do
case "$1" in
config*)
opt=${1##*_};
if [ "${opt}" == "all" ]; then
export CONFIG_ALL=${FLAGS_TRUE};
else
export CONFIG_ALL=${FLAGS_FALSE};
fi
FLAGS_config=${FLAGS_TRUE};
break;
;;
autoconfig)
ACTION="mk_autoconfig;"
FLAGS_config=${FLAGS_TRUE};
break;
;;
loadconfig|menuconfig|saveconfig|mergeconfig) # support t113 compile(linux5.4)
ACTION="kernel_config $@;"
module=""
;;
gen*)
opt=${1##*_};
if [ "${opt}" == "config" ]; then
cd kernel/${LICHEE_KERN_VER}/
printf "\033[47;41mPrepare to use script to generate the android defconfig.\033[0m\n"
ARCH=${LICHEE_ARCH} ./scripts/kconfig/merge_config.sh \
arch/${LICHEE_ARCH}/configs/${LICHEE_CHIP}smp_defconfig \
kernel/configs/android-base.config \
kernel/configs/android-recommended.config \
kernel/configs/sunxi-recommended.config
if [ -f .config ]; then
printf "\033[47;41mComplete the build config,save to ${LICHEE_KERN_VER}/.config !!!\033[0m\n"
cp .config arch/${LICHEE_ARCH}/configs/${LICHEE_CHIP}smp_android_defconfig
fi
cd ..
exit 0
else
echo "Do not support this command!!"
exit 1
fi
break;
;;
pack*)
optlist=$(echo ${1#pack} | sed 's/_/ /g')
mode=""
for opt in $optlist; do
case "$opt" in
debug)
mode="$mode -d card0"
;;
dump)
mode="$mode -m dump"
;;
prvt)
mode="$mode -f prvt"
;;
secure)
mode="$mode -s secure"
;;
prev)
mode="$mode -s prev_refurbish"
;;
crash)
mode="$mode -m crashdump"
;;
vsp)
mode="$mode -t vsp"
;;
raw)
mode="$mode -w programmer"
;;
verity)
mode="$mode --verity"
;;
signfel)
mode="$mode --signfel"
;;
*)
mk_error "Invalid pack option $opt"
exit 1
;;
esac
done
######### Don't build other module, if pack firmware ########
ACTION="mkpack ${mode};";
module="";
break;
;;
buildroot)
ACTION="mkbr;";
module=buildroot;
break;
;;
ramfs)
ACTION="mkramfs;";
module=ramfs;
break;
;;
clean|distclean|rootfs)
ACTION="mk${1};";
module="";
break;
;;
bootloader)
ACTION="mk${1};";
module="bootloader";
break;
;;
brandy)
ACTION="mk${1};";
module="brandy";
break;
;;
kernel)
ACTION="mkkernel;";
module="kernel";
break;
;;
recovery)
ACTION="mkrecovery;";
module="recovery";
break;
;;
dts)
ACTION="mkdts;";
module="";
break
;;
*) ;;
esac;
shift;
done
编译buildroot:
./build.sh buildroot
编译uboot:
./build.sh brandy
./build.sh bootloader
编译Linux:
./build.sh kernel
编译dts:
./build.sh dts
打包文件系统:
./build.sh rootfs
./build.sh buildroot_rootfs
配置buildroot package:
./build.sh buildroot_menuconfig
配置openwrt package:
./build.sh openwrt_menuconfig
配置Linux:
./build.sh menuconfig
离线
如何找到 buildroot 的配置文件:
device/config/chips/t113/configs/evb1_auto_nor/BoardConfig.mk
LICHEE_CHIP:=sun8iw20p1
LICHEE_ARCH:=arm
LICHEE_PRODUCT:=t113_evb1_auto_nor
LICHEE_BRANDY_VER:=2.0
LICHEE_FLASH:=nor
LICHEE_BRANDY_DEFCONF:=sun8iw20p1_auto_defconfig
LICHEE_KERN_VER:=5.4
LICHEE_KERN_DEFCONF:=config-5.4
LICHEE_COMPILER_TAR:=arm/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi.tar.xz
LICHEE_BUILDING_SYSTEM:=buildroot
LICHEE_BR_VER:=201902
LICHEE_BR_DEFCONF:=sun8iw20p1_t113_nor_defconfig
LICHEE_BR_RAMFS_CONF=sun8iw20p1_ramfs_defconfig
LICHEE_COMPRESS:=gzip
LICHEE_NO_RAMDISK_NEEDED:=y
LICHEE_REDUNDANT_ENV_SIZE:=0x20000
那么 LICHEE_BR_DEFCONF:=sun8iw20p1_t113_nor_defconfig
这个 sun8iw20p1_t113_nor_defconfig 就是 buildroot的配置文件了:
buildroot/buildroot-201902/configs/sun8iw20p1_t113_nor_defconfig
离线
ubuntu 106929 105940 0 11:14 pts/1 00:00:00 /bin/bash ./build.sh
ubuntu 106933 106929 0 11:14 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
ubuntu 108878 106933 0 11:14 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
ubuntu 108879 108878 0 11:14 pts/1 00:00:00 /bin/bash ./build.sh -p sun8iw20p1_auto_t113_i -b t113_i -o all
ubuntu 108880 108878 1 11:14 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
root 114896 1 0 08:11 ? 00:00:00 /usr/sbin/cupsd -l
root 114897 1 0 08:11 ? 00:00:00 /usr/sbin/cups-browsed
ubuntu 115002 1471 0 08:13 ? 00:00:00 /usr/lib/gvfs/gvfsd-network --spawner :1.22 /org/gtk/gvfs/exec_spaw/2
root 115068 2 0 08:14 ? 00:00:00 [kworker/6:3-eve]
ubuntu 115084 1471 0 08:14 ? 00:00:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.22 /org/gtk/gvfs/exec_spaw/13
root 115107 2 0 08:14 ? 00:00:01 [kworker/5:0-eve]
root 115117 2 0 08:15 ? 00:00:01 [kworker/0:0-eve]
ubuntu 120995 108879 0 11:14 pts/1 00:00:00 /bin/bash ./build.sh -p sun8iw20p1_auto_t113_i -b t113_i -o all
ubuntu 123803 120995 1 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/make_dir/make4.1/bin/make CROSS_COMPILE=/opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro
ubuntu 128124 123803 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/make_dir/make4.1/bin/make -f ./scripts/Makefile.build obj=drivers/mtd/spi
ubuntu 128145 128124 0 11:14 pts/1 00:00:00 /bin/sh -c set -e; ? echo ' CC drivers/mtd/spi/spi-nor-core.o'; /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-
ubuntu 128153 128145 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc -Wp,-MD,drivers/mtd/s
ubuntu 128156 128153 56 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/cc1
ubuntu 128159 128153 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/7.2.1/../../..
ubuntu 128612 123803 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/make_dir/make4.1/bin/make -f ./scripts/Makefile.build obj=drivers/serial
ubuntu 128627 128612 0 11:14 pts/1 00:00:00 /bin/sh -c set -e; ? echo ' CC drivers/serial/serial.o'; /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_
ubuntu 128629 128612 0 11:14 pts/1 00:00:00 /bin/sh -c set -e; ? echo ' CC drivers/serial/serial_ns16550.o'; /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11
ubuntu 128630 128627 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc -Wp,-MD,drivers/seria
ubuntu 128633 128629 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc -Wp,-MD,drivers/seria
ubuntu 128635 128612 0 11:14 pts/1 00:00:00 /bin/sh -c set -e; ? echo ' CC drivers/serial/ns16550.o'; /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64
ubuntu 128637 128630 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/cc1
ubuntu 128638 128630 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/7.2.1/../../..
ubuntu 128639 128635 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc -Wp,-MD,drivers/seria
ubuntu 128640 128633 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/cc1
ubuntu 128642 128633 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/7.2.1/../../..
ubuntu 128643 128639 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/cc1
ubuntu 128645 128639 0 11:14 pts/1 00:00:00 /opt/T113-Tina5.0-V1.2/brandy/brandy-2.0/tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/7.2.1/../../..
ubuntu 128668 1819 0 11:14 pts/0 00:00:00 ps -Af
ubuntu 16907 105940 0 10:35 pts/1 00:00:00 /bin/bash ./build.sh
ubuntu 16911 16907 0 10:35 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
root 26876 2 0 07:43 ? 00:00:10 [kworker/7:0-mm_]
ubuntu 35550 1 0 10:41 tty1 00:00:00 /usr/bin/python3 /usr/share/apport/apport-gtk
root 72545 2 0 10:45 ? 00:00:00 [kworker/7:1-eve]
root 73898 2 0 10:45 ? 00:00:00 [kworker/u256:0-]
root 78794 2 0 10:49 ? 00:00:00 [kworker/4:0-mm_]
root 79887 2 0 10:49 ? 00:00:00 [kworker/1:0-eve]
ubuntu 88238 16911 0 10:38 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
ubuntu 88239 88238 0 10:38 pts/1 00:00:00 /bin/bash /opt/T113-Tina5.0-V1.2/build/mkcommon.sh
ubuntu 88240 88239 0 10:38 pts/1 00:00:00 make O=/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot -C /opt/T113-Tina5.0-V1.2/buildroot/buildroot-201902
ubuntu 88249 88240 1 10:38 pts/1 00:00:13 make -C /opt/T113-Tina5.0-V1.2/buildroot/buildroot-201902 --no-print-directory O=/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot
ubuntu 92898 88249 0 10:49 pts/1 00:00:00 /usr/bin/make -j9 -C /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/build/host-ncurses-6.1/progs tic
ubuntu 92903 92898 0 10:49 pts/1 00:00:00 /bin/bash -c cd ../ncurses; /usr/bin/make - -j --jobserver-fds=3,4 --no-print-directory
ubuntu 92906 92903 4 10:49 pts/1 00:00:00 /usr/bin/make - -j --jobserver-fds=3,4 --no-print-directory
ubuntu 93718 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93720 93718 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93751 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93754 93751 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93767 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93780 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93781 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93783 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93784 93781 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93785 93783 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93786 93780 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93788 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93790 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93791 92906 0 10:49 pts/1 00:00:00 /usr/bin/gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -I/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/include -D_GNU_SOURCE
ubuntu 93792 93790 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93793 93788 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93794 93791 0 10:49 pts/1 00:00:00 /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -I ../ncurses -I . -I ../include -I /opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot/host/incl
ubuntu 93795 1819 0 10:49 pts/0 00:00:00 ps -Af
看下脚本调用关系
./build.sh
->
/opt/T113-Tina5.0-V1.2/build/mkcommon.sh
->
/opt/T113-Tina5.0-V1.2/build/mkcommon.sh
->
make O=/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot -C /opt/T113-Tina5.0-V1.2/buildroot/buildroot-201902
->
make -C /opt/T113-Tina5.0-V1.2/buildroot/buildroot-201902 --no-print-directory O=/opt/T113-Tina5.0-V1.2/out/t113/evb1_auto_nor/buildroot/buildroot
离线
nor flash的buildroot配置:
buildroot/buildroot-201902/configs/sun8iw20p1_t113_nor_defconfig
其他存储器的buildroot配置:
buildroot/buildroot-201902/configs/sun8iw20p1_t113_defconfig
buildroot/buildroot-201902/configs/sun8iw20p1_t113_defconfig 内容:
BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_EABI=y
BR2_SVN="svn"
BR2_JLEVEL=16
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_GENERIC_HOSTNAME="kunos"
BR2_TARGET_GENERIC_ISSUE="Welcome to Allwinner KunoOS Platform"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_SYSTEM_BIN_SH_BASH=y
# BR2_TARGET_GENERIC_GETTY is not set
BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/../config/buildroot/post_build.sh"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_SDK_MEMORY_TEST=y
BR2_PACKAGE_ALPHA_TEST=y
BR2_PACKAGE_LCD_BRIGHT_TEST=y
BR2_PACKAGE_MEM_TEST_DE=y
BR2_PACKAGE_YUV_TEST=y
BR2_PACKAGE_SDK_G2D_TEST=y
BR2_PACKAGE_SDK_COMMON=y
BR2_PACKAGE_CSI_TEST=y
BR2_PACKAGE_FBINIT_TEST=y
BR2_PACKAGE_GPIO_TEST=y
BR2_PACKAGE_MULTISCREEN_TEST=y
BR2_PACKAGE_TPADC_TEST=y
BR2_PACKAGE_SDK_ENDEC=y
BR2_PACKAGE_SDK_DECODER_TEST=y
BR2_PACKAGE_SDK_ENCODER_TEST=y
BR2_PACKAGE_SDK_GIF2RGB_TEST=y
BR2_PACKAGE_SDK_CAMERA=y
BR2_PACKAGE_AUDIO_ENC_TEST=y
BR2_PACKAGE_DVR_TEST=y
BR2_PACKAGE_RECORD_TEST=y
BR2_PACKAGE_TVD_TEST=y
BR2_PACKAGE_USB_CAMERA_TEST=y
BR2_PACKAGE_SDK_PLAYER=y
BR2_PACKAGE_AUTPLAYER_TEST=y
BR2_PACKAGE_STREAM_LAYER_TEST=y
LUAPI_LAYER_ALLOC_LAY=y
BR2_PACKAGE_PQD=y
BR2_PACKAGE_TPLAYERDEMO=y
BR2_PACKAGE_TRECORDERDEMO=y
BR2_PACKAGE_BACKPLAYDEMO=y
BR2_PACKAGE_JPEGDECODEDEMO=y
BR2_PACKAGE_ENCODERTEST=y
BR2_PACKAGE_TPLAYER=y
BR2_PACKAGE_TRECORDER=y
BR2_PACKAGE_AEENC_COMP_DEMO=y
BR2_PACKAGE_RECORDER_DEMO=y
BR2_PACKAGE_VENC_COMP_DEMO=y
BR2_PACKAGE_LIBCEDARSE=y
BR2_PACKAGE_AMP_SHELL=y
BR2_PACKAGE_BUSYBOX_INIT_BASE_FILES=y
BR2_PACKAGE_OTA_BURNBOOT=y
BR2_PACKAGE_RPBUF=y
BR2_PACKAGE_RPBUF_DEMO=y
BR2_PACKAGE_RPBUF_TEST=y
BR2_PACKAGE_RPMSG=y
BR2_PACKAGE_RPMSG_DEMO=y
BR2_PACKAGE_RPMSG_TEST=y
BR2_PACKAGE_ADBD=y
BR2_PACKAGE_CPU_MONITOR=y
BR2_PACKAGE_MTOP=y
BR2_PACKAGE_BTMANAGER=y
BR2_PACKAGE_BTMG_DEMO=y
BR2_PACKAGE_WIFI_FIRMWARE=y
BR2_PACKAGE_XR829_FIRMWARE=y
BR2_PACKAGE_XR829_USE_40M=y
BR2_PACKAGE_WIFIMANAGER=y
BR2_PACKAGE_WIFIMANAGER_LIB=y
BR2_PACKAGE_WIFIMANAGER_DEMO=y
BR2_PACKAGE_LV_G2D_TEST=y
BR2_PACKAGE_ALSA_UTILS=y
BR2_PACKAGE_ALSA_UTILS_AMIXER=y
BR2_PACKAGE_ALSA_UTILS_APLAY=y
BR2_PACKAGE_BLUEZ_ALSA_HCITOP=y
BR2_PACKAGE_BLUEZ_ALSA_RFCOMM=y
BR2_PACKAGE_FAAD2=y
BR2_PACKAGE_FLAC=y
BR2_PACKAGE_GSTREAMER1=y
BR2_PACKAGE_GST1_PLUGINS_GOOD=y
BR2_PACKAGE_GST1_PLUGINS_BAD=y
BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGDEMUX=y
BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGTSDEMUX=y
BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOPARSERS=y
BR2_PACKAGE_GST_OMX=y
BR2_PACKAGE_LAME=y
BR2_PACKAGE_MPG123=y
BR2_PACKAGE_MUSEPACK=y
BR2_PACKAGE_WAVPACK=y
BR2_PACKAGE_LIBTOOL=y
BR2_PACKAGE_DOSFSTOOLS=y
BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT=y
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_EXFAT=y
BR2_PACKAGE_EXFAT_UTILS=y
BR2_PACKAGE_MTD=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_NTFS_3G_ENCRYPTED=y
BR2_PACKAGE_NTFS_3G_NTFSPROGS=y
BR2_PACKAGE_DIRECTFB=y
BR2_PACKAGE_FREERDP=y
# BR2_PACKAGE_FREERDP_CLIENT_WL is not set
BR2_PACKAGE_DTV_SCAN_TABLES=y
BR2_PACKAGE_I2C_TOOLS=y
BR2_PACKAGE_LIBUMP=y
BR2_PACKAGE_MEMTESTER=y
BR2_PACKAGE_MINICOM=y
BR2_PACKAGE_UBOOT_TOOLS=y
BR2_PACKAGE_UBOOT_TOOLS_HAVEREDUNDENV=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_FDK_AAC=y
BR2_PACKAGE_LIBMAD=y
BR2_PACKAGE_LIBSAMPLERATE=y
BR2_PACKAGE_OPUS=y
BR2_PACKAGE_SPEEX=y
BR2_PACKAGE_TAGLIB=y
BR2_PACKAGE_TREMOR=y
BR2_PACKAGE_VO_AACENC=y
BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING=y
BR2_PACKAGE_MYSQL=y
BR2_PACKAGE_POSTGRESQL=y
BR2_PACKAGE_LIBCONFIG=y
BR2_PACKAGE_LIBJPEG=y
BR2_PACKAGE_LIBRSVG=y
BR2_PACKAGE_LIBVA=y
BR2_PACKAGE_OPENJPEG=y
BR2_PACKAGE_WAYLAND=y
BR2_PACKAGE_WAYLAND_PROTOCOLS=y
BR2_PACKAGE_WEBP=y
BR2_PACKAGE_LIBINPUT=y
BR2_PACKAGE_LIBUSB=y
BR2_PACKAGE_LIBV4L=y
BR2_PACKAGE_LIBV4L_UTILS=y
BR2_PACKAGE_LIBXKBCOMMON=y
BR2_PACKAGE_LIBASS=y
BR2_PACKAGE_LIBDVDREAD=y
BR2_PACKAGE_LIBMMS=y
BR2_PACKAGE_LIBMPEG2=y
BR2_PACKAGE_LIBOPENH264=y
BR2_PACKAGE_LIBTHEORA=y
BR2_PACKAGE_LIBVPX=y
BR2_PACKAGE_X264=y
BR2_PACKAGE_X265=y
BR2_PACKAGE_LIBCURL=y
BR2_PACKAGE_LIBRSYNC=y
BR2_PACKAGE_LIBSOCKETCAN=y
BR2_PACKAGE_LIBSOUP=y
BR2_PACKAGE_LIBSRTP=y
BR2_PACKAGE_NEON=y
BR2_PACKAGE_RTMPDUMP=y
BR2_PACKAGE_LIBICAL=y
BR2_PACKAGE_LIBUCI=y
BR2_PACKAGE_PCRE_16=y
BR2_PACKAGE_PCRE_32=y
BR2_PACKAGE_PCRE2=y
BR2_PACKAGE_PCRE2_16=y
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
BR2_PACKAGE_BLUEZ5_UTILS_MONITOR=y
BR2_PACKAGE_BLUEZ5_UTILS_TOOLS=y
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NETWORK is not set
BR2_PACKAGE_CAN_UTILS=y
BR2_PACKAGE_DNSMASQ=y
BR2_PACKAGE_DNSMASQ_DNSSEC=y
BR2_PACKAGE_DNSMASQ_IDN=y
BR2_PACKAGE_DNSMASQ_CONNTRACK=y
BR2_PACKAGE_HOSTAPD=y
BR2_PACKAGE_HOSTAPD_EAP=y
BR2_PACKAGE_HOSTAPD_WPS=y
BR2_PACKAGE_IPERF=y
BR2_PACKAGE_IPERF3=y
BR2_PACKAGE_IPROUTE2=y
BR2_PACKAGE_IPTABLES=y
BR2_PACKAGE_IPTABLES_BPF_NFSYNPROXY=y
BR2_PACKAGE_IPTABLES_NFTABLES=y
BR2_PACKAGE_IW=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_WIFI_DISPLAY=y
BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING=y
BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
BR2_PACKAGE_WPA_SUPPLICANT_EAP=y
BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT=y
BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_ANDROID_TOOLS=y
BR2_PACKAGE_SWUPDATE=y
SWUPDATE_CONFIG_DOWNLOAD=y
BR2_PACKAGE_VIM=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="512M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_DTC=y
BR2_PACKAGE_HOST_GENEXT2FS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
buildroot/buildroot-201902/configs/sun8iw20p1_t113_defconfig 内容:
BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_EABI=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_GENERIC_HOSTNAME="kunos"
BR2_TARGET_GENERIC_ISSUE="Welcome to Allwinner KunoOS Platform"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
BR2_PACKAGE_SDK_MEMORY_TEST=y
BR2_PACKAGE_ALPHA_TEST=y
BR2_PACKAGE_LCD_BRIGHT_TEST=y
BR2_PACKAGE_MEM_TEST_DE=y
BR2_PACKAGE_TVD_TEST=y
BR2_PACKAGE_YUV_TEST=y
BR2_PACKAGE_SDK_G2D_TEST=y
BR2_PACKAGE_SDK_COMMON=y
BR2_PACKAGE_CSI_TEST=y
BR2_PACKAGE_FBINIT_TEST=y
BR2_PACKAGE_GPIO_TEST=y
BR2_PACKAGE_MULTISCREEN_TEST=y
BR2_PACKAGE_TPADC_TEST=y
BR2_PACKAGE_SDK_ENDEC=y
BR2_PACKAGE_SDK_DECODER_TEST=y
BR2_PACKAGE_SDK_ENCODER_TEST=y
BR2_PACKAGE_SDK_GIF2RGB_TEST=y
BR2_PACKAGE_SDK_CAMERA=y
BR2_PACKAGE_AUDIO_ENC_TEST=y
BR2_PACKAGE_DVR_TEST=y
BR2_PACKAGE_RECORD_TEST=y
BR2_PACKAGE_USB_CAMERA_TEST=y
BR2_PACKAGE_SDK_PLAYER=y
BR2_PACKAGE_AUTPLAYER_TEST=y
BR2_PACKAGE_STREAM_LAYER_TEST=y
BR2_PACKAGE_BUSYBOX_INIT_BASE_FILES=y
BR2_PACKAGE_OTA_BURNBOOT=y
BR2_PACKAGE_ADBD=y
# LVGL8_USE_SUNXIFB_DOUBLE_BUFFER is not set
# LVGL8_USE_SUNXIFB_CACHE is not set
BR2_PACKAGE_MTD=y
BR2_PACKAGE_MTD_MKFSJFFS2=y
BR2_PACKAGE_LIBCONFIG=y
BR2_PACKAGE_LIBCURL=y
BR2_PACKAGE_LIBLDNS=y
BR2_PACKAGE_LIBRSYNC=y
BR2_PACKAGE_NCURSES=y
BR2_PACKAGE_ANDROID_TOOLS=y
离线
T113 SDK V1.2 t113_i/evb1_auto_nor 修改调试串口就能在哪吒开发板跑起来:
/opt/T113-Tina5.0-V1.2/device/config/chips/t113_i/configs/evb1_auto_nor
ubuntu@ubuntu:/opt/T113-Tina5.0-V1.2/device/config/chips/t113_i/configs/evb1_auto_nor$ git diff
diff --git a/configs/evb1_auto_nor/linux-5.4/board.dts b/configs/evb1_auto_nor/linux-5.4/board.dts
index 581b30c..63417bb 100644
--- a/configs/evb1_auto_nor/linux-5.4/board.dts
+++ b/configs/evb1_auto_nor/linux-5.4/board.dts
@@ -382,17 +382,17 @@
};
uart0_pins_a: uart0_pins@0 { /* For EVB1 board */
- pins = "PG17", "PG18";
+ pins = "PB8", "PB9";
function = "uart0";
drive-strength = <10>;
bias-pull-up;
};
uart0_pins_b: uart0_pins@1 { /* For EVB1 board */
- pins = "PG17", "PG18";
+ pins = "PB8", "PB9";
function = "gpio_in";
};
-
+
uart1_pins_a: uart1_pins@0 { /* For EVB1 board */
pins = "PG6", "PG7", "PG8", "PG9";
function = "uart1";
diff --git a/configs/evb1_auto_nor/sys_config.fex b/configs/evb1_auto_nor/sys_config.fex
index 9a33241..b5dac6b 100755
--- a/configs/evb1_auto_nor/sys_config.fex
+++ b/configs/evb1_auto_nor/sys_config.fex
@@ -734,8 +734,8 @@ twi_sda = port:PC1<3><1><default><default>
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
-uart_debug_tx = port:PG17<7><1><default><default>
-uart_debug_rx = port:PG18<7><1><default><default>
+uart_debug_tx = port:PB8<6><1><default><default>
+uart_debug_rx = port:PB9<6><1><default><default>
;----------------------------------------------------------------------------------
diff --git a/configs/evb1_auto_nor/sys_partition_nor.fex b/configs/evb1_auto_nor/sys_partition_nor.fex
index fa4114e..c560454 100755
--- a/configs/evb1_auto_nor/sys_partition_nor.fex
+++ b/configs/evb1_auto_nor/sys_partition_nor.fex
@@ -59,6 +59,6 @@ size = 16
[partition]
name = rootfs
- size = 13312
+ size = 14312
downloadfile = "rootfs_nor.fex"
user_type = 0x8000
离线
#
# df
Filesystem 1K-blocks Used Available Use% Mounted on
ubi0_5 29864 29864 0 100% /
df: /dev/shm: No such file or directory
tmpfs 116820 28 116792 0% /tmp
tmpfs 116820 20 116800 0% /run
devtmpfs 106116 0 106116 0% /dev
/dev/by-name/UDISK 38156 4748 31420 13% /mnt/UDISK
#
#
# mount
ubi0_5 on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=5)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=106116k,nr_inodes=26529,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
none on /sys/kernel/config type configfs (rw,relatime)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/by-name/UDISK on /mnt/UDISK type ubifs (rw,relatime,assert=read-only,ubi=0,vol=8)
none on /sys/kernel/debug type debugfs (rw,relatime)
#
默认没有实现 overlayfs 文件系统
离线
SDK 1.2 版本支持 linux5.10,这样顺便解决了2038千年虫问题
顺手测试一下:
# cat /proc/version
Linux version 5.10.198 (ubuntu@ubuntu) (arm-linux-gnueabihf-gcc (GCC) 11.3.1 20220604 [releases/gcc-11 revision 591c0f4b92548e3ae2e8173f4f93984b1c7f62bb], GNU ld (Linaro_Binutils-2022.06) 2.37.20220122) #1 SMP PREEMPT Tue Apr 22 13:16:51 CST 2025
#
#
#
# date -s '2039-1-1'
Sat Jan 1 00:00:00 UTC 2039
#
# date
Sat Jan 1 00:00:01 UTC 2039
#
离线
Linux源码位置:
kernel/linux-5.10-origin/
bsp位置:
kernel/linux-5.10-origin/bsp/
bsp实际存放位置:
bsp/
源码版本:
Linux 5.10.198
单独下载官方源码:
https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.198.tar.xz
build/bsp.sh 在这里合并SDK:
export LICHEE_BSP_DIR=${LICHEE_TOP_DIR}/bsp
BSP_DIR=${LICHEE_BSP_DIR}
function merge_bsp()
{
LOGV "${FUNCNAME[0]}() BEGIN"
LOGD "Remove BSP files"
pushd ${KER_DIR} >/dev/null
rm $VERBOSE -rf bsp
cp $VERBOSE -ar ${BSP_DIR} ./
popd >/dev/null
LOGV "${FUNCNAME[0]}() END"
}
$ ./build.sh kernel
04-22 17:07:44.416 88561 D mkcommon : ========ACTION List: build_kernel ;========
04-22 17:07:44.417 88561 D mkcommon : options :
04-22 17:07:44.418 88561 I mkcommon : build kernel ...
04-22 17:07:44.419 88561 I mkcommon : prepare_buildserver
04-22 17:07:44.428 88561 I mkcommon : Prepare toolchain ...
04-22 17:07:44.464 88605 D bsp : Setup BSP files
04-22 17:07:45.589 88617 D mkkernel : 2 ,/opt/T113-Tina5.0-V1.2_linux5.10/kernel/linux-5.10-origin, /opt/T113-Tina5.0-V1.2_linux5.10/kernel/linux-5.10-origin
04-22 17:07:45.652 88617 D mkkernel : sunxi power version is 1.0.1
04-22 17:07:46.710 88617 D mkkernel : Building kernel
function setup_bsp()
{
LOGV "${FUNCNAME[0]}() BEGIN"
LOGD "Setup BSP files"
pushd "${KER_DIR}" >/dev/null
rm $VERBOSE -rf bsp
ln $VERBOSE -sr ${BSP_DIR} bsp
popd >/dev/null
LOGV "${FUNCNAME[0]}() END"
}
离线
[3657]fes begin commit:1417090655
[3660]set pll start
[3662]fix vccio detect value:0xc0
[3669]periph0 has been enabled
[3672]set pll end
[3674][pmu]: bus read error
[3676]board init ok
[3678]beign to init dram
[3680]get_pmu_exist() = -1
[3683]ddr_efuse_type: 0x0
[3685]trefi:7.8ms
[3688][AUTO DEBUG] two rank and full DQ!
[3691]ddr_efuse_type: 0x0
[3694]trefi:7.8ms
[3696][AUTO DEBUG] rank 0 row = 15
[3699][AUTO DEBUG] rank 0 bank = 8
[3703][AUTO DEBUG] rank 0 page size = 2 KB
[3706][AUTO DEBUG] rank 1 row = 15
[3710][AUTO DEBUG] rank 1 bank = 8
[3713][AUTO DEBUG] rank 1 page size = 2 KB
[3717]rank1 config same as rank0
[3720]DRAM BOOT DRIVE INFO: V0.33
[3723]DRAM CLK = 792 MHz
[3725]DRAM Type = 3 (2:DDR2,3:DDR3)
[3728]DRAMC ZQ value: 0x7b7bfb
[3731]DRAM ODT value: 0x42.
[3734]ddr_efuse_type: 0x0
[3737]DRAM SIZE =1024 M
[3739]dram_tpr4:0x0
[3741]PLL_DDR_CTRL_REG:0xf8004100
[3744]DRAM_CLK_REG:0xc0000000
[3747][TIMING DEBUG] MR2= 0x18
[3751]DRAM simple test OK.
[3753]rtc standby flag is 0x0, super standby flag is 0x0
[3758]init dram ok
U-Boot 2018.07-gd9e6718-dirty (Apr 10 2025 - 18:07:08 +0800) Allwinner Technology
[06.291]CPU: Allwinner Family
[06.294]Model: sun8iw20
[06.296]DRAM: 512 MiB
[06.300]Relocation Offset is: 1ceb2000
[06.328]secure enable bit: 0
[06.331]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[06.337]gic: normal mode
sunxi flash map init
SPI ALL: ready
[06.344]flash init start
[06.346]workmode = 16,storage type = 0
try card 0
set card number 0
get card number 0
[06.354][mmc]: mmc driver ver uboot2018:2022-12-07 18:56:00
[06.359][mmc]: get sdc_type fail and use default host:tm1.
[06.365][mmc]: can't find node "mmc0",will add new node
[06.370][mmc]: fdt err returned <no error>
[06.374][mmc]: Using default timing para
[06.377][mmc]: SUNXI SDMMC Controller Version:0x50310
[06.391][mmc]: mmc 0 cmd timeout 100 status 100
[06.395][mmc]: smc 0 err, cmd 8, RTO
[06.399][mmc]: mmc 0 close bus gating and reset
[06.404][mmc]: mmc 0 cmd timeout 100 status 100
[06.408][mmc]: smc 0 err, cmd 55, RTO
[06.411][mmc]: mmc 0 close bus gating and reset
[06.420][mmc]: mmc 0 cmd timeout 100 status 100
[06.424][mmc]: smc 0 err, cmd 1, RTO
[06.427][mmc]: mmc 0 close bus gating and reset
[06.432][mmc]: Card did not respond to voltage select!
[06.436][mmc]: mmc_init: -95, time 54
[06.440][mmc]: mmc_init: mmc init fail, err -95
MMC init failed
try emmc fail
[06.447]sunxi-spinand: AW SPINand MTD Layer Version: 1.8 20220106
[06.453]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.11 20211217
[06.461]sunxi-spinand-phy: request spi0 gpio ok
[06.465]sunxi-spinand-phy: request general tx dma channel ok!
[06.470]sunxi-spinand-phy: request general rx dma channel ok!
[06.476]sunxi-spinand-phy: set spic0 clk to 20 Mhz
[06.480]sunxi-spinand-phy: init spic0 clk ok
[06.484]sunxi-spinand-phy: detect munufacture from id table: Winbond
[06.490]sunxi-spinand-phy: detect spinand id: ff22aaef ffffffff
[06.496]sunxi-spinand-phy: ========== arch info ==========
[06.501]sunxi-spinand-phy: Model: W25N02KVZEIR
[06.507]sunxi-spinand-phy: Munufacture: Winbond
[06.511]sunxi-spinand-phy: DieCntPerChip: 1
[06.516]sunxi-spinand-phy: BlkCntPerDie: 2048
[06.521]sunxi-spinand-phy: PageCntPerBlk: 64
[06.525]sunxi-spinand-phy: SectCntPerPage: 4
[06.529]sunxi-spinand-phy: OobSizePerPage: 64
[06.534]sunxi-spinand-phy: BadBlockFlag: 0x0
[06.539]sunxi-spinand-phy: OperationOpt: 0xf
[06.543]sunxi-spinand-phy: MaxEraseTimes: 60000
[06.548]sunxi-spinand-phy: EccFlag: 0x0
[06.553]sunxi-spinand-phy: EccType: 4
[06.557]sunxi-spinand-phy: EccProtectedType: 2
[06.561]sunxi-spinand-phy: ========================================
[06.567]sunxi-spinand-phy:
[06.570]sunxi-spinand-phy: ========== physical info ==========
[06.575]sunxi-spinand-phy: TotalSize: 256 M
[06.580]sunxi-spinand-phy: SectorSize: 512 B
[06.584]sunxi-spinand-phy: PageSize: 2 K
[06.588]sunxi-spinand-phy: BlockSize: 128 K
[06.592]sunxi-spinand-phy: OOBSize: 64 B
[06.596]sunxi-spinand-phy: ========================================
[06.602]sunxi-spinand-phy:
[06.604]sunxi-spinand-phy: ========== logical info ==========
[06.610]sunxi-spinand-phy: TotalSize: 256 M
[06.614]sunxi-spinand-phy: SectorSize: 512 B
[06.618]sunxi-spinand-phy: PageSize: 4 K
[06.622]sunxi-spinand-phy: BlockSize: 256 K
[06.626]sunxi-spinand-phy: OOBSize: 128 B
[06.631]sunxi-spinand-phy: ========================================
[06.637]sunxi-spinand-phy: W25N02KVZEIR reset rx bit width to 1
[06.642]sunxi-spinand-phy: W25N02KVZEIR reset tx bit width to 1
[06.648]sunxi-spinand-phy: block lock register: 0x00
[06.653]sunxi-spinand-phy: feature register: 0x00
[06.657]sunxi-spinand-phy: sunxi physic nand init end
[07.662]sunxi-spinand: read single page failed: -110
[08.667]sunxi-spinand-phy: set spic0 clk to 100 Mhz
[73.748]sunxi-spinand: read single page failed: -110
[74.754]sunxi-spinand: read single page failed: -110
SDK不支持 W25N02KVZEIR
离线
@memory
直接使用V1.2版本编译在evb1板子上面跑,发现进入不了文件系统,提示如下:
[ 2.917671] ALSA device list:
[ 2.921001] #0: audiocodec
[ 2.924890] VFS: Cannot open root device "mmcblk0p5" or unknown-block(0,0): error -6
[ 2.933686] Please append a correct "root=" boot option; here are the available partitions:
[ 2.943171] 0800 8192 sda
[ 2.943178] driver: sd
[ 2.950090] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.959373] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.198 #1
[ 2.966209] Hardware name: Generic DT based system
[ 2.971610] [<c010d4b0>] (unwind_backtrace) from [<c0109998>] (show_stack+0x10/0x14)
[ 2.980310] [<c0109998>] (show_stack) from [<c07efa14>] (dump_stack+0x7c/0x98)
[ 2.988426] [<c07efa14>] (dump_stack) from [<c07ebd00>] (panic+0x11c/0x31c)
[ 2.996250] [<c07ebd00>] (panic) from [<c0c0148c>] (mount_block_root+0x274/0x308)
[ 3.004657] [<c0c0148c>] (mount_block_root) from [<c0c016c4>] (prepare_namespace+0x134/0x170)
[ 3.014232] [<c0c016c4>] (prepare_namespace) from [<c07fbc24>] (kernel_init+0x8/0x118)
[ 3.023124] [<c07fbc24>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[ 3.031620] Exception stack(0xc103bfb0 to 0xc103bff8)
[ 3.037289] bfa0: 00000000 00000000 00000000 00000000
[ 3.046471] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.055651] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 3.063592] CPU1: stopping
[ 3.066631] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.198 #1
[ 3.073467] Hardware name: Generic DT based system
[ 3.078850] [<c010d4b0>] (unwind_backtrace) from [<c0109998>] (show_stack+0x10/0x14)
[ 3.087547] [<c0109998>] (show_stack) from [<c07efa14>] (dump_stack+0x7c/0x98)
[ 3.095658] [<c07efa14>] (dump_stack) from [<c010afe4>] (do_handle_IPI+0x88/0x128)
[ 3.104160] [<c010afe4>] (do_handle_IPI) from [<c010b098>] (ipi_handler+0x14/0x20)
[ 3.112663] [<c010b098>] (ipi_handler) from [<c015d608>] (generic_handle_irq+0x28/0x38)
[ 3.121655] [<c015d608>] (generic_handle_irq) from [<c015dc00>] (__handle_domain_irq+0x90/0xa0)
[ 3.131425] [<c015dc00>] (__handle_domain_irq) from [<c03ffbc4>] (gic_handle_irq+0x64/0x70)
[ 3.140805] [<c03ffbc4>] (gic_handle_irq) from [<c01012cc>] (__irq_svc+0x6c/0xa8)
[ 3.149202] Exception stack(0xc1075f20 to 0xc1075f68)
[ 3.154874] 5f20: 00000000 c0dad200 00000001 c1074000 00000002 c7ad25f8 af75fd52 00000001
[ 3.164056] 5f40: 00000002 c1027840 00000000 00000000 00000000 c1075f70 c08016a0 c05626e0
[ 3.173234] 5f60: 20000053 ffffffff
[ 3.177155] [<c01012cc>] (__irq_svc) from [<c05626e0>] (cpuidle_enter_state+0x138/0x2b8)
[ 3.186243] [<c05626e0>] (cpuidle_enter_state) from [<c056289c>] (cpuidle_enter+0x28/0x38)
[ 3.195527] [<c056289c>] (cpuidle_enter) from [<c0141e60>] (do_idle+0x274/0x2a8)
[ 3.203835] [<c0141e60>] (do_idle) from [<c0142150>] (cpu_startup_entry+0x18/0x1c)
[ 3.212336] [<c0142150>] (cpu_startup_entry) from [<40101d0c>] (0x40101d0c)
[ 3.220152] sunxi:rtc:[ERR:8b030004]: invalid reason or reasonbase NULL
[ 3.227573] sunxi:rtc:[ERR]: rtc set bootreason panic reboot fail
[ 3.234416] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
相关配置如下:
export LICHEE_PLATFORM=linux
export LICHEE_LINUX_DEV=buildroot
export LICHEE_IC=t113
export LICHEE_BOARD=auto_linux5_10
export LICHEE_FLASH=default
export LICHEE_KERN_NAME=linux-5.10-origin
export LICHEE_KERNEL_ARCH=arm
export LICHEE_ARCH=arm
export LICHEE_KERN_VER=linux-5.10-origin
export LICHEE_KERNEL_VERSION=5.10.198
export LICHEE_KERN_DEFCONF=bsp_defconfig
export LICHEE_KERN_DEFCONF_RT=
export LICHEE_BUILDING_SYSTEM=buildroot
export LICHEE_BR_VER=201902
export LICHEE_BR_DEFCONF=sun8iw20p1_t113_linux5_10_defconfig
export LICHEE_DEFCONFIG_FRAGMENT=
export LICHEE_PRODUCT=t113_auto_linux5_10
export LICHEE_BRANDY_VER=2.0
export LICHEE_BRANDY_DEFCONF=sun8iw20p1_auto_linux5_10_defconfig
export LICHEE_BRANDY_UBOOT_VER=
export LICHEE_BRANDY_BUILD_OPTION=
export LICHEE_COMPILER_TAR=arm/gcc-linaro-11.3.1-2022.06-x86_64_arm-linux-gnueabihf.tar.xz
export LICHEE_ROOTFS=target-arm-linaro-5.3.tar.bz2
升级到5.10这个内核版本,就是相解决2038年的问题,因为发现T113的linux5.4内核确实有2038年问题(之前用的F1c100使用5.2内核,都能支持2038年。。好奇怪)。在使用SDK1.2,只改了device-config-chips-t113-configs-auto_linux5_10-env.cfg中最后的bootcmd=run setargs_mmc boot_normal,其他都使用默认配置没有更改。想问一下是否还有哪里配置需要更改的? 需要在evb1开发板上跑起来。
离线
烧录到 SPI NAND有问题:
set address 0x2e
set address 0x2e ok
[903]fes begin commit:2386bdb825
[906]set pll start
[908]fix vccio detect value:0xc0
[915]periph0 has been enabled
[918]set pll end
[920][pmu]: bus read error
[922]board init ok
[924]beign to init dram
[926]get_pmu_exist() = -1
[929]ddr_efuse_type: 0x0
[931]trefi:7.8ms
[934][AUTO DEBUG] two rank and full DQ!
[938]ddr_efuse_type: 0x0
[940]trefi:7.8ms
[942][AUTO DEBUG] rank 0 row = 15
[945][AUTO DEBUG] rank 0 bank = 8
[949][AUTO DEBUG] rank 0 page size = 2 KB
[953][AUTO DEBUG] rank 1 row = 15
[956][AUTO DEBUG] rank 1 bank = 8
[959][AUTO DEBUG] rank 1 page size = 2 KB
[963]rank1 config same as rank0
[966]DRAM BOOT DRIVE INFO: V0.34
[969]DRAM CLK = 792 MHz
[971]DRAM Type = 3 (2:DDR2,3:DDR3)
[975]DRAMC ZQ value: 0x7b7bfb
[978]DRAM ODT value: 0x42.
[980]ddr_efuse_type: 0x0
[983]DRAM SIZE = 1024 MB
[987]DRAM simple test OK.
[989]rtc standby flag is 0x0, super standby flag is 0x0
[995]init dram ok
U-Boot 2018.07-gce06dac-dirty (Jul 04 2025 - 10:14:03 +0800) Allwinner Technology
[03.426]CPU: Allwinner Family
[03.429]Model: sun8iw20
[03.431]DRAM: 512 MiB
[03.434]Relocation Offset is: 1cebb000
[03.462]secure enable bit: 0
[03.465]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[03.471]gic: normal mode
[03.473]sunxi flash map init
[03.476]line:703 init_clocks
[03.479]init_clocks:finish
[03.481]flash init start
[03.484]workmode = 16,storage type = 0
try card 2
set card number 2
get card number 2
[03.491][mmc]: mmc driver ver uboot2018:2023-08-29 10:12:00
[03.498][mmc]: Is not Boot mode!
[03.501][mmc]: SUNXI SDMMC Controller Version:0x50310
[03.512][mmc]: ************Try SD card 2************
[03.517][mmc]: mmc 2 cmd timeout 100 status 100
[03.521][mmc]: smc 2 err, cmd 8, RTO
[03.524][mmc]: mmc 2 close bus gating and reset
[03.530][mmc]: mmc 2 cmd timeout 100 status 100
[03.534][mmc]: smc 2 err, cmd 55, RTO
[03.537][mmc]: mmc 2 close bus gating and reset
[03.541][mmc]: ************Try MMC card 2************
[03.550][mmc]: mmc 2 cmd timeout 100 status 100
[03.554][mmc]: smc 2 err, cmd 1, RTO
[03.558][mmc]: mmc 2 close bus gating and reset
[03.562][mmc]: Card did not respond to voltage select!
[03.567][mmc]: ************SD/MMC 2 init error!************
[03.572][mmc]: mmc init product failed
MMC init failed
try emmc fail
[03.579]sunxi-spinand: AW SPINand MTD Layer Version: 1.13 20231225
[03.584]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.20 20240320
[03.592]sunxi-spinand-phy: request spi0 gpio ok
[03.596]sunxi-spinand-phy: request general tx dma channel ok!
[03.602]sunxi-spinand-phy: request general rx dma channel ok!
[03.607]sunxi-spinand-phy: set spic0 clk to 20 Mhz
[03.612]sunxi-spinand-phy: init spic0 clk ok
[03.616]sunxi-spinand-phy: detect munufacture from id table: Winbond
[03.622]sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff
[03.628]sunxi-spinand-phy: ========== arch info ==========
[03.633]sunxi-spinand-phy: Model: W25N01GVZEIG
[03.638]sunxi-spinand-phy: Munufacture: Winbond
[03.643]sunxi-spinand-phy: DieCntPerChip: 1
[03.647]sunxi-spinand-phy: BlkCntPerDie: 1024
[03.652]sunxi-spinand-phy: PageCntPerBlk: 64
[03.657]sunxi-spinand-phy: SectCntPerPage: 4
[03.661]sunxi-spinand-phy: OobSizePerPage: 64
[03.666]sunxi-spinand-phy: BadBlockFlag: 0x0
[03.670]sunxi-spinand-phy: OperationOpt: 0x7
[03.675]sunxi-spinand-phy: MaxEraseTimes: 65000
[03.680]sunxi-spinand-phy: EccFlag: 0x0
[03.684]sunxi-spinand-phy: EccType: 2
[03.689]sunxi-spinand-phy: EccProtectedType: 3
[03.693]sunxi-spinand-phy: ========================================
[03.699]sunxi-spinand-phy:
[03.701]sunxi-spinand-phy: ========== physical info ==========
[03.707]sunxi-spinand-phy: TotalSize: 128 M
[03.711]sunxi-spinand-phy: SectorSize: 512 B
[03.715]sunxi-spinand-phy: PageSize: 2 K
[03.719]sunxi-spinand-phy: BlockSize: 128 K
[03.723]sunxi-spinand-phy: OOBSize: 64 B
[03.728]sunxi-spinand-phy: ========================================
[03.734]sunxi-spinand-phy:
[03.736]sunxi-spinand-phy: ========== logical info ==========
[03.741]sunxi-spinand-phy: TotalSize: 128 M
[03.746]sunxi-spinand-phy: SectorSize: 512 B
[03.750]sunxi-spinand-phy: PageSize: 4 K
[03.754]sunxi-spinand-phy: BlockSize: 256 K
[03.758]sunxi-spinand-phy: OOBSize: 128 B
[03.762]sunxi-spinand-phy: ========================================
[03.768]sunxi-spinand-phy: set spic0 clk to 100 Mhz
[03.773]sunxi-spinand-phy: block lock register: 0x00
[03.778]sunxi-spinand-phy: feature register: 0x19
[03.782]sunxi-spinand-phy: sunxi physic nand init end
[03.787]Loading Environment from SUNXI_FLASH... OK
[03.791]try to burn key
[03.794]out of usb burn from boot: not boot mode
Hit any key to stop autoboot: 0
sunxi work mode=0x10
run usb efex
buf queue page size = 16384
delay time 2500
weak:otg_phy_config
usb init ok
set address 0x31
set address 0x31 ok
set address 0x32
set address 0x32 ok
SUNXI_EFEX_ERASE_TAG
erase_flag = 0x12
origin_erase_flag = 0x1
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
SUNXI_EFEX_EXT4_UBIFS_TAG & do nothing
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 7
part[0] name :boot-resource
part[0] classname :DISK
part[0] addrlo :0x1f8
part[0] lenlo :0x218a
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2382
part[1] lenlo :0x1f8
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :env-redund
part[2] classname :DISK
part[2] addrlo :0x257a
part[2] lenlo :0x1f8
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :boot
part[3] classname :DISK
part[3] addrlo :0x2772
part[3] lenlo :0x42f0
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs
part[4] classname :DISK
part[4] addrlo :0x6a62
part[4] lenlo :0xbd80
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :private
part[5] classname :DISK
part[5] addrlo :0x127e2
part[5] lenlo :0x7e0
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :UDISK
part[6] classname :DISK
part[6] addrlo :0x12fc2
part[6] lenlo :0x0
part[6] user_type :33024
part[6] keydata :0
part[6] ro :0
total part: 8
mbr 0, 1f8, 8000
boot-resource 1, 218a, 8000
env 2, 1f8, 8000
env-redund 3, 1f8, 8000
boot 4, 42f0, 8000
rootfs 5, bd80, 8000
private 6, 7e0, 8000
UDISK 7, 0, 8100
[07.073]erase blk 0 to blk 32
need erase flash: 18
[07.096]erase blk 0 to blk 32
[07.116]erase blk 40 to blk 1024
[07.118]blk 41 is bad, skip to erase
[07.122]blk 43 is bad, skip to erase
[07.125]blk 45 is bad, skip to erase
[07.128]blk 47 is bad, skip to erase
[07.132]blk 49 is bad, skip to erase
[07.135]blk 51 is bad, skip to erase
[07.138]blk 53 is bad, skip to erase
[07.141]blk 55 is bad, skip to erase
[07.145]blk 57 is bad, skip to erase
[07.148]blk 59 is bad, skip to erase
[07.151]blk 61 is bad, skip to erase
[07.155]blk 63 is bad, skip to erase
[07.158]blk 65 is bad, skip to erase
[07.161]blk 67 is bad, skip to erase
[07.164]blk 69 is bad, skip to erase
[07.168]blk 71 is bad, skip to erase
[07.171]blk 73 is bad, skip to erase
[07.174]blk 75 is bad, skip to erase
[07.178]blk 77 is bad, skip to erase
[07.181]blk 79 is bad, skip to erase
[07.184]blk 81 is bad, skip to erase
[07.188]blk 83 is bad, skip to erase
[07.191]blk 85 is bad, skip to erase
[07.194]blk 87 is bad, skip to erase
[07.197]blk 89 is bad, skip to erase
[07.201]blk 91 is bad, skip to erase
[07.204]blk 93 is bad, skip to erase
[07.207]blk 95 is bad, skip to erase
[07.211]blk 97 is bad, skip to erase
[07.214]blk 99 is bad, skip to erase
[07.217]blk 101 is bad, skip to erase
[07.221]blk 103 is bad, skip to erase
[07.224]blk 105 is bad, skip to erase
[07.227]blk 107 is bad, skip to erase
[07.231]blk 109 is bad, skip to erase
[07.234]blk 111 is bad, skip to erase
[07.237]blk 113 is bad, skip to erase
[07.241]blk 115 is bad, skip to erase
[07.244]blk 117 is bad, skip to erase
[07.248]blk 119 is bad, skip to erase
[07.251]blk 121 is bad, skip to erase
[07.254]blk 123 is bad, skip to erase
[07.258]blk 125 is bad, skip to erase
[07.261]blk 127 is bad, skip to erase
[07.265]blk 129 is bad, skip to erase
[07.268]blk 131 is bad, skip to erase
[07.271]blk 133 is bad, skip to erase
[07.275]blk 135 is bad, skip to erase
[07.278]blk 137 is bad, skip to erase
[07.281]blk 139 is bad, skip to erase
[07.285]blk 141 is bad, skip to erase
[07.288]blk 143 is bad, skip to erase
[07.292]blk 145 is bad, skip to erase
[07.295]blk 147 is bad, skip to erase
[07.298]blk 149 is bad, skip to erase
[07.302]blk 151 is bad, skip to erase
[07.305]blk 153 is bad, skip to erase
[07.308]blk 155 is bad, skip to erase
[07.312]blk 157 is bad, skip to erase
[07.315]blk 159 is bad, skip to erase
[07.319]blk 161 is bad, skip to erase
[07.322]blk 163 is bad, skip to erase
[07.325]blk 165 is bad, skip to erase
[07.330]blk 169 is bad, skip to erase
[07.334]blk 173 is bad, skip to erase
[07.339]blk 177 is bad, skip to erase
[07.342]blk 179 is bad, skip to erase
[07.346]blk 181 is bad, skip to erase
[07.349]blk 183 is bad, skip to erase
[07.352]blk 185 is bad, skip to erase
[07.356]blk 187 is bad, skip to erase
[07.359]blk 189 is bad, skip to erase
[07.362]blk 191 is bad, skip to erase
[07.366]blk 193 is bad, skip to erase
[07.369]blk 195 is bad, skip to erase
[07.373]blk 197 is bad, skip to erase
[07.376]blk 199 is bad, skip to erase
[07.379]blk 201 is bad, skip to erase
[07.383]blk 203 is bad, skip to erase
[07.386]blk 205 is bad, skip to erase
[07.390]blk 207 is bad, skip to erase
[07.393]blk 209 is bad, skip to erase
[07.396]blk 211 is bad, skip to erase
[07.400]blk 213 is bad, skip to erase
[07.403]blk 215 is bad, skip to erase
[07.406]blk 217 is bad, skip to erase
[07.410]blk 219 is bad, skip to erase
[07.413]blk 221 is bad, skip to erase
[07.417]blk 223 is bad, skip to erase
[07.420]blk 225 is bad, skip to erase
[07.423]blk 227 is bad, skip to erase
[07.427]blk 229 is bad, skip to erase
[07.430]blk 231 is bad, skip to erase
[07.433]blk 233 is bad, skip to erase
[07.437]blk 235 is bad, skip to erase
[07.440]blk 237 is bad, skip to erase
[07.444]blk 239 is bad, skip to erase
[07.447]blk 241 is bad, skip to erase
[07.450]blk 243 is bad, skip to erase
[07.454]blk 245 is bad, skip to erase
[07.457]blk 247 is bad, skip to erase
[07.461]blk 249 is bad, skip to erase
[07.464]blk 251 is bad, skip to erase
[07.467]blk 253 is bad, skip to erase
[07.471]blk 255 is bad, skip to erase
[07.474]blk 257 is bad, skip to erase
[07.477]blk 259 is bad, skip to erase
[07.481]blk 261 is bad, skip to erase
[07.484]blk 263 is bad, skip to erase
[07.488]blk 265 is bad, skip to erase
[07.491]blk 267 is bad, skip to erase
[07.494]blk 269 is bad, skip to erase
[07.498]blk 271 is bad, skip to erase
[07.501]blk 273 is bad, skip to erase
[07.504]blk 275 is bad, skip to erase
[07.508]blk 277 is bad, skip to erase
[07.511]blk 279 is bad, skip to erase
[07.515]blk 281 is bad, skip to erase
[07.518]blk 283 is bad, skip to erase
[07.521]blk 285 is bad, skip to erase
[07.525]blk 287 is bad, skip to erase
[07.528]blk 289 is bad, skip to erase
[07.531]blk 291 is bad, skip to erase
[07.535]blk 293 is bad, skip to erase
[07.538]blk 295 is bad, skip to erase
[07.542]blk 297 is bad, skip to erase
[07.545]blk 299 is bad, skip to erase
[07.550]blk 303 is bad, skip to erase
[07.553]blk 305 is bad, skip to erase
[07.557]blk 309 is bad, skip to erase
[07.561]blk 311 is bad, skip to erase
[07.564]blk 313 is bad, skip to erase
[07.570]blk 319 is bad, skip to erase
[07.573]blk 321 is bad, skip to erase
[07.577]blk 323 is bad, skip to erase
[07.580]blk 325 is bad, skip to erase
[07.583]blk 327 is bad, skip to erase
[07.587]blk 329 is bad, skip to erase
[07.590]blk 331 is bad, skip to erase
[07.593]blk 333 is bad, skip to erase
[07.597]blk 335 is bad, skip to erase
[07.600]blk 337 is bad, skip to erase
[07.604]blk 339 is bad, skip to erase
[07.607]blk 341 is bad, skip to erase
[07.610]blk 343 is bad, skip to erase
[07.614]blk 345 is bad, skip to erase
[07.617]blk 347 is bad, skip to erase
[07.621]blk 349 is bad, skip to erase
[07.624]blk 351 is bad, skip to erase
[07.627]blk 353 is bad, skip to erase
[07.631]blk 355 is bad, skip to erase
[07.634]blk 357 is bad, skip to erase
[07.637]blk 359 is bad, skip to erase
[07.641]blk 361 is bad, skip to erase
[07.644]blk 363 is bad, skip to erase
[07.648]blk 365 is bad, skip to erase
[07.651]blk 367 is bad, skip to erase
[07.654]blk 369 is bad, skip to erase
[07.658]blk 371 is bad, skip to erase
[07.661]blk 373 is bad, skip to erase
[07.664]blk 375 is bad, skip to erase
[07.668]blk 377 is bad, skip to erase
[07.671]blk 379 is bad, skip to erase
[07.675]blk 381 is bad, skip to erase
[07.678]blk 383 is bad, skip to erase
[07.681]blk 385 is bad, skip to erase
[07.685]blk 387 is bad, skip to erase
[07.688]blk 389 is bad, skip to erase
[07.691]blk 391 is bad, skip to erase
[07.695]blk 393 is bad, skip to erase
[07.698]blk 395 is bad, skip to erase
[07.702]blk 397 is bad, skip to erase
[07.705]blk 399 is bad, skip to erase
[07.708]blk 401 is bad, skip to erase
[07.712]blk 403 is bad, skip to erase
[07.715]blk 405 is bad, skip to erase
[07.719]blk 407 is bad, skip to erase
[07.722]blk 409 is bad, skip to erase
[07.725]blk 411 is bad, skip to erase
[07.729]blk 413 is bad, skip to erase
[07.732]blk 415 is bad, skip to erase
[07.735]blk 417 is bad, skip to erase
[07.739]blk 419 is bad, skip to erase
[07.742]blk 421 is bad, skip to erase
[07.746]blk 423 is bad, skip to erase
[07.749]blk 425 is bad, skip to erase
[07.752]blk 427 is bad, skip to erase
[07.756]blk 429 is bad, skip to erase
[07.759]blk 431 is bad, skip to erase
[07.762]blk 433 is bad, skip to erase
[07.766]blk 435 is bad, skip to erase
[07.770]blk 439 is bad, skip to erase
[07.774]blk 441 is bad, skip to erase
[07.777]blk 443 is bad, skip to erase
[07.780]blk 445 is bad, skip to erase
[07.784]blk 447 is bad, skip to erase
[07.788]blk 450 is bad, skip to erase
[07.792]blk 453 is bad, skip to erase
[07.795]blk 455 is bad, skip to erase
[07.798]blk 457 is bad, skip to erase
[07.802]blk 459 is bad, skip to erase
[07.805]blk 461 is bad, skip to erase
[07.809]blk 463 is bad, skip to erase
[07.812]blk 465 is bad, skip to erase
[07.815]blk 467 is bad, skip to erase
[07.819]blk 469 is bad, skip to erase
[07.822]blk 471 is bad, skip to erase
[07.825]blk 473 is bad, skip to erase
[07.829]blk 475 is bad, skip to erase
[07.832]blk 477 is bad, skip to erase
[07.836]blk 479 is bad, skip to erase
[07.839]blk 481 is bad, skip to erase
[07.842]blk 483 is bad, skip to erase
[07.846]blk 485 is bad, skip to erase
[07.849]blk 487 is bad, skip to erase
[07.853]blk 489 is bad, skip to erase
[07.856]blk 491 is bad, skip to erase
[07.859]blk 493 is bad, skip to erase
[07.863]blk 495 is bad, skip to erase
[07.866]blk 497 is bad, skip to erase
[07.869]blk 499 is bad, skip to erase
[07.873]blk 501 is bad, skip to erase
[07.876]blk 503 is bad, skip to erase
[07.880]blk 505 is bad, skip to erase
[07.883]blk 507 is bad, skip to erase
[07.886]blk 509 is bad, skip to erase
[07.890]blk 511 is bad, skip to erase
[07.893]blk 513 is bad, skip to erase
[07.896]blk 515 is bad, skip to erase
[07.900]blk 517 is bad, skip to erase
[07.903]blk 519 is bad, skip to erase
[07.907]blk 521 is bad, skip to erase
[07.910]blk 523 is bad, skip to erase
[07.913]blk 525 is bad, skip to erase
[07.917]blk 527 is bad, skip to erase
[07.920]blk 529 is bad, skip to erase
[07.923]blk 531 is bad, skip to erase
[07.927]blk 533 is bad, skip to erase
[07.930]blk 535 is bad, skip to erase
[07.934]blk 537 is bad, skip to erase
[07.937]blk 539 is bad, skip to erase
[07.940]blk 541 is bad, skip to erase
[07.944]blk 543 is bad, skip to erase
[07.947]blk 545 is bad, skip to erase
[07.951]blk 547 is bad, skip to erase
[07.954]blk 549 is bad, skip to erase
[07.957]blk 551 is bad, skip to erase
[07.961]blk 553 is bad, skip to erase
[07.964]blk 555 is bad, skip to erase
[07.967]blk 557 is bad, skip to erase
[07.971]blk 559 is bad, skip to erase
[07.974]blk 561 is bad, skip to erase
[07.978]blk 563 is bad, skip to erase
[07.981]blk 565 is bad, skip to erase
[07.984]blk 567 is bad, skip to erase
[07.988]blk 569 is bad, skip to erase
[07.991]blk 571 is bad, skip to erase
[07.996]blk 575 is bad, skip to erase
[07.999]blk 577 is bad, skip to erase
[08.002]blk 579 is bad, skip to erase
[08.006]blk 581 is bad, skip to erase
[08.009]blk 583 is bad, skip to erase
[08.012]blk 585 is bad, skip to erase
[08.016]blk 587 is bad, skip to erase
[08.020]blk 590 is bad, skip to erase
[08.024]blk 593 is bad, skip to erase
[08.027]blk 595 is bad, skip to erase
[08.030]blk 597 is bad, skip to erase
[08.034]blk 599 is bad, skip to erase
[08.037]blk 601 is bad, skip to erase
[08.041]blk 603 is bad, skip to erase
[08.044]blk 605 is bad, skip to erase
[08.047]blk 607 is bad, skip to erase
[08.051]blk 609 is bad, skip to erase
[08.054]blk 611 is bad, skip to erase
[08.057]blk 613 is bad, skip to erase
[08.061]blk 615 is bad, skip to erase
[08.064]blk 617 is bad, skip to erase
[08.068]blk 619 is bad, skip to erase
[08.071]blk 621 is bad, skip to erase
[08.074]blk 623 is bad, skip to erase
[08.078]blk 625 is bad, skip to erase
[08.081]blk 627 is bad, skip to erase
[08.085]blk 629 is bad, skip to erase
[08.088]blk 631 is bad, skip to erase
[08.091]blk 633 is bad, skip to erase
[08.095]blk 635 is bad, skip to erase
[08.098]blk 637 is bad, skip to erase
[08.101]blk 639 is bad, skip to erase
[08.105]blk 641 is bad, skip to erase
[08.108]blk 643 is bad, skip to erase
[08.112]blk 645 is bad, skip to erase
[08.115]blk 647 is bad, skip to erase
[08.118]blk 649 is bad, skip to erase
[08.122]blk 651 is bad, skip to erase
[08.125]blk 653 is bad, skip to erase
[08.128]blk 655 is bad, skip to erase
[08.132]blk 657 is bad, skip to erase
[08.135]blk 659 is bad, skip to erase
[08.139]blk 661 is bad, skip to erase
[08.142]blk 663 is bad, skip to erase
[08.145]blk 665 is bad, skip to erase
[08.149]blk 667 is bad, skip to erase
[08.152]blk 669 is bad, skip to erase
[08.155]blk 671 is bad, skip to erase
[08.159]blk 673 is bad, skip to erase
[08.162]blk 675 is bad, skip to erase
[08.166]blk 677 is bad, skip to erase
[08.169]blk 679 is bad, skip to erase
[08.172]blk 681 is bad, skip to erase
[08.176]blk 683 is bad, skip to erase
[08.179]blk 685 is bad, skip to erase
[08.183]blk 687 is bad, skip to erase
[08.186]blk 689 is bad, skip to erase
[08.189]blk 691 is bad, skip to erase
[08.193]blk 693 is bad, skip to erase
[08.196]blk 695 is bad, skip to erase
[08.199]blk 697 is bad, skip to erase
[08.203]blk 699 is bad, skip to erase
[08.206]blk 701 is bad, skip to erase
[08.210]blk 703 is bad, skip to erase
[08.213]blk 705 is bad, skip to erase
[08.216]blk 707 is bad, skip to erase
[08.221]blk 711 is bad, skip to erase
[08.224]blk 713 is bad, skip to erase
[08.228]blk 715 is bad, skip to erase
[08.231]blk 717 is bad, skip to erase
[08.234]blk 719 is bad, skip to erase
[08.238]blk 721 is bad, skip to erase
[08.241]blk 723 is bad, skip to erase
[08.244]blk 725 is bad, skip to erase
[08.248]blk 727 is bad, skip to erase
[08.252]blk 730 is bad, skip to erase
[08.256]blk 733 is bad, skip to erase
[08.259]blk 735 is bad, skip to erase
[08.262]blk 737 is bad, skip to erase
[08.266]blk 739 is bad, skip to erase
[08.269]blk 741 is bad, skip to erase
[08.273]blk 743 is bad, skip to erase
[08.276]blk 745 is bad, skip to erase
[08.279]blk 747 is bad, skip to erase
[08.283]blk 749 is bad, skip to erase
[08.286]blk 751 is bad, skip to erase
[08.289]blk 753 is bad, skip to erase
[08.293]blk 755 is bad, skip to erase
[08.296]blk 757 is bad, skip to erase
[08.300]blk 759 is bad, skip to erase
[08.303]blk 761 is bad, skip to erase
[08.306]blk 763 is bad, skip to erase
[08.310]blk 765 is bad, skip to erase
[08.313]blk 767 is bad, skip to erase
[08.317]blk 769 is bad, skip to erase
[08.320]blk 771 is bad, skip to erase
[08.323]blk 773 is bad, skip to erase
[08.327]blk 775 is bad, skip to erase
[08.330]blk 777 is bad, skip to erase
[08.333]blk 779 is bad, skip to erase
[08.337]blk 781 is bad, skip to erase
[08.340]blk 783 is bad, skip to erase
[08.344]blk 785 is bad, skip to erase
[08.347]blk 787 is bad, skip to erase
[08.350]blk 789 is bad, skip to erase
[08.354]blk 791 is bad, skip to erase
[08.357]blk 793 is bad, skip to erase
[08.360]blk 795 is bad, skip to erase
[08.364]blk 797 is bad, skip to erase
[08.367]blk 799 is bad, skip to erase
[08.371]blk 801 is bad, skip to erase
[08.374]blk 803 is bad, skip to erase
[08.377]blk 805 is bad, skip to erase
[08.381]blk 807 is bad, skip to erase
[08.384]blk 809 is bad, skip to erase
[08.387]blk 811 is bad, skip to erase
[08.391]blk 813 is bad, skip to erase
[08.394]blk 815 is bad, skip to erase
[08.398]blk 817 is bad, skip to erase
[08.401]blk 819 is bad, skip to erase
[08.404]blk 821 is bad, skip to erase
[08.408]blk 823 is bad, skip to erase
[08.411]blk 825 is bad, skip to erase
[08.415]blk 827 is bad, skip to erase
[08.418]blk 829 is bad, skip to erase
[08.421]blk 831 is bad, skip to erase
[08.425]blk 833 is bad, skip to erase
[08.428]blk 835 is bad, skip to erase
[08.433]blk 839 is bad, skip to erase
[08.436]blk 841 is bad, skip to erase
[08.439]blk 843 is bad, skip to erase
[08.443]blk 845 is bad, skip to erase
[08.446]blk 847 is bad, skip to erase
[08.449]blk 849 is bad, skip to erase
[08.453]blk 851 is bad, skip to erase
[08.456]blk 853 is bad, skip to erase
[08.460]blk 855 is bad, skip to erase
[08.463]blk 857 is bad, skip to erase
[08.466]blk 859 is bad, skip to erase
[08.470]blk 861 is bad, skip to erase
[08.474]blk 864 is bad, skip to erase
[08.478]blk 867 is bad, skip to erase
[08.481]blk 869 is bad, skip to erase
[08.484]blk 871 is bad, skip to erase
[08.488]blk 873 is bad, skip to erase
[08.491]blk 875 is bad, skip to erase
[08.494]blk 877 is bad, skip to erase
[08.498]blk 879 is bad, skip to erase
[08.501]blk 881 is bad, skip to erase
[08.505]blk 883 is bad, skip to erase
[08.508]blk 885 is bad, skip to erase
[08.511]blk 887 is bad, skip to erase
[08.515]blk 889 is bad, skip to erase
[08.518]blk 891 is bad, skip to erase
[08.521]blk 893 is bad, skip to erase
[08.525]blk 895 is bad, skip to erase
[08.528]blk 897 is bad, skip to erase
[08.532]blk 899 is bad, skip to erase
[08.535]blk 901 is bad, skip to erase
[08.538]blk 903 is bad, skip to erase
[08.542]blk 905 is bad, skip to erase
[08.545]blk 907 is bad, skip to erase
[08.549]blk 909 is bad, skip to erase
[08.552]blk 911 is bad, skip to erase
[08.555]blk 913 is bad, skip to erase
[08.559]blk 915 is bad, skip to erase
[08.562]blk 917 is bad, skip to erase
[08.565]blk 919 is bad, skip to erase
[08.569]blk 921 is bad, skip to erase
[08.572]blk 923 is bad, skip to erase
[08.576]blk 925 is bad, skip to erase
[08.579]blk 927 is bad, skip to erase
[08.582]blk 929 is bad, skip to erase
[08.586]blk 931 is bad, skip to erase
[08.589]blk 933 is bad, skip to erase
[08.592]blk 935 is bad, skip to erase
[08.596]blk 937 is bad, skip to erase
[08.599]blk 939 is bad, skip to erase
[08.603]blk 941 is bad, skip to erase
[08.606]blk 943 is bad, skip to erase
[08.609]blk 945 is bad, skip to erase
[08.613]blk 947 is bad, skip to erase
[08.616]blk 949 is bad, skip to erase
[08.619]blk 951 is bad, skip to erase
[08.623]blk 953 is bad, skip to erase
[08.626]blk 955 is bad, skip to erase
[08.630]blk 957 is bad, skip to erase
[08.633]blk 959 is bad, skip to erase
[08.636]blk 961 is bad, skip to erase
[08.640]blk 963 is bad, skip to erase
[08.644]blk 967 is bad, skip to erase
[08.648]blk 969 is bad, skip to erase
[08.651]blk 971 is bad, skip to erase
[08.654]blk 973 is bad, skip to erase
[08.658]blk 975 is bad, skip to erase
[08.661]blk 977 is bad, skip to erase
[08.665]blk 979 is bad, skip to erase
[08.668]blk 981 is bad, skip to erase
[08.671]blk 983 is bad, skip to erase
[08.675]blk 985 is bad, skip to erase
[08.678]blk 987 is bad, skip to erase
[08.681]blk 989 is bad, skip to erase
[08.685]blk 991 is bad, skip to erase
[08.688]blk 993 is bad, skip to erase
[08.692]blk 995 is bad, skip to erase
[08.696]blk 999 is bad, skip to erase
[08.699]blk 1001 is bad, skip to erase
[08.705]blk 1007 is bad, skip to erase
[08.709]blk 1009 is bad, skip to erase
[08.712]blk 1011 is bad, skip to erase
[08.717]blk 1015 is bad, skip to erase
[08.720]blk 1017 is bad, skip to erase
[08.724]blk 1019 is bad, skip to erase
[08.727]blk 1021 is bad, skip to erase
[08.731]blk 1023 is bad, skip to erase
[08.734]get secure storage map err
[08.737]erase secure storage block 0 err
[08.741]mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
device nand0 <nand>, # parts = 4
#: name size offset mask_flags
0: boot0 0x00100000 0x00000000 1
1: uboot 0x00300000 0x00100000 1
2: secure_storage 0x00100000 0x00400000 1
3: sys 0x07b00000 0x00500000 0
active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
defaults:
mtdids : nand0=nand
mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
[08.791]MTD info (4)
[08.793]pagesize: 0x1000
[08.795]blksize: 0x40000
[08.798]num offset bytes name
[08.801]0 0x00000000 0x00100000 boot0
[08.805]1 0x00100000 0x00300000 uboot
[08.808]2 0x00400000 0x00100000 secure_storage
[08.813]3 0x00500000 0x07b00000 sys
[08.816]ubi attach the last part of mtd device: NO.3
[08.822]ubi0: attaching mtd4
[08.827]ubi0: scanning is finished
[08.830]ubi0: empty MTD device detected
[08.837]ubi0 warning: ubi_calculate_reserved: number of bad PEBs (472) is above the expected limit (20), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)
[08.853]ubi0: attached mtd4 (name "sys", size 123 MiB)
[08.858]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[08.864]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[08.870]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[08.876]ubi0: good PEBs: 20, bad PEBs: 472, corrupted PEBs: 0
[08.882]ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[08.888]ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 0
[08.896]ubi0: available PEBs: 16, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
SUNXI_EFEX_MBR_TAG
mbr size = 0x10000
force mbr
device nand0 <nand>, # parts = 4
#: name size offset mask_flags
0: boot0 0x00100000 0x00000000 1
1: uboot 0x00300000 0x00100000 1
2: secure_storage 0x00100000 0x00400000 1
3: sys 0x07b00000 0x00500000 0
active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
defaults:
mtdids : nand0=nand
mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
[08.952]MTD info (4)
[08.954]pagesize: 0x1000
[08.956]blksize: 0x40000
[08.959]num offset bytes name
[08.962]0 0x00000000 0x00100000 boot0
[08.966]1 0x00100000 0x00300000 uboot
[08.969]2 0x00400000 0x00100000 secure_storage
[08.974]3 0x00500000 0x07b00000 sys
[08.977]MBR info (unalign):
[08.980]partno addr sects type name
[08.985]0 0x00000000 0x000001f8 0x00000001 mbr
[08.989]1 0x000001f8 0x0000218a 0x00008000 boot-resource
[08.995]2 0x00002382 0x000001f8 0x00008000 env
[09.000]3 0x0000257a 0x000001f8 0x00008000 env-redund
[09.005]4 0x00002772 0x000042f0 0x00008000 boot
[09.010]5 0x00006a62 0x0000bd80 0x00008000 rootfs
[09.015]6 0x000127e2 0x000007e0 0x00008000 private
[09.020]7 0x00012fc2 0x00000000 0x00008100 UDISK
[09.025]ubi attach the last part of mtd device: NO.3
[09.030]MBR info (align):
[09.032]partno addr sects type name
[09.037]0 0x00002800 0x000001f8 0x00000001 mbr
[09.042]1 0x000029f8 0x00002370 0x00008000 boot-resource
[09.047]2 0x00004d68 0x000001f8 0x00008000 env
[09.052]3 0x00004f60 0x000001f8 0x00008000 env-redund
[09.058]4 0x00005158 0x000042f0 0x00008000 boot
[09.062]5 0x00009448 0x0000bef8 0x00008000 rootfs
[09.067]6 0x00015340 0x000007e0 0x00008000 private
[09.073]7 0x00015b20 0x00000000 0x00008100 UDISK
[09.077]ubi attach the last part of mtd device: NO.3
[09.082]ubi attatch mtd, name: sys
[09.085]ubi0: detaching mtd4
[09.088]ubi0: mtd4 is detached
[09.091]ubi0: attaching mtd4
[09.096]ubi0: scanning is finished
[09.099]ubi0: empty MTD device detected
[09.106]ubi0 warning: ubi_calculate_reserved: number of bad PEBs (472) is above the expected limit (20), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)
[09.122]ubi0: attached mtd4 (name "sys", size 123 MiB)
[09.127]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
[09.133]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
[09.139]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[09.145]ubi0: good PEBs: 20, bad PEBs: 472, corrupted PEBs: 0
[09.151]ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[09.157]ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 0
[09.165]ubi0: available PEBs: 16, total reserved PEBs: 4, PEBs reserved for bad PEB handling: 0
Creating static volume mbr of size 258048
Creating dynamic volume boot-resource of size 4644864
[09.187]ubi0 error: ubi_create_volume: not enough PEBs, only 15 available
[09.193]ubi0 error: ubi_create_volume: cannot create volume 1, error -28
[09.199]'ubi create boot-resource 0x000000000046e000 d' failed, return -28
[09.206]initialize sunxi spinand ubi failed
download_standard_gpt:write mbr sectors fail ret = 0
离线
[ 161.702856] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 161.717468] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 161.731248] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 8, RTO !!
[ 161.738813] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 161.746738] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 161.754560] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 161.762291] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 161.769179] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 162.838577] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 162.849870] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[ 162.868521] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 162.892829] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 162.907521] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 162.921445] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 8, RTO !!
[ 162.929492] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 162.937181] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 162.944900] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
[ 162.952576] sunxi-mmc 4020000.sdmmc: smc 0 p0 err, cmd 55, RTO !!
控制台一直报mmc0检测信息,mmc0中断次数不断增加,那么屏蔽
sdc0 的 broken-cd
离线