您尚未登录。

#1 Re: 全志 SOC » V3s tina 3.5 编译了一个固件,烧录不进去,请问是怎么回事呢? » 2021-10-14 16:48:42

@staunchheart
请问大佬,R11怎么适配 SPI NAND FLASH启动呢?
我用的是 nand flash,也是烧录不成功,用h300 和 R11都不行。

beign to init dram
DRAM DRIVE INFO: V0.9
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 456 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
init dram ok
[      3.465]

U-Boot 2011.09-rc1-00000-g7923426-dirty (Oct 14 2021 - 16:03:24) Allwinner Technology 

[      3.474]version: 1.1.0
[      3.476]uboot commit : 79234269df96f9da315c8d59eb71407db5fe3356

[      3.483]pmbus:   ready
axp read error
probe axp20x failed
axp_probe error
[      3.594]PMU: pll1 912 Mhz,PLL6=600 Mhz
AXI=304 Mhz,AHB=200 Mhz, APB1=100 Mhz 
dram_para_set start
dram_para_set end
[      3.606]DRAM:  64 MiB
relocation Offset is: 021da000
save config for small mem_size 
board.c 659
workmode = 16
NAND_UbootProbe start
NB1 : enter phy init
NandHwInit: Start Nand Hardware initializing .....
uboot:nand version: 2 55 20190826 1130 
Reg 0x01c20848: 0x3333
Reg 0x01c2085c: 0x55
Reg 0x01c20864: 0x10
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x42b90df0
request general tx dma channel ok!
uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x42b90e0c
request general rx dma channel ok!
SPI nand ID: cd7171cd 71cd7171
_SearchNandArchi fail
[ERR]NandHwInit: SCN_AnalyzeNandSystem() failed!
NandHwInit: End Nand Hardware initializing ..... FAIL!
NB1 : nand phy init fail
NB1 : enter phy Exit
nand release dma:42b90df0
dma 0x42b90df0 int is not used yet
dma 0x42b90df0 int is free, you do not need to free it again
nand release dma:0
dma 0x42b90e0c int is not used yet
dma 0x42b90e0c int is free, you do not need to free it again
NAND_UbootProbe end: 0xffffffff
flash size =32 M
sunxi spinor is initing...
Reg pull reg_val=0x10,read=0x10

read CCM_AHB1_RST_REG0[0x1004040]

read CCM_AHB1_RST_REG0[0x1004040]

read enable CCM_AHB1_RST_REG0[0x1104040]
read s CCM_AHB1_GATE0_CTRL[0x1104040]
SPI clock source :0x23c34600
spi spic->sclk =0x28df2b6
spic_set_clk:mclk=0x28df2b6
sunxi spi init OK
spinor id:0x71cd00
spi_freq = 40000000
spinor id is 71cd00 
try nor successed 
sunxi sprite has installed spi function
read flash error
In:    serial
Out:   serial
Err:   serial
the flash size is 0 MB
--------fastboot partitions--------
mbr not exist
Net:   eth0Warning: failed to set MAC address
, usb_etherWarning: failed to set MAC address

[      3.850]Hit any key to stop autoboot:  0 
work mode=0x10
run usb efex
delay time 2500
usb init ok
set address 0x24
set address 0x25
SUNXI_EFEX_ERASE_TAG
erase_flag = 0x1
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0

#2 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2021-09-14 10:11:55

荔枝派Zero板卡, 按晕哥的 v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK 工具操作,
可以识别TF卡,但是识别不了 SPI Nand Flash, MX35LF1G24AD 。PF6是拉高的。
报  spi-nand spi0.0: unknown raw ID 00c21403 。
在线求助各位大佬。

