请问t113-s3 tina系统由spi nand flash更换为spi nor flash ???的流程是什么 根据 Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND | 全志在线开发者论坛这个链接的步骤做的镜像tina_t113-100ask_uart3_nor.img烧录失败 下面是我做的修改 : spinand切换spinor
1、cd /home/zyn/t113/tina-d1-h/device/config/chips/t113/configs/100ask vim sys_config.fex
28 ;storage_type = 5
29 storage_type = 3
vim board.dts
758 &spi0 {
759 clock-frequency = <100000000>;
760 pinctrl-0 = <&spi0_pins_a &spi0_pins_b>;
761 pinctrl-1 = <&spi0_pins_c>;
762 pinctrl-names = “default”, “sleep”;
763 /spi-supply = <®_dcdc1>;/
764 spi_slave_mode = <0>;
765 spi0_cs_number = <1>;
766 spi0_cs_bitmap = <1>;
767 // status = “okay”;
768 status = “disabled”;
769
770 spi-nand@0 {
771 compatible = “spi-nand”;
772 spi-max-frequency=<80000000>;
773 reg = <0x0>;
774 spi-rx-bus-width=<0x04>;
775 spi-tx-bus-width=<0x04>;
776 // status=“okay”;
777 status = “disabled”;
778 };
779 };
==================================================================================================================================
make kernel_menuconfig
内核驱动配置
Device Driver —>
Memory Technology Device (MTD) support —>
sunxi-nand —> //取消勾选
<> AWNAND CHOICE (Allwinner MTD SPINAND Device Support) —>
[] enable simulate multiplane
选中<*> SPI-NOR device support —>
内核文件系统配置
File systems —>
[] Miscellaneous filesystems —>
<> Overlay filesystem support 选中
<*> Journalling Flash File System v2 (JFFS2) support 选中
取消ubifs
< > UBIFS file system support
make menuconfig 层层选中
Target Images —>
[*] For storage less than 32M, enable this when using ota //选中
[*] squashfs ← 强烈建议选中(压缩根文件系统,省空间)
[ ] ubifs ---- 取消
Global build settings —>
[*] Strip unnecessary functions from libraries //选中
Utilities —>
<> mtd-utils
<> mtd-utils-mkfs.jffs2 //选中 方案二:
缺少 sun8iw20p1_uart3_nor_defconfig 配置文件。T113的NOR Flash默认配置是UART0(sun8iw20p1_nor_defconfig),
但你的开发板使用的是UART3。
cd /home/zyn/t113/tina-d1-h/lichee/brandy-2.0/u-boot-2018/configs
cp sun8iw20p1_nor_defconfig sun8iw20p1_uart3_nor_defconfig
cat >> sun8iw20p1_uart3_nor_defconfig << ‘EOF’
UART3 Configuration (for 100ASK T113-PRO)
CONFIG_CONS_INDEX=4
CONFIG_SPECIFY_CONSOLE_INDEX=y
CONFIG_DEBUG_UART_BASE=0x02500C00
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_BAUDRATE=115200
EOF
验证
grep -E “(CONS_INDEX|DEBUG_UART|BAUDRATE)” sun8iw20p1_uart3_nor_defconfig
