您尚未登录。

#1 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2024-02-24 22:25:36

@晕哥
f1c100s_fel_autorun_linux_uart0_pe0_pe1_20190517_TF_sdnand.7z 这个文件方便给下源代码吗,想学习改造下用~感谢!

#2 Re: 全志 SOC » DKTool工具BUG提交汇总 » 2020-12-21 21:53:41

迪卡 说:
哇酷小二 说:
迪卡 说:

@晕哥,看log,已经识别到了4GB emmc。并且启动了了.ko。
是不是windows没装驱动???

USB座子的ID脚是不是PF6?

插入的时候PF6电平有没有变化?

按照晕哥的意思,应该是ramlinux是OTG模式,如果ID脚被拉低的话,就变成了HOST,PC也就无法识别到了吧


那下一步我得怎么进行测试呢。。。

#3 Re: 全志 SOC » DKTool工具BUG提交汇总 » 2020-12-21 21:48:34

迪卡 说:

@晕哥,看log,已经识别到了4GB emmc。并且启动了了.ko。
是不是windows没装驱动???

驱动是全部都安装成功了,用的是DKTool里边集成的Zadig安装的驱动。

#4 Re: 全志 SOC » DKTool F1C100s/F1C200s专用工具 哇酷网特别版,20201221正式发布!!!! » 2020-12-21 21:24:04

感谢楼主的辛苦付出!

暂时发现模拟mmc无效,不知道是我使用方法不对还是bug,望能帮忙分析一二。以下贴出启动时串口打印的信息:
板子配置:F1C200s + KLM4G1FETE
==================================================

U-Boot SPL 2018.01 (Feb 10 2019 - 21:56:54)
DRAM: 64 MiB
Trying to boot from FEL
U-Boot SPL 2018.01-05683-g5e86a9a-dirty (May 17 2019 - 03:40:11)
DRAM: 64 MiB
Trying to boot from FEL

U-Boot 2018.01-05683-g5e86a9a-dirty (May 17 2019 - 03:40:11 -0400) Allwinner Technology
CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment
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 
## Loading init Ramdisk from Legacy Image at 80d00000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    1840690 Bytes = 1.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Ramdisk to 8153e000, end 816ff632 ... OK
   Loading Device Tree to 81539000, end 8153de2c ... OK
Starting kernel ...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-rc3-licheepi-nano+ (root@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #11 Fri May 17 23:15:40 EDT 2019
[    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] random: get_random_bytes called from start_kernel+0x88/0x3ec with crng_init=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
[    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: 56508K/65536K available (4095K kernel code, 198K rwdata, 920K rodata, 1024K init, 214K bss, 9028K 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 : 0x(ptrval) - 0x(ptrval)   (5088 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 199 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 215 kB)
[    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.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000117] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000595] Console: colour dummy device 80x30
[    0.000718] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070247] pid_max: default: 32768 minimum: 301
[    0.070749] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070791] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072032] CPU: Testing write buffer coherency: ok
[    0.073854] Setting up static identity map for 0x80100000 - 0x8010003c
[    0.076453] devtmpfs: initialized
[    0.083046] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083114] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083329] pinctrl core: initialized pinctrl subsystem
[    0.084684] NET: Registered protocol family 16
[    0.085976] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087893] cpuidle: using governor menu
[    0.107118] SCSI subsystem initialized
[    0.107448] usbcore: registered new interface driver usbfs
[    0.107648] usbcore: registered new interface driver hub
[    0.107841] usbcore: registered new device driver usb
[    0.109806] clocksource: Switched to clocksource timer
[    0.134311] NET: Registered protocol family 2
[    0.136186] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.136292] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136356] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136408] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136686] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136754] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.137241] NET: Registered protocol family 1
[    0.138074] Unpacking initramfs...
[    0.662326] Freeing initrd memory: 1800K
[    0.664287] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.689621] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.690497] ntfs: driver 2.1.32 [Flags: R/O].
[    0.733000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.733047] io scheduler noop registered
[    0.733071] io scheduler deadline registered
[    0.733809] io scheduler cfq registered (default)
[    0.733848] io scheduler mq-deadline registered
[    0.733870] io scheduler kyber registered
[    0.736602] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.748478] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.903356] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.909192] console [ttyS0] disabled
[    0.929465] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    1.354370] console [ttyS0] enabled
[    1.380241] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 24, base_baud = 6250000) is a 16550A
[    1.405212] loop: module loaded
[    1.412270] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[    1.419111] usbcore: registered new interface driver usb-storage
[    1.425424] i2c /dev entries driver
[    1.431225] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.1
[    1.464504] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.472442] usbcore: registered new interface driver usbhid
[    1.478019] usbhid: USB HID core driver
[    1.483220] NET: Registered protocol family 17
[    1.497984] Freeing unused kernel memory: 1024K
[    1.502852] Run /linuxrc as init process
[    1.591957] mmc0: new DDR MMC card at address 0001
[    1.599495] mmcblk0: mmc0:0001 4FTE4R 3.64 GiB 
[    1.606459] mmcblk0boot0: mmc0:0001 4FTE4R partition 1 4.00 MiB
[    1.614761] mmcblk0boot1: mmc0:0001 4FTE4R partition 2 4.00 MiB
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
[    1.654490]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 p11 p12 >
[    1.660470] mmcblk0: p1 size 7120384 extends beyond EOD, truncated
Starting syslogd: OK
Starting klogd: OK
[    1.789901] random: fast init done
Starting mdev...
/etc/init.d/S10mdev: line 9: can't create /proc/sys/kernel/hotplug: nonexistent directory
[    5.292314] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    5.303206] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    5.312145] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    5.317944] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    5.330094] hub 1-0:1.0: USB hub found
[    5.334022] hub 1-0:1.0: 1 port detected
Initializing random number generator... [    5.420776] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
[    5.628139] Mass Storage Function, version: 2009/09/11
[    5.633442] LUN: removable file: (no medium)
[    5.638048] LUN: removable file: /dev/mmcblk0
[    5.642555] Number of LUNs=1
[    5.647544] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[    5.654662] g_mass_storage gadget: userspace failed to provide iSerialNumber
[    5.661786] g_mass_storage gadget: g_mass_storage ready

