您尚未登录。

#1 Re: 全志 SOC » 荔枝派zero全志v3s驱动SPILCD屏幕(st7789) » 2022-06-12 10:35:06

@资本家大善人
请问你这是改了哪些东西吗,我下载的5.10.1的内核,menuconfig里配置了st7789v驱动就可以使用了。

#2 Re: 全志 SOC » 荔枝派zero v3s 菜鸟新手uboot+linux+rootfs首次跑通 » 2022-06-09 20:06:51

@Expelliarmus
你目前除了换内存卡,还采用过什么手段来尝试解决这个问题?
我技术不太行,但是已知你内核加载了,同时文件系统也能够正确的启动一部分,否则系统的的服务那些是不可能正常加载,那些服务都是需要在文件系统中读取的。而你的错误是启动后出现的内存卡的什么地址问题,这个我也不懂,目前都是站在巨人的肩膀上跑起来的。
我说说我能想到的几个暂时的启动方法,来排除是哪里的问题。
1.题主描述换了sd卡,不知到换取的sd的牌子(目前我使用的三星,三星可用,还有某宝那些专用的sd卡也肯定可用)是否相同。
2.如果sd无误,是否有尝试更换内核或者其他的文件系统。

这两个控制一下变量尝试一下,是可以得出一个结果,试一下吧。。:D

#3 Re: 全志 SOC » [V3S]发一份V3S的裸机程序 » 2022-06-09 13:19:35

这还是需要一个spi flash 来储存东西啊,能不能使用sdcard裸机呢。。。就是说应该要先加载个读mmc的驱动,再将sdcard内的东西搬到sram中运行?

#4 Re: 全志 SOC » 荔枝派zero v3s 菜鸟新手uboot+linux+rootfs首次跑通 » 2022-06-06 22:29:53

@Expelliarmus
贴一个我自己编译的uboot,buildroot,减少了一些该芯片内核不需要的的东西的启动过程,内核是下载的linux kerne 官网的5.10.1,参照4.12和网上的资料的修改的,编译的工具链也更新到了750。我内存卡使用的是三星的,买了一个128g的,舍不得糟蹋,手里的32g被我拔插的不像样。。。你是使用的哪个uboot 和kernel及文件系统?看你那启动都有systcl了,看来不是像咱这光不溜秋的那种。内核版本前面的都没有贴全啊,应该直接把uboot都加载驱动文件系统这些一起贴上来,像我下面这样

