您尚未登录。

楼主 #1 2020-10-09 17:31:39

农夫三拳
会员
注册时间: 2020-10-09
已发帖子: 3
积分: 3

分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

1. 修改 ./board/allwinner/suniv-f1c100s/uboot.env
    建议把 dfu_wait_timeout=5 改为 dfu_wait_timeout=30
   
    然后执行 ./rebuild-uboot.sh & ./rebuild-kernel.sh

2. 烧录 TF卡镜像, USB线插入OTG口重启, 串口出现musb-hdrc: peripheral reset irq lost!时使用zadig安装libusb驱动程序

U-Boot 2020.07 (Oct 09 2020 - 17:01:22 +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
Booting from FEL...
unknown raw ID 82e625a8
List of MTD devices:
No MTD device found
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
DFU waiting on SPI-NOR...
musb-hdrc: peripheral reset irq lost!

2020-10-09_172803.png


3. 执行烧录命令: "D:\aabb\dfu-util-0.9-win64\dfu-util-static.exe" -R -a all -D sysimage-nor.img 

2020-10-09_173018.png






buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *
http://whycan.com/t_5221.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)

离线

#2 2020-10-09 19:15:10

aodzip
会员
注册时间: 2019-10-15
已发帖子: 130
积分: 100

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

不是很完美,我补充几句
1. Zadig只要VID PID写对了就可以安装成功驱动,不需要一定要电脑先发现DFU设备,也就是可以完全不插设备就可以实现安装驱动。
2. 这50秒每次板子上电都需要等,不值得,一般电脑给3秒钟足够了。
3. Linux免驱,不用这么折腾

最近编辑记录 aodzip (2020-10-09 19:16:13)

离线

楼主 #3 2020-10-09 21:07:51

农夫三拳
会员
注册时间: 2020-10-09
已发帖子: 3
积分: 3

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

aodzip 说:

不是很完美,我补充几句
1. Zadig只要VID PID写对了就可以安装成功驱动,不需要一定要电脑先发现DFU设备,也就是可以完全不插设备就可以实现安装驱动。
2. 这50秒每次板子上电都需要等,不值得,一般电脑给3秒钟足够了。
3. Linux免驱,不用这么折腾

感谢大佬指点, 一开始就是usb 设备一闪而过zadig安装驱动总是失败, 所以不得不出此下策.

离线

#4 2020-10-10 09:58:09

路人甲
会员
注册时间: 2017-09-07
已发帖子: 202
积分: 199.5

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

奇怪, 我的dfu刷nor之后是这样的:

U-Boot SPL 2020.07 (Oct 09 2020 - 17:01:22 +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
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2020.07 (Oct 09 2020 - 17:01:22 +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
Booting from FEL...
unknown raw ID 82e625a8
List of MTD devices:
No MTD device found
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
DFU waiting on SPI-NOR...
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
unknown raw ID 82e62328
List of MTD devices:
No MTD device found
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
Booting from SPI-NOR...
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x580000
SF: 5767168 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffc6c ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (whycan@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4-00002-g2e2c3d224a)) #1 Fri Oct 9 10:45:59 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: 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/mtdblock3 overlayfsdev=/dev/mtdblock4
[    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: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K 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.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000136] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000898] Console: colour dummy device 80x30
[    0.001007] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070261] pid_max: default: 32768 minimum: 301
[    0.070785] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070831] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072790] CPU: Testing write buffer coherency: ok
[    0.074907] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076229] devtmpfs: initialized
[    0.088171] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088235] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092581] pinctrl core: initialized pinctrl subsystem
[    0.095307] NET: Registered protocol family 16
[    0.099095] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101486] cpuidle: using governor menu
[    0.146254] SCSI subsystem initialized
[    0.146645] usbcore: registered new interface driver usbfs
[    0.146863] usbcore: registered new interface driver hub
[    0.147061] usbcore: registered new device driver usb
[    0.147570] mc: Linux media interface: v0.10
[    0.147728] videodev: Linux video capture interface: v2.00
[    0.147852] pps_core: LinuxPPS API ver. 1 registered
[    0.147873] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.147936] PTP clock support registered
[    0.149023] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.150038] Advanced Linux Sound Architecture Driver Initialized.
[    0.152634] clocksource: Switched to clocksource timer
[    0.184349] thermal_sys: Registered thermal governor 'step_wise'
[    0.185126] NET: Registered protocol family 2
[    0.186738] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.186828] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.186882] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.186932] TCP: Hash tables configured (established 1024 bind 1024)
[    0.187249] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.187318] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.187830] NET: Registered protocol family 1
[    0.190554] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.192441] Initialise system trusted keyrings
[    0.193207] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.215059] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.215677] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.330481] Key type asymmetric registered
[    0.330523] Asymmetric key parser 'x509' registered
[    0.330703] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.330731] io scheduler mq-deadline registered
[    0.330747] io scheduler kyber registered
[    0.346354] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.370872] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.377160] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.378512] printk: console [ttyS0] disabled
[    0.398826] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.831398] printk: console [ttyS0] enabled
[    0.841222] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.862505] panel-simple panel: panel supply power not found, using dummy regulator
[    0.872238] SCSI Media Changer driver v0.25
[    0.878154] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.891020] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    0.897112] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.903585] Creating 5 MTD partitions on "spi0.0":
[    0.908395] 0x000000000000-0x000000070000 : "u-boot"
[    0.916874] 0x000000070000-0x000000080000 : "dtb"
[    0.925100] 0x000000080000-0x000000600000 : "kernel"
[    0.933612] 0x000000600000-0x000000d00000 : "rom"
[    0.941697] 0x000000d00000-0x000001000000 : "overlay"
[    0.950826] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.957480] ehci-platform: EHCI generic platform driver
[    0.963210] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.969438] ohci-platform: OHCI generic platform driver
[    0.975283] usbcore: registered new interface driver usb-storage
[    0.982286] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.996003] i2c /dev entries driver
[    1.000157] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.013953] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.024945] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.032813] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.042862] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.080801] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.090260] usbcore: registered new interface driver usbhid
[    1.095950] usbhid: USB HID core driver
[    1.100117] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.107455] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.119301] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.133256] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.149178] NET: Registered protocol family 17
[    1.153855] Key type dns_resolver registered
[    1.159288] Loading compiled-in X.509 certificates
[    1.177998] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3d8)
[    1.187051] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073ac18)
[    1.196657] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc07397b8)
[    1.205217] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4d8)
[    1.212994] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.219596] [drm] No driver support for vblank timestamp query.
[    1.227356] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.236391] [drm] kms: can't enable cloning when we probably wanted to.
[    1.308254] Console: switching to colour frame buffer device 100x30
[    1.347156] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.355715] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.373530] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.380288] ALSA device list:
[    1.383395]   #0: F1C100s Audio Codec
[    1.387651] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.396377] cfg80211: failed to load regulatory.db
[    1.405754] random: fast init done
[    1.412139] List of all partitions:
[    1.415808] 1f00             448 mtdblock0
[    1.415819]  (driver?)
[    1.422427] 1f01              64 mtdblock1
[    1.422434]  (driver?)
[    1.429054] 1f02            5632 mtdblock2
[    1.429062]  (driver?)
[    1.435691] 1f03            7168 mtdblock3
[    1.435698]  (driver?)
[    1.442233] 1f04            3072 mtdblock4
[    1.442239]  (driver?)
[    1.448815] No filesystem could mount root, tried:
[    1.448822]  ext3
[    1.453773]  ext2
[    1.455700]  ext4
[    1.457622]  squashfs
[    1.459544]  vfat
[    1.461811]
[    1.465291] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.473628] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.66 #1
[    1.479356] Hardware name: Allwinner suniv Family
[    1.484139] [<c010e6a8>] (unwind_backtrace) from [<c010b9c4>] (show_stack+0x10/0x14)
[    1.491891] [<c010b9c4>] (show_stack) from [<c011702c>] (panic+0xe8/0x2e4)
[    1.498779] [<c011702c>] (panic) from [<c090135c>] (mount_block_root+0x2bc/0x31c)
[    1.506264] [<c090135c>] (mount_block_root) from [<c0901568>] (prepare_namespace+0x128/0x188)
[    1.514794] [<c0901568>] (prepare_namespace) from [<c06f9cb0>] (kernel_init+0x8/0x108)
[    1.522713] [<c06f9cb0>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.530261] Exception stack(0xc2839fb0 to 0xc2839ff8)
[    1.535309] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.543477] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.551640] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.558250] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) ]---

