Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND
-
存储切换方法
SDK切换存储介质需要修改board.dts、sys_config.fex、内核配置、TINA系统配置。另外,在
spinor
存储介质下,通过u-boot-sun8iw21p1.bin
进行烧录,u-boot-spinor-sun8iw21p1.bin
启动,使用sys_partition_nor.fex
作为分区表。在非spinor
介质(spinand、emmc、sdnand)
,通过u-boot-sun8iw21p1.bin
进行烧录和启动,使用sys_partition.fex
作为分区表。下文将介绍spinor
切换spinand
、spinand
切换spinor
、spinor
切换emmc
、spinor
切换sdnand
四种切换方式。- sys_config.fex中只要关注storage_type选项,这个选项决定使用哪一种存储介质,配置后在pack过程,会自动打包对应介质的二进制文件。
[target] storage_type = xxx 其中storage_type | 0:nand | 1:sd | 2:emmc | 3:spinor | 4:emmc3 | 5:spinand | 6:sd1 |
spinor切换spinand
sys_config.fex修改
[target] - storage_type = 3 + storage_type = 5
board.dts/uboot-board.dts修改
&spi0 { - status = "disabled"; + status = "okay"; spi-nand@0 { - status="disabled"; + status="okay"; }; };
uboot编译
编译u-boot-sun8iw21p1.bin,spinand使用u-boot-sun8iw21p1.bin进行烧录、启动。 cboot切换到uboot目录,编辑configs/sun8iw21p1_defconfig CONFIG_SUNXI_UBIFS=y //SDK发布默认已选上 执行mboot //编译 确保device/config/chips/vxxx/bin/u-boot-sun8iw21p1.bin已更新
内核配置
make kernel_menuconfig 层层选中 内核驱动配置 Device Driver ---> Memory Technology Device (MTD) support ---> sunxi-nand ---> <*> AWNAND CHOICE (Allwinner MTD SPINAND Device Support) ---> -*- Enable UBI - Unsorted block images ---> [*] Read-only block devices on top of UBI volumes 内核文件系统配置 File systems ---> [*] Miscellaneous filesystems ---> <*> UBIFS file system support
TINA环境配置
make menuconfig 层层选中 Target Images ---> Boot (SD Card) Kernel format (boot.img) ---> //默认选中 [ ] For storage less than 32M, enable this when using ota //取消勾选 Global build settings ---> [*] Strip unnecessary functions from libraries //取消勾选 Utilities ---> <*> mtd-utils ---> <*> mtd-utils-mkfs.ubifs
spinand切换spinor
sys_config.fex修改
[target] - storage_type = 5 + storage_type = 3
board.dts/uboot-board.dts修改
&spi0 { - status = "okay"; + status = "disabled"; spi-nand@0 { - status="okay"; + status="disabled"; }; };
内核配置
make kernel_menuconfig 层层选中 内核驱动配置 Device Driver ---> Memory Technology Device (MTD) support ---> sunxi-nand ---> //取消勾选 Self-contained MTD device drivers ---> <*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...) //确认已选中 <*> SPI-NOR device support ---> 内核文件系统配置 File systems ---> [*] Miscellaneous filesystems ---> <*> Journalling Flash File System v2 (JFFS2) support
TINA环境配置
make menuconfig 层层选中 Target Images ---> [*] For storage less than 32M, enable this when using ota //选中 Global build settings ---> [*] Strip unnecessary functions from libraries //选中 Utilities ---> <*> mtd-utils <*> mtd-utils-mkfs.jffs2 //选中
spinor切换emmc
sys_config.fex修改
[target] - storage_type = 3 + storage_type = 2
内核配置
make kernel_menuconfig 层层选中 [*] Enable the block layer ---> [*] Support for large (2TB+) block devices and files [*] Block layer SG support v4 Device Drivers ---> < > Memory Technology Device (MTD) support ---> //取消勾选 [*] Block devices ---> //确认勾选 File systems ---> <*> The Extended 4 (ext4) filesystem
TINA环境配置
make menuconfig 层层选中 Target Images ---> Boot (SD Card) Kernel format (boot.img) ---> //默认选中 [ ] For storage less than 32M, enable this when using ota //取消勾选 Global build settings ---> [ ] Strip unnecessary functions from libraries //取消勾选 Utilities ---> Filesystem ---> <*> e2fsprogs //选中
spinor切换sdnand
sys_config.fex修改
[target] - storage_type = 3 + storage_type = 1
board.dts修改
&sdc2 { non-removable; bus-width = <8>; mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-hs400-1_8v; no-sdio; - no-sd; + //no-sd; ctl-spec-caps = <0x308>; cap-mmc-highspeed; sunxi-power-save-mode; sunxi-dis-signal-vol-sw; max-frequency = <100000000>; vmmc-supply = <®_dcdc1>; /*emmc io vol 3.3v*/ vqmmc-supply = <®_bldo1>; /*emmc io vol 1.8v*/ /*vqmmc-supply = <®_eldo1>;*/ status = "disabled"; };
内核配置
make kernel_menuconfig 层层选中 [*] Enable the block layer ---> [*] Support for large (2TB+) block devices and files [*] Block layer SG support v4 Device Drivers ---> < > Memory Technology Device (MTD) support ---> //取消勾选 [*] Block devices ---> //确认勾选 File systems ---> <*> The Extended 4 (ext4) filesystem
TINA环境配置
make menuconfig 层层选中 Target Images ---> Boot (SD Card) Kernel format (boot.img) ---> //默认选中 [ ] For storage less than 32M, enable this when using ota //取消勾选 Global build settings ---> [ ] Strip unnecessary functions from libraries //取消勾选 Utilities ---> Filesystem ---> <*> e2fsprogs //选中
-
没有SDK,只能偷偷看你玩了。
-
-
@tigger 全系适用的
-
-
-
Tina 3.5 一般支持nor, nand, mmc 三种介质。
更具体的,nand分为并口nand和spinand,mmc分emmc和sd卡
主要需要区分的是nor和其他介质,因为需要打包的部分有所不同。
即,emmc和nand,sd卡一般可共用一份固件,而nor则需使用另一份固件
sys_config配置
在sys_config中有一个配置项,storage_type,取值及含义如下
;---------------------------------------------------------------------------------- ; storage_type 0:nand 1:sd 2:emmc 3:spinor 4:emmc3 5:spinand 6:sd1 ;---------------------------------------------------------------------------------- [target] storage_type = xxx
对于nor的方案,必须配置为
storage_type = 3
对于其他介质,storage_type则不能配置为3
spinand切换为spinor
sys_config 设置介质为nor
[target] storage_type = 3
配置所用nor的大小
[norflash] size = 16
内核配置
make kernel_menuconfig ---> Device Drivers ---> < >Block devices (取消选中) Device Drivers ---> <*>Memory Technology Device (MTD) support <*>OpenFirmware partitioning information support <*>SUNXI partitioning support <*> Caching block device access to MTD devices <*> SPI-NOR device support (对于linux4.9,先选这个,下面的选项才出现) Self-contained MTD device drivers ---> <*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...) File systems ---> < > The Extended 4 (ext4) filesystem(取消选中) File systems ---> [*] Miscellaneous filesystems ---> <*> Journalling Flash File System v2 (JFFS2) support(选中) [*] Enable the block layer ---> [ ] Support for large (2TB+) block devices and files(取消选中)
menuconfig配置
make menuconfig ---> Utilities ---> <*> mtd-utils (选择) ---> <*> mtd-utils-mkfs.jffs2 make menuconfig ---> Utilities ---> Filesystem ---> < > e2fsprogs(取消选择)
spinor切换为spinand
sys_config 设置介质为spinand
[target] storage_type = 5
内核配置
make kernel_menuconfig ---> Device Drivers ---> [*]Block devices ---> <*> sunxi nand flash driver Device Drivers ---> < >Memory Technology Device (MTD) support(取消选择) [*] Enable the block layer ---> [*] Support for large (2TB+) block devices and files File systems ---> <*> The Extended 4 (ext4) filesystem
menuconfig 配置
make menuconfig ---> Utilities ---> < > mtd-utils (取消选择) Filesystem ---> <*> e2fsprogs
分区表配置
注意点对于nand,rootfs_data分区,使用ext4格式。分配太小的话可能会创建失败。
FAQ
使用mkfs.ext4等工具的时候出现
/usr/sbin/fsck.ext4 -y /dev/by-name/rootfs_data Error loading shared library /home/wuguanling/workspace/project/v316-sdv-tina/out/v316-sdv/staging_dir/target/rootfs/lib/libc.so: No such file or directory (needed by /usr/lib/libext2fs.so.2)
关闭以下选项:
make menuconfig | --- Global build settings | --- []strip unnecessary functions for libraries
-
-
-
-
-
-
还有env.cfg中的bootcmd也要改成从nand启动的命令
env set bootcmd run setargs_nand boot_normal -
好详细喔,收藏起来慢慢消化。
-
-
扫盲贴,666。。。
-
-
想问一下,你第一次发的和第二次发的有什么区别呢?我看了一下,配置好像不一样?
-
@qinlinbin 下面那个是Tina 3.5的配置
-
@yuzukitsuru 看漏了,谢谢大佬
-
-
-
-
亲们,请教下,从 SDC 转 nand 的 UBOOT-BOARD.DTS修改是这样没?谢谢!
-
@yteraa 老师您好,各位大神们好,请教下按你的教程从nor切换到nand后启动找不到文件系统,是哪方面问题?谢谢。--------------
-
-
-
-
-
非常详细,在到达lv2前先来做个提前了解,有个总体概念
-
大神,帮我看看,这是什么问题,用的是V851S芯片 ,SDK是论坛下载的tina-v851-release,谢谢!
[01.540]boot_gui_init:start partno erro : can't find partition Reserve0 [01.569]Get Reserve0 partition number fail! [01.576]boot_gui_init:finish partno erro : can't find partition bootloader partno erro : can't find partition boot-resource [01.632]Get bootloader and boot-resource partition number fail! [01.639]Item0 (Map) magic is bad [01.641]out of usb burn from boot: not need burn key [01.669]update bootcmd [01.694]change working_fdt 0x41e8fe70 to 0x41e6fe70 [01.706]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND [01.715]update dts Hit any key to stop autoboot: 0 input addr exceed dram scope [03.151]no vendor_boot partition is found Android's image name: v851s-youmu [03.213]Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.191 (lin@lin-VirtualBox) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #94 PREEMPT Wed Dec 27 00:37:33 UTC 2023 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: sun8iw21 [ 0.000000] disp reserve base 0x41f12000 ,size 0x384000 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat c0a4f4c8, node_mem_map c3f78000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: ubi.mtd=sys earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/ubiblock0_4 rootfstype=squashfs init=/pseudo_init partitions=mbr@ubi0_0:boot-res@ubi0_1:env@ubi0_2:boot@ubi0_3:rootfs@ubi0_4:rootfs_data@ubi0_5:UDISK@ubi0_6: cma= snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw21p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05(12/26/2023-21:05:24) mbr_offset=1032192 disp_reserve=3686400,0x41f12000 bootreason=button aw-ubi-spinand.ubootblks=24 androidboot.dramsize=64 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 51108K/65536K available (6144K kernel code, 320K rwdata, 1324K rodata, 1024K init, 169K bss, 14428K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB) [ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB) [ 0.000000] .data : 0xc0a00000 - 0xc0a50368 ( 321 kB) [ 0.000000] .bss : 0xc0a50368 - 0xc0a7a9c8 ( 170 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] sunxi_parse_sdm_info failed: -1 [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000022] Switching to timer-based delay loop, resolution 41ns [ 0.000202] Console: colour dummy device 80x30 [ 0.000233] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000248] pid_max: default: 32768 minimum: 301 [ 0.000447] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000460] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001047] CPU: Testing write buffer coherency: ok [ 0.001675] Setting up static identity map for 0x40100000 - 0x40100058 [ 0.003421] devtmpfs: initialized [ 0.036861] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.037441] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.037468] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.037613] atomic64_test: passed [ 0.037627] pinctrl core: initialized pinctrl subsystem [ 0.038758] NET: Registered protocol family 16 [ 0.039647] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.041022] dump_class_init,857, success [ 0.069514] cpuidle: using governor menu [ 0.070890] platform 2010000.iommu: iova_base: 0x48400000 [ 0.071465] sunxi iommu: irq = 22 [ 0.092475] sun8iw21p1-pinctrl pio: initialized sunXi PIO driver [ 0.095590] iommu: Adding device npu to group 0 [ 0.097722] iommu: Adding device 1c0e000.ve to group 0 [ 0.109501] iommu: Adding device 5410000.g2d to group 0 [ 0.110712] iommu: Adding device 5000000.disp to group 0 [ 0.121704] iommu: Adding device 5908000.tdm to group 0 [ 0.122424] iommu: Adding device 5900000.isp to group 0 [ 0.123158] iommu: Adding device 58ffffc.isp to group 0 [ 0.124178] iommu: Adding device 58ffff8.isp to group 0 [ 0.125163] iommu: Adding device 58ffff4.isp to group 0 [ 0.125640] iommu: Adding device 5800800.vind:isp@4 to group 0 [ 0.126542] iommu: Adding device 5910000.scaler to group 0 [ 0.127035] iommu: Adding device 590fffc.scaler to group 0 [ 0.127643] iommu: Adding device 590fff8.scaler to group 0 [ 0.128268] iommu: Adding device 590fff4.scaler to group 0 [ 0.129006] iommu: Adding device 5910400.scaler to group 0 [ 0.130237] iommu: Adding device 59103fc.scaler to group 0 [ 0.130908] iommu: Adding device 59103f8.scaler to group 0 [ 0.131387] iommu: Adding device 59103f4.scaler to group 0 [ 0.132141] iommu: Adding device 5910800.scaler to group 0 [ 0.132790] iommu: Adding device 59107fc.scaler to group 0 [ 0.133281] iommu: Adding device 59107f8.scaler to group 0 [ 0.134003] iommu: Adding device 59107f4.scaler to group 0 [ 0.134750] iommu: Adding device 5910c00.scaler to group 0 [ 0.135436] iommu: Adding device 5910bfc.scaler to group 0 [ 0.135938] iommu: Adding device 5910bf8.scaler to group 0 [ 0.136603] iommu: Adding device 5910bf4.scaler to group 0 [ 0.137665] iommu: Adding device vinc0 to group 0 [ 0.138633] iommu: Adding device vinc4 to group 0 [ 0.140078] iommu: Adding device vinc8 to group 0 [ 0.140870] iommu: Adding device vinc12 to group 0 [ 0.188901] pwm module init! [ 0.197629] sunxi-pm debug v3.10 [ 0.199846] SCSI subsystem initialized [ 0.201314] usbcore: registered new interface driver usbfs [ 0.201508] usbcore: registered new interface driver hub [ 0.201702] usbcore: registered new device driver usb [ 0.202049] sunxi_i2c_adap_init()2748 - init [ 0.202586] sunxi_i2c_probe()2443 - [i2c1] twi_drv_used = 0 [ 0.202605] sunxi_i2c_probe()2450 - [i2c1] twi_pkt_interval = 0 [ 0.202672] twi_regulator_request()647 - [i2c1] regulator not found(isn't configured in dts)! [ 0.202681] twi_request_gpio()463 - [i2c1] init name: (null) [ 0.204623] media: Linux media interface: v0.10 [ 0.205196] Linux video capture interface: v2.00 [ 0.207429] ion_parse_dt_heap_common: id 0 type 0 name sys_user align 1000 [ 0.207808] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000 [ 0.209383] Advanced Linux Sound Architecture Driver Initialized. [ 0.210803] Bluetooth: Core ver 2.22 [ 0.211000] NET: Registered protocol family 31 [ 0.211011] Bluetooth: HCI device and connection manager initialized [ 0.211037] Bluetooth: HCI socket layer initialized [ 0.211051] Bluetooth: L2CAP socket layer initialized [ 0.211115] Bluetooth: SCO socket layer initialized [ 0.214589] G2D: rcq version initialized.major:251 [ 0.215779] clocksource: Switched to clocksource arch_sys_counter [ 0.248413] get androidboot.mode fail [ 0.250192] NET: Registered protocol family 2 [ 0.266166] TCP established hash table entries: 16 (order: -6, 64 bytes) [ 0.266188] TCP bind hash table entries: 16 (order: -6, 64 bytes) [ 0.266199] TCP: Hash tables configured (established 16 bind 16) [ 0.266280] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.266300] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.266536] NET: Registered protocol family 1 [ 0.267203] sunxi_spi_probe()2250 - [spi0] SPI DBI INTERFACE [ 0.267219] sunxi_spi_probe()2259 - [spi0] SPI MASTER MODE [ 0.267297] sunxi_spi_resource_get()1917 - sample_mode:1 sample_delay:16 [ 0.267321] spi0 supply spi not found, using dummy regulator [ 0.267410] sunxi_spi_request_gpio()1883 - [spi0] Pinctrl init spi0 [ 0.267503] sunxi_spi_clk_init()1954 - [spi0] mclk 100000000 [ 0.268679] sunxi_spi_probe()2339 - [spi0]: driver probe succeed, base c4868000, irq 294 [ 0.273206] sunxi_sid_driver_init+0x0/0x10 complete comp. [ 0.274599] workingset: timestamp_bits=29 max_order=14 bucket_order=0 [ 0.289787] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.291795] io scheduler noop registered [ 0.291815] io scheduler deadline registered [ 0.292103] io scheduler cfq registered (default) [ 0.293353] [DISP]disp_module_init [ 0.294963] [DISP] parser_disp_init_para,line:1306: [ 0.294980] of_property_read disp_init.disp_init_enable fail [ 0.295534] lcd 0, driver_name , panel_name default_lcd [ 0.295551] lcd 0, driver_name , panel_name he0801a068 [ 0.295559] lcd 0, driver_name , panel_name inet_dsi_panel [ 0.295566] lcd 0, driver_name , panel_name lq101r1sx03 [ 0.295574] lcd 0, driver_name , panel_name WilliamLcd [ 0.295581] lcd 0, driver_name , panel_name bp101wx1 [ 0.295589] lcd 0, driver_name , panel_name k101im2qa04 [ 0.295596] lcd 0, driver_name , panel_name t050k589 [ 0.295603] lcd 0, driver_name , panel_name kd080d24 [ 0.295611] lcd 0, driver_name , panel_name super_lcd_driver [ 0.297390] [DISP]disp_module_init finish [ 0.300747] uart0 supply uart not found, using dummy regulator [ 0.301045] uart0: ttyS0 at MMIO 0x2500000 (irq = 289, base_baud = 1500000) is a SUNXI [ 0.301081] sw_console_setup()2050 - console setup baud 115200 parity n bits 8, flow n [ 1.363657] console [ttyS0] enabled [ 1.368603] misc dump reg init [ 1.372770] npu[1][1] vipcore, platform driver device=0xc396de10 [ 1.379899] npu[1][1] vipcore irq number is 290. [ 1.385091] gckvip_drv_adjust_param 232 SUCCESS [ 1.390313] the freq of pll_npux4 clk is fixed [ 1.395313] Want set pclk rate(348000000) support(1392000000) real(1392000000) [ 1.403560] Want set mclk rate(348000000) support(348000000) real(348000000) [ 1.411572] npu[1][1] This device support 64bits DMA [ 1.417746] npu[1][1] core_0, request irqline=290, name=vipcore_0 [ 1.424678] npu[1][1] =======vipcore parameter===== [ 1.430398] npu[1][1] registerMemBase 0x03050000, [ 1.436239] npu[1][1] registerMemSize 0x00020000, [ 1.442014] npu[1][1] irqLine 0x00000122, [ 1.447825] npu[1][1] contiguousSize 0x00100000 [ 1.453402] npu[1][1] contiguousBase 0x30000000 [ 1.459057] npu[1][1] vipContiguousBase 0x0 [ 1.463950] npu[1][1] drvType 0x00000000 [ 1.469559] npu[1][1] AXISramSize 0x00000000 [ 1.475135] npu[1][1] AXISramBaseAddress 0x00000000 [ 1.480736] npu[1][1] VIPSramSize 0x00020000 [ 1.486326] npu[1][1] VIPSramBaseAddress 0x00400000 [ 1.491902] npu[1][1] sysHeapSize 0x00200000 [ 1.497488] npu[1][1] =============================== [ 1.503249] npu[1][1] VIPLite driver version 1.8.1.0-AW-2022-07-26 [ 1.511431] sunxi-wlan soc@03000000:wlan@0: wlan_busnum (1) [ 1.517976] sunxi-wlan soc@03000000:wlan@0: wlan_power_num (-1) [ 1.524632] sunxi-wlan soc@03000000:wlan@0: Missing wlan_io_regulator. [ 1.532035] sunxi-wlan soc@03000000:wlan@0: io_regulator_name ((null)) [ 1.539421] sunxi-wlan soc@03000000:wlan@0: request pincrtl handle for device [soc@03000000:wlan@0] failed [ 1.550411] sunxi-wlan soc@03000000:wlan@0: wlan_regon gpio=134 mul-sel=1 pull=1 drv_level=2 data=0 [ 1.561055] sunxi-wlan soc@03000000:wlan@0: get gpio chip_en failed [ 1.568163] sunxi-wlan soc@03000000:wlan@0: wlan_hostwake gpio=135 mul-sel=14 pull=1 drv_level=2 data=0 [ 1.579249] sunxi-wlan soc@03000000:wlan@0: clk_name () [ 1.586775] sunxi-spinand: AW SPINand MTD Layer Version: 2.4 20220106 [ 1.594027] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.11 20211125 [ 1.602386] sunxi-spinand-phy: detect munufacture from id table: Winbond [ 1.609991] sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff [ 1.617067] sunxi-spinand-phy: ========== arch info ========== [ 1.623618] sunxi-spinand-phy: Model: W25N01GVZEIG [ 1.630479] sunxi-spinand-phy: Munufacture: Winbond [ 1.636776] sunxi-spinand-phy: DieCntPerChip: 1 [ 1.642449] sunxi-spinand-phy: BlkCntPerDie: 1024 [ 1.648440] sunxi-spinand-phy: PageCntPerBlk: 64 [ 1.654209] sunxi-spinand-phy: SectCntPerPage: 4 [ 1.659892] sunxi-spinand-phy: OobSizePerPage: 64 [ 1.665661] sunxi-spinand-phy: BadBlockFlag: 0x0 [ 1.671537] sunxi-spinand-phy: OperationOpt: 0x7 [ 1.677412] sunxi-spinand-phy: MaxEraseTimes: 65000 [ 1.683474] sunxi-spinand-phy: EccFlag: 0x0 [ 1.689350] sunxi-spinand-phy: EccType: 2 [ 1.695022] sunxi-spinand-phy: EccProtectedType: 3 [ 1.700702] sunxi-spinand-phy: ======================================== [ 1.708140] sunxi-spinand-phy: [ 1.711663] sunxi-spinand-phy: ========== physical info ========== [ 1.718615] sunxi-spinand-phy: TotalSize: 128 M [ 1.723993] sunxi-spinand-phy: SectorSize: 512 B [ 1.729381] sunxi-spinand-phy: PageSize: 2 K [ 1.734564] sunxi-spinand-phy: BlockSize: 128 K [ 1.739952] sunxi-spinand-phy: OOBSize: 64 B [ 1.745232] sunxi-spinand-phy: ======================================== [ 1.752669] sunxi-spinand-phy: [ 1.756202] sunxi-spinand-phy: ========== logical info ========== [ 1.763045] sunxi-spinand-phy: TotalSize: 128 M [ 1.768433] sunxi-spinand-phy: SectorSize: 512 B [ 1.773811] sunxi-spinand-phy: PageSize: 4 K [ 1.779004] sunxi-spinand-phy: BlockSize: 256 K [ 1.784383] sunxi-spinand-phy: OOBSize: 128 B [ 1.789770] sunxi-spinand-phy: ======================================== [ 1.797296] sunxi-spinand-phy: block lock register: 0x00 [ 1.803353] sunxi-spinand-phy: feature register: 0x19 [ 1.809051] sunxi-spinand-phy: sunxi physic nand init end [ 1.817339] sunxipart: failed to parse sunxi_gpt! [ 1.822650] Creating 4 MTD partitions on "sunxi_mtd_nand": [ 1.828877] 0x000000000000-0x000000100000 : "boot0" [ 1.837295] 0x000000100000-0x000000400000 : "uboot" [ 1.847207] 0x000000400000-0x000000500000 : "secure_storage" [ 1.856820] 0x000000500000-0x000008000000 : "sys" [ 1.862741] random: fast init done [ 1.962810] sunxi-spinand-phy: phy blk 684 is bad [ 1.968397] sunxi-spinand-phy: phy blk 687 is bad [ 1.985167] sunxi-spinand-phy: phy blk 764 is bad [ 1.990769] sunxi-spinand-phy: phy blk 767 is bad [ 2.014825] sunxi-spinand-phy: phy blk 893 is bad [ 2.020579] sunxi-spinand-phy: phy blk 896 is bad [ 2.047536] libphy: Fixed MDIO Bus: probed [ 2.053183] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.061040] get ehci0-controller, regulator_io is no nocare [ 2.067392] get ehci0-controller wakeup-source is fail. [ 2.073449] sunxi ehci0-controller don't init wakeup source [ 2.079909] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0a6ff38, 0x:c4873000, irq_no:12e [ 2.092076] [sunxi-ehci0]: Not init ehci0 [ 2.097091] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.104495] get ohci0-controller, regulator_io is no nocare [ 2.110976] get ohci0-controller wakeup-source is fail. [ 2.117110] sunxi ohci0-controller don't init wakeup source [ 2.123465] [sunxi-ohci0]: probe, pdev->name: 4101000.ohci0-controller, sunxi_ohci: 0xc0a7015c [ 2.133225] [sunxi-ohci0]: Not init ohci0 [ 2.138449] usbcore: registered new interface driver uas [ 2.144846] usbcore: registered new interface driver usb-storage [ 2.151890] usbcore: registered new interface driver ums-alauda [ 2.158898] usbcore: registered new interface driver ums-cypress [ 2.166069] usbcore: registered new interface driver ums-datafab [ 2.173001] usbcore: registered new interface driver ums_eneub6250 [ 2.180289] usbcore: registered new interface driver ums-freecom [ 2.187392] usbcore: registered new interface driver ums-isd200 [ 2.194343] usbcore: registered new interface driver ums-jumpshot [ 2.201546] usbcore: registered new interface driver ums-karma [ 2.208513] usbcore: registered new interface driver ums-onetouch [ 2.215683] usbcore: registered new interface driver ums-realtek [ 2.222700] usbcore: registered new interface driver ums-sddr09 [ 2.229688] usbcore: registered new interface driver ums-sddr55 [ 2.236762] usbcore: registered new interface driver ums-usbat [ 2.243441] usb_serial_number:20080411 [ 2.248774] sunxi_gpadc_init,1949, success [ 2.253816] sunxi_gpadc_setup: get channel scan data failed [ 2.261726] input: sunxi-gpadc0 as /devices/virtual/input/input0 [ 2.271084] sunxi-rtc rtc: rtc core: registered sunxi-rtc as rtc0 [ 2.278402] sunxi-rtc rtc: RTC enabled [ 2.282694] fix to hot reboot, save boot reason [ 2.288381] i2c /dev entries driver [ 2.293072] sunxi cedar version 0.1 [ 2.297535] VE: install start!!! [ 2.297535] [ 2.303010] VE: cedar-ve the get irq is 291 [ 2.307985] VE: regs_csi = c48ad000 [ 2.312620] VE: ve_proc_mgr: flag = 1 [ 2.312620] [ 2.318707] VE: install end!!! [ 2.318707] [ 2.324295] google_vp9: sunxi google vp9 version 0.1 [ 2.333482] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 2.343306] Bluetooth: HCI UART driver ver 2.2.d448471.20181218-163903 [ 2.350942] Bluetooth: HCI UART protocol H4 registered [ 2.356853] Bluetooth: HCI H4 protocol initialized [ 2.362497] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 01.00.07 [ 2.370400] bt_fdi debugfs_init [ 2.378663] cpuidle: enable-method property 'psci' found operations [ 2.389927] usbcore: registered new interface driver usbhid [ 2.396681] usbhid: USB HID core driver [ 2.404921] [sound 1158][DAUDIO snd_sunxi_regulator_init] regulator missing or invalid [ 2.416374] sunxi-snd-mach soc@03000000:codec_mach: sunxi-snd-codec <-> soc@03000000:codec_plat mapping ok [ 2.430628] sunxi-snd-mach soc@03000000:daudio0_mach: snd-soc-dummy-dai <-> 2032000.daudio0_plat mapping ok [ 2.445622] NET: Registered protocol family 10 [ 2.452908] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 2.461150] NET: Registered protocol family 17 [ 2.466684] NET: Registered protocol family 15 [ 2.471847] Bluetooth: RFCOMM TTY layer initialized [ 2.477531] Bluetooth: RFCOMM socket layer initialized [ 2.483343] Bluetooth: RFCOMM ver 1.11 [ 2.489026] Registering SWP/SWPB emulation handler [ 2.504110] ubi0: attaching mtd3 [ 2.604128] random: crng init done [ 2.737414] ubi0: scanning is finished [ 2.752614] ubi0: attached mtd3 (name "sys", size 123 MiB) [ 2.758905] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [ 2.766679] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [ 2.774312] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 2.782277] ubi0: good PEBs: 486, bad PEBs: 6, corrupted PEBs: 0 [ 2.789079] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128 [ 2.797308] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [ 2.806725] ubi0: available PEBs: 10, total reserved PEBs: 476, PEBs reserved for bad PEB handling: 4 [ 2.817110] ubi0: background thread "ubi_bgt0d" started, PID 686 [ 2.824452] get det_vbus is fail, 84 [ 2.828683] get id is fail, 84 [ 2.833245] sunxi-rtc rtc: setting system clock to 1970-01-01 00:51:37 UTC (3097) [ 2.842846] clk: Not disabling unused clocks [ 2.847865] ALSA device list: [ 2.851213] #0: audiocodec [ 2.854450] #1: snddaudio0 [ 2.858250] VFS: Cannot open root device "ubiblock0_4" or unknown-block(0,0): error -6 [ 2.867287] Please append a correct "root=" boot option; here are the available partitions: [ 2.876744] 1f00 1024 mtdblock0 (driver?) [ 2.882436] 1f01 3072 mtdblock1 (driver?) [ 2.888162] 1f02 1024 mtdblock2 (driver?) [ 2.893848] 1f03 125952 mtdblock3 (driver?) [ 2.899630] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 2.908920] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.191 #94 [ 2.915567] Hardware name: sun8iw21 [ 2.919516] [<c010d3cc>] (unwind_backtrace) from [<c010a51c>] (show_stack+0x10/0x14) [ 2.928227] [<c010a51c>] (show_stack) from [<c016ff58>] (panic+0xac/0x2b0) [ 2.935962] [<c016ff58>] (panic) from [<c0901270>] (mount_block_root+0x208/0x2f4) [ 2.944380] [<c0901270>] (mount_block_root) from [<c0901504>] (prepare_namespace+0x138/0x178) [ 2.953967] [<c0901504>] (prepare_namespace) from [<c0900e80>] (kernel_init_freeable+0x11c/0x178) [ 2.963942] [<c0900e80>] (kernel_init_freeable) from [<c06098d0>] (kernel_init+0x8/0x108) [ 2.973138] [<c06098d0>] (kernel_init) from [<c0106ca8>] (ret_from_fork+0x14/0x2c) [ 2.981649] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 2.991809] sunxi dump enabled [ 2.995234] dump regs done [ 2.998304] flush cache done [ 3.001555] crashdump enter
-
想了几天,终于想明白了
-
@daming123 你好,我也遇到了一样的问题,能请教一下解决思路么?
-
@steven73
用的是什么存储介质启动?完整打印看下
-
此回复已被删除! -
-
-
在T113S3上实测有效
-
-
-
感谢分享,谢谢。。。。
-
大佬你好,我如果t113存储介质切换 由spi namd flash 128M切换到 512M
上面的几种方法 也可以适用吗? -
@chunyangjs你好! 我的T113目前使用spi nand flash 128M 如果将它升级到512M 这个方法也可以吗?
-
-
大佬,可以帮忙解答下吗 -
@nathanliu spi配置没问题,查一下brandy/brandy-2.0/u-boot-2018/drivers/mtd/awnand/spinand/physic/id.c的struct aw_spinand_phy_info gigadevice[],应该没有你现在用的SPI NAND
后续还要检查kernel/linux-5.4/drivers/mtd/awnand/spinand/physic/id.c,两个路径需要同时添加 -
@tanlining 请问阁下你这个问题是怎么解决呢 感谢
-
[10342]fes begin commit:2a3ec52022 [10345]set pll start [10347]periph0 has been enabled [10350]set pll end [10410][pmu]: bus read error [10413]board init ok [10415]beign to init dram [10417]DRAM use internal ZQ!! [10420]ZQ value = 0x30 [10422]chip id check OK [10424]POWER SETTING ERROR! [10427]trefi:7.8ms [10430][AUTO DEBUG] single rank and full DQ! [10434]trefi:7.8ms [10436][AUTO DEBUG] rank 0 row = 13 [10439][AUTO DEBUG] rank 0 bank = 4 [10443][AUTO DEBUG] rank 0 page size = 2 KB [10447]DRAM BOOT DRIVE INFO: V0.16 [10450]DRAM CLK = 528 MHz [10452]DRAM Type = 2 (2:DDR2,3:DDR3) [10456]DRAMC read ODT off. [10459]DRAM ODT off. [10461]DRAM SIZE =64 M [10463]dram_tpr4:0x0 [10467]DRAM simple test OK. [10470]rtc standby flag is 0x0, super standby flag is 0x0 [10475]init dram ok U-Boot 2018.05-g3a34d5f-dirty (Nov 11 2024 - 08:21:33 -0800) Allwinner Technology [11.958]CPU: Allwinner Family [11.961]Model: sun8iw21 I2C: [I2C-ERROR]:twi_send_clk_9pulse() 147 SDA is still Stuck Low, failed. ready [12.021]DRAM: 64 MiB [12.024]Relocation Offset is: 01eef000 [12.053]secure enable bit: 0 [I2C-ERROR]:twi_stop() 339 STOP can't sendout! [12.060]pmu_axp2101_probe pmic_bus_read fail [12.064]PMU: no found [I2C-ERROR]:twi_stop() 339 STOP can't sendout! [12.070]bmu_axp2101_probe pmic_bus_read fail [12.074]BMU: no found [12.076]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [12.082]gic: normal mode sunxi flash map init [12.086]flash init start xxx [12.089]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [12.097][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [12.102][mmc]: get sdc_type fail and use default host:tm4. [12.109][mmc]: Is not Boot mode! [12.112][mmc]: SUNXI SDMMC Controller Version:0x50400 [12.123][mmc]: ************Try SD card 2************ [12.128][mmc]: mmc 2 cmd timeout 100 status 100 [12.132][mmc]: smc 2 err, cmd 8, RTO [12.136][mmc]: mmc 2 close bus gating and reset [12.141][mmc]: mmc 2 cmd timeout 100 status 100 [12.145][mmc]: smc 2 err, cmd 55, RTO [12.148][mmc]: mmc 2 close bus gating and reset [12.153][mmc]: ************Try MMC card 2************ [12.161][mmc]: mmc 2 cmd timeout 100 status 100 [12.166][mmc]: smc 2 err, cmd 1, RTO [12.169][mmc]: mmc 2 close bus gating and reset [12.173][mmc]: Card did not respond to voltage select! [12.178][mmc]: ************SD/MMC 2 init error!************ [12.183][mmc]: mmc init product failed MMC init failed try emmc fail [12.190]sunxi-spinand: AW SPINand MTD Layer Version: 1.8 20220106 [12.196]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.11 20211217 [12.204]sunxi-spinand-phy: request spi0 gpio ok [12.208]sunxi-spinand-phy: request general tx dma channel ok! [12.214]sunxi-spinand-phy: request general rx dma channel ok! [12.219]sunxi-spinand-phy: set spic0 clk to 20 Mhz [12.224]sunxi-spinand-phy: init spic0 clk ok [12.228]sunxi-spinand-phy: detect munufacture from id table: Mxic [12.233]sunxi-spinand-phy: detect spinand id: ff0326c2 ffffffff [12.239]sunxi-spinand-phy: ========== arch info ========== [12.244]sunxi-spinand-phy: Model: MX35LF2GE4AD [12.250]sunxi-spinand-phy: Munufacture: Mxic [12.254]sunxi-spinand-phy: DieCntPerChip: 1 [12.259]sunxi-spinand-phy: BlkCntPerDie: 2048 [12.263]sunxi-spinand-phy: PageCntPerBlk: 64 [12.268]sunxi-spinand-phy: SectCntPerPage: 4 [12.272]sunxi-spinand-phy: OobSizePerPage: 64 [12.277]sunxi-spinand-phy: BadBlockFlag: 0x1 [12.281]sunxi-spinand-phy: OperationOpt: 0x7 [12.286]sunxi-spinand-phy: MaxEraseTimes: 65000 [12.291]sunxi-spinand-phy: EccFlag: 0x2 [12.295]sunxi-spinand-phy: EccType: 8 [12.300]sunxi-spinand-phy: EccProtectedType: 3 [12.304]sunxi-spinand-phy: ======================================== [12.310]sunxi-spinand-phy: [12.313]sunxi-spinand-phy: ========== physical info ========== [12.318]sunxi-spinand-phy: TotalSize: 256 M [12.322]sunxi-spinand-phy: SectorSize: 512 B [12.327]sunxi-spinand-phy: PageSize: 2 K [12.330]sunxi-spinand-phy: BlockSize: 128 K [12.335]sunxi-spinand-phy: OOBSize: 64 B [12.339]sunxi-spinand-phy: ======================================== [12.345]sunxi-spinand-phy: [12.347]sunxi-spinand-phy: ========== logical info ========== [12.353]sunxi-spinand-phy: TotalSize: 256 M [12.357]sunxi-spinand-phy: SectorSize: 512 B [12.361]sunxi-spinand-phy: PageSize: 4 K [12.365]sunxi-spinand-phy: BlockSize: 256 K [12.369]sunxi-spinand-phy: OOBSize: 128 B [12.373]sunxi-spinand-phy: ======================================== [12.380]sunxi-spinand-phy: MX35LF2GE4AD reset rx bit width to 1 [12.385]sunxi-spinand-phy: MX35LF2GE4AD reset tx bit width to 1 [12.391]sunxi-spinand-phy: block lock register: 0x00 [12.396]sunxi-spinand-phy: feature register: 0x11 [12.400]sunxi-spinand-phy: sunxi physic nand init end [12.822]sunxi-spinand-phy: set spic0 clk to 100 Mhz [14.056]sunxi-spinand-phy: Sample mode:1 min_delay:4160 max_delay:14120 right_delay:19) [14.219]line:724 init_clocks [14.222]init_clocks:finish [14.225]Loading Environment from SUNXI_FLASH... OK [14.229]try to burn key [14.232]out of usb burn from boot: not need burn key Hit any key to stop autoboot: 0 sunxi work mode=0x10 run usb efex delay time 2500 weak:otg_phy_config usb init ok set address 0x9 set address 0x9 ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x12 origin_erase_flag = 0x1 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 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 6 part[0] name :boot-res part[0] classname :DISK part[0] addrlo :0x2000 part[0] lenlo :0x400 part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x2400 part[1] lenlo :0x200 part[1] user_type :32768 part[1] keydata :0 part[1] ro :0 part[2] name :boot part[2] classname :DISK part[2] addrlo :0x2600 part[2] lenlo :0x5710 part[2] user_type :32768 part[2] keydata :0 part[2] ro :0 part[3] name :rootfs part[3] classname :DISK part[3] addrlo :0x7d10 part[3] lenlo :0x1e910 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs_data part[4] classname :DISK part[4] addrlo :0x26620 part[4] lenlo :0x19000 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :UDISK part[5] classname :DISK part[5] addrlo :0x3f620 part[5] lenlo :0x0 part[5] user_type :33024 part[5] keydata :0 part[5] ro :0 total part: 7 mbr 0, 2000, 8000 boot-res 1, 400, 8000 env 2, 200, 8000 boot 3, 5710, 8000 rootfs 4, 1e910, 8000 rootfs_data 5, 19000, 8000 UDISK 6, 0, 8100 [17.227]erase blk 0 to blk 32 [17.230]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.234]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.241]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.246]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.253]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.257]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.264]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.269]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.276]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.280]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.287]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.292]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.299]sunxi-spinand-phy: [SPINAND]: ecc error 0xf [17.303]sunxi-spinand-phy: [SPINAND]: ecc error 0xf need erase flash: 18 [17.376]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 0x0fb00000 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) [17.427]MTD info (4) [17.429]pagesize: 0x1000 [17.431]blksize: 0x40000 [17.433]num offset bytes name [17.437]0 0x00000000 0x00100000 boot0 [17.440]1 0x00100000 0x00300000 uboot [17.444]2 0x00400000 0x00100000 secure_storage [17.449]3 0x00500000 0x0fb00000 sys [17.452]ubi attach the last part of mtd device: NO.3 [17.756]ubi0: attaching mtd4 [18.228]ubi0: scanning is finished [18.239]ubi0: attached mtd4 (name "sys", size 251 MiB) [18.243]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [18.250]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [18.256]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [18.262]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [18.268]ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128 [18.274]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [18.282]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [18.291]erase blk 0 to blk 32 [18.349]erase blk 40 to blk 2048 [22.339]sunxi-spinand: spinand secure storage ok for phy blk 32 and 33 [22.347]Item0 (Map) magic is bad [22.350]the secure storage map is empty [22.447]sunxi-spinand: write secure storage itme 0 ok [22.452]erase secure storage: 0 ok 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 0x0fb00000 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) [22.500]MTD info (4) [22.502]pagesize: 0x1000 [22.504]blksize: 0x40000 [22.506]num offset bytes name [22.510]0 0x00000000 0x00100000 boot0 [22.514]1 0x00100000 0x00300000 uboot [22.517]2 0x00400000 0x00100000 secure_storage [22.522]3 0x00500000 0x0fb00000 sys [22.525]MBR info (unalign): [22.528]partno addr sects type name [22.532]0 0x00000000 0x00002000 0x00000001 mbr [22.537]1 0x00002000 0x00000400 0x00008000 boot-res [22.542]2 0x00002400 0x00000200 0x00008000 env [22.547]3 0x00002600 0x00005710 0x00008000 boot [22.552]4 0x00007d10 0x0001e910 0x00008000 rootfs [22.557]5 0x00026620 0x00019000 0x00008000 rootfs_data [22.563]6 0x0003f620 0x00000000 0x00008100 UDISK [22.567]ubi attach the last part of mtd device: NO.3 [22.572]MBR info (align): [22.574]partno addr sects type name [22.579]0 0x00002800 0x00002178 0x00000001 mbr [22.584]1 0x00004978 0x000005e8 0x00008000 boot-res [22.589]2 0x00004f60 0x000003f0 0x00008000 env [22.594]3 0x00005350 0x00005898 0x00008000 boot [22.599]4 0x0000abe8 0x0001ea38 0x00008000 rootfs [22.604]5 0x00029620 0x000191a0 0x00008000 rootfs_data [22.609]6 0x000427c0 0x00000000 0x00008100 UDISK [22.614]ubi attach the last part of mtd device: NO.3 [22.619]ubi attatch mtd, name: sys [22.622]ubi0: detaching mtd4 [22.625]ubi0: mtd4 is detached [22.628]ubi0: attaching mtd4 [22.865]ubi0: scanning is finished [22.868]ubi0: empty MTD device detected [22.895]ubi0: attached mtd4 (name "sys", size 251 MiB) [22.899]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [22.905]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [22.912]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [22.918]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [22.923]ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128 [22.930]ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 0 [22.938]ubi0: available PEBs: 960, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40 Creating static volume mbr of size 4386816 Creating dynamic volume boot-res of size 774144 Creating dynamic volume env of size 516096 Creating dynamic volume boot of size 11612160 Creating dynamic volume rootfs of size 64253952 Creating dynamic volume rootfs_data of size 52641792 No size specified -> Using max size (113541120) [27.162]reset last volume size to 0x36240 Creating dynamic volume UDISK of size 113541120 [27.195]existed volume UDISK size is 221760(sects) , inside ubi part size is 0(sects),existed volume size to update inside ubi part size [27.207]existed volume UDISK size is 221760(sects) , inside ubi part size is 0(sects),existed volume size to update inside ubi part size [27.243]fill gap start: volume mbr sects 0x1f80 [28.783]fill gap end: volume mbr [28.786]update partition map [28.788]logical area info: 960 258048 last_lba: 483839 [28.801]logical area info: 960 258048 last_lba: 483839 [28.813]logical area info: 960 258048 last_lba: 483839 [28.826]logical area info: 960 258048 last_lba: 483839 [28.838]logical area info: 960 258048 last_lba: 483839 [28.850]logical area info: 960 258048 last_lba: 483839 [28.863]logical area info: 960 258048 last_lba: 483839 [28.875]logical area info: 960 258048 last_lba: 483839 [28.888]logical area info: 960 258048 last_lba: 483839 [28.900]logical area info: 960 258048 last_lba: 483839 [28.912]logical area info: 960 258048 last_lba: 483839 [28.925]logical area info: 960 258048 last_lba: 483839 [28.937]logical area info: 960 258048 last_lba: 483839 [28.949]logical area info: 960 258048 last_lba: 483839 [28.962]logical area info: 960 258048 last_lba: 483839 [28.974]logical area info: 960 258048 last_lba: 483839 [28.987]logical area info: 960 258048 last_lba: 483839 [28.999]logical area info: 960 258048 last_lba: 483839 [29.011]logical area info: 960 258048 last_lba: 483839 [29.024]logical area info: 960 258048 last_lba: 483839 [29.036]logical area info: 960 258048 last_lba: 483839 [29.048]logical area info: 960 258048 last_lba: 483839 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 [29.088]fill gap start: volume boot-res sects 0x360 [29.184]fill gap end: volume boot-res FEX_CMD_fes_verify_value, start 0x2000, size high 0x0:low 0x14000 FEX_CMD_fes_verify_value 0xe6f75b5c [29.239]fill gap start: volume env sects 0x100 [29.333]fill gap end: volume env FEX_CMD_fes_verify_value, start 0x2400, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0x12e446f8 [31.557]fill gap start: volume boot sects 0x1b98 [31.679]fill gap end: volume boot FEX_CMD_fes_verify_value, start 0x2600, size high 0x0:low 0x76f000 FEX_CMD_fes_verify_value 0xbdbf9631 [41.076]fill gap start: volume rootfs sects 0x10110 [41.442]fill gap end: volume rootfs FEX_CMD_fes_verify_value, start 0x7d10, size high 0x0:low 0x1d00000 FEX_CMD_fes_verify_value 0x77474c0a bootfile_mode=4 SUNXI_EFEX_BOOT1_TAG boot1 size = 0xe8000, max size = 0x200000 uboot size = 0xe8000 storage type = 0 [45.050]uboot blk range [8-32) [45.052]download uboot to block 8 (8 blocks) len 928K [45.306]download uboot to block 16 (8 blocks) len 928K [45.559]download uboot to block 24 (8 blocks) len 928K FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 bootfile_mode=4 SUNXI_EFEX_BOOT0_TAG boot0 size = 0xa000 dram para[0] = 210 dram para[1] = 2 dram para[2] = 7b7bf9 dram para[3] = 0 dram para[4] = d2 dram para[5] = 400000 dram para[6] = e73 dram para[7] = 2 dram para[8] = 0 dram para[9] = 0 dram para[10] = 471992 dram para[11] = 131a10c dram para[12] = 57041 dram para[13] = b4787896 dram para[14] = 0 dram para[15] = 48484848 dram para[16] = 48 dram para[17] = 1621121e dram para[18] = 0 dram para[19] = 0 dram para[20] = 0 dram para[21] = 22 dram para[22] = 77 dram para[23] = b4006103 dram para[24] = 0 dram para[25] = 0 dram para[26] = 0 dram para[27] = 0 dram para[28] = 0 dram para[29] = 0 dram para[30] = 0 dram para[31] = 0 storage type = 0 [45.883]download boot0 to block 0 len 40K [45.899]download boot0 to block 1 len 40K [45.914]download boot0 to block 2 len 40K [45.930]download boot0 to block 3 len 40K [45.945]download boot0 to block 4 len 40K [45.960]download boot0 to block 5 len 40K [45.976]download boot0 to block 6 len 40K [45.991]download boot0 to block 7 len 40K FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 sunxi_efex_next_action=2 exit usb next work 2 ?[22]HELLO! BOOT0 is starting!T [25]BOOT0 commit : 2a3ec52022 [28]set pll start [30]periph0 has been enabled [32]set pll end [108][pmu]: bus read error [111]board init ok [113]DRAM use internal ZQ!! [115]ZQ value = 0x30 [117]chip id check OK [119]POWER SETTING ERROR! [122]DRAM BOOT DRIVE INFO: V0.16 [125]DRAM CLK = 528 MHz [127]DRAM Type = 2 (2:DDR2,3:DDR3) [131]DRAMC read ODT off. [133]DRAM ODT off. [136]DRAM SIZE =64 M [138]dram_tpr4:0x0 [145]DRAM simple test OK. [147]rtc standby flag is 0x0, super standby flag is 0x0 [152]dram size =64 [155]audio:avcc calibration [158]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [163]block from 8 to 32 [496]Check is correct. [498]Entry_name = optee [501]Entry_name = u-boot [509]Entry_name = dtb [512]Jump to second Boot. M/TC: OP-TEE version: 15ee1539b (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm E/TC:0 0 platform_standby_fdt_parse:133 no pmu node E/TC:0 0 sunxi_twi_parse_from_dt:121 no pmu node U-Boot 2018.05-g3a34d5f-dirty (Nov 11 2024 - 08:21:33 -0800) Allwinner Technology [00.590]CPU: Allwinner Family [00.593]Model: sun8iw21 I2C: [I2C-ERROR]:twi_send_clk_9pulse() 147 SDA is still Stuck Low, failed. ready [00.653]DRAM: 64 MiB [00.656]Relocation Offset is: 01eef000 [00.685]secure enable bit: 0 E/TC:0 tee_read_fdt:433 fine node /firmware/optee failed with FDT_ERR_NOTFOUND [00.699]smc_tee_inform_fdt failed with: ffff0000 [I2C-ERROR]:twi_stop() 339 STOP can't sendout! [00.709]pmu_axp2101_probe pmic_bus_read fail [I2C-ERROR]:twi_stop() 339 STOP can't sendout! [00.718]bmu_axp2101_probe pmic_bus_read fail [00.722]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [00.728]gic: sec monitor mode sunxi flash map init [00.733]flash init start xxx [00.735]workmode = 0,storage type = 0 [00.743]sunxi-spinand-phy: spinand sample_mode:1 sample_delay:19 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 0x0fb00000 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) [01.089]ubi0: attaching mtd4 [01.561]ubi0: scanning is finished [01.571]ubi0: attached mtd4 (name "sys", size 251 MiB) [01.576]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [01.582]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [01.588]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [01.595]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [01.600]ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128 [01.607]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [01.615]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [01.623]sunxi flash init ok [01.626]line:724 init_clocks [01.794]Loading Environment from SUNXI_FLASH... backup env check CRC fail Now update backup env Saving Environment to SUNXI_FLASH... Writing to env... OK OK [01.965]Item0 (Map) magic is bad [01.968]out of usb burn from boot: not need burn key [01.997]update bootcmd [02.022]change working_fdt 0x42aaee70 to 0x42a8ee70 disable nand error: FDT_ERR_NOTFOUND [02.037]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND [02.042]update dts Hit any key to stop autoboot: 0 input addr exceed dram scope [03.977]no vendor_boot partition is found Android's image name: sun8i_arm [04.038]Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.191 (vmuser@ubuntu) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #8 PREEMPT Wed Nov 13 08:16:42 PST 2024 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt:Machine model: sun8iw21 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat c0a430f8, node_mem_map c3f78000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: ubi.mtd=sys earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/ubiblock0_4 rootfstype=ubifs, rw init=/init partitions=mbr@ubi0_0:boot-res@ubi0_1:env@ubi0_2:boot@ubi0_3:rootfs@ubi0_4:rootfs_data@ubi0_5:UDISK@ubi0_6: cma= snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw21p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05-g3a34d5f-dirty(11/11/2024-08:21:33) mbr_offset=1032192 bootreason=button aw-ubi-spinand.ubootblks=24 androidboot.dramsize=64 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 54784K/65536K available (6144K kernel code, 272K rwdata, 1404K rodata, 1024K init, 150K bss, 10752K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB) [ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB) [ 0.000000] .data : 0xc0a00000 - 0xc0a44138 ( 273 kB) [ 0.000000] .bss : 0xc0a44138 - 0xc0a69a48 ( 151 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000020] Switching to timer-based delay loop, resolution 41ns [ 0.000200] Console: colour dummy device 80x30 [ 0.000232] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000246] pid_max: default: 32768 minimum: 301 [ 0.000443] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000456] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001034] CPU: Testing write buffer coherency: ok [ 0.001663] Setting up static identity map for 0x40100000 - 0x40100058 [ 0.003412] devtmpfs: initialized [ 0.034801] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.035380] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.035412] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.035560] atomic64_test: passed [ 0.035573] pinctrl core: initialized pinctrl subsystem [ 0.036747] NET: Registered protocol family 16 [ 0.037517] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.038867] dump_class_init,857, success [ 0.059409] cpuidle: using governor menu [ 0.060768] platform 2010000.iommu: iova_base: 0x48400000 [ 0.061356] sunxi iommu: irq = 22 [ 0.082173] sun8iw21p1-pinctrl pio: initialized sunXi PIO driver [ 0.085184] iommu: Adding device npu to group 0 [ 0.087241] iommu: Adding device 1c0e000.ve to group 0 [ 0.100226] iommu: Adding device 5410000.g2d to group 0 [ 0.101098] iommu: Adding device 5000000.disp to group 0 [ 0.113039] iommu: Adding device 5908000.tdm to group 0 [ 0.114003] iommu: Adding device 5900000.isp to group 0 [ 0.115021] iommu: Adding device 58ffffc.isp to group 0 [ 0.115889] iommu: Adding device 58ffff8.isp to group 0 [ 0.116592] iommu: Adding device 58ffff4.isp to group 0 [ 0.117050] iommu: Adding device 5800800.vind:isp@4 to group 0 [ 0.117942] iommu: Adding device 5910000.scaler to group 0 [ 0.118596] iommu: Adding device 590fffc.scaler to group 0 [ 0.119279] iommu: Adding device 590fff8.scaler to group 0 [ 0.120204] iommu: Adding device 590fff4.scaler to group 0 [ 0.121105] iommu: Adding device 5910400.scaler to group 0 [ 0.121764] iommu: Adding device 59103fc.scaler to group 0 [ 0.122377] iommu: Adding device 59103f8.scaler to group 0 [ 0.122864] iommu: Adding device 59103f4.scaler to group 0 [ 0.123755] iommu: Adding device 5910800.scaler to group 0 [ 0.124407] iommu: Adding device 59107fc.scaler to group 0 [ 0.125095] iommu: Adding device 59107f8.scaler to group 0 [ 0.125703] iommu: Adding device 59107f4.scaler to group 0 [ 0.126592] iommu: Adding device 5910c00.scaler to group 0 [ 0.127243] iommu: Adding device 5910bfc.scaler to group 0 [ 0.127733] iommu: Adding device 5910bf8.scaler to group 0 [ 0.128340] iommu: Adding device 5910bf4.scaler to group 0 [ 0.129650] iommu: Adding device vinc0 to group 0 [ 0.130878] iommu: Adding device vinc4 to group 0 [ 0.131759] iommu: Adding device vinc8 to group 0 [ 0.132494] iommu: Adding device vinc12 to group 0 [ 0.182206] pwm module init! [ 0.186845] sunxi-pm debug v3.10 [ 0.187890] SCSI subsystem initialized [ 0.188256] usbcore: registered new interface driver usbfs [ 0.188348] usbcore: registered new interface driver hub [ 0.192300] usbcore: registered new device driver usb [ 0.192664] sunxi_i2c_adap_init()2754 - init [ 0.192895] sun8iw21p1-pinctrl pio: expect_func as:twi6, but muxsel(4) is func:twi3 [ 0.192912] sun8iw21p1-pinctrl pio: expect_func as:twi6, but muxsel(4) is func:twi3 [ 0.193249] sunxi_i2c_probe()2449 - [i2c3] twi_drv_used = 0 [ 0.193266] sunxi_i2c_probe()2456 - [i2c3] twi_pkt_interval = 0 [ 0.193336] twi_regulator_request()653 - [i2c3] regulator not found(isn't configured in dts)! [ 0.193347] twi_request_gpio()469 - [i2c3] init name: (null) [ 0.194383] media: Linux media interface: v0.10 [ 0.194567] Linux video capture interface: v2.00 [ 0.196686] ion_parse_dt_heap_common: id 0 type 0 name sys_user align 1000 [ 0.197886] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000 [ 0.198939] Advanced Linux Sound Architecture Driver Initialized. [ 0.199942] Bluetooth: Core ver 2.22 [ 0.200412] NET: Registered protocol family 31 [ 0.200428] Bluetooth: HCI device and connection manager initialized [ 0.200454] Bluetooth: HCI socket layer initialized [ 0.200469] Bluetooth: L2CAP socket layer initialized [ 0.200543] Bluetooth: SCO socket layer initialized [ 0.203896] G2D: rcq version initialized.major:251 [ 0.205216] clocksource: Switched to clocksource arch_sys_counter [ 0.237762] get androidboot.mode fail [ 0.239967] NET: Registered protocol family 2 [ 0.255592] TCP established hash table entries: 16 (order: -6, 64 bytes) [ 0.255613] TCP bind hash table entries: 16 (order: -6, 64 bytes) [ 0.255623] TCP: Hash tables configured (established 16 bind 16) [ 0.255702] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.255725] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.255969] NET: Registered protocol family 1 [ 0.256297] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC0 [ 0.256319] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC1 [ 0.256334] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC2 [ 0.256350] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC3 [ 0.256364] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC4 [ 0.256379] sun8iw21p1-pinctrl pio: can not get func[mux=7] on pin PC5 [ 0.256614] sunxi_spi_probe()2250 - [spi0] SPI DBI INTERFACE [ 0.256629] sunxi_spi_probe()2259 - [spi0] SPI MASTER MODE [ 0.256707] sunxi_spi_resource_get()1917 - sample_mode:1 sample_delay:19 [ 0.256731] spi0 supply spi not found, using dummy regulator [ 0.256828] sunxi_spi_request_gpio()1883 - [spi0] Pinctrl init spi0 [ 0.256922] sunxi_spi_clk_init()1954 - [spi0] mclk 100000000 [ 0.258111] sunxi_spi_probe()2339 - [spi0]: driver probe succeed, base c486a000, irq 294 [ 0.262420] workingset: timestamp_bits=29 max_order=14 bucket_order=0 [ 0.279673] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.280308] jffs2: version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc. [ 0.282840] io scheduler noop registered [ 0.282861] io scheduler deadline registered [ 0.283174] io scheduler cfq registered (default) [ 0.287517] uart0 supply uart not found, using dummy regulator [ 0.287782] uart0: ttyS0 at MMIO 0x2500000 (irq = 289, base_baud = 1500000) is a SUNXI [ 0.287817] sw_console_setup()2050 - console setup baud 115200 parity n bits 8, flow n [ 1.315293] console [ttyS0] enabled [ 1.320671] misc dump reg init [ 1.324848] npu[1][1] vipcore, platform driver device=0xc39efe10 [ 1.331945] npu[1][1] vipcore irq number is 290. [ 1.337197] gckvip_drv_adjust_param 232 SUCCESS [ 1.342318] the freq of pll_npux4 clk is fixed [ 1.347426] Want set pclk rate(348000000) support(1392000000) real(1392000000) [ 1.355565] Want set mclk rate(348000000) support(348000000) real(348000000) [ 1.363493] npu[1][1] This device support 64bits DMA [ 1.369642] npu[1][1] core_0, request irqline=290, name=vipcore_0 [ 1.376784] npu[1][1] =======vipcore parameter===== [ 1.382246] npu[1][1] registerMemBase 0x03050000, [ 1.388068] npu[1][1] registerMemSize 0x00020000, [ 1.393815] npu[1][1] irqLine 0x00000122, [ 1.399597] npu[1][1] contiguousSize 0x02000000 [ 1.405150] npu[1][1] contiguousBase 0x30000000 [ 1.410780] npu[1][1] vipContiguousBase 0x0 [ 1.415688] npu[1][1] drvType 0x00000000 [ 1.421238] npu[1][1] AXISramSize 0x00000000 [ 1.426815] npu[1][1] AXISramBaseAddress 0x00000000 [ 1.432364] npu[1][1] VIPSramSize 0x00020000 [ 1.437930] npu[1][1] VIPSramBaseAddress 0x00400000 [ 1.443481] npu[1][1] sysHeapSize 0x00200000 [ 1.449044] npu[1][1] =============================== [ 1.454779] npu[1][1] VIPLite driver version 1.8.0.0-AW-2022-04-21 [ 1.462924] sunxi-wlan soc@03000000:wlan@0: wlan_busnum (1) [ 1.469436] sunxi-wlan soc@03000000:wlan@0: wlan_power_num (-1) [ 1.476135] sunxi-wlan soc@03000000:wlan@0: Missing wlan_io_regulator. [ 1.483439] sunxi-wlan soc@03000000:wlan@0: io_regulator_name ((null)) [ 1.490798] sunxi-wlan soc@03000000:wlan@0: request pincrtl handle for device [soc@03000000:wlan@0] failed [ 1.501739] sunxi-wlan soc@03000000:wlan@0: wlan_regon gpio=134 mul-sel=1 pull=1 drv_level=2 data=0 [ 1.512335] sunxi-wlan soc@03000000:wlan@0: get gpio chip_en failed [ 1.519414] sunxi-wlan soc@03000000:wlan@0: wlan_hostwake gpio=135 mul-sel=14 pull=1 drv_level=2 data=0 [ 1.530448] sunxi-wlan soc@03000000:wlan@0: clk_name () [ 1.538532] libphy: Fixed MDIO Bus: probed [ 1.544751] sunxi gmac driver's version: 2.0.2 [ 1.552181] Failed to alloc md5 [ 1.555820] eth0: Use random mac address [ 1.560657] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.568748] get ehci0-controller, regulator_io is no nocare [ 1.574991] get ehci0-controller wakeup-source is fail. [ 1.581115] sunxi ehci0-controller don't init wakeup source [ 1.587488] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0a5daf0, 0x:c4872000, irq_no:130 [ 1.599593] [sunxi-ehci0]: Not init ehci0 [ 1.604554] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.612094] get ohci0-controller, regulator_io is no nocare [ 1.618421] get ohci0-controller wakeup-source is fail. [ 1.624437] sunxi ohci0-controller don't init wakeup source [ 1.630849] [sunxi-ohci0]: probe, pdev->name: 4101000.ohci0-controller, sunxi_ohci: 0xc0a5dd14 [ 1.640567] [sunxi-ohci0]: Not init ohci0 [ 1.645790] usbcore: registered new interface driver uas [ 1.652156] usbcore: registered new interface driver usb-storage [ 1.659174] usbcore: registered new interface driver ums-alauda [ 1.666141] usbcore: registered new interface driver ums-cypress [ 1.673166] usbcore: registered new interface driver ums-datafab [ 1.680224] usbcore: registered new interface driver ums_eneub6250 [ 1.687551] usbcore: registered new interface driver ums-freecom [ 1.694559] usbcore: registered new interface driver ums-isd200 [ 1.701450] usbcore: registered new interface driver ums-jumpshot [ 1.708606] usbcore: registered new interface driver ums-karma [ 1.715526] usbcore: registered new interface driver ums-onetouch [ 1.722674] usbcore: registered new interface driver ums-realtek [ 1.729682] usbcore: registered new interface driver ums-sddr09 [ 1.736644] usbcore: registered new interface driver ums-sddr55 [ 1.743558] usbcore: registered new interface driver ums-usbat [ 1.750341] usb_serial_number:20080411 [ 1.755652] sunxi_gpadc_init,1949, success [ 1.760678] sunxi_gpadc_setup: get channel scan data failed [ 1.768529] input: sunxi-gpadc0 as /devices/virtual/input/input0 [ 1.777850] sunxi-rtc rtc: rtc core: registered sunxi-rtc as rtc0 [ 1.784740] sunxi-rtc rtc: RTC enabled [ 1.789371] fix to cold boot, save boot reason [ 1.794778] i2c /dev entries driver [ 1.799819] usbcore: registered new interface driver uvcvideo [ 1.806662] USB Video Class driver (1.1.1) [ 1.811262] sunxi cedar version 0.1 [ 1.815417] VE: install start!!! [ 1.815417] [ 1.820845] VE: cedar-ve the get irq is 291 [ 1.825746] VE: regs_csi = c48ab000 [ 1.830352] VE: ve_debug_proc_info:c0a61300, data:c3bd8000, lock:c0a61388, flag: 1 [ 1.830352] [ 1.840842] VE: install end!!! [ 1.840842] [ 1.846476] google_vp9: sunxi google vp9 version 0.1 [ 1.854931] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 1.864739] Bluetooth: HCI UART driver ver 2.2.d448471.20181218-163903 [ 1.872369] Bluetooth: HCI UART protocol H4 registered [ 1.878256] Bluetooth: HCI H4 protocol initialized [ 1.883870] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 01.00.07 [ 1.891724] bt_fdi debugfs_init [ 1.897399] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 900000 KHz [ 1.935321] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 912000 KHz [ 1.945642] cpuidle: enable-method property 'psci' found operations [ 1.955637] sunxi-mmc sdc0: SD/MMC/SDIO Host Controller Driver(v3.59 2022-4-21 13:40) [ 1.964613] sunxi-mmc sdc0: ***ctl-spec-caps*** 8 [ 1.970250] sunxi-mmc sdc0: No vmmc regulator found [ 1.975861] sunxi-mmc sdc0: No vqmmc regulator found [ 1.981422] sunxi-mmc sdc0: No vdmmc regulator found [ 1.987072] sunxi-mmc sdc0: No vd33sw regulator found [ 1.992731] sunxi-mmc sdc0: No vd18sw regulator found [ 1.998426] sunxi-mmc sdc0: No vq33sw regulator found [ 2.004082] sunxi-mmc sdc0: No vq18sw regulator found [ 2.010401] sunxi-mmc sdc0: set host busy [ 2.015006] sunxi-mmc sdc0: Got CD GPIO [ 2.019880] sunxi-mmc sdc0: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.203044] random: fast init done [ 2.275310] sunxi-mmc sdc0: no vqmmc,Check if there is regulator [ 2.305277] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.345480] sunxi-mmc sdc0: detmode:gpio irq [ 2.350548] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.360066] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.369448] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.378820] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.388187] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.397550] sun8iw21p1-pinctrl pio: expect_func as:io_disabled, but muxsel(7) is func:uart3 [ 2.407228] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v3.59 2022-4-21 13:40) [ 2.416208] sunxi-mmc sdc1: ***ctl-spec-caps*** 8 [ 2.421522] sunxi-mmc sdc1: No vmmc regulator found [ 2.427025] sunxi-mmc sdc1: No vqmmc regulator found [ 2.432585] sunxi-mmc sdc1: No vdmmc regulator found [ 2.438160] sunxi-mmc sdc1: No vd33sw regulator found [ 2.443816] sunxi-mmc sdc1: No vd18sw regulator found [ 2.449486] sunxi-mmc sdc1: No vq33sw regulator found [ 2.455142] sunxi-mmc sdc1: No vq18sw regulator found [ 2.461433] sunxi-mmc sdc1: set host busy [ 2.466070] mmc:failed to get gpios [ 2.470384] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.480844] sunxi-mmc sdc1: no vqmmc,Check if there is regulator [ 2.515260] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.555306] sunxi-mmc sdc0: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.565593] sunxi-mmc sdc1: detmode:manually by software [ 2.567176] usbcore: registered new interface driver usbhid [ 2.567180] usbhid: USB HID core driver [ 2.567276] fbtft_of_value: buswidth = 8 [ 2.567282] fbtft_of_value: debug = 0 [ 2.567286] fbtft_of_value: rotate = 0 [ 2.567289] fbtft_of_value: fps = 60 [ 2.646101] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.652882] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.658909] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.687732] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.717118] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.723789] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.730483] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.737163] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.743023] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.766306] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.785293] sunxi-mmc sdc1: no vqmmc,Check if there is regulator [ 2.815232] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.866316] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.873351] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 2.879334] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.907825] sunxi-mmc sdc1: sdc set ios:clk 300000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.937374] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.944312] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.951276] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.958247] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 2.964113] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.986299] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.005335] sunxi-mmc sdc1: no vqmmc,Check if there is regulator [ 3.035226] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.086847] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.094418] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.100400] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.128050] sunxi-mmc sdc1: sdc set ios:clk 200000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.157953] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.165424] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.172888] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.180368] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.186250] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 3.206325] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.235314] sunxi-mmc sdc1: no vqmmc,Check if there is regulator [ 3.265229] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.318449] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.327613] sunxi-mmc sdc1: smc 1 p1 err, cmd 52, RTO !! [ 3.333574] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.358816] sunxi-mmc sdc1: sdc set ios:clk 100000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 3.379226] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.388510] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.397690] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.405693] Console: switching to colour frame buffer device 30x30 [ 3.413281] sunxi-mmc sdc1: smc 1 p1 err, cmd 5, RTO !! [ 3.413347] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 3.431401] graphics fb0: fb_st7789v frame buffer, 240x240, 112 KiB video memory, 4 KiB DMA buffer memory, fps=100, spi0.0 at 100 MHz [ 3.454628] [sound 1158][DAUDIO snd_sunxi_regulator_init] regulator missing or invalid [ 3.466670] sunxi-snd-mach soc@03000000:codec_mach: sunxi-snd-codec <-> soc@03000000:codec_plat mapping ok [ 3.480966] sunxi-snd-mach soc@03000000:daudio0_mach: snd-soc-dummy-dai <-> 2032000.daudio0_plat mapping ok [ 3.495974] NET: Registered protocol family 10 [ 3.503283] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 3.511567] NET: Registered protocol family 17 [ 3.517071] NET: Registered protocol family 15 [ 3.522216] Bluetooth: RFCOMM TTY layer initialized [ 3.527882] Bluetooth: RFCOMM socket layer initialized [ 3.533666] Bluetooth: RFCOMM ver 1.11 [ 3.539306] Registering SWP/SWPB emulation handler [ 3.555025] UBI error: cannot open mtd sys, error -2get det_vbus is fail, 84 [ 3.563897] get id is fail, 84 [ 3.568781] sunxi-rtc rtc: setting system clock to 1970-01-01 00:00:53 UTC (53) [ 3.578425] clk: Not disabling unused clocks [ 3.583238] ALSA device list: [ 3.586705] #0: audiocodec [ 3.589932] #1: snddaudio0 [ 3.593624] List of all partitions: [ 3.597655] No filesystem could mount root, tried: ubifs [ 3.603736] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 3.612985] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.191 #8 [ 3.619502] Hardware name: sun8iw21 [ 3.623432] [<c010d5a0>] (unwind_backtrace) from [<c010a694>] (show_stack+0x10/0x14) [ 3.632098] [<c010a694>] (show_stack) from [<c017050c>] (panic+0xac/0x2b8) [ 3.639793] [<c017050c>] (panic) from [<c09012cc>] (mount_block_root+0x258/0x300) [ 3.648165] [<c09012cc>] (mount_block_root) from [<c0901500>] (prepare_namespace+0x118/0x178) [ 3.657702] [<c0901500>] (prepare_namespace) from [<c0900eb4>] (kernel_init_freeable+0x144/0x178) [ 3.667627] [<c0900eb4>] (kernel_init_freeable) from [<c066134c>] (kernel_init+0x8/0x118) [ 3.676783] [<c066134c>] (kernel_init) from [<c0106e08>] (ret_from_fork+0x14/0x2c) [ 3.685257] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 3.695366] sunxi dump enabled [ 3.698774] dump regs done [ 3.701828] flush cache done [ 3.705061] crashdump enter
请问我这个切换spinand启动不了文件系统是什么问题呢,另外为啥有emmc的打印呢,storage type已经改成5了,我的spinand容量是256M,求助各位老板
-
@daming123 大佬,用的是SPI nand,打印log和你的几乎一样,请教下是什么解决的呢,谢谢
-
@away123456 您这个解决了吗?我切换到SPI nand,log和你的很类似,不知道哪里有问题
-
赞一个先,非常详细!学习中……
-
非常棒的资料 T113s3跟着搞好了 norflash
-
@qqfshendu 我没解决呀,你解决了吗,感觉原厂的就有问题
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号