U-Boot 2017.01-rc2-00062-ga080a96-dirty (May 28 2022 - 20:33:49 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00062-ga080a96-dirty (May 28 2022 - 20:33:49 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
292 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading zImage
4741544 bytes read in 311 ms (14.5 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
13448 bytes read in 27 ms (486.3 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff487 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.1 (forever@forever) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #15 SMP Sun May 29 13:12:59 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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30924 r8192 d22324 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    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: 52352K/65536K available (7168K kernel code, 926K rwdata, 1884K rodata, 1024K init, 273K bss, 13184K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x328/0x4c0 with crng_init=0
[    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.000011] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000032] Switching to timer-based delay loop, resolution 41ns
[    0.000416] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000866] Console: colour dummy device 80x30
[    0.001495] printk: console [tty0] enabled
[    0.001577] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001636] pid_max: default: 32768 minimum: 301
[    0.001895] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001949] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003126] CPU: Testing write buffer coherency: ok
[    0.003678] /cpus/cpu@0 missing clock-frequency property
[    0.003741] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004799] Setting up static identity map for 0x40100000 - 0x40100060
[    0.005131] rcu: Hierarchical SRCU implementation.
[    0.005879] smp: Bringing up secondary CPUs ...
[    0.005941] smp: Brought up 1 node, 1 CPU
[    0.005970] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.005997] CPU: All CPU(s) started in SVC mode.
[    0.006789] devtmpfs: initialized
[    0.012478] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.012988] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013073] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.013406] pinctrl core: initialized pinctrl subsystem
[    0.015223] NET: Registered protocol family 16
[    0.015930] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017728] thermal_sys: Registered thermal governor 'step_wise'
[    0.018226] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.018312] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.050817] SCSI subsystem initialized
[    0.051935] usbcore: registered new interface driver usbfs
[    0.052071] usbcore: registered new interface driver hub
[    0.052217] usbcore: registered new device driver usb
[    0.052741] pps_core: LinuxPPS API ver. 1 registered
[    0.052789] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.052857] PTP clock support registered
[    0.053225] Advanced Linux Sound Architecture Driver Initialized.
[    0.054969] clocksource: Switched to clocksource arch_sys_counter
[    0.070453] NET: Registered protocol family 2
[    0.071417] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.071524] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.071594] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.071651] TCP: Hash tables configured (established 1024 bind 1024)
[    0.071860] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.071952] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.072283] NET: Registered protocol family 1
[    0.073428] RPC: Registered named UNIX socket transport module.
[    0.073500] RPC: Registered udp transport module.
[    0.073526] RPC: Registered tcp transport module.
[    0.073550] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.076429] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.086850] NFS: Registering the id_resolver key type
[    0.086977] Key type id_resolver registered
[    0.087007] Key type id_legacy registered
[    0.087194] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.087245] io scheduler mq-deadline registered
[    0.087273] io scheduler kyber registered
[    0.088509] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.095616] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.189110] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.192587] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    0.194218] printk: console [ttyS0] disabled
[    0.214720] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 1500000) is a U6_16550A
[    0.794452] printk: console [ttyS0] enabled
[    0.821585] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 45, base_baud = 1500000) is a U6_16550A
[    0.836892] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    0.848622] libphy: Fixed MDIO Bus: probed
[    0.853054] CAN device driver interface
[    0.857806] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.864215] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.870477] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.876416] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.882719] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.892281] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.899599] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.906873] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.911855] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.918682] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.924357] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.930071] dwmac-sun8i 1c30000.ethernet: device MAC address 7e:06:b0:71:3f:47
[    0.938220] libphy: stmmac: probed
[    0.943316] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.950371] libphy: mdio_mux: probed
[    0.954038] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.960500] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.968410] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.975139] ehci-platform: EHCI generic platform driver
[    0.980852] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.986643] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.994668] ehci-platform 1c1a000.usb: irq 34, io mem 0x01c1a000
[    1.024955] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.032593] hub 1-0:1.0: USB hub found
[    1.036640] hub 1-0:1.0: 1 port detected
[    1.041573] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.047971] ohci-platform: OHCI generic platform driver
[    1.053683] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.060493] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.068620] ohci-platform 1c1a400.usb: irq 35, io mem 0x01c1a400
[    1.140523] hub 2-0:1.0: USB hub found
[    1.144439] hub 2-0:1.0: 1 port detected
[    1.152385] usbcore: registered new interface driver usb-storage
[    1.159398] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[    1.168926] mousedev: PS/2 mouse device common for all mice
[    1.175853] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.187033] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.192212] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:28 UTC (28)
[    1.200370] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.205444] i2c /dev entries driver
[    1.210976] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    1.221826] IR NEC protocol handler initialized
[    1.226574] IR RC5(x/sz) protocol handler initialized
[    1.231649] IR RC6 protocol handler initialized
[    1.236229] IR JVC protocol handler initialized
[    1.240772] IR Sony protocol handler initialized
[    1.245424] IR SANYO protocol handler initialized
[    1.250142] IR Sharp protocol handler initialized
[    1.254856] IR MCE Keyboard/mouse protocol handler initialized
[    1.260728] IR XMP protocol handler initialized
[    1.267745] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.277882] sun4i-ss 1c15000.crypto: Die ID 7
[    1.282733] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.293303] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    1.307317] hid: raw HID events driver (C) Jiri Kosina
[    1.313444] usbcore: registered new interface driver usbhid
[    1.319228] usbhid: USB HID core driver
[    1.323260] fb_st7789v spi0.0: fbtft_property_value: buswidth = 8
[    1.329467] fb_st7789v spi0.0: fbtft_property_value: debug = 0
[    1.335363] fb_st7789v spi0.0: fbtft_property_value: rotate = 270
[    1.341479] fb_st7789v spi0.0: fbtft_property_value: fps = 60
[    1.469842] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.477451] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.490900] random: fast init done
[    1.526189] Console: switching to colour frame buffer device 40x30
[    1.535335] graphics fb0: fb_st7789v frame buffer, 320x240, 150 KiB video memory, 4 KiB buffer memory, fps=100, spi0.0 at 64 MHz
[    1.558911] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.569079] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.590865] NET: Registered protocol family 17
[    1.597409] can: controller area network core
[    1.603836] NET: Registered protocol family 29
[    1.610301] can: raw protocol
[    1.614259] can: broadcast manager protocol
[    1.620405] can: netlink gateway - max_hops=1
[    1.627200] Key type dns_resolver registered
[    1.633657] Registering SWP/SWPB emulation handler
[    1.650861] mmc0: new high speed SDHC card at address 0001
[    1.665384] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    1.679478] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[    1.687653] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 3
[    1.706372] mmcblk0: mmc0:0001 00000 29.8 GiB
[    1.727603]  mmcblk0: p1 p2
[    1.757342] hub 3-0:1.0: USB hub found
[    1.769943] hub 3-0:1.0: 1 port detected
[    1.787799] using random self ethernet address
[    1.794428] using random host ethernet address
[    1.802157] usb0: HOST MAC c6:27:79:de:e6:e2
[    1.808921] usb0: MAC be:7c:a2:ed:3e:0e
[    1.815137] using random self ethernet address
[    1.821765] using random host ethernet address
[    1.828633] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[    1.837595] g_ether gadget: g_ether ready
[    1.846259] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.911055] ALSA device list:
[    1.915375]   #0: V3s Audio Codec
[    1.938992] random: crng init done
[    1.959393] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.970959] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.011289] devtmpfs: mounted
[    2.019250] Freeing unused kernel memory: 1024K
[    2.035307] Run /sbin/init as init process
[    2.211192] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.285173] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    4.405045] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY] (irq=POLL)
[    4.418319] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    4.428850] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    4.439702] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    4.449299] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[    4.714508] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

