您尚未登录。

楼主 #1 2021-04-09 11:54:41

cube
会员
注册时间: 2021-03-11
已发帖子: 262
积分: 176.5

TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

0. 下载 zadig 和 sunxi-fel.exe :

    编译、安装Windows版本sunxi-fel步骤 (32M spi flash补丁,支持W25Q256/MX25L256)
    http://whycan.com/t_444.html




1. 把SD NAND芯片焊到转接板上, 再把转接板焊到 TINY200主板

2. 修改 board/widora/mangopi/r3/devicetree/linux/devicetree.dts

屏蔽spi0:

 &spi0 {
-       status = "okay";
+       status = "disabled";

使能mmc1:

+&mmc1 {
+       status = "okay";
+       broken-cd;
+};
+

然后make打包成固件 output/images/sysimage-sdcard.img

3. 烧录

进入usb fel模式, windows命令行运行 "D:\sunxi-tools-win32support_f1c100s_v3s_201812219\F1C100s\sunxi-fel.exe" uboot u-boot-sunxi-with-spl.bin

uboot下载: u-boot-sunxi-with-spl.7z

u-boot命令行输入: ums 0 mmc 1:0

这时电脑出现一个U盘, 用win32imager烧录 sysimage-sdcard.img即可。

烧录固件下载: sysimage-sdcard-1bit.7z

IMG_20210331_100643.jpg

离线

楼主 #2 2021-04-09 11:57:27

cube
会员
注册时间: 2021-03-11
已发帖子: 262
积分: 176.5

Re: TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

QQ截图20210420224949A.png


启动日志:

=>
=>
=> ums 0 mmc 1:0
UMS: LUN 0, dev 1, hwpart 0, sector 0x0, count 0xf6000
\musb-hdrc: peripheral reset irq lost!
/
U-Boot SPL 2020.07 (Oct 20 2020 - 11:09:37 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2


U-Boot 2020.07 (Oct 20 2020 - 11:09:37 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 800x480 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1 is current device
=========================
Boot Device: mmc1
Boot Slot 0: empty
Boot Slot 1: mmc1
=========================
DFU waiting on MMC1...
switch to partitions #0, OK
mmc1 is current device
musb-hdrc: peripheral reset irq lost!
switch to partitions #0, OK
mmc1 is current device
Booting from MMC1...
4687296 bytes read in 1555 ms (2.9 MiB/s)
15537 bytes read in 9 ms (1.6 MiB/s)
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcb0 ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (cube@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4-00005-g9d84975a2d)) #4 Sat Apr 10 10:38:29 CST 2021
[    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: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mmcblk1p3
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 37700K/65536K available (7168K kernel code, 256K rwdata, 1796K rodata, 1024K init, 229K bss, 11452K reserved, 16384K cma-reserved)
[    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/0x444 with crng_init=0
[    0.000050] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000142] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000890] Console: colour dummy device 80x30
[    0.000995] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070264] pid_max: default: 32768 minimum: 301
[    0.070792] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072654] CPU: Testing write buffer coherency: ok
[    0.074798] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076112] devtmpfs: initialized
[    0.087917] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.087981] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092122] pinctrl core: initialized pinctrl subsystem
[    0.094847] NET: Registered protocol family 16
[    0.098589] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100974] cpuidle: using governor menu
[    0.150566] SCSI subsystem initialized
[    0.151257] usbcore: registered new interface driver usbfs
[    0.151454] usbcore: registered new interface driver hub
[    0.151677] usbcore: registered new device driver usb
[    0.152155] mc: Linux media interface: v0.10
[    0.152270] videodev: Linux video capture interface: v2.00
[    0.152396] pps_core: LinuxPPS API ver. 1 registered
[    0.152420] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.152483] PTP clock support registered
[    0.153584] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.154579] Advanced Linux Sound Architecture Driver Initialized.
[    0.157006] clocksource: Switched to clocksource timer
[    0.188590] thermal_sys: Registered thermal governor 'step_wise'
[    0.189373] NET: Registered protocol family 2
[    0.191001] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.191096] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.191152] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.191201] TCP: Hash tables configured (established 1024 bind 1024)
[    0.191540] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.191606] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.192128] NET: Registered protocol family 1
[    0.194809] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.196685] Initialise system trusted keyrings
[    0.197462] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.219547] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.220149] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.334515] Key type asymmetric registered
[    0.334559] Asymmetric key parser 'x509' registered
[    0.334742] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.334771] io scheduler mq-deadline registered
[    0.334791] io scheduler kyber registered
[    0.350352] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.374739] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.381056] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.382387] printk: console [ttyS0] disabled
[    0.402720] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.832944] printk: console [ttyS0] enabled
[    0.842777] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.864150] panel-simple panel: panel supply power not found, using dummy regulator
[    0.873857] SCSI Media Changer driver v0.25
[    0.880356] libphy: Fixed MDIO Bus: probed
[    0.884634] usbcore: registered new interface driver rndis_wlan
[    0.890813] usbcore: registered new interface driver asix
[    0.896317] usbcore: registered new interface driver ax88179_178a
[    0.902600] usbcore: registered new interface driver cdc_ether
[    0.908641] usbcore: registered new interface driver net1080
[    0.914398] usbcore: registered new interface driver rndis_host
[    0.920500] usbcore: registered new interface driver cdc_subset
[    0.926509] usbcore: registered new interface driver zaurus
[    0.932312] usbcore: registered new interface driver cdc_ncm
[    0.938039] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.944553] ehci-platform: EHCI generic platform driver
[    0.950225] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.956452] ohci-platform: OHCI generic platform driver
[    0.962326] usbcore: registered new interface driver usb-storage
[    0.968720] usbcore: registered new interface driver usbserial_generic
[    0.975312] usbserial: USB Serial support registered for generic
[    0.982406] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.994295] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.000270] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.010325] hub 1-0:1.0: USB hub found
[    1.014222] hub 1-0:1.0: 1 port detected
[    1.021316] i2c /dev entries driver
[    1.025440] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.039215] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.050186] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.058081] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.068224] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.106198] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.113713] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.151841] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.161385] usbcore: registered new interface driver usbhid
[    1.166962] usbhid: USB HID core driver
[    1.171250] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.178586] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 19
[    1.190016] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.204029] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.220473] NET: Registered protocol family 17
[    1.225033] Key type dns_resolver registered
[    1.230567] Loading compiled-in X.509 certificates
[    1.254655] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc083d0a0)
[    1.263758] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc083c8e0)
[    1.273348] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc083b480)
[    1.281963] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc083c1a0)
[    1.289742] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.296344] [drm] No driver support for vblank timestamp query.
[    1.304148] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.313183] [drm] kms: can't enable cloning when we probably wanted to.
[    1.343782] mmc1: host does not support reading read-only switch, assuming write-enable
[    1.345550] mmc1: Problem switching card into high-speed mode!
[    1.345823] mmc1: new SD card at address 211f
[    1.348299] mmcblk1: mmc1:211f APPSD 492 MiB
[    1.354863]  mmcblk1: p1 p2 p3
[    1.385100] Console: switching to colour frame buffer device 100x30
[    1.449668] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.458889] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.476711] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.483637] ALSA device list:
[    1.486630]   #0: F1C100s Audio Codec
[    1.490987] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.499764] cfg80211: failed to load regulatory.db
[    1.528073] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.536307] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    1.544877] devtmpfs: mounted
[    1.554425] Freeing unused kernel memory: 1024K
[    1.559152] Run /sbin/init as init process
[    1.607922] random: fast init done
[    2.416759] EXT4-fs (mmcblk1p3): re-mounted. Opts: (null)
Mounting OverlayFS: Skip
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    3.341323] udevd[97]: starting version 3.2.9
[    3.412996] random: udevd: uninitialized urandom read (16 bytes read)
[    3.423602] random: udevd: uninitialized urandom read (16 bytes read)
[    3.431874] random: udevd: uninitialized urandom read (16 bytes read)
[    3.533460] udevd[98]: starting eudev-3.2.9
[    5.339444] Goodix-TS 0-005d: 0-005d supply AVDD28 not found, using dummy regulator
[    5.347616] Goodix-TS 0-005d: 0-005d supply VDDIO not found, using dummy regulator
[    5.363105] ov2640 0-0030: Product ID error fa:fa
[    5.487591] Goodix-TS 0-005d: i2c test failed attempt 1: -6
[    5.527671] Goodix-TS 0-005d: i2c test failed attempt 2: -6
[    5.567421] Goodix-TS 0-005d: I2C communication failure: -6
done
Saving random seed: [    6.300976] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [    6.620491] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    6.628152] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
modprobe: module usb_f_rndis not found in modules.dep
modprobe: module usb_f_mass_storage not found in modules.dep
[    7.188584] using random self ethernet address
[    7.193063] using random host ethernet address
[    7.214159] Mass Storage Function, version: 2009/09/11
[    7.219479] LUN: removable file: (no medium)
[    7.226145] mass_storage.ms0/lun.0: unable to open backing file: /dev/mmcblk0
sh: write error: No such file or directory
[    7.319131] usb0: HOST MAC 16:22:92:5a:bb:ad
[    7.323561] usb0: MAC 5a:de:b0:37:cc:f4
Starting DHCP server: [    7.676138] configfs-gadget gadget: high-speed config #1: c
OK
Starting uMTPrd: mount: mounting none on /sys/kernel/config failed: Device or resource busy
[    8.571633] file system registered
[    8.726522] read descriptors
[    8.729717] read strings
OK
MJPG Streamer Version: git rev: 9d84975a2da97b17a4fe5eb7c85faa6b005cadae
 i: Using V4L2 device.: (null)
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 15
 i: Format............: YUYV
 i: JPEG Quality......: 80
 i: TV-Norm...........: DEFAULT
 i: init_VideoIn failed