离线

#5 2020-10-10 10:36:20

明月照我沟渠
会员
注册时间: 2020-07-09
已发帖子: 120
积分: 114

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

U-Boot 2020.07 (Oct 10 2020 - 08:45:42 +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 
Booting from FEL...
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
DFU waiting on SPI-NAND...
musb-hdrc: peripheral reset irq lost!
##############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Skipping bad block at 0x03bc0000
#################################################################################################################################################################################################################################################################################################Skipping bad block at 0x06000000
##############################################################################################################################################################################################################################################################Skipping bad block at 0x07fe0000
Limit reached 0x8000000 while erasing at offset 0x7fe0000

Skipping bad block at 0x03bc0000
Skipping bad block at 0x06000000
Skipping bad block at 0x07fe0000

请教烧写spi nand的时候跳开三块block, 程序不会出错吗?

离线

#6 2020-10-10 13:00:52

aodzip
会员
注册时间: 2019-10-15
已发帖子: 130
积分: 100

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

路人甲 说:

奇怪, 我的dfu刷nor之后是这样的:

U-Boot SPL 2020.07 (Oct 09 2020 - 17:01:22 +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
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2020.07 (Oct 09 2020 - 17:01:22 +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
Booting from FEL...
unknown raw ID 82e625a8
List of MTD devices:
No MTD device found
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
DFU waiting on SPI-NOR...
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
unknown raw ID 82e62328
List of MTD devices:
No MTD device found
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
Booting from SPI-NOR...
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x580000
SF: 5767168 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffc6c ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (whycan@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4-00002-g2e2c3d224a)) #1 Fri Oct 9 10:45:59 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: 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/mtdblock3 overlayfsdev=/dev/mtdblock4
[    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: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K 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.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000136] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000898] Console: colour dummy device 80x30
[    0.001007] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070261] pid_max: default: 32768 minimum: 301
[    0.070785] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070831] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072790] CPU: Testing write buffer coherency: ok
[    0.074907] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076229] devtmpfs: initialized
[    0.088171] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088235] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092581] pinctrl core: initialized pinctrl subsystem
[    0.095307] NET: Registered protocol family 16
[    0.099095] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101486] cpuidle: using governor menu
[    0.146254] SCSI subsystem initialized
[    0.146645] usbcore: registered new interface driver usbfs
[    0.146863] usbcore: registered new interface driver hub
[    0.147061] usbcore: registered new device driver usb
[    0.147570] mc: Linux media interface: v0.10
[    0.147728] videodev: Linux video capture interface: v2.00
[    0.147852] pps_core: LinuxPPS API ver. 1 registered
[    0.147873] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.147936] PTP clock support registered
[    0.149023] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.150038] Advanced Linux Sound Architecture Driver Initialized.
[    0.152634] clocksource: Switched to clocksource timer
[    0.184349] thermal_sys: Registered thermal governor 'step_wise'
[    0.185126] NET: Registered protocol family 2
[    0.186738] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.186828] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.186882] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.186932] TCP: Hash tables configured (established 1024 bind 1024)
[    0.187249] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.187318] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.187830] NET: Registered protocol family 1
[    0.190554] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.192441] Initialise system trusted keyrings
[    0.193207] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.215059] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.215677] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.330481] Key type asymmetric registered
[    0.330523] Asymmetric key parser 'x509' registered
[    0.330703] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.330731] io scheduler mq-deadline registered
[    0.330747] io scheduler kyber registered
[    0.346354] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.370872] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.377160] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.378512] printk: console [ttyS0] disabled
[    0.398826] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.831398] printk: console [ttyS0] enabled
[    0.841222] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.862505] panel-simple panel: panel supply power not found, using dummy regulator
[    0.872238] SCSI Media Changer driver v0.25
[    0.878154] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.891020] spi-nor spi0.0: w25q128 (16384 Kbytes)
[    0.897112] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.903585] Creating 5 MTD partitions on "spi0.0":
[    0.908395] 0x000000000000-0x000000070000 : "u-boot"
[    0.916874] 0x000000070000-0x000000080000 : "dtb"
[    0.925100] 0x000000080000-0x000000600000 : "kernel"
[    0.933612] 0x000000600000-0x000000d00000 : "rom"
[    0.941697] 0x000000d00000-0x000001000000 : "overlay"
[    0.950826] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.957480] ehci-platform: EHCI generic platform driver
[    0.963210] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.969438] ohci-platform: OHCI generic platform driver
[    0.975283] usbcore: registered new interface driver usb-storage
[    0.982286] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.996003] i2c /dev entries driver
[    1.000157] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.013953] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.024945] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.032813] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.042862] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.080801] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.090260] usbcore: registered new interface driver usbhid
[    1.095950] usbhid: USB HID core driver
[    1.100117] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.107455] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.119301] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.133256] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.149178] NET: Registered protocol family 17
[    1.153855] Key type dns_resolver registered
[    1.159288] Loading compiled-in X.509 certificates
[    1.177998] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3d8)
[    1.187051] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073ac18)
[    1.196657] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc07397b8)
[    1.205217] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4d8)
[    1.212994] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.219596] [drm] No driver support for vblank timestamp query.
[    1.227356] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.236391] [drm] kms: can't enable cloning when we probably wanted to.
[    1.308254] Console: switching to colour frame buffer device 100x30
[    1.347156] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.355715] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.373530] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.380288] ALSA device list:
[    1.383395]   #0: F1C100s Audio Codec
[    1.387651] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.396377] cfg80211: failed to load regulatory.db
[    1.405754] random: fast init done
[    1.412139] List of all partitions:
[    1.415808] 1f00             448 mtdblock0
[    1.415819]  (driver?)
[    1.422427] 1f01              64 mtdblock1
[    1.422434]  (driver?)
[    1.429054] 1f02            5632 mtdblock2
[    1.429062]  (driver?)
[    1.435691] 1f03            7168 mtdblock3
[    1.435698]  (driver?)
[    1.442233] 1f04            3072 mtdblock4
[    1.442239]  (driver?)
[    1.448815] No filesystem could mount root, tried:
[    1.448822]  ext3
[    1.453773]  ext2
[    1.455700]  ext4
[    1.457622]  squashfs
[    1.459544]  vfat
[    1.461811]
[    1.465291] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.473628] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.66 #1
[    1.479356] Hardware name: Allwinner suniv Family
[    1.484139] [<c010e6a8>] (unwind_backtrace) from [<c010b9c4>] (show_stack+0x10/0x14)
[    1.491891] [<c010b9c4>] (show_stack) from [<c011702c>] (panic+0xe8/0x2e4)
[    1.498779] [<c011702c>] (panic) from [<c090135c>] (mount_block_root+0x2bc/0x31c)
[    1.506264] [<c090135c>] (mount_block_root) from [<c0901568>] (prepare_namespace+0x128/0x188)
[    1.514794] [<c0901568>] (prepare_namespace) from [<c06f9cb0>] (kernel_init+0x8/0x108)
[    1.522713] [<c06f9cb0>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.530261] Exception stack(0xc2839fb0 to 0xc2839ff8)
[    1.535309] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.543477] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.551640] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.558250] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3) ]---