Welcome to Buildroot
buildroot login:

#5 Re: 全志 SOC » DKTool工具BUG提交汇总 » 2020-12-21 21:14:51

2020-12-21发布的这个版本 https://whycan.com/t_5733.html
模拟mmc无效呢,以下贴出启动时串口打印的信息:
板子配置:F1C200s + KLM4G1FETE
==================================================

  
U-Boot SPL 2018.01 (Feb 10 2019 - 21:56:54)
DRAM: 64 MiB
Trying to boot from FEL

U-Boot SPL 2018.01-05683-g5e86a9a-dirty (May 17 2019 - 03:40:11)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2018.01-05683-g5e86a9a-dirty (May 17 2019 - 03:40:11 -0400) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

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 
## Loading init Ramdisk from Legacy Image at 80d00000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    1840690 Bytes = 1.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Ramdisk to 8153e000, end 816ff632 ... OK
   Loading Device Tree to 81539000, end 8153de2c ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-rc3-licheepi-nano+ (root@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #11 Fri May 17 23:15:40 EDT 2019
[    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] random: get_random_bytes called from start_kernel+0x88/0x3ec with crng_init=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
[    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: 56508K/65536K available (4095K kernel code, 198K rwdata, 920K rodata, 1024K init, 214K bss, 9028K 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 : 0x(ptrval) - 0x(ptrval)   (5088 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 199 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 215 kB)
[    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.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000117] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000595] Console: colour dummy device 80x30
[    0.000718] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070247] pid_max: default: 32768 minimum: 301
[    0.070749] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070791] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072032] CPU: Testing write buffer coherency: ok
[    0.073854] Setting up static identity map for 0x80100000 - 0x8010003c
[    0.076453] devtmpfs: initialized
[    0.083046] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083114] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083329] pinctrl core: initialized pinctrl subsystem
[    0.084684] NET: Registered protocol family 16
[    0.085976] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087893] cpuidle: using governor menu
[    0.107118] SCSI subsystem initialized
[    0.107448] usbcore: registered new interface driver usbfs
[    0.107648] usbcore: registered new interface driver hub
[    0.107841] usbcore: registered new device driver usb
[    0.109806] clocksource: Switched to clocksource timer
[    0.134311] NET: Registered protocol family 2
[    0.136186] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.136292] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136356] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.136408] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136686] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136754] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.137241] NET: Registered protocol family 1
[    0.138074] Unpacking initramfs...
[    0.662326] Freeing initrd memory: 1800K
[    0.664287] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.689621] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.690497] ntfs: driver 2.1.32 [Flags: R/O].
[    0.733000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.733047] io scheduler noop registered
[    0.733071] io scheduler deadline registered
[    0.733809] io scheduler cfq registered (default)
[    0.733848] io scheduler mq-deadline registered
[    0.733870] io scheduler kyber registered
[    0.736602] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.748478] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.903356] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.909192] console [ttyS0] disabled
[    0.929465] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    1.354370] console [ttyS0] enabled
[    1.380241] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 24, base_baud = 6250000) is a 16550A
[    1.405212] loop: module loaded
[    1.412270] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[    1.419111] usbcore: registered new interface driver usb-storage
[    1.425424] i2c /dev entries driver
[    1.431225] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.1
[    1.464504] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.472442] usbcore: registered new interface driver usbhid
[    1.478019] usbhid: USB HID core driver
[    1.483220] NET: Registered protocol family 17
[    1.497984] Freeing unused kernel memory: 1024K
[    1.502852] Run /linuxrc as init process
[    1.591957] mmc0: new DDR MMC card at address 0001
[    1.599495] mmcblk0: mmc0:0001 4FTE4R 3.64 GiB 
[    1.606459] mmcblk0boot0: mmc0:0001 4FTE4R partition 1 4.00 MiB
[    1.614761] mmcblk0boot1: mmc0:0001 4FTE4R partition 2 4.00 MiB

can't open /dev/null: No such file or directory

can't open /dev/null: No such file or directory

can't open /dev/null: No such file or directory

can't open /dev/null: No such file or directory
[    1.654490]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 p9 p10 p11 p12 >
[    1.660470] mmcblk0: p1 size 7120384 extends beyond EOD, truncated
Starting syslogd: OK
Starting klogd: OK
[    1.789901] random: fast init done
Starting mdev...
/etc/init.d/S10mdev: line 9: can't create /proc/sys/kernel/hotplug: nonexistent directory
[    5.292314] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    5.303206] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    5.312145] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    5.317944] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    5.330094] hub 1-0:1.0: USB hub found
[    5.334022] hub 1-0:1.0: 1 port detected
Initializing random number generator... [    5.420776] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
[    5.628139] Mass Storage Function, version: 2009/09/11
[    5.633442] LUN: removable file: (no medium)
[    5.638048] LUN: removable file: /dev/mmcblk0
[    5.642555] Number of LUNs=1
[    5.647544] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[    5.654662] g_mass_storage gadget: userspace failed to provide iSerialNumber
[    5.661786] g_mass_storage gadget: g_mass_storage ready


Welcome to Buildroot

buildroot login:

页脚

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

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