forever login:

通过笔记本网口中转,还能直接ping通外网,一开始傻乎乎的连接到路由器上联网。。。

root@forever:~$ping www.baidu.com
PING www.baidu.com (103.235.46.40): 56 data bytes
64 bytes from 103.235.46.40: seq=0 ttl=42 time=68.462 ms
64 bytes from 103.235.46.40: seq=1 ttl=42 time=80.468 ms
64 bytes from 103.235.46.40: seq=2 ttl=42 time=68.157 ms
64 bytes from 103.235.46.40: seq=3 ttl=42 time=68.132 ms
64 bytes from 103.235.46.40: seq=4 ttl=42 time=69.143 ms

我感觉v3s跑Linux性能不太行(感觉是不是错乱了),在想是不是rtthread这种嵌入式操作系统更合适,再配合lvgl做gui,岂不是完美,就是驱动这些应该都要自己扣(咱这能力真是堪忧啊),但是现在连裸机启动都没有去学习

#5 Re: 全志 SOC » lichee zero 的I2C的问题 » 2022-05-31 18:51:02

ncer 说:

@forever_rainy

你i2c连设备了吗?设备上的scl sda上拉了吗?
如果设备和zero都没上拉,那肯定不能正常工作。


需要一点时间测试,因为手里没有i2c设备,但是有个stm32f1的核心板,就暂时试试stm32 i2c slave,还要给引脚加上拉电阻,比较麻烦,感谢提示,自己着急了,静不了心下来去研究。

#6 Re: 全志 SOC » lichee zero 的I2C的问题 » 2022-05-31 10:26:32

哇酷小二 说:
小熊猫 说:

检查 I2C SCL/SDA 有无上拉


这个咋检查,是要看原理图,再自己增加电路,还是,能够使用软件上拉(这样按照以前的经验,是不行的),但是买的licheezero的板子已经画好了,看原理图也没有加上拉,就是引脚引出,这是表示自己要跳线吗。:|

#7 Re: 全志 SOC » 用V3S跑QT5??? » 2022-05-28 13:07:34

@forever_rainy
buildroot可以局部清除,参考buildroot说明文档:https://buildroot.org/downloads/manual/manual.html#_advanced_usage,8.14.5
使用方法是 make <package>-<target>
下面是可用命令,make package-dirclean 表示移除目标package的build目录,还有很多选项,比如查看依赖:make qt5webkit-show-depends

gst1-plugins-base gstreamer1 host-bison host-cmake host-flex host-gperf host-pkgconf host-python3 host-ruby host-skeleton icu jpeg leveldb 
libpng libxml2 libxslt openssl qt5declarative qt5location qt5sensors qt5webchannel skeleton sqlite toolchain webp woff2