根据你启动日志来看是比较老,建议重拉git

离线

#7 2020-10-10 13:01:13

aodzip
会员
注册时间: 2019-10-15
已发帖子: 130
积分: 100

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

明月照我沟渠 说:
U-Boot 2020.07 (Oct 10 2020 - 08:45:42 +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 
Booting from FEL...
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
DFU waiting on SPI-NAND...
musb-hdrc: peripheral reset irq lost!
##############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################Skipping bad block at 0x03bc0000
#################################################################################################################################################################################################################################################################################################Skipping bad block at 0x06000000
##############################################################################################################################################################################################################################################################Skipping bad block at 0x07fe0000
Limit reached 0x8000000 while erasing at offset 0x7fe0000

Skipping bad block at 0x03bc0000
Skipping bad block at 0x06000000
Skipping bad block at 0x07fe0000

请教烧写spi nand的时候跳开三块block, 程序不会出错吗?

不会的,可以放心使用

离线

#8 2020-10-10 13:31:57

秦皇岛岛主
会员
注册时间: 2020-05-22
已发帖子: 59
积分: 38

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

标记一下

离线

#9 2020-10-10 15:14:43

明月照我沟渠
会员
注册时间: 2020-07-09
已发帖子: 120
积分: 114

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

aodzip 说:
明月照我沟渠 说:

Skipping bad block at 0x03bc0000
Skipping bad block at 0x06000000
Skipping bad block at 0x07fe0000

请教烧写spi nand的时候跳开三块block, 程序不会出错吗?

不会的,可以放心使用

烧完之后确实而已起来, 请问这是什么原理呢?

离线

#10 2020-10-10 16:19:19

pythinker
会员
注册时间: 2019-02-12
已发帖子: 215
积分: 215

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

dfu-util -a xxxx
请问xxxx是在哪里定义的?

离线

#11 2020-10-22 11:32:30

openepo
会员
注册时间: 2020-10-16
已发帖子: 16
积分: 14

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

明月照我沟渠 说:
aodzip 说:
明月照我沟渠 说:

Skipping bad block at 0x03bc0000
Skipping bad block at 0x06000000
Skipping bad block at 0x07fe0000

请教烧写spi nand的时候跳开三块block, 程序不会出错吗?

不会的,可以放心使用

烧完之后确实而已起来, 请问这是什么原理呢?

有坏块跳过之后,程序会把坏块标记出来,之后读写都会跳过,然后往后顺延一块。

离线

#12 2020-10-22 11:35:24

孤星泪
会员
注册时间: 2020-03-18
已发帖子: 235
积分: 231

Re: 分享一下我知道的 aodzip tiny200 buildroot patch dfu windows 更新固件

openepo 说:
明月照我沟渠 说:
aodzip 说:

不会的,可以放心使用

烧完之后确实而已起来, 请问这是什么原理呢?

有坏块跳过之后,程序会把坏块标记出来,之后读写都会跳过,然后往后顺延一块。

标记在哪个地方呢?是每块的oob位置吗?如果坏块出现在 uboot或者 zImage是怎么跳过的?

离线

页脚

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

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