# dmesg 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.1.0-rc4-00035-g0b5cbfb-dirty (root@test4) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #51 SMP Mon May 6 03:51:59 EDT 2019
[    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: Lichee Pi Zero with Dock
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 32 MiB
[    0.000000] On node 0 totalpages: 16384
[    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: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x41c with crng_init=0
[    0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s34572 r8192 d22772 u65536
[    0.000000] pcpu-alloc: s34572 r8192 d22772 u65536 alloc=16*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc earlyprintk rw
[    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: 51776K/65536K available (7168K kernel code, 467K rwdata, 1832K rodata, 1024K init, 261K bss, 13760K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] arch_timer: 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008001] Switching to timer-based delay loop, resolution 41ns
[    0.014206] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023628] Console: colour dummy device 80x30
[    0.028117] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038480] pid_max: default: 32768 minimum: 301
[    0.043244] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049880] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057525] *** VALIDATE proc ***
[    0.061076] *** VALIDATE cgroup1 ***
[    0.064655] *** VALIDATE cgroup2 ***
[    0.068236] CPU: Testing write buffer coherency: ok
[    0.073620] /cpus/cpu@0 missing clock-frequency property
[    0.078945] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.085465] Setting up static identity map for 0x40100000 - 0x40100060
[    0.092193] rcu: Hierarchical SRCU implementation.
[    0.097821] smp: Bringing up secondary CPUs ...
[    0.102358] smp: Brought up 1 node, 1 CPU
[    0.106362] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.112591] CPU: All CPU(s) started in HYP mode.
[    0.117200] CPU: Virtualization extensions available.
[    0.123337] devtmpfs: initialized
[    0.130231] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.138260] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.148136] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.154457] pinctrl core: initialized pinctrl subsystem
[    0.160964] NET: Registered protocol family 16
[    0.165925] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.174056] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.182057] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.204312] SCSI subsystem initialized
[    0.208621] libata version 3.00 loaded.
[    0.208897] usbcore: registered new interface driver usbfs
[    0.214444] usbcore: registered new interface driver hub
[    0.219953] usbcore: registered new device driver usb
[    0.225251] media: Linux media interface: v0.10
[    0.229867] videodev: Linux video capture interface: v2.00
[    0.235440] pps_core: LinuxPPS API ver. 1 registered
[    0.240423] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.249562] PTP clock support registered
[    0.253777] Advanced Linux Sound Architecture Driver Initialized.
[    0.261251] clocksource: Switched to clocksource arch_sys_counter
[    0.278754] NET: Registered protocol family 2
[    0.283860] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.291607] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.298578] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.304964] TCP: Hash tables configured (established 1024 bind 1024)
[    0.311467] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.317331] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.323858] NET: Registered protocol family 1
[    0.329203] RPC: Registered named UNIX socket transport module.
[    0.335245] RPC: Registered udp transport module.
[    0.339942] RPC: Registered tcp transport module.
[    0.344670] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.351565] Unpacking initramfs...
[    0.531378] Freeing initrd memory: 2052K
[    0.537188] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.551722] NFS: Registering the id_resolver key type
[    0.556813] Key type id_resolver registered
[    0.560989] Key type id_legacy registered
[    0.565120] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.651010] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.658571] io scheduler mq-deadline registered
[    0.663130] io scheduler kyber registered
[    0.668262] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.678560] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.755910] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.764790] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.775867] printk: console [ttyS0] disabled
[    0.800389] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.809431] printk: console [ttyS0] enabled
[    0.817809] printk: bootconsole [earlycon0] disabled
[    0.828387] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.859716] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.890416] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.903885] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.915383] spi-nand spi0.0: unknown raw ID 00c21403
[    0.920388] spi-nand: probe of spi0.0 failed with error -524
[    0.926742] libphy: Fixed MDIO Bus: probed
[    0.930852] CAN device driver interface
[    0.935408] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.941284] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.947601] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.954917] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.962154] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.967114] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.973907] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.979551] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.992588] libphy: stmmac: probed
[    0.996675] dwmac-sun8i 1c30000.ethernet: Cannot get mdio-mux node
[    1.003352] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.009882] ehci-platform: EHCI generic platform driver
[    1.015426] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.021035] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.029021] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    1.061269] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.068456] hub 1-0:1.0: USB hub found
[    1.072410] hub 1-0:1.0: 1 port detected
[    1.077003] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.083323] ohci-platform: OHCI generic platform driver
[    1.088908] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.095640] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.103640] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.176381] hub 2-0:1.0: USB hub found
[    1.180211] hub 2-0:1.0: 1 port detected
[    1.186862] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.196159] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.201332] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.206093] i2c /dev entries driver
[    1.211739] usbcore: registered new interface driver em28xx
[    1.217322] em28xx: Registered (Em28xx v4l2 Extension) extension
[    1.223390] em28xx: Registered (Em28xx Input Extension) extension
[    1.230459] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.239204] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.275656] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.282953] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.319770] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.327915] usbcore: registered new interface driver usbhid
[    1.333582] usbhid: USB HID core driver
[    1.339381] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.347012] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.354481] NET: Registered protocol family 17
[    1.358953] can: controller area network core (rev 20170425 abi 9)
[    1.365356] NET: Registered protocol family 29
[    1.369807] can: raw protocol (rev 20170425)
[    1.374140] can: broadcast manager protocol (rev 20170425 t)
[    1.379801] can: netlink gateway (rev 20170425) max_hops=1
[    1.385618] Key type dns_resolver registered
[    1.390074] Registering SWP/SWPB emulation handler
[    1.402656] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.414157] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.419921] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.429119] hub 3-0:1.0: USB hub found
[    1.433213] hub 3-0:1.0: 1 port detected
[    1.441139] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.449862] gtp: GTP module loaded (pdp ctx size 64 bytes)
[    1.455551] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:20:53 UTC (1253)
[    1.464021] vcc5v0: disabling
[    1.466994] ALSA device list:
[    1.469957]   #0: V3s Audio Codec
[    1.475480] Freeing unused kernel memory: 1024K
[    1.501409] Run /linuxrc as init process
[    2.966314] random: dd: uninitialized urandom read (512 bytes read)
[    3.062698] Mass Storage Function, version: 2009/09/11
[    3.067860] LUN: removable file: (no medium)
[    3.100737] lun0: unable to open backing file: /dev/mtdblock0
[    3.106793] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[    3.130892] Mass Storage Function, version: 2009/09/11
[    3.136202] LUN: removable file: (no medium)
[    3.151447] lun0: unable to open backing file: /dev/mtdblock0
[    3.157365] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[    7.053826] random: fast init done

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn