<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[T113 切换存储，nand flash切换到SD卡启动，挂载文件系统报错]]></title><description><![CDATA[<p dir="auto">nand flash切换到SD卡启动，挂载分区的时候报错，文件系统均改为ext4le ,内核已开启ext4文件系统，以及make menuconfig下的e2fprogs，但是还是不行，配置如下：</p>
<p dir="auto">env</p>
<pre><code>
#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

</code></pre>
<p dir="auto">sys_config</p>
<pre><code>;----------------------------------------------------------------------------------
;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
</code></pre>
<p dir="auto">board.dts</p>
<pre><code>&amp;spi0 {
	clock-frequency = &lt;100000000&gt;;
	pinctrl-0 = &lt;&amp;spi0_pins_a &amp;spi0_pins_b&gt;;
	pinctrl-1 = &lt;&amp;spi0_pins_c&gt;;
	pinctrl-names = "default", "sleep";
	/*spi-supply = &lt;&amp;reg_dcdc1&gt;;*/
	spi_slave_mode = &lt;0&gt;;
	spi0_cs_number = &lt;1&gt;;
    spi0_cs_bitmap = &lt;1&gt;;
	status = "disabled";

	spi-nand@0 {
		compatible = "spi-nand";
		spi-max-frequency=&lt;100000000&gt;;
		reg = &lt;0x0&gt;;
		spi-rx-bus-width=&lt;0x04&gt;;
		spi-tx-bus-width=&lt;0x04&gt;;
		status="disabled";
	};

	spi-nor@0 {
		compatible = "jedec,spi-nor";
		spi-max-frequency=&lt;30000000&gt;;
		reg = &lt;0x0&gt;;
		spi-rx-bus-width=&lt;0x01&gt;;
		spi-tx-bus-width=&lt;0x01&gt;;
		status="disabled";
	};
};

&amp;sdc0 {
	bus-width = &lt;4&gt;;
	cd-gpios = &lt;&amp;pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)&gt;; 
	/*non-removable;*/
	/*broken-cd;*/
	/*cd-inverted;*/
	/*data3-detect;*/
	/*card-pwr-gpios = &lt;&amp;pio PH 14 1 1 2 0xffffffff&gt;;*/
	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 = &lt;150000000&gt;;
	ctl-spec-caps = &lt;0x8&gt;;
	/*vmmc-supply = &lt;&amp;reg_dcdc1&gt;;*/
	/*vqmmc33sw-supply = &lt;&amp;reg_dcdc1&gt;;*/
	/*vdmmc33sw-supply = &lt;&amp;reg_dcdc1&gt;;*/
	/*vqmmc18sw-supply = &lt;&amp;reg_eldo1&gt;;*/
	/*vdmmc18sw-supply = &lt;&amp;reg_eldo1&gt;;*/
	status = "okay";
};
</code></pre>
<p dir="auto">syslog如下：</p>
<p dir="auto"><img src="/assets/uploads/files/1700663955541-52074507-c504-482c-9ef4-33619d6369e8-image.png" alt="52074507-c504-482c-9ef4-33619d6369e8-image.png" class=" img-responsive img-markdown" width="1512" height="710" /></p>
]]></description><link>https://bbs.aw-ol.com/topic/4664/t113-切换存储-nand-flash切换到sd卡启动-挂载文件系统报错</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 22:38:16 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/4664.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Nov 2023 14:43:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to T113 切换存储，nand flash切换到SD卡启动，挂载文件系统报错 on Sat, 29 Mar 2025 07:58:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/1106">@shz18877605430</a> 在 <a href="/post/20002">T113 切换存储，nand flash切换到SD卡启动，挂载文件系统报错</a> 中说：</p>
<blockquote>
<p dir="auto">rootfstype=squashfs</p>
</blockquote>
<p dir="auto">rootfstype=ext4</p>
]]></description><link>https://bbs.aw-ol.com/post/25746</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/25746</guid><dc:creator><![CDATA[lztmfx]]></dc:creator><pubDate>Sat, 29 Mar 2025 07:58:56 GMT</pubDate></item></channel></rss>