# [   31.847106] vcc3v0: disabling
[   31.850109] vcc5v0: disabling

# [

离线

#3 2021-09-22 16:57:58

kang
会员
注册时间: 2021-08-05
已发帖子: 6
积分: 9.5

Re: TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

你好,我按照楼主的操作,无法启动,能帮我看看吗,启动日志如下

U-Boot SPL 2020.07 (Sep 19 2021 - 16:47:24 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
unable to select a mode
spl: mmc init failed with error: -524
Trying to boot from sunxi SPI
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

离线

#4 2021-09-22 17:04:40

拉轰的脚踏车
会员
注册时间: 2020-03-20
已发帖子: 283
积分: 217

Re: TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

你用什么SD NAND ?

离线

#5 2021-09-22 17:06:20

kang
会员
注册时间: 2021-08-05
已发帖子: 6
积分: 9.5

Re: TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

雷龙的32GB sd nand
1_20210922-1712.png

最近编辑记录 kang (2021-09-22 17:13:21)

离线

楼主 #6 2021-09-22 18:05:22

cube
会员
注册时间: 2021-03-11
已发帖子: 262
积分: 176.5

Re: TINY200开发板 SDC1 / SDIO1 使用1bit SD NAND 【分享】

xtx 的试一试?

离线

页脚

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

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