页次: 1
利用uboot的ums,通过usb直接将spi nand挂载到pc
ums怎么用呀?连上电脑好像啥都没有,就一个usb设备,没见到盘符
不错不错,创业不易,立即支持
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
In: serial@1c25000
Out: serial@1c25000
Err: serial@1c25000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 80e05000, end 80e0a3b5 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-nano+ (zjf@book-virtual-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #10 Mon May 18 01:03:16 CST 2020
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Nano
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Memory: 22696K/32768K available (6144K kernel code, 233K rwdata, 1472K rodata, 1024K init, 228K bss, 10072K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x254/0x42c with crng_init=0
[ 0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000127] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000709] Console: colour dummy device 80x30
[ 0.000807] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[ 0.070245] pid_max: default: 32768 minimum: 301
[ 0.070674] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070714] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.072400] CPU: Testing write buffer coherency: ok
[ 0.074424] Setting up static identity map for 0x80100000 - 0x80100058
[ 0.076719] devtmpfs: initialized
[ 0.084396] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.084457] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084767] pinctrl core: initialized pinctrl subsystem
[ 0.086849] NET: Registered protocol family 16
[ 0.088278] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.090494] cpuidle: using governor menu
[ 0.144032] SCSI subsystem initialized
[ 0.144444] usbcore: registered new interface driver usbfs
[ 0.144604] usbcore: registered new interface driver hub
[ 0.144792] usbcore: registered new device driver usb
[ 0.145298] pps_core: LinuxPPS API ver. 1 registered
[ 0.145324] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.145850] Advanced Linux Sound Architecture Driver Initialized.
[ 0.147573] clocksource: Switched to clocksource timer
[ 0.178726] NET: Registered protocol family 2
[ 0.180294] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.180374] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.180435] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.180483] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.180774] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.180835] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.181346] NET: Registered protocol family 1
[ 0.183860] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.186019] Initialise system trusted keyrings
[ 0.186614] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.207933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.214559] Key type asymmetric registered
[ 0.214596] Asymmetric key parser 'x509' registered
[ 0.214781] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.214808] io scheduler mq-deadline registered
[ 0.214825] io scheduler kyber registered
[ 0.227429] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.421545] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.427394] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.429331] printk: console [ttyS0] disabled
[ 0.449598] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[ 0.829064] printk: console [ttyS0] enabled
[ 0.837489] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.889606] brd: module loaded
[ 0.913898] loop: module loaded
[ 0.918114] SCSI Media Changer driver v0.25
[ 0.923707] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.936693] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.942461] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.948941] Creating 4 MTD partitions on "spi0.0":
[ 0.953754] 0x000000000000-0x000000100000 : "u-boot"
[ 0.962681] 0x000000100000-0x000000110000 : "dtb"
[ 0.971157] 0x000000110000-0x000000510000 : "kernel"
[ 0.979945] 0x000000510000-0x000001000000 : "rootfs"
[ 0.989196] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.995727] ehci-platform: EHCI generic platform driver
[ 1.001387] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.007714] ohci-platform: OHCI generic platform driver
[ 1.013380] usbcore: registered new interface driver usb-storage
[ 1.021215] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[ 1.030119] i2c /dev entries driver
[ 1.037778] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.075933] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.085407] usbcore: registered new interface driver usbhid
[ 1.091109] usbhid: USB HID core driver
[ 1.111993] NET: Registered protocol family 17
[ 1.116556] Key type dns_resolver registered
[ 1.123402] Loading compiled-in X.509 certificates
[ 1.138698] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 1.150125] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[ 1.160956] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0738094)
[ 1.170036] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0736cec)
[ 1.177818] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.184421] [drm] No driver support for vblank timestamp query.
[ 1.191734] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 1.249948] Console: switching to colour frame buffer device 60x34
[ 1.273157] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[ 1.281268] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.299447] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.306225] vcc5v0: disabling
[ 1.309331] ALSA device list:
[ 1.312362] #0: Loopback 1
[ 1.316260] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.324988] cfg80211: failed to load regulatory.db
[ 1.331966] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -19
[ 1.340000] Please append a correct "root=" boot option; here are the available partitions:
[ 1.348483] 0100 4096 ram0
[ 1.348493] (driver?)
[ 1.354603] 0101 4096 ram1
[ 1.354607] (driver?)
[ 1.360782] 0102 4096 ram2
[ 1.360788] (driver?)
[ 1.366930] 0103 4096 ram3
[ 1.366936] (driver?)
[ 1.373097] 0104 4096 ram4
[ 1.373104] (driver?)
[ 1.379281] 0105 4096 ram5
[ 1.379288] (driver?)
[ 1.385390] 0106 4096 ram6
[ 1.385395] (driver?)
[ 1.391552] 0107 4096 ram7
[ 1.391557] (driver?)
[ 1.397725] 0108 4096 ram8
[ 1.397733] (driver?)
[ 1.403834] 0109 4096 ram9
[ 1.403838] (driver?)
[ 1.410010] 010a 4096 ram10
[ 1.410017] (driver?)
[ 1.416240] 010b 4096 ram11
[ 1.416246] (driver?)
[ 1.422489] 010c 4096 ram12
[ 1.422495] (driver?)
[ 1.428728] 010d 4096 ram13
[ 1.428735] (driver?)
[ 1.434952] 010e 4096 ram14
[ 1.434958] (driver?)
[ 1.441203] 010f 4096 ram15
[ 1.441210] (driver?)
[ 1.447434] 1f00 1024 mtdblock0
[ 1.447441] (driver?)
[ 1.454031] 1f01 64 mtdblock1
[ 1.454037] (driver?)
[ 1.460617] 1f02 4096 mtdblock2
[ 1.460622] (driver?)
[ 1.467188] 1f03 11200 mtdblock3
[ 1.467194] (driver?)
[ 1.473780] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.482120] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano+ #10
[ 1.489147] Hardware name: Allwinner suniv Family
[ 1.493902] [<c010e478>] (unwind_backtrace) from [<c010ba5c>] (show_stack+0x10/0x14)
[ 1.501647] [<c010ba5c>] (show_stack) from [<c0116db4>] (panic+0xe8/0x2e4)
[ 1.508529] [<c0116db4>] (panic) from [<c090129c>] (mount_block_root+0x1ec/0x2e0)
[ 1.516006] [<c090129c>] (mount_block_root) from [<c09016bc>] (prepare_namespace+0x158/0x1b8)
[ 1.524536] [<c09016bc>] (prepare_namespace) from [<c065a670>] (kernel_init+0x8/0x110)
[ 1.532452] [<c065a670>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[ 1.540000] Exception stack(0xc1831fb0 to 0xc1831ff8)
[ 1.545051] 1fa0: 00000000 00000000 00000000 00000000
[ 1.553218] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.561382] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.567993] Rebooting in 5 seconds..
[ 7.547227] Reboot failed -- System halted
博主好,请问我这个好像是没有识别到mtd这个是啥原因,MTD有打开的
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=y
CONFIG_RFD_FTL=y
CONFIG_MTD_SWAP=y
新买的板子,好像是id 不对,烧录进去uboot不能跑,是因为芯片id不对;
FLASH不识别,ID为0b,40,18
修改uboot
u-boot/drivers/mtd/spi/u-boot/drivers/mtd/spi/spi_flash_ids.c
解决办法:
- {"w25q128bv", INFO(0xef4018, 0x0, 64 * 1024, 256, RD_FULL | WR_QPP | SECT_4K) },
+ {"w25q128", INFO(0x0b4018, 0x0, 64 * 1024, 256, RD_FULL | WR_QPP | SECT_4K) },
MMC: SUNXI SD/MMC: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
In: serial@1c25000
Out: serial@1c25000
Err: serial@1c25000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
Booting using the fdt blob at 0x80c00000
Loading Device Tree to 80e05000, end 80e0a3b5 ... OK
Starting kernel ...
@晕哥,能帮忙看看没,跑到这里就没下文了;
感谢楼主分享,正是我需要的,下载下来学习一下
这芯片这么牛逼,价格这个低,如果多一些裸奔,完全可以干死单片机呀
厉害了,这个移植成功可比单片机强多了,可以直接视频解码,稳定不?
这个代码能贴上来参考一下么,支持!!!
单色的GUI不错,用来驱动oled刚刚好,支持一个!!!
要是再来个RGB屏接口就强大了,这个芯片的优势是啥,为何要拿掉蓝牙呀?
不错,支持一个!!!
页次: 1