#8 Re: 全志 SOC » 发布一套V3S可用的BSP内核的完整包(含u-boot、BSP内核、buildroot、.config、sunxi-tools、lrzsz) » 2022-05-28 12:38:19

@forever_rainy

参考sipeed的文档,摸索了下,sipeed链接:https://wiki.sipeed.com/soft/Lichee/zh/Zero-Doc/System_Development/bsp_build.html

发现他的机制跟之前的都不一样,先使用buildroot下载工具链,再将工具链拷贝出去解压使用,这时就回到了之前的的思路。

另外buildroot确实对多线程是不支持的:https://buildroot.org/downloads/manual/manual.html#_buildroot_quick_start
(因为下载了buildroot2022编译了试试,多线程容易出错)
他这个多线程在新版本说起来也是实验,不是完全可用?

这里说明了要设置一个参数,可以在顶层使用parallel build,https://buildroot.org/downloads/manual/manual.html#top-level-parallel-build
但是是实验特性,选项为:
Build options--->
   Advanced--->
      Use per-package directories(experimental)

之后可以使用 make -jN

#9 Re: 全志 SOC » 荔枝派zero v3s 菜鸟新手uboot+linux+rootfs首次跑通 » 2022-05-28 10:42:48

我也是新手,玩了快半月了,从 老版本,kernel 4.13  buildroot2017,到新版本kernel5.10,buildroot2022,有debian的根文件系统的制作,还有qt的交叉编译,坑人的ffmpeg,sdl的交叉编译,lvgl初次使用,坑点很多。
也是不知道linux3.4有什么玩法,就看到说这个对摄像头支持较好,倒是也没有试过,手里也没有摄像头,唯一有一个摄像头是ov5640,不过在老家。但是也看到有人用新的内核跑起摄像头(b站有个129先生)

#10 Re: 全志 SOC » 新版buildroot去掉了mplayer,请问大家,用那个播放器代替??? » 2022-05-27 13:12:36

wupaul2001 说:

如题

确实如 楼上所说,下载了最新的buildroot2022看了,mpv 是 mplayer2,使用新版本可以使用在这个,使用旧版本的话(buildroot2017),因为我一直是下载的qt的源码手动交叉编译的,试过5.9.3 , 5.12.7, 都可以使用。

#11 Re: 全志 SOC » 请问大家荔枝派网盘里面的 V3s TF卡 debian 桌面镜像有哪位朋友跑起来了? » 2022-05-26 04:55:56

我试过xfce桌面,不需要输入密码直接登录,不过手里只有240*280的st7789屏幕,显示不全,看起来很难受,操作起来卡顿很多,点开文件管理这种也是要卡顿的,不过也不是不能用。。。

#12 Re: 全志 SOC » 发布一套V3S可用的BSP内核的完整包(含u-boot、BSP内核、buildroot、.config、sunxi-tools、lrzsz) » 2022-05-24 16:18:55

你好
关于这段编译内核与uboot的工具链是不同,arm-linux-gnueabi工具是多少版本的,有要求吗,uboot是arm-linux-gnueabihf,我现在使用的主线uboot和内核(linux  kernel官网下载的),也是使用的arm-linux-gnueabihf工具链,如果使用arm-linux-gnueabihf工具链编译3.4的内核,会报错的说。

uboot

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig(因为配置文件里我默认的是4.3寸的屏幕)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig(这个也贴出来)

执行编译:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4

kernel

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage -j16

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j16 INSTALL_MOD_PATH=out modules_install

#13 Re: 全志 SOC » 新版buildroot去掉了mplayer,请问大家,用那个播放器代替??? » 2022-05-23 12:33:48

咱觉得其实也可以交叉编译过去,,,不一定非要使用buildroot,虽然手动交叉编译是很麻烦就是了

#14 Re: 全志 SOC » 为一个MP4拆机屏做一个V3s开发板 » 2022-05-22 23:48:42

liozeng 说:

没有有线网卡吗?很好奇有线网卡速度

啊,不是有一个emac的ethernet吗,我就一直用的这个网络啊,在linux kernel官网下载了5.10.1的内核,发现他emac的驱动用的是st的那套,不过能够正常使用,百兆网

#15 Re: RK3288/RK3399/RK1108 » 请问一下,rk3399Android10.0,系统跑到这个部分一直反复重启,但是看启动logo没有看到明显的错误在哪里?? » 2022-05-22 14:37:12

