您尚未登录。

#1 Re: 全志 SOC » V3s 使用spiflash启动,插usb设备(usb串口 网卡等)无反应,应该怎么处理? » 2022-08-05 11:55:08

哇酷小二 说:

主线Linux用shell命令切换 OTG(分享)tiny200/licheepi nano|zero均可以使用
https://whycan.com/t_6021.html

试过了依然无反应

#
#
# cat /sys/devices/platform/soc/1c19000.usb/musb-hdrc.1.auto/mode
b_idle
# echo host > /sys/devices/platform/soc/1c19000.usb/musb-hdrc.1.auto/mode
# cat /sys/devices/platform/soc/1c19000.usb/musb-hdrc.1.auto/mode
b_idle
#
#

#2 全志 SOC » V3s 使用spiflash启动,插usb设备(usb串口 网卡等)无反应,应该怎么处理? » 2022-08-02 11:03:11

路人
回复: 2

V3s 使用spiflash启动,插usb设备(usb串口 网卡等)无反应,lsusb不显示其设备ID,最后将usb线接到电脑上,可以识别,以为是作为从机了,在内核dts中将其设置为host,问题依旧,应该怎么处理?才可以是其作为Host模式识别外设?
同样的内核在tf卡启动模式下就可以,只是使用了不同的uboot,
我该如何操作呢?

#4 Re: 全志 SOC » 从荔枝派 16M flash镜像 Nano_flash_800480.bin 抽出对应的文件,这个固件的默认串口是 UART0(PE0,1) » 2022-03-23 16:01:19

john78 说:

能放个v3s的?

类似从荔枝派 32M flash 镜像 flashimg.bin 抽出对应的文件:

dd if=flashimg.bin of=u-boot.bin bs=1 skip=$((0x0)) count=$((0x100000))
dd if=flashimg.bin of=dtb.bin bs=1 skip=$((0x100000)) count=$((0x4000))
dd if=flashimg.bin of=kernel.bin bs=1 skip=$((0x110000)) count=$((0x400000))
dd if=flashimg.bin of=jffs2.bin bs=1 skip=$((0x510000))

#5 Re: 全志 SOC » 主线uboot + linux4.19 测试spi-flash w25q128是否能正常使用,记录 » 2022-03-23 15:50:44

@科技植
“@msro6rr etc里环境配好了应该是可以的。我稍后测试了,把结果发上来。
@晕哥 创建 /dev/console 设备文件和 /dev/pts/ /dev/shm 文件夹关系不大。console这个设备文件是因为/etc/inittab里有一句"/dev/console ::respawn:/sbin/getty -L  /dev/console 115200 vt100"。因为我一开始对buildroot进行了make distclean,再make的(这样生成的文件系统只有1.6M),所以inittab出现了这句话,而我先前用默认的配置,通过buildroot生成的inittab,就是"/dev/ttyS0::respawn:/sbin/getty -L  /dev/ttyS0 115200 vt100".只是默认配置生成的文件系统有97M,无法搞进spi nor里。而那两个文件夹,本身生成的文件系统里就有。


现在,先把昨天+今天的测试结果总结一下,(在做了大量测试后),简单来说就是,当我使用http://nano.lichee.pro/get_started/first_eat.html#u-boot教程中的工具链来编译busybox,制作出的rootfs运行时就是10楼的运行结果,死活起不来。后面也查了些资料,看到过两篇有说是编译工具链与busybox版本的问题,其中一篇https://blog.csdn.net/chuanzhilong/article/details/52901973。一周前逛坑网时,也有看到说因为工具链导致的问题,不过不是导致的问下系统起不来,貌似是和uboot有关。
我把buildroot生成的busybox可执行程序,替换busybox生成的busybox可执行程序,运行的时候,也是死在10楼的地方,只是报错信息稍微有些不同。
俗话说,在排除了所有不可能,剩下的那个再不可能,也是真相了。
于是我想到用buildroot里的工具链来编译busybox,结果这次就成功跑起来了。”

有些不太明白,可以给指导一下? 谢谢

#7 Re: 全志 SOC » V3s支持SPI NAND吗?感觉spi nor的速度太慢了 » 2022-03-23 14:20:25

