Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113 切换存储,nand flash切换到SD卡启动,挂载文件系统报错

    MR Series
    2
    2
    1276
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shz18877605430 LV 6 last edited by

      nand flash切换到SD卡启动,挂载分区的时候报错,文件系统均改为ext4le ,内核已开启ext4文件系统,以及make menuconfig下的e2fprogs,但是还是不行,配置如下:

      env

      
      #kernel command arguments
      earlyprintk=sunxi-uart,0x02500C00
      initcall_debug=0
      console=ttyS3,115200
      nand_root=/dev/ubiblock0_5
      mmc_root=/dev/mmcblk0p5
      mtd_name=sys
      rootfstype=squashfs
      root_partition=rootfs
      boot_partition=boot
      init=/sbin/init
      loglevel=8
      cma=8M
      mac=
      wifi_mac=
      bt_mac=
      specialstr=
      keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
      dsp0_partition=dsp0
      rootdelay=2
      #set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
      setargs_nand=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      setargs_mmc=setenv  bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root}  init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      #nand command syntax: sunxi_flash read address partition_name read_bytes
      #0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k)
      #boot_dsp0=sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
      #boot_normal=sunxi_flash read 45000000 ${boot_partition};bootm 45000000
      boot_dsp0=sunxi_flash read 40000000 ${dsp0_partition};bootr 40000000 0 0
      boot_normal=sunxi_flash read 41000000 ${boot_partition};bootm 41000000
      boot_recovery=sunxi_flash read 43000000 recovery;bootm 43000000
      boot_fastboot=fastboot
      
      #uboot system env config
      bootdelay=1
      #default bootcmd, will change at runtime according to key press
      #default nand boot
      bootcmd=run setargs_mmc boot_normal
      
      

      sys_config

      ;----------------------------------------------------------------------------------
      ;storage_type   = boot medium, 0-nand, 1-sd, 2-emmc, 3-nor, 4-emmc3, 5-spinand -1(defualt)auto scan
      ;----------------------------------------------------------------------------------
      [target]
      boot_clock   	= 1008
      storage_type    = 1
      nand_use_ubi	= 0
      

      board.dts

      &spi0 {
      	clock-frequency = <100000000>;
      	pinctrl-0 = <&spi0_pins_a &spi0_pins_b>;
      	pinctrl-1 = <&spi0_pins_c>;
      	pinctrl-names = "default", "sleep";
      	/*spi-supply = <&reg_dcdc1>;*/
      	spi_slave_mode = <0>;
      	spi0_cs_number = <1>;
          spi0_cs_bitmap = <1>;
      	status = "disabled";
      
      	spi-nand@0 {
      		compatible = "spi-nand";
      		spi-max-frequency=<100000000>;
      		reg = <0x0>;
      		spi-rx-bus-width=<0x04>;
      		spi-tx-bus-width=<0x04>;
      		status="disabled";
      	};
      
      	spi-nor@0 {
      		compatible = "jedec,spi-nor";
      		spi-max-frequency=<30000000>;
      		reg = <0x0>;
      		spi-rx-bus-width=<0x01>;
      		spi-tx-bus-width=<0x01>;
      		status="disabled";
      	};
      };
      
      &sdc0 {
      	bus-width = <4>;
      	cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; 
      	/*non-removable;*/
      	/*broken-cd;*/
      	/*cd-inverted;*/
      	/*data3-detect;*/
      	/*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/
      	cd-used-24M;
      	cap-sd-highspeed;
      	/*sd-uhs-sdr50;*/
      	/*sd-uhs-ddr50;*/
      	/*sd-uhs-sdr104;*/
      	no-sdio;
      	//no-mmc;
      	sunxi-power-save-mode;
      	/*sunxi-dis-signal-vol-sw;*/
      	max-frequency = <150000000>;
      	ctl-spec-caps = <0x8>;
      	/*vmmc-supply = <&reg_dcdc1>;*/
      	/*vqmmc33sw-supply = <&reg_dcdc1>;*/
      	/*vdmmc33sw-supply = <&reg_dcdc1>;*/
      	/*vqmmc18sw-supply = <&reg_eldo1>;*/
      	/*vdmmc18sw-supply = <&reg_eldo1>;*/
      	status = "okay";
      };
      

      syslog如下:

      52074507-c504-482c-9ef4-33619d6369e8-image.png

      1 Reply Last reply Reply Quote Share 1
      • L
        lztmfx LV 5 last edited by

        @shz18877605430 在 T113 切换存储,nand flash切换到SD卡启动,挂载文件系统报错 中说:

        rootfstype=squashfs

        rootfstype=ext4

        1 Reply Last reply Reply Quote Share 1
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策