某鱼两百来块 买了个拆机板(感觉不是很划算,前面这个板子他卖150,后面加到200,咱也没讲价,电源适配也没有),感觉rk没有v3s这些这么简单啊。。。

#16 Re: 全志 SOC » 用V3S跑QT5??? » 2022-05-22 14:30:16

这里不是有吗:https://wiki.sipeed.com/soft/Lichee/zh/Zero-Doc/application/QT_doc1.html
关于qt的交叉编译,buildroot执着一个最小可用的文件系统就好,其他的可以自己交叉编译添加.我自己交叉编译了5.9.3,5.12.7,所有模块(web不行),还包含例子,运行没有一点问题的,但是说实话,这种性能不太行的,使用lvgl,速度刷新都更快,依赖更少。

lvgl使用链接:https://github.com/lvgl/lv_port_linux_frame_buffer.git

另外,buildroot我也很困扰,必须clean(不是好像,可能),重新编译才能生效,又不能使用多线程,改个东西,重新编,慢的很,也没有明显的找到有关说明。

#17 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » 在V3S上试着跑了一下新版的LVGL-8.1 界面效果越来越赞! » 2022-05-22 14:16:58

再用的lvgl8.2,使用fb:https://github.com/lvgl/lv_port_linux_frame_buffer.git。
下载交叉编译即可,没有任何其他依赖...,但是st7789v在v3s上不是很流畅,可能说没有stm32硬件spi+dma流畅

#18 Re: 全志 SOC » 荔枝派zero uboot在5寸屏幕显示启动数据 » 2022-05-22 13:49:54

https://stackoverflow.com/questions/62529964/u-boot-splashscreen-through-spi

这个也说明了,你看到的别人使用的在uboot启动时就行输出控制台的是uboot就支持的lcd的(uboot2017.01可以在在menuconfig配置,uboot configs下的从fig也有配置文件)

如果要适配st7789,确实要自己添加驱动到uboot,所以咱也没折腾,因为没有。。。

#19 Re: 全志 SOC » 荔枝派zero uboot在5寸屏幕显示启动数据 » 2022-05-21 19:49:07

个人猜想,uboot启动时,想要屏幕显示东西,那么uboot一定是支持屏幕驱动的,需要看一下uboot配置,是否有屏幕的驱动相关设置。比如uboot支持网络,网上有相关说明。
我这里是kernel启动才会显示信息,使用的是st7789v驱动的屏幕,kernel也是配置了驱动的的。

#20 Re: 全志 SOC » 各位大哥,buildroot编译出来的根文件系统没有,/etc/rc.local文件,自己用vi建个/etc/rc.local文件没有执行! » 2022-05-21 19:37:33

hello
请教一个问题,在使用buildroot编译根文件系统,使用的时 buildroot2017.08.1这个文件的内容,编译的主机使用的ubuntu16.0.4 lts。编译是成功的,系统初始使用的是busybox,自己也添加了很多东西,但是出现了一个致命的问题。我的/etc/init.d/rcS在开机的时候没有执行。

首先,我确定以下文件的符后链接是正确的:/sbin/init(链接到了/bin/busybox),bash环境是ok的,文件有执行的权限,/etc/inittab有相应的执行命令,测试更改该文件内容,启动会变得不正常,说明该文件是正常执行了(该文件内的其他内容有被执行,比如设置的串口不需要密码自动登录)。开机后 /etc/init.d/文件夹下的内容没有执行(通过rcS执行该文件夹内容),我不知道是否是buildroot中某一个选项没有配置上。现在不知道怎么去解决这个问题。能提供一些帮助信息吗。

开机后手动执行/etc/init.d/rcS是成功的。

以下是/etc/inittab 的内容:
# Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS


# Put a getty on the serial port
#console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
ttyS0::respawn:/bin/sh
ttyS1::askfirst:/bin/sh

# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r


找到原因了,串口登录时没有将一些信息,显示出来,问题在这句代码上:ttyS0::respawn:/bin/sh,这个暂时还没有搞明白怎么解释这个

#21 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 是否能把手机的摄像头模组利用起来 » 2022-05-19 11:32:31

手机屏幕一样的,要是能够自己驱动,不也是一件很好的事,就是空有个硬件,没有啥资料啊

页脚

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

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