ffplay 说:

感谢楼上的兄弟, 晚点就试一试 ^_^

兄弟搞得怎么样了? 有没有成功?

#8 Re: RK3288/RK3399/RK1108 » U-Boot v2020.01 和 Linux 5.4 在 RK3399 上部署 » 2022-03-23 14:13:20

我也试试先,刚好有一块3399的板子,谢谢分享

#9 Re: RK3288/RK3399/RK1108 » RK3588 原厂全套硬件设计资料 » 2022-03-23 14:08:38

感谢楼主分享,已经下载,准备入手一个3588开发板;)

#10 Re: 全志 SOC » V3s buildroot 一键生成打包生成32M spi flash 镜像, jffs2 文件系统, 默认启动 Qt 模拟时钟demo, » 2022-03-23 14:03:21

谢谢楼主分享,报错不知如何解决

U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Mar 23 2022 - 12:54:24)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Mar 23 2022 - 12:54:24 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Mar 23 2022 - 12:54:24 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff01 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.14-licheepi-zero (luthane@on-the-way) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)) #1 SMP Fri Mar 18 10:18:42 CST 2022
[    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] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33740 r8192 d23604 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=mtdblock3 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    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: 55012K/65536K available (6144K kernel code, 285K rwdata, 1504K rodata, 1024K init, 264K bss, 10524K 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 : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a474a0   ( 286 kB)
[    0.000000]        .bss : 0xc0a4e904 - 0xc0a90b54   ( 265 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    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] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    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.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000182] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000424] Console: colour dummy device 80x30
[    0.000463] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000478] pid_max: default: 32768 minimum: 301
[    0.000607] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000622] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001267] CPU: Testing write buffer coherency: ok
[    0.001649] /cpus/cpu@0 missing clock-frequency property
[    0.001670] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002130] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002304] Hierarchical SRCU implementation.
[    0.002792] smp: Bringing up secondary CPUs ...
[    0.002806] smp: Brought up 1 node, 1 CPU
[    0.002815] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002822] CPU: All CPU(s) started in SVC mode.
[    0.003601] devtmpfs: initialized
[    0.006766] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007071] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007099] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007273] pinctrl core: initialized pinctrl subsystem
[    0.008276] NET: Registered protocol family 16
[    0.008729] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009765] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009784] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021850] SCSI subsystem initialized
[    0.022087] usbcore: registered new interface driver usbfs
[    0.022140] usbcore: registered new interface driver hub
[    0.022228] usbcore: registered new device driver usb
[    0.022478] pps_core: LinuxPPS API ver. 1 registered
[    0.022491] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022512] PTP clock support registered
[    0.022697] Advanced Linux Sound Architecture Driver Initialized.
[    0.024329] clocksource: Switched to clocksource arch_sys_counter
[    0.033382] NET: Registered protocol family 2
[    0.033961] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.033997] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.034019] TCP: Hash tables configured (established 1024 bind 1024)
[    0.034145] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.034192] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.034483] NET: Registered protocol family 1
[    0.035165] RPC: Registered named UNIX socket transport module.
[    0.035185] RPC: Registered udp transport module.
[    0.035191] RPC: Registered tcp transport module.
[    0.035197] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.037091] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.042767] NFS: Registering the id_resolver key type
[    0.042819] Key type id_resolver registered
[    0.042827] Key type id_legacy registered
[    0.042886] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.047162] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.047186] io scheduler noop registered
[    0.047193] io scheduler deadline registered
[    0.047488] io scheduler cfq registered (default)
[    0.047501] io scheduler mq-deadline registered
[    0.047507] io scheduler kyber registered
[    0.048067] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.051291] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.110977] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.113913] console [ttyS0] disabled
[    0.134189] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.719776] console [ttyS0] enabled
[    0.727746] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    0.733827] libphy: Fixed MDIO Bus: probed
[    0.738509] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.744365] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.750073] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.756262] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.761925] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.769176] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.774843] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.782056] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.787025] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.793971] libphy: stmmac: probed
[    0.799214] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.805876] ehci-platform: EHCI generic platform driver
[    0.811390] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.817067] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.825026] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.854343] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.861423] hub 1-0:1.0: USB hub found
[    0.865384] hub 1-0:1.0: 1 port detected
[    0.869908] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.876232] ohci-platform: OHCI generic platform driver
[    0.881765] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.888501] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.896436] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.969329] hub 2-0:1.0: USB hub found
[    0.973152] hub 2-0:1.0: 1 port detected
[    0.980747] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.990307] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.999287] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.006194] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.010761] i2c /dev entries driver
[    1.015634] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.024537] IR NEC protocol handler initialized
[    1.029072] IR RC5(x/sz) protocol handler initialized
[    1.034116] IR RC6 protocol handler initialized
[    1.038685] IR JVC protocol handler initialized
[    1.043209] IR Sony protocol handler initialized
[    1.047835] IR SANYO protocol handler initialized
[    1.052532] IR Sharp protocol handler initialized
[    1.057241] IR MCE Keyboard/mouse protocol handler initialized
[    1.063064] IR XMP protocol handler initialized
[    1.068286] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.134390] sunxi-mmc 1c0f000.mmc: base:0xc48cf000 irq:23
[    1.194361] sunxi-mmc 1c10000.mmc: base:0xc48d3000 irq:24
[    1.200666] usbcore: registered new interface driver usbhid
[    1.206316] usbhid: USB HID core driver
[    1.211756] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.219795] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.227324] NET: Registered protocol family 17
[    1.231886] Key type dns_resolver registered
[    1.236409] Registering SWP/SWPB emulation handler
[    1.250024] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.261490] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.267336] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.276342] hub 3-0:1.0: USB hub found
[    1.280178] hub 3-0:1.0: 1 port detected
[    1.285306] using random self ethernet address
[    1.289761] using random host ethernet address
[    1.295156] usb0: HOST MAC e6:ee:e9:62:35:55
[    1.299474] usb0: MAC ca:2c:7b:e8:7c:d3
[    1.303358] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.310954] g_cdc gadget: g_cdc ready
[    1.317191] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.325786] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    1.333974] vcc5v0: disabling
[    1.337028] ALSA device list:
[    1.339997]   #0: V3s Audio Codec
[    1.344213] VFS: Cannot open root device "mtdblock3" or unknown-block(0,0): error -2
[    1.352063] Please append a correct "root=" boot option; here are the available partitions:
[    1.360438] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.368698] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.14-licheepi-zero #1
[    1.375908] Hardware name: Allwinner sun8i Family
[    1.380645] [<c010e6f4>] (unwind_backtrace) from [<c010b29c>] (show_stack+0x10/0x14)
[    1.388388] [<c010b29c>] (show_stack) from [<c0680a90>] (dump_stack+0x84/0x98)
[    1.395610] [<c0680a90>] (dump_stack) from [<c011b500>] (panic+0xd8/0x244)
[    1.402487] [<c011b500>] (panic) from [<c090123c>] (mount_block_root+0x1bc/0x250)
[    1.409966] [<c090123c>] (mount_block_root) from [<c0901474>] (prepare_namespace+0x9c/0x198)
[    1.418398] [<c0901474>] (prepare_namespace) from [<c0900e28>] (kernel_init_freeable+0x1b8/0x1c8)
[    1.427262] [<c0900e28>] (kernel_init_freeable) from [<c0692704>] (kernel_init+0x8/0x10c)
[    1.435433] [<c0692704>] (kernel_init) from [<c0107868>] (ret_from_fork+0x14/0x2c)
[    1.443005] Rebooting in 5 seconds..

#11 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2020-12-30 15:21:48

john78 说:

有没有在V3S上成功的?

------------修改后报错--------------------

[   12.899663] serial8250: too much work for irq37
[   12.904480] serial8250: too much work for irq37
[   12.909318] serial8250: too much work for irq37
[   12.914110] serial8250: too much work for irq37
[   12.918913] serial8250: too much work for irq37
[   12.923701] serial8250: too much work for irq37
[   12.928497] serial8250: too much work for irq37
[   12.933284] serial8250: too much work for irq37
[   12.938079] serial8250: too much work for irq37
[   12.942866] serial8250: too much work for irq37

问题解决了吗?  遇到同样的问题

页脚

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

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