您尚未登录。

#1 Re: 全志 SOC » F1C100S + FreeRTOS + USB Host » 2023-10-24 11:50:35

sakumisu 说:

rtthread版本,主机+从机,https://github.com/CherryUSB/cherryusb_rtt_f1c100s

请问USB HOST支持同时接多少个设备?

#2 Re: 全志 SOC » 请问大佬们,那里能买到AIC800的芯片??能批量吗?? » 2021-11-06 13:30:58

拆解了一块f1c200s做的充电器,好像是坛友@wupaul2001做的固件:)哈哈哈

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (paulwu@paulwu-virtual-machine) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #33 Sat Oct 26 01:40:01 PDT 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] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    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: 55196K/65536K available (6144K kernel code, 235K rwdata, 1472K rodata, 1024K init, 228K bss, 10340K reserved, 0K cma-reserved, 0K highmem)
[    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/0x42c with crng_init=0
[    0.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000118] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000644] Console: colour dummy device 80x30
[    0.001271] printk: console [tty0] enabled
[    0.001365] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070265] pid_max: default: 32768 minimum: 301
[    0.070710] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070779] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072463] CPU: Testing write buffer coherency: ok
[    0.074393] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076671] devtmpfs: initialized
[    0.082621] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082777] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083151] pinctrl core: initialized pinctrl subsystem
[    0.085144] NET: Registered protocol family 16
[    0.086608] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088691] cpuidle: using governor menu
[    0.136530] SCSI subsystem initialized
[    0.136999] usbcore: registered new interface driver usbfs
[    0.137220] usbcore: registered new interface driver hub
[    0.137454] usbcore: registered new device driver usb
[    0.137965] pps_core: LinuxPPS API ver. 1 registered
[    0.138047] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.138643] Advanced Linux Sound Architecture Driver Initialized.
[    0.140442] clocksource: Switched to clocksource timer
[    0.168762] NET: Registered protocol family 2
[    0.170358] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.170676] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170796] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170879] TCP: Hash tables configured (established 1024 bind 1024)
[    0.171214] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.171327] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.171883] NET: Registered protocol family 1
[    0.174442] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.176537] Initialise system trusted keyrings
[    0.177138] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.203875] Key type asymmetric registered
[    0.203985] Asymmetric key parser 'x509' registered
[    0.204191] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.204283] io scheduler mq-deadline registered
[    0.204330] io scheduler kyber registered
[    0.206325] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.216860] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.393125] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.398658] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.400604] printk: console [ttyS0] disabled
[    0.420902] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 21, base_baud = 6250000) is a 16550A
[    0.808093] printk: console [ttyS0] enabled
[    0.817221] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    0.828166] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737d74)
[    0.836129] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.842848] [drm] No driver support for vblank timestamp query.
[    0.849645] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    0.863132] SCSI Media Changer driver v0.25
[    0.868689] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.875415] ehci-platform: EHCI generic platform driver
[    0.881043] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.887326] ohci-platform: OHCI generic platform driver
[    0.893137] usbcore: registered new interface driver usb-storage
[    0.900223] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.909412] i2c /dev entries driver
[    0.914773] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.952757] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.962270] usbcore: registered new interface driver usbhid
[    0.967918] usbhid: USB HID core driver
[    0.987883] NET: Registered protocol family 17
[    0.992673] Key type dns_resolver registered
[    0.999327] Loading compiled-in X.509 certificates
[    1.015655] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.027663] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.033656] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.044436] hub 1-0:1.0: USB hub found
[    1.048570] hub 1-0:1.0: 1 port detected
[    1.054822] using random self ethernet address
[    1.059358] using random host ethernet address
[    1.066133] usb0: HOST MAC 0a:7b:78:29:42:c0
[    1.070751] usb0: MAC 7a:d9:0d:35:a5:5a
[    1.074745] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.082384] g_cdc gadget: g_cdc ready
[    1.087174] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.105336] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.112275] ALSA device list:
[    1.115311]   #0: Loopback 1
[    1.119214] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.128061] cfg80211: failed to load regulatory.db
[    1.134060] Waiting for root device /dev/mmcblk0p2...
[    1.145403] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.155812] mmc0: new high speed SD card at address 21e3
[    1.164709] mmcblk0: mmc0:21e3 SDN1G 121 MiB
[    1.171888]  mmcblk0: p1 p2
[    1.298082] random: fast init done
[    1.435236] EXT4-fs (mmcblk0p2): recovery complete
[    1.485186] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.493613] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.500867] devtmpfs: mounted
[    1.508398] Freeing unused kernel memory: 1024K
[    1.513208] Run /sbin/init as init process
[    1.686795] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
ifconfig lo up
usbmuxd init
iproxy 127.0.0.1 7310 7320 &
LED init
[    1.890359] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
app start
waiting for connection
chmod: /root/usbmuxdappnew: No such file or directory
/etc/init.d/rcS: /etc/init.d/S10location.sh: line 35: /root/usbmuxdappnew: not found
[00:00:02.147][3] usbmuxd v1.1.2 starting up
[00:00:02.150][4] Creating socket
[00:00:02.151][4] Listening on /var/run/usbmuxd
[00:00:02.153][4] Initializing USB
[00:00:02.153][3] Using libusb 1.0.21
[00:00:02.161][4] Registering for libusb hotplug events
[00:00:02.161][4] 0 devices detected
[00:00:02.162][3] Initialization complete
-------start process for orig
Initializing random number generator... file size=1310720
-------usbapp init
[    3.310327] random: dd: uninitialized urandom read (512 bytes read)
done.
accepted connection, fd = 4
waiting for connection
[00:00:03.381][4] Client 11 accepted: iproxy[100]
Number of available devices == 0
No connected device found, terminating.
[00:00:03.387][4] Client 11 connection closed
[00:00:03.388][4] Client 11 is going to be disconnected: iproxy[100]

Welcome to Lichee Pi
Lichee login: accepted connection, fd = 5
waiting for connection
[00:00:04.391][4] Client 11 accepted: iproxy[100]
Number of available devices == 0
No connected device found, terminating.
[00:00:04.394][4] Client 11 connection closed
[00:00:04.395][4] Client 11 is going to be disconnected: iproxy[100]

#3 Re: SigmaStar/SSD201/SSD202/SSD212 » SSD202开源在线文档( 含搭建、SDK开发、API参考、调试) » 2020-12-30 21:23:22

数据手册会开放吗

mango 说:

我意思是即将推出的正式SSD202开发套件包含 SSD202核心板 + 全接口扩展底板 + 800*480电容屏,售价方面我们一跺脚,定为199。

无限降低买后吃灰的鸭梨 big_smile

#4 Re: 全志 SOC » 我正在尝试使用vlc在licheepi-zero中播放视频,但无济于事 » 2020-12-20 21:28:24

mpv可以代替

rachid 说:
九重 天 说:

软 解 吗? 我 试过 mplayer 是 可以 的, 以前 的 buildroot 2018.02 可以 直接 勾选 的..

我在buildroot中找不到

https://whycan.com/files/members/5609/mpv.jpg

#7 Re: 全志 SOC » 采用 openwrt imagebuilder 构建 v3s cpio-rootfs 运行测试 » 2020-09-21 22:32:02

请问使用这个打包工具打包镜像,和直接使用openwrt有哪些异同?
是不是可以使用openwrt上的一些工具,例如sysupgrade升级系统?

#8 Re: ESP32/ESP8266 » Atouch更新,拉风铝合金外壳!玩转ESP32! » 2020-08-29 19:53:21

淘宝上找人做的铝合金外壳?

guanglun 说:

做了好长时间了,厂家最低做500套,实在是喜欢这种外壳,卖不出去就当充值信仰了

#10 Re: 全志 SOC » 奇怪...用Mesih的f1c100s带声卡主线5.2内核播放歌曲速度变快... » 2020-07-26 21:21:30

正解,niubility!

aodzip 说:

drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c 中 311行

static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio", 0x140, BIT(31), 0);

改为

static SUNXI_CCU_GATE(codec_clk, "codec", "pll-audio", 0x140, BIT(31), CLK_SET_RATE_PARENT);

即可解决问题

#11 Re: 全志 SOC » 官方bsp f1c100s插上hub,连接键盘鼠标之后只有一个设备能用,有人遇到过这问题吗? » 2020-06-26 10:53:43

f1c是musb,musb的ep资源分配方式决定了,它能连多少个设备受ep数量限制。V3s是ehci/ohci,没有这个问题。

#12 Re: 全志 SOC » 全志F1C200手机互联功能 » 2020-06-20 16:42:21

延迟有点高。AirPlay不是无线的么?

夜风已冷 说:

回复以上:USB投屏,USBMUX+airplay+秘钥解析+F1C200 vpu硬解码

#15 Re: 全志 SOC » {水} 整好板子又整了两天固件,发一个 H3 KERNEL 5.7 (BIN) » 2020-06-10 23:43:24

板子裸照发出来大家看看:)

everlink 说:

en, 是的

#16 Re: 全志 SOC » 一个迟到的高性价比开发板!芯灵思SIN-V3S! » 2020-06-10 23:26:45

习惯性问问,淘宝简介没提到

whyabc666 说:

这么念念不忘这个wifi/?有什么优点,便宜?

#20 Re: 全志 SOC » 使用华嵌HQEmbed S3 开发板, 驱动经典的无线芯片 BCM43438(AP6212) 的 蓝牙Bluetooth » 2020-06-08 17:44:39

请问这个解决了吗?
我在nanopi-m1-plus上按照2楼的方法,也出现Bluetooth hci0 timeout command 0x1003 tx timeout的错误。
真系头大

tobunto 说:

请教下,我在3.10内核,debian系统下调试AP6212蓝牙功能,在使用brcm_patchram_plus配置初始化参数,加载固件时很快结束,没看到有命令应答,在hciattach时会发生超时错误,hciattach命令只有使用any才会产生hci0设备,但hci0设备的地址都为空,也没发送接收字节,没法启动蓝牙,不知道哪儿出问题了。
bluetooth1.jpgbluetooth2.jpg

#21 Re: 全志 SOC » 有人玩H3吗? » 2020-06-06 17:28:42

板子挺漂亮的。具体什么配置?几层板?
最近也在搞H3

#22 Re: 全志 SOC » ADB 设置问题,modprobe失败 » 2020-06-04 09:37:05

系统启动log贴上来大家看看

迪卡 说:

晚上再最后调一下,贴出所有。
再搞不定就不搞了

#24 Re: 全志 SOC » F1C200S手持机 PDA原理图,请大家检查,要发出去啦 » 2020-05-30 12:41:09

不用流控也可以接

迪卡 说:

不接蓝牙了,没用,无法实现

#26 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2020-05-27 10:07:53

不需要

秦皇岛岛主 说:

请问使用https://github.com/Lichee-Pi/linux/tree/nano-4.14-exp这个版本的内核,只需要用你这个配置,不需要patch文件吗?

#31 Re: 全志 SOC » V3s linux 4.13 音频播放延迟了,开始以为是线程同步问题,纠结了很久 (问题由 @Andy1234 解决,欢迎大家验证) » 2020-04-21 23:37:13

会不会是硬件的原因,虽然codec内部是capless headphone ampilifier,已经抵消掉了直流部分。
但是作为强迫症患者,还是觉得HP_L,HP_R加个小的隔直电容会好一点。
licheepi zero电路(hp)
zero-hp.png
codec内部结构图:
zero-codec.png
关于capless headphone ampilifier讲解比较详细的文档

#32 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-17 23:35:55

版主的心要不要我操就不清楚咯,反而是你很替这些公司操心,热度丝毫不见得比我低啊。
这个年代,热心市民不好当啊,夸不得更骂不得。看到有人做的好不能夸,看到有人做的坏不能骂。鼓掌欢迎就对了,一片祥和,天下太平。
还有,烦请下次你提前留言哪个不能瞎操心,免得再有热心市民出来影响和谐,伤了和气。

Blueskull 说:

说的真好。找个镜子照照。版主的心不用你操。版主看他不爽你就看不到这帖子了。用不着你在这边发扬公民意识。

#33 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-17 10:10:25

人要脸,树要皮。给钱了发什么广告都行,没给钱的话别那么理直气壮。

Blueskull 说:

啥时候这个论坛不能发非开源项目了?晕哥说了算还是你说了算?

#34 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-16 15:30:00

你打的这个比方,说明你根本不知道我前面因什么而抬杠。
我不是单纯的反感你卖的有多贵。前面举了清真餐厅吃猪肉的例子,烦请你好好理解理解。

李某人 说:

小明第一次去超市买猪肉,以前没吃过这个猪肉
猪肉30块一斤
小明说,哇,猪肉好贵啊,老板你长得好难看啊,滚出去不能在这家超市卖猪肉,滚出去不能在超市门口宣传,东北的鸡肉比你的便宜,美国的鸭肉也便宜,你要降低你卖猪肉的价格到10块一斤。还有啊,你的猪肉也好难吃啊
老板说,哈哈,小伙子,要不你也去养一头猪或者买一头猪回来宰了卖大家10块一斤吧
小明说,我不管,你又难看,肉又贵又难吃
老板说,小伙子,你要不要先吃了再看看味道,我100斤的猪肉现在剩下20斤了
小明说,我不管,我没吃过,你的猪肉就是难吃,大家都知道

#35 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-16 11:52:51

我仔细回看了前面的言论,没发现有什么理解错的地方。
也烦请你看一下前面的言论,理解理解哪点好笑,跟大家分享分享。

李某人 说:

拜托你好好去读一下,理解一下别人前面的言论吧,笑死我了

#36 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-16 10:50:41

说话都得分场合,何况这种商业行径。
表错情?大讲特讲搞生态是一厢情愿?那这种跑来社区搞推广就是真理?我应该鼓掌欢迎?
我可不认为在社区大讲特讲搞生态有什么丢人。反而搞这种与社区理念相悖的商业行径的人觉得自己很高尚。

novice 说:

楼主是全志芯片代理商,说不定还代理其他公司的芯片呢,这里有些人一厢情愿的跟代理商说搞生态?表错情了吧?
全志一直都是走大客户路线,根本就不鸟散客,台湾和大陆的芯片厂商大都走这条路线。

#37 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-16 10:36:23

就你素质高,跑到社区支持这种推广。我是说的难听,但比不上有人做的难堪。做的好与坏有目共睹,事实就摆在眼前,你不承认而已。

李某人 说:

我也不知道从哪里得到的结论“做的差”“”做的好”
我不会怪你这种低素质满嘴人身攻击的,继续你的表演吧
不违反法律道德的情况下,大家言论都是自由的
自由的言论带着攻击,所以?

#38 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 23:36:28

我认为,在社区推广这种远高于市面同类开发板的行为,完全和社区的开源分享理念相悖。直白一点,就好比你在清真餐厅吃猪肉包,你到别的地方怎么吃都没人有意见,但在这里就不一样。我抬杠的是这种行径,明白?
我个人不违反社区规则和理念的前提下,我白嫖有什么问题?
社区的理念不就是分享吗?
难不成你没白嫖过社区的资源?
要是说,这家代理商公司是有出钱支持晕哥的论坛来打广告的,我对这种支持社区的行为是表示欢迎和感谢的。

Blueskull 说:

没记错的话这家卖板子的自己封的X3吧,某种意义上这款芯片是人家自己开发的,人家自己的芯片放出来什么资料,怎么放出来,先给谁后给谁,人家自己说了算吧。

不喜欢的话你也可以自己去找全志买A33裸片自己封SiP。

何况,因为die是A33,就算X3原厂不提供BSP,你买几个芯片要个pin脚图和内存时序,还不是可以直接套用A33的BSP?

既然有别的路可以走,那么你真的感兴趣,愿意玩的话人家卖多少钱就不影响你了。

至于说你想白嫖原厂BSP还想快速商业开发,一点都不想贡献sunxi社区,那就是你的不对了。你说我这话讲理不?

#39 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 23:09:17

1.没错,我是要感谢第一批吃螃蟹的人,包括大家。3352买的贵是人家有底气,国内买的便宜是造福大众,应该感谢。
2.我可没吐槽全志,全志对社区的支持力度还是很友好的,反过来,社区也很乐意使用全志的芯片,例如sunxi社区,两者是相辅相成的。这一点你可不要以偏概全。我是吐槽这种对看不出有什么友好态度和贡献行为的,却跑来社区做商业推广的公司。
3.你动不动就说"________","___"之类的,因何说出这种话呢?大清都亡了这么多年,这点自信怎么都没有呢?

Blueskull 说:

没有第一批吃螃蟹的出钱你永远拿不到BSP。得便宜还要卖乖。说句不好听的,没有金主推动支持,这种复杂的多核SoC你连start.S都写不出来。



AM3358多少钱?对标的单核全志A13多少钱?



就是看不惯白嫖有理怪。



除了Beagle全世界没有比全志资料更好找的MPU了吧。Microchip确实有A5的SAM系列,STM也有A7的MP系列,我咋没看到有人用?我承认谁优秀?

不如现在的优秀,我凭啥捧着它?号称开源社区最大的RPi系列连个电路图都没有,芯片也买不到,没见某些牧羊犬去婊。

#40 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 22:26:38

是是是,就是国内芯片厂商惯坏了我这种白嫖怪。但我就是乐意抬杠。乐意和这种完全看不出有什么友好态度或贡献行为,却利用开源社区这个平台做商业推广的公司抬杠。TI和飞思卡尔官方开发板买的贵是事实,但人家脸皮没那么厚来开源社区推广,何况beaglebone系列开发板的推广和对社区的支持力度有目共睹。我吐槽的原因是这个,至于你为什么要捧它们,我倒是很好奇。
此外,吐槽国内公司不好就说是捧洋大人的脸,这点不敢苟同。现在这个年代,承认别人优秀没那么难吧,这点脸皮都没有?

Blueskull 说:

飞思卡尔iMX6UL系列528M主频单核A7原厂板子带屏250美金,没有技术支持,只有一个日均发帖量不过百的论坛和几个PDF教程。爱买买,不爱买别买。

TI除了给爱好者准备的Beagle系列,其他面向专业用户的ARM MPU(非MCU)板子都在300美金以上。

X3这个价格不正常?国产芯片单价便宜就算了,凭啥开发门槛还得低?卖给你已经是给你脸了。日韩台湾很多消费类芯片小批量不签NDA买都买不到,不一样大规模应用?

这个级别的4核A7就没有集成RAM的,不爱买X3可以自己开模封一个SiP。骨头贱喜欢洋大人的完善生态链的没人说你不可以买iMX6Q/iMX8或者Sitara。

没那个预算还想要人家的生态,梦里都有。你非抬杠说手机SoC有集成RAM的那我也没话说,你买得到还能搞到BSP算。

我和厂家一毛钱关系也没有,我老老实实玩我的F1C,也不指望短期内能玩到X3,但我就是看不惯天天想不劳而获还振振有词的。

#41 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 21:51:43

呵呵,别人都说___,难不成你不信还要试试?我就是看不惯国内这种公司的吃相,做得差还不承认,还说爱买不买。

李某人 说:

1-提高门槛=拒绝开发者?
2-不舍得花钱又不允许宣传,真酸。
3-有看到上面说的“返还费用”?
4-“做的不好又不能允许人家骂”---有使用才有发言权,我没使用过,好用与否不做评论,用过么?
5-评论别人做的不好的时候大可自己大展身手,用X3自己搞个开发板卖100块?
6-市场供需,你需要而我刚好有,上市公司老板都会宣传自己公司产品,你们家产品是不是像光刻机大家求着你卖?

#42 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 19:09:08

买不起哦,穷是原罪,我也没想到这里这么多有钱人

Blueskull 说:

不舍得花钱又不能允许人家不给用,难哦~

#43 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 16:04:07

1.提高门槛,这是事实,这种策略就是拒绝个人开发者。哦,应该是拒绝不舍得花这个钱的个人开发者。
2.采用这种策略还说自己不是靠卖开发板赚钱,并且来社区打广告,这种行为说"厚颜无耻"一点也不过分。
3.国内公司采用这种策略生存无可厚非,但这种策略和行为无论在国内还是国外开源社区都是不受欢迎的,你个人没必要替他们辩解。
4.做的不好又不能允许人家骂,难哦~

李某人 说:

"我从未见过有如此厚颜无耻之人"
这个大哥,讨论归讨论,不带人身攻击。
有看了第一点吗?
整段文字哪里出现“高呼冤枉”,哪里出现“拒绝个人开发者”
断章取义又无素质乱喷

#44 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-15 12:24:36

公司客户,你卖2万块都不会有人喷你。但公司立项的时候,技术员肯定会优先选自己熟悉的芯片或者技术支持友好的大公司的芯片。为什么ST在国内有那么多人乐意用?价格便宜?那是因为人家生态做的好,很多开发者在大学或者入行的时候基本都玩过ST的板子,熟悉;所以,立项的时候就会考虑到这个片子。你这种公司既不想做生态,还提高门槛拒绝个人开发者,还高呼我冤枉,我不靠卖开发板赚钱,你们个人开发者不要捣乱,做公司项目的时候记得再来选我!"我从未见过有如此厚颜无耻之人"!!!这里是开发者社区,有脸来打广告,被喷也正常不过。

李某人 说:

我觉得这个价格还好吧。
1-对个人开发者入门学习成本是高的
2-公司角度想用这个芯片不在乎这点钱,项目量产后大部分代理商是会返回这个开发板的钱的,开发板和收开发费都是为了大家有共同目的让项目量产
3-代理商本身不靠大批量出货开发板赚钱的,做几十套是为了方便客户前期研发
4-研发成本除了硬件,还有软件,不能只计算板子上物料的价格
5-从淘宝和其他地方买了几颗芯片自己画或者买个第三方的开发板,资料和技术支持能像代理一样好吗?我看未必吧,很多从淘宝买了便宜开发板,最后还是要找代理商做技术支持,最后量产又找其他人买,你是代理商的话能接受这样吗

#45 Re: 全志 SOC » X3开发板官方版本新鲜出炉,4核A7,内置128MB DDR,封装FBGA 262,16x13x1.0mm » 2020-04-12 09:23:55

所谓说,没有对比就没有伤害。群友都列举了国外厂商ST之类的推广策略如何受开发者欢迎,你再回头看看国内厂家的遮遮掩掩。你既然是想卖芯片,还是跑来开发者社区做推广,何必吃两头又不让利?打广告都是要钱的,你这变相提高普通玩家门槛又何必呢?试问有多少普通玩家出发点一开始就是从拿这个芯片来做项目?另外,我不同意"想吃螃蟹也不想花钱"的说法,开源社区核心就在于分享,大家都这么精明计较,何必来社区掺和呢?

Blueskull 说:

不知道为什么那么多人喷卖家。你不乐意就别买板子。要个原理图封装图和ddr时序参数,自己画板子呗。内核uboot啥的都可以直接套a33,这玩意除了上述那几个和a33不一样其他都一样。卖家支持的成本大头不在这些东西,在于完善的驱动和原厂bsp。你私信一下卖家,买几个芯片,还要不来手册?有了手册既然你没花bsp的钱,那就老老实实用a33的bsp,又不是没有。再说了,等卖家捞一波先期客户的钱,总有人会把bsp发出去的。又不想花钱又不想花时间,还想第一个吃螃蟹?那花钱的岂不成老实人了?

#48 Re: 全志 SOC » 试一试 S3 Linux 4.13 读取 USB 条码枪 » 2020-03-27 18:46:01

单纯判断键值貌似是区分不了大小写的。
有些键盘shift+a组合表示大写A,Caps Lock锁定大写时按单一a键也是大写A。
直接读raw数据或许准确一些,还可以判断组合键和多键同时按下的情况。

晕哥 说:

看了一下, 只是 cvt_ev_char 这个函数没有处理 小写字母和特殊字符而且,代码添加一下就好了。


Windows 下确实是这样, Linux下你觉得用什么编程接口读呢?

#49 Re: 全志 SOC » 试一试 S3 Linux 4.13 读取 USB 条码枪 » 2020-03-27 15:27:01

这个代码有限制,貌似读不了小写字母

#50 Re: 全志 SOC » v3s上使用mplayer软解播放MP4视频,帧率如何? » 2020-03-22 21:29:34

谢谢你的回复,发现软解效果确实不佳,800*480@15fps

jiangchun9981 说:

要求多大分辨率的?

要是高清的软接V3S也是吃不削的 

看中这个指标还是看看官方的SDK包  CAMDROID啊!  基于安卓的结构,但做了精简,没用到虚拟机部分,熟悉安卓NDK开发的就非常简单了

#53 Re: 全志 SOC » 这几天看到Q群都在讨论全志的X3 (A33 with DDR), 其实也没有啥创新,但是解决用户的痛点 » 2020-03-16 13:34:06

图形方面还是强不少,有GPU

jlau 说:

好像多媒体性能也没比S3强多少,连网口都没有,还是封个A64好玩点 lol

#55 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt(widora-neo)使用portaudio播放音频,出现多次调用postinit(),伴有杂音,偶尔会造成系统奔溃 » 2020-03-09 17:09:22

经测试,openwrt主线的声卡驱动不存在这个bug.
但遇到了文件系统一个bug。。。下面这个帖子
widora-neo-16128m开发板跑主线openwrt,不能进入kernel shell......

root@OpenWrt:/mnt/usb# ./paex_write_sine
PortAudio Test: output sine wave. SR = 44100, BufSize = 1024
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown[ 2405.709000]  wm8960-codec: ASoC: unmatched rate symmetry: 8000 - 44100
 PCM cards.pcm.surround51
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2564:(snd_pcm_open_noupdat[ 2405.747731]  wm8960-codec: ASoC: unmatched rate symmetry: 8000 - 44100
e) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Expression 'ioctl( devHandle, SNDCTL_DSP_SPEED, &sr )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 421
Expression 'ioctl( devHandle, SNDCTL_DSP_SPEED, &sr )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 421
Play 3 times, higher each time.
Play for 5 seconds.
Play for 5 seconds.
Play for 5 seconds.
Test finished.

#56 Re: ESP32/ESP8266 » 乐鑫的esp32-s2模组和开发板上市了 » 2020-03-09 16:43:20

官方sdk关于usb部分的代码好像还没完善。

#57 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » widora-neo-16128m开发板跑主线openwrt,不能进入kernel shell...... » 2020-03-09 16:41:14

跑是能跑起来了,但从U盘拷贝文件到本地,重启后,老是莫名奇妙的丢失文件,或者文件大小自己变小了...
感觉哪里没有设置对,导致文件系统有问题
启动log里面,kernel+rootfs分区好像不大对.正常来说应该从firmware分区的0x50000开始自动分区,但这里显示是从0x0开始。

[    0.450902] 2 uimage-fw partitions found on MTD device firmware
[    0.456916] Creating 2 MTD partitions on "firmware":
[    0.462027] 0x000000000000-0x0000001baeb2 : "kernel"
[    0.468108] 0x0000001baeb2-0x000000fb0000 : "rootfs"

关于jffs2的log:

root@OpenWrt:/mnt/usb# dmesg | grep jffs2
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.283821] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    9.198050] jffs2: notice: (453) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (3 unchecked, 3 orphan) and 10 of xref (3 dead, 0 orphan) found.
[    9.215573] mount_root: switching to jffs2 overlay
[   60.033694] jffs2: Erase at 0x00830000 failed immediately: errno -22
[   60.333680] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f6f18. {ffff,ffff,ffffffff,ffffffff}
[   60.347235] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f63fc. {ffff,ffff,ffffffff,ffffffff}
[   60.361339] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f5784. {ffff,ffff,ffffffff,ffffffff}
[   60.376280] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f4b70. {ffff,ffff,ffffffff,ffffffff}
[   60.389267] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f3eec. {ffff,ffff,ffffffff,ffffffff}
[   60.404380] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f3290. {ffff,ffff,ffffffff,ffffffff}
[   60.417355] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f26b4. {ffff,ffff,ffffffff,ffffffff}
[   60.432495] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f1b24. {ffff,ffff,ffffffff,ffffffff}
[   60.445325] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f0f64. {ffff,ffff,ffffffff,ffffffff}
[   60.460436] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f031c. {ffff,ffff,ffffffff,ffffffff}
[   60.473391] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f000c. {ffff,ffff,ffffffff,ffffffff}
root@OpenWrt:/mnt/usb#

完整的启动log:

root@OpenWrt:/mnt/usb# dmesg
[    0.000000] Linux version 4.14.169 (root@ubuntu) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12261-d1130ad)) #0 Fri Feb 21 21:35:12 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Widora-NEO (16M)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 8054e050, node_mem_map 81000040
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a0 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00038f61
[    0.000000] Readback ErrCtl register=00038f61
[    0.000000] Memory: 122820K/131072K available (4290K kernel code, 193K rwdata, 952K rodata, 1212K init, 217K bss, 8252K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007542] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073500] pid_max: default: 32768 minimum: 301
[    0.078236] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084586] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098213] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107725] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.113713] pinctrl core: initialized pinctrl subsystem
[    0.119822] NET: Registered protocol family 16
[    0.157368] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.163027] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.168576] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.175450] Bluetooth: Core ver 2.22
[    0.178933] NET: Registered protocol family 31
[    0.183155] Bluetooth: HCI device and connection manager initialized
[    0.189363] Bluetooth: HCI socket layer initialized
[    0.194009] Bluetooth: L2CAP socket layer initialized
[    0.198910] Bluetooth: SCO socket layer initialized
[    0.207594] clocksource: Switched to clocksource MIPS
[    0.213763] NET: Registered protocol family 2
[    0.218810] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.225504] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.231691] TCP: Hash tables configured (established 1024 bind 1024)
[    0.237958] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.243558] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.249977] NET: Registered protocol family 1
[    0.254156] PCI: CLS 0 bytes, default 32
[    0.258021] Crashlog allocated RAM at address 0x3f00000
[    0.264778] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.278247] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.283821] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.311618] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.320088] io scheduler noop registered
[    0.323815] io scheduler deadline registered (default)
[    0.329782] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.337086] console [ttyS0] disabled
[    0.340599] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.349332] console [ttyS0] enabled
[    0.356321] bootconsole [early0] disabled
[    0.365090] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.374729] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.385203] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.407136] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.412005] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.418462] Creating 4 MTD partitions on "spi0.0":
[    0.423334] 0x000000000000-0x000000030000 : "u-boot"
[    0.429395] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.435633] 0x000000040000-0x000000050000 : "factory"
[    0.441722] 0x000000050000-0x000001000000 : "firmware"
[    0.450902] 2 uimage-fw partitions found on MTD device firmware
[    0.456916] Creating 2 MTD partitions on "firmware":
[    0.462027] 0x000000000000-0x0000001baeb2 : "kernel"
[    0.468108] 0x0000001baeb2-0x000000fb0000 : "rootfs"
[    0.473950] mtd: device 5 (rootfs) set to be root filesystem
[    0.481382] 1 squashfs-split partitions found on MTD device rootfs
[    0.487711] Creating 1 MTD partitions on "rootfs":
[    0.492583] 0x0000005b514e-0x000000df514e : "rootfs_data"
[    0.500001] libphy: Fixed MDIO Bus: probed
[    0.514084] rt3050-esw 10110000.esw: link changed 0x00
[    0.522879] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.531993] Bluetooth: HCI UART driver ver 2.3
[    0.536506] Bluetooth: HCI UART protocol H4 registered
[    0.541763] Bluetooth: HCI UART protocol BCSP registered
[    0.548395] NET: Registered protocol family 10
[    0.557102] Segment Routing with IPv6
[    0.561016] NET: Registered protocol family 17
[    0.566147] Bluetooth: RFCOMM TTY layer initialized
[    0.571185] Bluetooth: RFCOMM socket layer initialized
[    0.576419] Bluetooth: RFCOMM ver 1.11
[    0.580250] 8021q: 802.1Q VLAN Support v1.8
[    0.590922] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.604822] Freeing unused kernel memory: 1212K
[    0.609461] This architecture does not have kernel memory protection.
[    1.419704] init: Console is alive
[    1.423415] init: - watchdog -
[    2.277605] random: fast init done
[    3.228382] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.359943] usbcore: registered new interface driver usbfs
[    3.365605] usbcore: registered new interface driver hub
[    3.371205] usbcore: registered new device driver usb
[    3.382899] exFAT: Version 1.2.9
[    3.395979] JFS: nTxBlock = 969, nTxLock = 7752
[    3.409573] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.425352] SCSI subsystem initialized
[    3.435001] ehci-platform: EHCI generic platform driver
[    3.450719] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.457522] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.462850] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.468728] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.476885] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.507616] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.515031] hub 1-0:1.0: USB hub found
[    3.519350] hub 1-0:1.0: 1 port detected
[    3.527051] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.535335] ohci-platform: OHCI generic platform driver
[    3.541020] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.547992] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.556108] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.632721] hub 2-0:1.0: USB hub found
[    3.637049] hub 2-0:1.0: 1 port detected
[    3.644242] uhci_hcd: USB Universal Host Controller Interface driver
[    3.657394] usbcore: registered new interface driver usb-storage
[    3.664543] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.674351] init: - preinit -
[    4.146742] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.429140] usb-storage 1-1:1.0: USB Mass Storage device detected
[    4.438292] random: procd: uninitialized urandom read (4 bytes read)
[    4.453161] scsi host0: usb-storage 1-1:1.0
[    4.828157] rt3050-esw 10110000.esw: link changed 0x00
[    5.469352] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   1402 PQ: 0 ANSI: 6
[    5.630657] sd 0:0:0:0: [sda] 15548416 512-byte logical blocks: (7.96 GB/7.41 GiB)
[    5.640016] sd 0:0:0:0: [sda] Write Protect is off
[    5.644891] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[    5.646516] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    5.665188]  sda: sda1
[    5.673642] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    7.845728] rt3050-esw 10110000.esw: link changed 0x01
[    9.198050] jffs2: notice: (453) jffs2_build_xattr_subsystem: complete building xattr subsystem, 6 of xdatum (3 unchecked, 3 orphan) and 10 of xref (3 dead, 0 orphan) found.
[    9.215573] mount_root: switching to jffs2 overlay
[    9.263638] overlayfs: upper fs does not support tmpfile.
[    9.274925] urandom-seed: Seeding with /etc/urandom.seed
[    9.405787] procd: - early -
[    9.408944] procd: - watchdog -
[   10.173102] procd: - watchdog -
[   10.176657] procd: - ubus -
[   10.238277] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.245531] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.252634] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.260231] procd: - init -
[   11.345862] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.494522] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.549686] i2c /dev entries driver
[   11.557842] gdma-rt2880 10002800.gdma: revision: 3, channels: 16
[   11.629652] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[   11.655947] hidraw: raw HID events driver (C) Jiri Kosina
[   11.679777] ralink-i2s 10000a00.i2s: mclk 480MHz
[   11.738698] mt76x8-wm8960 sound: wm8960-hifi <-> 10000a00.i2s mapping ok
[   11.785316] urngd: v1.0.2 started.
[   11.873109] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[   11.880864] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[   11.922955] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.950883] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   12.103307] usbcore: registered new interface driver usbhid
[   12.109039] usbhid: USB HID core driver
[   12.130160] usbcore: registered new interface driver usblp
[   12.153222] usbcore: registered new interface driver usbserial
[   12.159328] usbcore: registered new interface driver usbserial_generic
[   12.166026] usbserial: USB Serial support registered for generic
[   12.189870] random: crng init done
[   12.193336] random: 6 urandom warning(s) missed due to ratelimiting
[   12.238624] xt_time: kernel timezone is -0000
[   12.300637] usbcore: registered new interface driver ch341
[   12.306307] usbserial: USB Serial support registered for ch341-uart
[   12.330647] usbcore: registered new interface driver cp210x
[   12.336391] usbserial: USB Serial support registered for cp210x
[   12.481167] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   13.589838] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   13.595859] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   13.637626] mt76_wmac 10300000.wmac: firmware init done
[   13.817553] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.843004] usbcore: registered new interface driver pl2303
[   13.848860] usbserial: USB Serial support registered for pl2303
[   13.871789] PPP generic driver version 2.4.2
[   13.889446] NET: Registered protocol family 24
[   13.911954] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.972488] rt3050-esw 10110000.esw: link changed 0x00
[   23.000948] rt3050-esw 10110000.esw: link changed 0x01
[   25.788141] br-lan: port 1(eth0) entered blocking state
[   25.793456] br-lan: port 1(eth0) entered disabled state
[   25.799199] device eth0 entered promiscuous mode
[   25.826896] br-lan: port 1(eth0) entered blocking state
[   25.832275] br-lan: port 1(eth0) entered forwarding state
[   25.838000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   26.827759] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   29.128724] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   60.033694] jffs2: Erase at 0x00830000 failed immediately: errno -22
[   60.333680] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f6f18. {ffff,ffff,ffffffff,ffffffff}
[   60.347235] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f63fc. {ffff,ffff,ffffffff,ffffffff}
[   60.361339] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f5784. {ffff,ffff,ffffffff,ffffffff}
[   60.376280] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f4b70. {ffff,ffff,ffffffff,ffffffff}
[   60.389267] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f3eec. {ffff,ffff,ffffffff,ffffffff}
[   60.404380] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f3290. {ffff,ffff,ffffffff,ffffffff}
[   60.417355] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f26b4. {ffff,ffff,ffffffff,ffffffff}
[   60.432495] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f1b24. {ffff,ffff,ffffffff,ffffffff}
[   60.445325] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f0f64. {ffff,ffff,ffffffff,ffffffff}
[   60.460436] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f031c. {ffff,ffff,ffffffff,ffffffff}
[   60.473391] jffs2: notice: (1433) jffs2_get_inode_nodes: Node header CRC failed at 0x7f000c. {ffff,ffff,ffffffff,ffffffff}

#58 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » widora-neo-16128m开发板跑主线openwrt,不能进入kernel shell...... » 2020-03-09 12:53:41

谢谢mango的回复。今天开电脑又试了试,是没问题的:D。。。估计是putty的原因,之前敲回车没反应
主要是widora官方的openwrt声卡驱动有点问题,准备试试主线的有没问题
openwrt(widora-neo)使用portaudio播放音频,出现多次调用postinit(),伴有杂音,偶尔会造成系统奔溃

mango 说:

看着问题不大,看样子敲回车应该会激活命令交互

#59 Openwrt/LEDE/AR9331/MT7688/RT5350 » widora-neo-16128m开发板跑主线openwrt,不能进入kernel shell...... » 2020-03-08 23:48:48

checkout
回复: 4

今日翻出widora-neo开发板,试试编译主线openwrt,发现启动卡住,不能进入shell...
感觉是flash驱动的原因,不知有没大佬遇到类似情况

Widora by mango,V1.0.6

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fb4000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Aug 10 2016  Time:21:39:21
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 575 MHZ ####
 estimate memory size =128 Mbytes
RESET MT7628 PHY!!!!!!MT7688 gpio init : wled and wdt by mango

if you press the WPS button for more than 2 seconds will automatically enter the Update mode,more than 7 seconds enter gpio test mode

0
1
2
3
4
5
6
7
8
9

Continuing normal boot...


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Entr ALL LED test mode.
   6: Entr Web failsafe mode.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                                                                                           0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.169
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1672728 Bytes =  1.6 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.169 (root@ubuntu) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r12261-d1130ad)) #0 Fri Feb 21 21:35:12 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Widora-NEO (16M)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a0 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00038f60
[    0.000000] Readback ErrCtl register=00038f60
[    0.000000] Memory: 123280K/131072K available (3918K kernel code, 182K rwdata, 896K rodata, 1204K init, 205K bss, 7792K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000013] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007536] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073501] pid_max: default: 32768 minimum: 301
[    0.078257] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084614] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098253] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.107760] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.113749] pinctrl core: initialized pinctrl subsystem
[    0.119878] NET: Registered protocol family 16
[    0.154336] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.160018] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.165530] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.176052] clocksource: Switched to clocksource MIPS
[    0.182260] NET: Registered protocol family 2
[    0.187331] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.194024] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200215] TCP: Hash tables configured (established 1024 bind 1024)
[    0.206481] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.212082] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.218522] NET: Registered protocol family 1
[    0.226584] Crashlog allocated RAM at address 0x3f00000
[    0.233417] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.246962] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.252539] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.275421] io scheduler noop registered
[    0.279223] io scheduler deadline registered (default)
[    0.285019] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.292363] console [ttyS0] disabled
[    0.295805] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.304586] console [ttyS0] enabled
[    0.304586] console [ttyS0] enabled
[    0.311590] bootconsole [early0] disabled
[    0.311590] bootconsole [early0] disabled
[    0.320365] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.329979] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.340417] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.362775] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.367629] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.374069] Creating 4 MTD partitions on "spi0.0":
[    0.378955] 0x000000000000-0x000000030000 : "u-boot"
[    0.384960] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.391287] 0x000000040000-0x000000050000 : "factory"
[    0.397413] 0x000000050000-0x000001000000 : "firmware"
[    0.406738] 2 uimage-fw partitions found on MTD device firmware
[    0.412753] Creating 2 MTD partitions on "firmware":
[    0.417847] 0x000000000000-0x000000198658 : "kernel"
[    0.423836] 0x000000198658-0x000000fb0000 : "rootfs"
[    0.429762] mtd: device 5 (rootfs) set to be root filesystem
[    0.437259] 1 squashfs-split partitions found on MTD device rootfs
[    0.443536] Creating 1 MTD partitions on "rootfs":
[    0.448458] 0x0000002379a8-0x000000e179a8 : "rootfs_data"
[    0.455878] libphy: Fixed MDIO Bus: probed
[    0.471525] rt3050-esw 10110000.esw: link changed 0x00
[    0.478465] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.488783] NET: Registered protocol family 10
[    0.497874] Segment Routing with IPv6
[    0.501708] NET: Registered protocol family 17
[    0.506362] 8021q: 802.1Q VLAN Support v1.8
[    0.517645] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.531543] Freeing unused kernel memory: 1204K
[    0.536170] This architecture does not have kernel memory protection.
[    1.271959] init: Console is alive
[    1.275663] init: - watchdog -
[    2.236100] random: fast init done
[    2.435398] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.565565] usbcore: registered new interface driver usbfs
[    2.571328] usbcore: registered new interface driver hub
[    2.576877] usbcore: registered new device driver usb
[    2.588572] exFAT: Version 1.2.9
[    2.601381] JFS: nTxBlock = 972, nTxLock = 7780
[    2.614778] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.623366] ehci-platform: EHCI generic platform driver
[    2.639085] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    2.645889] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    2.651217] ehci-platform 101c0000.ehci: EHCI Host Controller
[    2.657119] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    2.665272] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    2.696078] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    2.703517] hub 1-0:1.0: USB hub found
[    2.707870] hub 1-0:1.0: 1 port detected
[    2.715363] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.723531] ohci-platform: OHCI generic platform driver
[    2.729193] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    2.736151] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    2.744271] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    2.821177] hub 2-0:1.0: USB hub found
[    2.825502] hub 2-0:1.0: 1 port detected
[    2.833088] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.851018] init: - preinit -
[    4.055839] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.248467] rt3050-esw 10110000.esw: link changed 0x01
[    8.305860] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    8.345129] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.479867] procd: - early -
[    8.482907] procd: - watchdog -
[    9.212368] procd: - watchdog -
[    9.215915] procd: - ubus -
[    9.318572] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.325816] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.332919] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.340544] procd: - init -
Please press Enter to activate this console.
[   10.143120] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.217603] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.239857] Loading modules backported from Linux version v5.4-rc8-0-gaf42d3466bdc
[   10.247614] Backport generated by backports.git v5.4-rc8-1-0-g368e8c51
[   10.278981] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.304287] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.445472] xt_time: kernel timezone is -0000
[   10.586690] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   10.671518] urngd: v1.0.2 started.
[   10.873865] random: crng init done
[   10.877356] random: 7 urandom warning(s) missed due to ratelimiting
[   11.628204] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   11.634225] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   11.676068] mt76_wmac 10300000.wmac: firmware init done
[   11.891925] PPP generic driver version 2.4.2
[   11.917182] NET: Registered protocol family 24
[   11.932445] kmodloader: done loading kernel modules from /etc/modules.d/*
[   27.796972] rt3050-esw 10110000.esw: link changed 0x00
[   29.836569] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   29.843594] jffs2_build_filesystem(): unlocking the mtd device...
[   29.856115] done.
[   29.864342] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   29.864386] jffs2: Erase at 0x00bd0000 failed immediately: errno -22
[   32.035467] rt3050-esw 10110000.esw: link changed 0x01
[   34.348859] br-lan: port 1(eth0) entered blocking state
[   34.354173] br-lan: port 1(eth0) entered disabled state
[   34.359892] device eth0 entered promiscuous mode
[   34.415166] br-lan: port 1(eth0) entered blocking state
[   34.420547] br-lan: port 1(eth0) entered forwarding state
[   34.426276] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   35.376187] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   89.749292] done.
[   89.751299] jffs2: notice: (1082) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   89.914802] overlayfs: upper fs does not support tmpfile.

#64 Re: 全志 SOC » F1C100S/F1C200S-减少开机时间、uboot、内核、根文件系统裁减优化问题 » 2020-02-15 19:37:33

可以用xboot

jiangchun9981 说:

我也一直想u-boot直接跑图形界面,主要是有几
个GPIO,SPI,这些外设就可以了,做个简单的控制   可以做到秒启动

LINUX无论如何优化也不可能做到1S内启动图形界面的

#70 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt(widora-neo)使用portaudio播放音频,出现多次调用postinit(),伴有杂音,偶尔会造成系统奔溃 » 2020-01-10 20:55:04

使用aplay和madplay播放音频都没问题的,初步怀疑问题出在portaudio初始化的时候,对声卡多次进行设置。
同一程序在其他平台都没遇到这个bug。立个贴留个坑

#71 Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt(widora-neo)使用portaudio播放音频,出现多次调用postinit(),伴有杂音,偶尔会造成系统奔溃 » 2020-01-10 20:46:29

checkout
回复: 8

硬件:widora-neo开发板,
软件:widora官方固件Ver0.1.9-20190812
问题描述:使用portaudio播放音频流,上电第一次initialize的时候,底层驱动出现多次调用postinit()函数,伴有杂音,偶尔会造成系统奔溃。
有没大佬遇到这种情况,或者有什么idea?
现象如下:

[   62.280000] capture free_dma_buffer
[   62.290000] ptri2s_config->mmap_index:0
[   62.290000] playback free_dma_buffer
[   62.300000] ptri2s_config->mmap_index:0
[   62.340000] capture free_dma_buffer
[   62.340000] ptri2s_config->mmap_index:0
[   62.360000] playback free_dma_buffer
[   62.360000] ptri2s_config->mmap_index:0
[   62.370000] playback free_dma_buffer
[   62.370000] ptri2s_config->mmap_index:0
[   62.390000] playback free_dma_buffer
[   62.390000] ptri2s_config->mmap_index:0
[   62.400000] playback free_dma_buffer
[   62.400000] ptri2s_config->mmap_index:0
[   62.420000] playback free_dma_buffer
[   62.420000] ptri2s_config->mmap_index:0
[   62.430000] capture free_dma_buffer
[   62.430000] ptri2s_config->mmap_index:0
[   62.450000] playback free_dma_buffer
[   62.450000] ptri2s_config->mmap_index:0
[   62.460000] playback free_dma_buffer
[   62.470000] ptri2s_config->mmap_index:0
[   62.480000] playback free_dma_buffer
[   62.480000] ptri2s_config->mmap_index:0
[   62.490000] playback free_dma_buffer
[   62.500000] ptri2s_config->mmap_index:0
[   62.510000] playback free_dma_buffer
[   62.510000] ptri2s_config->mmap_index:0
[   62.520000] playback free_dma_buffer
[   62.530000] ptri2s_config->mmap_index:0
[   62.540000] playback free_dma_buffer
[   62.540000] ptri2s_config->mmap_index:0
[   62.550000] capture free_dma_buffer
[   62.560000] ptri2s_config->mmap_index:0
[   62.570000] playback free_dma_buffer
[   62.570000] ptri2s_config->mmap_index:0
[   62.580000] capture free_dma_buffer
[   62.590000] ptri2s_config->mmap_index:0
[   62.600000] playback free_dma_buffer
[   62.610000] ptri2s_config->mmap_index:0
[   62.620000] capture free_dma_buffer
[   62.620000] ptri2s_config->mmap_index:0
[   62.630000] playback free_dma_buffer
[   62.640000] ptri2s_config->mmap_index:0
[   62.650000] capture free_dma_buffer
[   62.650000] ptri2s_config->mmap_index:0
[   62.660000] playback free_dma_buffer
[   62.670000] ptri2s_config->mmap_index:0
[   62.680000] capture free_dma_buffer
[   62.680000] ptri2s_config->mmap_index:0
[   62.690000] playback free_dma_buffer
[   62.700000] ptri2s_config->mmap_index:0
[   62.710000] playback free_dma_buffer
[   62.710000] ptri2s_config->mmap_index:0
[   62.980000] ****** wm8960_postinit ******
[   63.260000] ****** wm8960_postinit ******
[   63.540000] ****** wm8960_postinit ******
[   63.820000] ****** wm8960_postinit ******
[   64.100000] ****** wm8960_postinit ******
[   64.380000] ****** wm8960_postinit ******
[   64.660000] ****** wm8960_postinit ******
[   64.940000] ****** wm8960_postinit ******
[   65.220000] ****** wm8960_postinit ******
[   65.500000] ****** wm8960_postinit ******
[   65.780000] ****** wm8960_postinit ******
[   66.060000] ****** wm8960_postinit ******
[   66.340000] ****** wm8960_postinit ******
[   66.620000] ****** wm8960_postinit ******
[   66.900000] ****** wm8960_postinit ******
[   67.180000] ****** wm8960_postinit ******
[   67.460000] ****** wm8960_postinit ******
[   67.740000] ****** wm8960_postinit ******
[   68.020000] ****** wm8960_postinit ******
[   68.040000] capture free_dma_buffer
[   68.040000] ptri2s_config->mmap_index:0
[   68.050000] ****** wm8960_preinit ******
[   68.820000] ****** wm8960_postinit ******
[   69.100000] ****** wm8960_postinit ******
[   69.380000] ****** wm8960_postinit ******
[   69.660000] ****** wm8960_postinit ******
[   69.940000] ****** wm8960_postinit ******
[   70.220000] ****** wm8960_postinit ******
[   70.500000] ****** wm8960_postinit ******
[   70.780000] ****** wm8960_postinit ******
[   71.060000] ****** wm8960_postinit ******
[   71.340000] ****** wm8960_postinit ******
[   71.620000] ****** wm8960_postinit ******
[   71.900000] ****** wm8960_postinit ******
[   72.180000] ****** wm8960_postinit ******
[   72.460000] ****** wm8960_postinit ******
[   72.740000] ****** wm8960_postinit ******
[   73.020000] ****** wm8960_postinit ******
[   73.300000] ****** wm8960_postinit ******
[   73.580000] ****** wm8960_postinit ******
[   73.600000] playback free_dma_buffer
[   73.610000] ptri2s_config->mmap_index:0
PortAudio: Output device: default
[   73.890000] ****** wm8960_postinit ******
[   73.910000] playback free_dma_buffer
[   73.910000] ptri2s_config->mmap_index:0
PortAudio: stream opened
Streaming connection opened.

系统启动log如下:

root@Widora:~# dmesg
[    0.000000] Linux version 3.18.29 (root@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49378) ) #9 Fri Jan 10 18:39:05 CST 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is WIDORA-NEO
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80356100, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00038f64
[    0.000000] Readback ErrCtl register=00038f64
[    0.000000] Memory: 125952K/131072K available (2821K kernel code, 133K rwdata, 556K rodata, 192K init, 186K bss, 5120K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.050000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] pinctrl core: initialized pinctrl subsystem
[    0.080000] NET: Registered protocol family 16
[    0.090000] rt2880-pinmux pinctrl: try to register 47 pins ...
[    0.090000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 27 (io27) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 28 (io28) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 29 (io29) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 30 (io30) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 31 (io31) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 32 (io32) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 33 (io33) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 34 (io34) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 35 (io35) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 36 (io36) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 37 (io37) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 38 (io38) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 39 (io39) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 40 (io40) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 41 (io41) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 42 (io42) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 43 (io43) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 44 (io44) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 45 (io45) on rt2880-pinmux
[    0.090000] pinctrl core: registered pin 46 (io46) on rt2880-pinmux
[    0.090000] pinctrl core: add 11 pinmux maps
[    0.090000] rt2880-pinmux pinctrl: found group selector 14 for gpio
[    0.090000] rt2880-pinmux pinctrl: found group selector 6 for perst
[    0.090000] rt2880-pinmux pinctrl: found group selector 5 for refclk
[    0.090000] rt2880-pinmux pinctrl: found group selector 11 for i2s
[    0.090000] rt2880-pinmux pinctrl: found group selector 13 for spis
[    0.090000] rt2880-pinmux pinctrl: found group selector 15 for wled_an
[    0.090000] rt2880-pinmux pinctrl: found group selector 16 for ephy_p1
[    0.090000] rt2880-pinmux pinctrl: found group selector 17 for ephy_p2
[    0.090000] rt2880-pinmux pinctrl: found group selector 18 for ephy_p3
[    0.090000] rt2880-pinmux pinctrl: found group selector 19 for ephy_p4
[    0.090000] rt2880-pinmux pinctrl: found group selector 7 for wdt
[    0.090000] rt2880-pinmux pinctrl: request pin 11 (io11) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 36 (io36) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 37 (io37) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 0 (io0) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 1 (io1) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 2 (io2) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 3 (io3) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 14 (io14) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 15 (io15) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 16 (io16) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 17 (io17) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 44 (io44) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 42 (io42) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 41 (io41) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 40 (io40) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 39 (io39) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: request pin 38 (io38) for pinctrl
[    0.090000] rt2880-pinmux pinctrl: failed to lookup the sleep state
[    0.100000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.110000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.120000] Bluetooth: Core ver 2.19
[    0.120000] NET: Registered protocol family 31
[    0.120000] Bluetooth: HCI device and connection manager initialized
[    0.130000] Bluetooth: HCI socket layer initialized
[    0.130000] Bluetooth: L2CAP socket layer initialized
[    0.130000] Bluetooth: SCO socket layer initialized
[    0.140000] Switched to clocksource MIPS
[    0.140000] NET: Registered protocol family 2
[    0.150000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.150000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.160000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.160000] TCP: reno registered
[    0.170000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.170000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.180000] NET: Registered protocol family 1
[    0.180000] PCI: CLS 0 bytes, default 32
[    0.190000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
[    0.190000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.200000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.210000] jffs2: version 2.2 (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.220000] msgmni has been set to 246
[    0.220000] io scheduler noop registered
[    0.220000] io scheduler deadline registered (default)
[    0.230000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[336]
[    0.230000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[350]
[    0.240000] pinctrl core: add 1 pinmux maps
[    0.240000] pinctrl core: add 1 pinmux maps
[    0.240000] rt2880-pinmux pinctrl: found group selector 1 for pwm0
[    0.240000] rt2880-pinmux pinctrl: found group selector 0 for pwm1
[    0.240000] rt2880-pinmux pinctrl: request pin 18 (io18) for 10005000.pwm
[    0.240000] rt2880-pinmux pinctrl: request pin 19 (io19) for 10005000.pwm
[    0.240000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.250000] serial8250 serial8250: no of_node; not parsing pinctrl DT
[    0.250000] pinctrl core: add 1 pinmux maps
[    0.250000] rt2880-pinmux pinctrl: found group selector 10 for uart0
[    0.250000] rt2880-pinmux pinctrl: request pin 12 (io12) for 10000c00.uartlite
[    0.250000] rt2880-pinmux pinctrl: request pin 13 (io13) for 10000c00.uartlite
[    0.250000] console [ttyS0] disabled
[    0.250000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.260000] mtk:mk8250_set_termios.baudrate=115200, port->uartclk=40000000, quot=22.
[    0.260000] console [ttyS0] enabled
[    0.270000] bootconsole [early0] disabled
[    0.280000] mtk:register my 8250 port sucess!!!!!!!!!!!!!!
[    0.280000] mtk:membase=0xb0000c00, mapbase=0x10000c00, irq=28.!!!!!!!!!!!!!!
[    0.280000] pinctrl core: add 1 pinmux maps
[    0.280000] rt2880-pinmux pinctrl: found group selector 3 for uart1
[    0.280000] rt2880-pinmux pinctrl: request pin 45 (io45) for 10000d00.uart1
[    0.280000] rt2880-pinmux pinctrl: request pin 46 (io46) for 10000d00.uart1
[    0.280000] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.290000] mtk:register my 8250 port sucess!!!!!!!!!!!!!!
[    0.290000] mtk:membase=0xb0000d00, mapbase=0x10000d00, irq=29.!!!!!!!!!!!!!!
[    0.290000] pinctrl core: add 1 pinmux maps
[    0.290000] rt2880-pinmux pinctrl: found group selector 2 for uart2
[    0.290000] rt2880-pinmux pinctrl: request pin 20 (io20) for 10000e00.uart2
[    0.290000] rt2880-pinmux pinctrl: request pin 21 (io21) for 10000e00.uart2
[    0.290000] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.300000] mtk:register my 8250 port sucess!!!!!!!!!!!!!!
[    0.300000] mtk:membase=0xb0000e00, mapbase=0x10000e00, irq=30.!!!!!!!!!!!!!!
[    0.300000] pinctrl core: add 1 pinmux maps
[    0.300000] pinctrl core: add 1 pinmux maps
[    0.300000] rt2880-pinmux pinctrl: found group selector 8 for spi
[    0.300000] rt2880-pinmux pinctrl: found group selector 12 for spi cs1
[    0.300000] rt2880-pinmux pinctrl: request pin 7 (io7) for 10000b00.spi
[    0.300000] rt2880-pinmux pinctrl: request pin 8 (io8) for 10000b00.spi
[    0.300000] rt2880-pinmux pinctrl: request pin 9 (io9) for 10000b00.spi
[    0.300000] rt2880-pinmux pinctrl: request pin 10 (io10) for 10000b00.spi
[    0.300000] rt2880-pinmux pinctrl: request pin 6 (io6) for 10000b00.spi
[    0.300000] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.320000] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.320000] m25p80 spi32766.0: using chunked io
[    0.330000] 4 ofpart partitions found on MTD device spi32766.0
[    0.330000] Creating 4 MTD partitions on "spi32766.0":
[    0.340000] 0x000000000000-0x000000030000 : "u-boot"
[    0.350000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.350000] 0x000000040000-0x000000050000 : "factory"
[    0.360000] 0x000000050000-0x000001000000 : "firmware"
[    0.400000] 2 uimage-fw partitions found on MTD device firmware
[    0.400000] 0x000000050000-0x000000181fc7 : "kernel"
[    0.410000] 0x000000181fc7-0x000001000000 : "rootfs"
[    0.420000] mtd: device 5 (rootfs) set to be root filesystem
[    0.420000] 1 squashfs-split partitions found on MTD device rootfs
[    0.430000] 0x000000c20000-0x000001000000 : "rootfs_data"
[    0.450000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.460000] mt7621_wdt 10000100.watchdog: Initialized
[    0.460000] Bluetooth: HCI UART driver ver 2.2
[    0.470000] Bluetooth: HCI H4 protocol initialized
[    0.470000] Bluetooth: HCI BCSP protocol initialized
[    0.480000] Bluetooth: HCI Three-wire UART (H5) protocol initialized
[    0.480000] TCP: cubic registered
[    0.490000] NET: Registered protocol family 17
[    0.490000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.510000] Bluetooth: RFCOMM TTY layer initialized
[    0.510000] Bluetooth: RFCOMM socket layer initialized
[    0.520000] Bluetooth: RFCOMM ver 1.11
[    0.520000] 8021q: 802.1Q VLAN Support v1.8
[    0.530000] mtk:mk8250_set_termios.baudrate=115200, port->uartclk=40000000, quot=22.
[    0.530000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.540000] Freeing unused kernel memory: 192K (80370000 - 803a0000)
[    2.020000] init: Console is alive
[    2.020000] init: - watchdog -
[    4.500000] usbcore: registered new interface driver usbfs
[    4.500000] usbcore: registered new interface driver hub
[    4.510000] usbcore: registered new device driver usb
[    4.520000] reg_opt_init
[    4.520000] exFAT: Version 1.2.9
[    4.570000] SCSI subsystem initialized
[    4.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.590000] ehci-platform: EHCI generic platform driver
[    4.760000] U2PHY P0 set SRCTRL calibration value: 6
[    4.760000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    4.770000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    4.770000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    4.800000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    4.800000] usb usb1: no of_node; not parsing pinctrl DT
[    4.800000] hub 1-0:1.0: no of_node; not parsing pinctrl DT
[    4.800000] hub 1-0:1.0: USB hub found
[    4.810000] hub 1-0:1.0: 1 port detected
[    4.810000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.820000] ohci-platform: OHCI generic platform driver
[    4.830000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    4.830000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    4.840000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    4.910000] usb usb2: no of_node; not parsing pinctrl DT
[    4.910000] hub 2-0:1.0: no of_node; not parsing pinctrl DT
[    4.910000] hub 2-0:1.0: USB hub found
[    4.910000] hub 2-0:1.0: 1 port detected
[    4.930000] MTK MSDC device init.
[    4.930000] pinctrl core: add 1 pinmux maps
[    4.930000] rt2880-pinmux pinctrl: found group selector 9 for sdmode
[    4.930000] rt2880-pinmux pinctrl: request pin 22 (io22) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 23 (io23) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 24 (io24) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 25 (io25) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 26 (io26) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 27 (io27) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 28 (io28) for 10130000.sdhci
[    4.930000] rt2880-pinmux pinctrl: request pin 29 (io29) for 10130000.sdhci
[    4.970000] mtk-sd: MediaTek MT6575 MSDC Driver
[    4.970000] sdhci: Secure Digital Host Controller Interface driver
[    4.980000] sdhci: Copyright(c) Pierre Ossman
[    4.980000] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.990000] usbcore: registered new interface driver usb-storage
[    5.020000] init: - preinit -
[    5.200000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.540000] usb 1-1: no of_node; not parsing pinctrl DT
[    5.550000] usb-storage 1-1:1.0: no of_node; not parsing pinctrl DT
[    5.550000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.550000] scsi host0: usb-storage 1-1:1.0
[    5.570000] random: procd urandom read with 9 bits of entropy available
[    5.900000] rt305x-esw 10110000.esw: link changed 0x00
[    6.560000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   1402 PQ: 0 ANSI: 6
[    6.570000] sd 0:0:0:0: no of_node; not parsing pinctrl DT
[    6.720000] sd 0:0:0:0: [sda] 15548416 512-byte logical blocks: (7.96 GB/7.41 GiB)
[    6.730000] sd 0:0:0:0: [sda] Write Protect is off
[    6.730000] sd 0:0:0:0: [sda] Mode Sense: 21 00 00 00
[    6.730000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.750000]  sda: sda1
[    6.760000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    8.910000] rt305x-esw 10110000.esw: link changed 0x01
[    9.250000] mount_root: loading kmods from internal overlay
[    9.780000] jffs2: notice: (395) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.790000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    9.800000] block: extroot: not configured
[    9.890000] jffs2: notice: (392) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.900000] mount_root: loading kmods from internal overlay
[   10.190000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   10.200000] block: extroot: not configured
[   10.200000] mount_root: switching to jffs2 overlay
[   10.230000] procd: - early -
[   10.230000] procd: - watchdog -
[   10.990000] procd: - ubus -
[   12.010000] procd: - init -
[   13.020000] NET: Registered protocol family 10
[   13.100000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.120000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   13.130000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   13.220000] i2c /dev entries driver
[   13.240000] snd-soc-dummy snd-soc-dummy: no of_node; not parsing pinctrl DT
[   13.260000] pinctrl core: add 1 pinmux maps
[   13.260000] rt2880-pinmux pinctrl: found group selector 4 for i2c
[   13.260000] rt2880-pinmux pinctrl: request pin 4 (io4) for 10000900.i2c
[   13.260000] rt2880-pinmux pinctrl: request pin 5 (io5) for 10000900.i2c
[   13.260000] i2c-mt7621 10000900.i2c: clock 100 kHz
[   13.280000] Linux video capture interface: v2.00
[   13.300000] Enable Ralink GDMA Controller Module
[   13.310000] GDMA IP Version=3
[   13.330000] codec_wm8960 0-0034: no of_node; not parsing pinctrl DT
[   13.330000] *******Enter codec_wm8960_i2c_probe********
[   13.340000] wm8960 0-001a: no of_node; not parsing pinctrl DT
[   13.340000] mt76xx-i2s mt76xx-i2s: no of_node; not parsing pinctrl DT
[   13.340000] mt76xx-pcm mt76xx-pcm: no of_node; not parsing pinctrl DT
[   13.340000] soc-audio soc-audio: no of_node; not parsing pinctrl DT
[   13.340000] soc-audio soc-audio: ASoC: machine MTK APSoC I2S should use snd_soc_register_card()
[   13.350000] wm8960 0-001a: No platform data supplied
[   13.350000] ****** wm8960_preinit ******
[   13.860000] soc-audio soc-audio: wm8960-hifi <-> mt76xx-i2s mapping ok
[   13.880000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.900000] nf_conntrack version 0.5.0 (1971 buckets, 7884 max)
[   13.930000] usbcore: registered new interface driver uvcvideo
[   13.940000] USB Video Class driver (1.1.1)
[   13.960000] xt_time: kernel timezone is -0000
[   13.980000] PPP generic driver version 2.4.2
[   13.980000] NET: Registered protocol family 24
[   17.550000] rt305x-esw 10110000.esw: link changed 0x00
[   20.580000] rt305x-esw 10110000.esw: link changed 0x01
[   21.650000] device eth0.1 entered promiscuous mode
[   21.650000] device eth0 entered promiscuous mode
[   21.680000] br-lan: port 1(eth0.1) entered forwarding state
[   21.680000] br-lan: port 1(eth0.1) entered forwarding state
[   23.680000] br-lan: port 1(eth0.1) entered forwarding state
[   24.340000] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   36.240000] random: nonblocking pool is initialized

#72 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt使用tinyalsa,无法播放音乐 » 2020-01-10 14:35:09

填坑,原因是tinyplay是从wav文件获取播放参数导致的错误,手动指定播放参数即可。

#73 Re: 全志 SOC » 看f1c100s裸奔程序受到的启发 » 2020-01-05 22:22:52

需要传递一个tag列表或设备树地址给内核,简化的bootloader做到4kb以内都很正常

kekemuyu 说:

需要传参吗?如何传参,不是有设备树吗?

#74 Re: 全志 SOC » 看f1c100s裸奔程序受到的启发 » 2020-01-05 21:35:33

把基本外设初始化好,再向内核传参就行,可以做到很小,启动时间主要是从flash加载内核到内存耗时比较长

#75 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2020-01-05 18:40:27

你用的是v3s还是f1c?可以把启动log贴上来
lichee zero的内核配置,你可以参考参考
linux-4-13-config.tgz

#77 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 从淘宝网购买时要小心 » 2020-01-04 21:40:50

The language barrier deepens the misunderstanding.Please don't discussed such topic on tech forum.

#78 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2020-01-03 20:40:27

参考50楼

wenfengtou 说:

https://whycan.cn/files/members/2789/usb.jpg

你好,我这样配置有问题吗?启动adbd的时候报错

adbd &
[1]-  Terminated                 adbd
# install_listener[   99.342029] read descriptors
('tcp:5037','*sm[   99.345182] read strings
artsocket*')
[   99.349252] udc-core: couldn't find an available UDC - added [g_ffs] to list of pending drivers

#81 Re: ESP32/ESP8266 » ESP8266 SPI透传有人做过么 » 2019-12-30 10:07:46

官方对NONOS SDK不再更新了,建议还是用RTOS SDK方便

微凉VeiLiang 说:

用的是nonos的例子,这个rtos在中断处理有参考的地方。先去尝试一下

#82 Re: ESP32/ESP8266 » ESP8266 SPI透传有人做过么 » 2019-12-30 00:17:00

官方的sdk声称spi透传可以到达M字节以上速率的,不知你用的时哪个例子?
官方github例子
可以参考:stm32通过spi连接esp8266的hspi 开发

#83 Re: ESP32/ESP8266 » ESP8266 SPI透传有人做过么 » 2019-12-24 23:19:17

逻辑上没问题,应该先单独调通两边的spi(回环,自发自收),确认时序是否一致,最后再接起来调试

#84 Re: Cortex M0/M3/M4/M7 » TKM32F499 M4核心,内置8MB SRAM的单片机来啦,批量20块钱1片 » 2019-12-13 21:51:39

f1c性价比最高

gary 说:

200MHz 的M4F内核,集成32MB DDR , 彩屏控制器, DVP MIPI CSI,PPU, SPU,H264 ,能流畅运行ZBAR吗?

#88 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-29 23:23:41

lichee nano测试,OTG切换没问题,应该是PE2

mango 说:

问下OTG-ID识别用的是哪根线?TINY200的原理图(奇怪暂时无法上传附件,呼叫晕哥,外链:https://widora.io/_media/zh/tiny200-sch.pdf) 用的是PE2,自身做device时为高,做host时为低。

#89 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-29 22:07:18

试过了,接两个鼠标或键盘还是不能同时使用,这个应该是EP太少,没法子

wupaul2001 说:
checkout 说:

有测试好的固件吗?放上来我试试

wupaul2001 说:

@checkout 已测试,hub没问题

包里有已打包好的固件

#90 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-26 18:59:30

有测试好的固件吗?放上来我试试

wupaul2001 说:

@checkout 已测试,hub没问题

#93 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-17 21:34:46

胸弟,你看!!摊手.jpg
APB2默认时钟源是24MHz.你要改成PLL_PERIPH
clock_tree.png
clock_20191017-2115.png
u-boot-2011.09/arch/arm/cpu/armv7/sun8iw5/clock.c中,函数sunxi_clock_set_corepll(xxx)进行了时钟初始化...
在这里修改:

int sunxi_clock_set_corepll(int frequency, int core_vol)
{
    unsigned int reg_val;
    unsigned int i;
    struct core_pll_freq_tbl  pll_factor;
    //检查时钟是否合法,为0或者超过2G
    if(!frequency)
    {
        //默认频率
        frequency = 408;
    }
    else if(frequency < 24)
    {
		frequency = 24;
    }
    //切换到24M
    reg_val = readl(CCM_CPU_L2_AXI_CTRL);
    reg_val &= ~(0x03 << 16);
    reg_val |=  (0x01 << 16);
    writel(reg_val, CCM_CPU_L2_AXI_CTRL);
    //延时,等待时钟稳定
    for(i=0; i<0x400; i++);
    //调整时钟频率
	clk_get_pll_para(&pll_factor, frequency);
	//回写PLL1
    reg_val = readl(CCM_PLL1_CPUX_CTRL);
    reg_val &= ~((0x03 << 16) | (0x1f << 8) | (0x03 << 4) | (0x03 << 0));
	reg_val |=  (pll_factor.FactorP << 16) | (pll_factor.FactorN<<8) | (pll_factor.FactorK<<4) | (0 << 0) ;
    writel(reg_val, CCM_PLL1_CPUX_CTRL);
    //延时,等待时钟稳定
#ifndef CONFIG_A67_FPGA
	do
	{
		reg_val = readl(CCM_PLL1_CPUX_CTRL);
	}
	while(!(reg_val & (0x1 << 28)));
#endif
    //修改AXI,AHB,APB分频
    clk_set_divd();
    //切换时钟到COREPLL上
    reg_val = readl(CCM_CPU_L2_AXI_CTRL);
    reg_val &= ~(0x03 << 16);
    reg_val |=  (0x02 << 16);
    writel(reg_val, CCM_CPU_L2_AXI_CTRL);
    
    //修改apb2时钟源,自己添加。。
    return  0;
}

下面这个顺便也要改一下,改成600

/*
************************************************************************************************************
*
*                                             function
*
*    函数名称:
*
*    参数列表:
*
*
*
*    返回值  :
*
*    说明    :
*
*
************************************************************************************************************
*/
int sunxi_clock_get_apb2(void)
{
        //return 24;
	return 600;//改成600
}

#95 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-10 17:20:53

你uboot用的哪个版本?看看时钟初始化部分,改改试试

#96 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-10 15:53:47

修改uboot的clock_sun6i.c文件:

void clock_init_uart(void)
{
#if CONFIG_CONS_INDEX < 5
        struct sunxi_ccm_reg *const ccm =
                (struct sunxi_ccm_reg *)SUNXI_CCM_BASE;

        /* uart clock source is apb2 */
        writel(APB2_CLK_SRC_OSC24M|      //这里改为APB2_CLK_SRC_PLL6,从内部pll6时钟分频
            APB2_CLK_RATE_N_1|
            APB2_CLK_RATE_M(1),
            &ccm->apb2_div);

#97 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-09 23:53:01

apb2时钟默认是OSC24M,时钟源应该使用PLL6,修改uboot时钟初始化的代码就行
24000000/16/921600=1.6276,向上取整,实际波特率24000000/16/2=750000,应该是这样

augyy 说:
阿黄 说:

会不会是逻辑分析仪的最大频率不够?

逻辑分析仪频率應該足夠,因為可看到1500000频率

#98 Re: 全志 SOC » 使用F1C200S做一个视网膜电容屏,并带有AV摄像头的小MP4 » 2019-09-23 14:52:23

晕哥,tf卡的ap6212,有没购买链接,我帮大家试试

晕哥 说:
kekemuyu 说:
jiangming1399 说:

f1c100系列的就是没有俩SDIO。要有俩的话就能SD和Wifi共存了

f1100s有稳定的wifi可用吗?荔枝派的esp8089驱动不稳定

过几天会收到一个TF卡的AP6212模块,

到时候搞定 WIFI 就分享给大家。

#99 Re: 全志 SOC » F1C200S的解码编码性能 » 2019-09-22 13:50:28

v3s主线硬解码有人搞定了?

#100 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-09-17 11:18:29

可能有依赖其他模块,用modprobe卸载 @firstman

#101 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt使用tinyalsa,无法播放音乐 » 2019-09-10 23:23:29

可以指定声卡,但系统只有一个声卡,应该不是这个问题

jimmy 说:

我记得 tinyplay 可以指定声卡, 你可以先列出所有声卡

#102 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt使用tinyalsa,无法播放音乐 » 2019-09-10 22:50:35

有声音输出,这两个软件可以正常使用。

jimmy 说:

aplay或者madplay有没有声音输出?

#103 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt使用tinyalsa,无法播放音乐 » 2019-09-10 22:28:07

是的。wiora-NEO,16Mflash,版本0.1.8的固件
widora官方固件网址

jimmy 说:

是 widora 的固件吗?

#104 Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt使用tinyalsa,无法播放音乐 » 2019-09-10 21:59:05

checkout
回复: 7
最近玩openwrt,按之前V3S的套路移植tinyalsa到widora-NEO开发板上

播放wav音乐报错,提示打开pcm0-0失败,但查看了一下声卡是存在的

root@Widora:/mnt# ./tinyalsa/tinyplay 10.wav 
[ 2347.370000] playback free_dma_buffer
[ 2347.380000] ptri2s_config->mmap_index:8
failed to open for pcm 0,0

使用aplay播放wav和使用madplay播放MP3都是没问题,mixer配置应该也没问题
有没大佬知道什么原因??

root@Widora:/mnt# cat /proc/asound/cards 
 0 [I2S            ]: MTK_APSoC_I2S - MTK APSoC I2S
                      MTK APSoC I2S
root@Widora:/mnt# cat /proc/asound/pcm
00-00: WMserious PCM wm8960-hifi-0 :  : playback 1 : capture 1
root@Widora:/mnt# cat /proc/asound/devices 
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer
root@Widora:/mnt# ./tinyalsa/tinymix contents
Number of controls: 54
ctl     type    num     name                                    value
0       INT     2       Capture Volume                          43, 43 (range 0->63)
1       INT     2       Capture Volume ZC Switch                0, 0 (range 0->1)
2       BOOL    2       Capture Switch                          Off, Off
3       INT     1       Right Input Boost Mixer RINPUT3 Volume  0 (range 0->7)
4       INT     1       Right Input Boost Mixer RINPUT2 Volume  0 (range 0->7)
5       INT     1       Left Input Boost Mixer LINPUT3 Volume   0 (range 0->7)
6       INT     1       Left Input Boost Mixer LINPUT2 Volume   0 (range 0->7)
7       INT     2       Playback Volume                         255, 255 (range 0->255)
8       INT     2       Headphone Playback Volume               127, 127 (range 0->127)
9       BOOL    2       Headphone Playback ZC Switch            On, On
10      INT     2       Speaker Playback Volume                 123, 123 (range 0->127)
11      BOOL    2       Speaker Playback ZC Switch              Off, Off
12      INT     1       Speaker DC Volume                       5 (range 0->5)
13      INT     1       Speaker AC Volume                       5 (range 0->5)
14      BOOL    1       PCM Playback -6dB Switch                Off
15      ENUM    1       ADC Polarity                            , No InversionLeft InvertedRight InvertedStereo Inversion
16      BOOL    1       ADC High Pass Filter Switch             Off
17      ENUM    1       DAC Polarity                            , No InversionLeft InvertedRight InvertedStereo Inversion
18      BOOL    1       DAC Deemphasis Switch                   Off
19      ENUM    1       3D Filter Upper Cut-Off                 0 (range 0->7)
20      ENUM    1       3D Filter Lower Cut-Off                 0 (range 0->7)
21      INT     1       3D Volume                               0 (range 0->7)
22      BOOL    1       3D Switch                               0 (range 0->7)
23      ENUM    1       ALC Function                            , OffRightLeftStereo
24      INT     1       ALC Max Gain                            7 (range 0->7)
25      INT     1       ALC Target                              4 (range 0->15)
26      INT     1       ALC Min Gain                            0 (range 0->7)
27      INT     1       ALC Hold Time                           0 (range 0->15)
28      ENUM    1       ALC Mode                                , ALCLimiter
29      INT     1       ALC Decay                               3 (range 0->15)
30      INT     1       ALC Attack                              2 (range 0->15)
31      INT     1       Noise Gate Threshold                    0 (range 0->31)
32      BOOL    1       Noise Gate Switch                       Off
33      INT     2       ADC PCM Capture Volume                  195, 195 (range 0->255)
34      INT     1       Left Output Mixer Boost Bypass Volume   2 (range 0->7)
35      INT     1       Left Output Mixer LINPUT3 Volume        7 (range 0->7)
36      INT     1       Right Output Mixer Boost Bypass Volume  2 (range 0->7)
37      INT     1       Right Output Mixer RINPUT3 Volume       7 (range 0->7)
38      BOOL    1       Mono Output Mixer Left Switch           Off
39      BOOL    1       Mono Output Mixer Right Switch          Off
40      BOOL    1       Right Output Mixer PCM Playback Switch  On
41      BOOL    1       Right Output Mixer RINPUT3 Switch       Off
42      BOOL    1       Right Output Mixer Boost Bypass Switch  Off
43      BOOL    1       Left Output Mixer PCM Playback Switch   On
44      BOOL    1       Left Output Mixer LINPUT3 Switch        Off
45      BOOL    1       Left Output Mixer Boost Bypass Switch   Off
46      BOOL    1       Right Input Mixer Boost Switch          On
47      BOOL    1       Left Input Mixer Boost Switch           On
48      BOOL    1       Right Boost Mixer RINPUT2 Switch        On
49      BOOL    1       Right Boost Mixer RINPUT3 Switch        Off
50      BOOL    1       Right Boost Mixer RINPUT1 Switch        On
51      BOOL    1       Left Boost Mixer LINPUT2 Switch         On
52      BOOL    1       Left Boost Mixer LINPUT3 Switch         Off
53      BOOL    1       Left Boost Mixer LINPUT1 Switch         On
root@Widora:/mnt# ls /dev/snd/
controlC0  pcmC0D0c   pcmC0D0p   timer

跟踪了一下源码
这是tinyplay 打开pcm的源码

/** Opens a PCM.
 * @param card The card that the pcm belongs to.
 *  The default card is zero.
 * @param device The device that the pcm belongs to.
 *  The default device is zero.
 * @param flags Specify characteristics and functionality about the pcm.
 *  May be a bitwise AND of the following:
 *   - @ref PCM_IN
 *   - @ref PCM_OUT
 *   - @ref PCM_MMAP
 *   - @ref PCM_NOIRQ
 *   - @ref PCM_MONOTONIC
 * @param config The hardware and software parameters to open the PCM with.
 * @returns A PCM structure.
 *  If an error occurs allocating memory for the PCM, NULL is returned.
 *  Otherwise, client code should check that the PCM opened properly by calling @ref pcm_is_ready.
 *  If @ref pcm_is_ready, check @ref pcm_get_error for more information.
 * @ingroup libtinyalsa-pcm
 */
struct pcm *pcm_open(unsigned int card, unsigned int device,
                     unsigned int flags, const struct pcm_config *config)
{
    struct pcm *pcm;
    struct snd_pcm_info info;
    char fn[256];
    int rc;

    pcm = calloc(1, sizeof(struct pcm));
    if (!pcm)
        return &bad_pcm;

    snprintf(fn, sizeof(fn), "/dev/snd/pcmC%uD%u%c", card, device,
             flags & PCM_IN ? 'c' : 'p');

    pcm->flags = flags;
    pcm->fd = open(fn, O_RDWR);
    if (pcm->fd < 0) {
        oops(pcm, errno, "cannot open device '%s'", fn);
        return pcm;
    }

    if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_INFO, &info)) {
        oops(pcm, errno, "cannot get info");
        goto fail_close;
    }
    pcm->subdevice = info.subdevice;

    if (pcm_set_config(pcm, config) != 0)
        goto fail_close;

    rc = pcm_hw_mmap_status(pcm);
    if (rc < 0) {
        oops(pcm, rc, "mmap status failed");
        goto fail;
    }

#ifdef SNDRV_PCM_IOCTL_TTSTAMP
    if (pcm->flags & PCM_MONOTONIC) {
        int arg = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC;
        rc = ioctl(pcm->fd, SNDRV_PCM_IOCTL_TTSTAMP, &arg);
        if (rc < 0) {
            oops(pcm, rc, "cannot set timestamp type");
            goto fail;
        }
    }
#endif

    pcm->underruns = 0;
    return pcm;

fail:
    if (flags & PCM_MMAP)
        munmap(pcm->mmap_buffer, pcm_frames_to_bytes(pcm, pcm->buffer_size));
fail_close:
    close(pcm->fd);
    pcm->fd = -1;
    return pcm;
}

按提示,加了get_pcm_error()跟踪错误信息,貌似是ioctl设置参数的时候出错

root@Widora:/mnt# ./tinyalsa/tinyplay 10.wav
[ 3856.980000] playback free_dma_buffer
[ 3856.980000] ptri2s_config->mmap_index:8
Unable to open PCM device (cannot set hw params: Unknown error -22)

#106 Re: 全志 SOC » 试一试把 V3s 当做 无线 wifi 热点 » 2019-09-10 16:46:03

无线能不能支持ap+sta模式?

v3s 说:
checkout 说:

那岂不是可以做成无线中继或路由器
不知性能怎么样

是的, 可以的, 这里有步奏, 开启 IP 转发即可 https://www.cnblogs.com/fbwfbi/p/3633163.html

使用iptables开启本地的SNAT
   
  经过前面几个步骤,无线网卡已经可以自动分配IP,现在只需要把无线网卡的数据都经过eth0(有线网络)发到外网去,这就需要IP转发了。

      iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

      至此,ubuntu的WPA2-PSK的无线wifi AP设置完毕,可以正常使用了。

只是我这块 荔枝派zero 板子底板没有焊, 没有有线网络, 所以没有办法现在就测试。

#107 Re: 全志 SOC » 试一试把 V3s 当做 无线 wifi 热点 » 2019-09-10 15:40:45

那岂不是可以做成无线中继或路由器
不知性能怎么样

#108 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » widora NEO+openwrt ,无法cp文件 » 2019-09-09 16:48:33

不是这个问题,我是拿sd卡插读卡器,接usb-host的

mango 说:
checkout 说:

换另外一张sd卡又可以了,可以拷贝大文件,泪奔。。。。
刷widora的官方固件两张sd卡都没问题,就是最新版本的openwrt一张sd卡拷贝不了大文件
搞不懂什么原因

我擦,大概应该可以定位到sd驱动:mtk-sd: MediaTek MT6575 MSDC Driver
你看看最新op是否有这句打印,widora固件的log: https://www.widora.io/zh/version 
怕是op官方那些人又把驱动搞错了。

#109 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » widora NEO+openwrt ,无法cp文件 » 2019-09-09 16:28:33

换另外一张sd卡又可以了,可以拷贝大文件,泪奔。。。。
刷widora的官方固件两张sd卡都没问题,就是最新版本的openwrt一张sd卡拷贝不了大文件
搞不懂什么原因

#110 Re: Openwrt/LEDE/AR9331/MT7688/RT5350 » widora NEO+openwrt ,无法cp文件 » 2019-09-09 16:20:16

sd卡是FAT32文件系统
能挂载,就是cp大一点的文件会出错

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 5.8M      5.8M         0 100% /rom
tmpfs                    60.4M     60.0K     60.4M   0% /tmp
/dev/mtdblock6            8.3M    416.0K      7.9M   5% /overlay
overlayfs:/overlay        8.3M    416.0K      7.9M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:/# mount /dev/sda1 /mnt/
[   51.724132] [EXFAT] trying to mount...
[   51.729609] [EXFAT] mounted successfully
root@OpenWrt:/# ls /mnt/
[   58.667871] convert_uni_to_ch: fail to use nls
[   58.672482] convert_uni_to_ch: fail to use nls
[   58.706128] convert_uni_to_ch: fail to use nls
[   58.710683] convert_uni_to_ch: fail to use nls
[   58.715243] convert_uni_to_ch: fail to use nls
[   58.719755] convert_uni_to_ch: fail to use nls
360                        backups
Android                    baidu
AppBuilder                 bluetooth
BaiduMusic                 download
DCIM                       go.sh
DockLock                   image2
LOST.DIR                   pictures
Movies                     posix-h5
Music                      rtl8723bs_bt
Scope代码                tbs
System Volume Information  voabbcassist
Tencent                    xy-tech
__Previews                 我的相册
root@OpenWrt:/# 
mango 说:

df -h 看一下,尤其是overlay的挂载。
sd卡是什么文件系统?我记得拷贝mp3挺顺利的。

#111 Openwrt/LEDE/AR9331/MT7688/RT5350 » widora NEO+openwrt ,无法cp文件 » 2019-09-09 15:50:25

checkout
回复: 6

最近捣鼓openwrt,用widoraNEO,16M flash,刷最新的openwrt,挂载sd卡,无法cp大一点的文件
编译出来的内核大小有7.5M,不知是不是flash太小。有没大佬遇到过这种问题??

cp的时候报错,能cp小文件,大一点文件的就出错:

root@OpenWrt:/mnt# cp rtl8723bs_bt/rtlbt_* /lib/firmware/rtl_bt/
[  332.074739] attempt to access beyond end of device
[  332.079659] sda1: rw=0, want=274877915031, limit=15548416
[  332.090088] attempt to access beyond end of device
[  332.095049] sda1: rw=0, want=274877915016, limit=15548416
[  332.273654] attempt to access beyond end of device
[  332.278542] sda1: rw=0, want=274877915016, limit=15548416
[  332.284348] attempt to access beyond end of device
[  332.289213] sda1: rw=0, want=274877915016, limit=15548416
[  332.295006] attempt to access beyond end of device
[  332.299872] sda1: rw=0, want=274877915016, limit=15548416
cp: read error: I/O error
[  332.307076] attempt to access beyond end of device
[  332.312983] sda1: rw=0, want=274877915045, limit=15548416
[  332.322975] attempt to access beyond end of device
[  332.327886] sda1: rw=0, want=274877915016, limit=15548416
[  332.519397] attempt to access beyond end of device
[  332.524349] sda1: rw=0, want=274877915016, limit=15548416
[  332.529898] attempt to access beyond end of device
[  332.534809] sda1: rw=0, want=274877915016, limit=15548416
[  332.540657] attempt to access beyond end of device
[  332.545581] sda1: rw=0, want=274877915016, limit=15548416
cp: read error: I/O error
root@OpenWrt:/mnt# ls -l /lib/firmware/rtl_bt/
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_1.5M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_115200
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_1M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_2.5M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_2M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_921600
-rwxr-xr-x    1 root     root         32768 Sep  5 12:39 rtlbt_fw
-rwxr-xr-x    1 root     root         32768 Sep  5 12:39 rtlbt_fw_new
root@OpenWrt:/mnt# ls -l rtl8723bs_bt/rtlbt_*
-rwxr-xr-x    1 root     root            55 Sep  7  2019 rtl8723bs_bt/rtlbt_config
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_1.5M
-rwxr-xr-x    1 root     root            55 Sep  4 08:42 rtl8723bs_bt/rtlbt_config_115200
-rwxr-xr-x    1 root     root            55 Sep  4 15:26 rtl8723bs_bt/rtlbt_config_1M
-rwxr-xr-x    1 root     root            55 Sep  5  2019 rtl8723bs_bt/rtlbt_config_2.5M
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_2M
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_921600
-rwxr-xr-x    1 root     root         44504 Sep  4 00:18 rtl8723bs_bt/rtlbt_fw
-rwxr-xr-x    1 root     root         51364 Sep  4 00:18 rtl8723bs_bt/rtlbt_fw_new
root@OpenWrt:/mnt# 

启动log:

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.141
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1887596 Bytes =  1.8 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.141 (root@ubuntu) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10956-62dbe36)) #0 Thu Sep 5 12:33:20 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Widora-NEO (16M)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00038f6d
[    0.000000] Readback ErrCtl register=00038f6d
[    0.000000] Memory: 122560K/131072K available (4470K kernel code, 201K rwdata, 1020K rodata, 1212K init, 220K bss, 8512K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007542] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073502] pid_max: default: 32768 minimum: 301
[    0.078234] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084582] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097627] random: get_random_u32 called from bucket_table_alloc+0x244/0x2d8 with crng_init=0
[    0.106467] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.115923] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.121972] pinctrl core: initialized pinctrl subsystem
[    0.128079] NET: Registered protocol family 16
[    0.167962] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.173557] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.179160] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.185544] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[    0.192273] Advanced Linux Sound Architecture Driver Initialized.
[    0.198755] Bluetooth: Core ver 2.22
[    0.202302] NET: Registered protocol family 31
[    0.206528] Bluetooth: HCI device and connection manager initialized
[    0.212689] Bluetooth: HCI socket layer initialized
[    0.217366] Bluetooth: L2CAP socket layer initialized
[    0.222265] Bluetooth: SCO socket layer initialized
[    0.231806] clocksource: Switched to clocksource MIPS
[    0.237941] NET: Registered protocol family 2
[    0.243022] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.249715] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.255908] TCP: Hash tables configured (established 1024 bind 1024)
[    0.262176] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.267776] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.274213] NET: Registered protocol family 1
[    0.282321] Crashlog allocated RAM at address 0x3f00000
[    0.289160] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.302506] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.308082] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.336426] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.344892] io scheduler noop registered
[    0.348618] io scheduler deadline registered (default)
[    0.354566] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.361673] console [ttyS0] disabled
[    0.365184] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.373920] console [ttyS0] enabled
[    0.373920] console [ttyS0] enabled
[    0.380902] bootconsole [early0] disabled
[    0.380902] bootconsole [early0] disabled
[    0.389668] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.399273] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.409903] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.432269] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.437092] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.443559] Creating 4 MTD partitions on "spi0.0":
[    0.448442] 0x000000000000-0x000000030000 : "u-boot"
[    0.454473] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.460695] 0x000000040000-0x000000050000 : "factory"
[    0.466778] 0x000000050000-0x000001000000 : "firmware"
[    0.476094] 2 uimage-fw partitions found on MTD device firmware
[    0.482174] Creating 2 MTD partitions on "firmware":
[    0.487221] 0x000000000000-0x0000001ccdac : "kernel"
[    0.493226] 0x0000001ccdac-0x000000fb0000 : "rootfs"
[    0.499038] mtd: device 5 (rootfs) set to be root filesystem
[    0.506541] 1 squashfs-split partitions found on MTD device rootfs
[    0.512888] 0x000000760000-0x000000fb0000 : "rootfs_data"
[    0.520250] libphy: Fixed MDIO Bus: probed
[    0.535967] rt3050-esw 10110000.esw: link changed 0x00
[    0.542939] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.552071] Bluetooth: HCI UART driver ver 2.3
[    0.556585] Bluetooth: HCI UART protocol H4 registered
[    0.561824] Bluetooth: HCI UART protocol BCSP registered
[    0.568997] NET: Registered protocol family 10
[    0.579175] Segment Routing with IPv6
[    0.583084] NET: Registered protocol family 17
[    0.588201] Bluetooth: RFCOMM TTY layer initialized
[    0.593237] Bluetooth: RFCOMM socket layer initialized
[    0.598473] Bluetooth: RFCOMM ver 1.11
[    0.602331] 8021q: 802.1Q VLAN Support v1.8
[    0.608534] ALSA device list:
[    0.611554]   No soundcards found.
[    0.620066] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.634000] Freeing unused kernel memory: 1212K
[    0.638593] This architecture does not have kernel memory protection.
[    1.463780] init: Console is alive
[    1.467478] init: - watchdog -
[    2.282097] random: fast init done
[    3.146608] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.233914] usbcore: registered new interface driver usbfs
[    3.239578] usbcore: registered new interface driver hub
[    3.245160] usbcore: registered new device driver usb
[    3.256815] exFAT: Version 1.2.9
[    3.294815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.310916] SCSI subsystem initialized
[    3.320530] ehci-platform: EHCI generic platform driver
[    3.336241] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.343072] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.348388] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.354267] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.362435] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.391858] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.399286] hub 1-0:1.0: USB hub found
[    3.403652] hub 1-0:1.0: 1 port detected
[    3.411164] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.419401] ohci-platform: OHCI generic platform driver
[    3.425079] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.432045] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.440166] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.516913] hub 2-0:1.0: USB hub found
[    3.521255] hub 2-0:1.0: 1 port detected
[    3.532678] usbcore: registered new interface driver usb-storage
[    3.539600] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.549324] init: - preinit -
[    4.406668] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.714358] jffs2: notice: (455) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (3 unchecked, 2 orphan) and 8 of xref (2 dead, 0 orphan) found.
[    7.731948] mount_root: switching to jffs2 overlay
[    7.774758] overlayfs: upper fs does not support tmpfile.
[    7.784979] urandom-seed: Seeding with /etc/urandom.seed
[    7.916074] procd: - early -
[    7.919118] procd: - watchdog -
[    8.590203] procd: - watchdog -
[    8.593826] procd: - ubus -
[    8.748840] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.822226] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.829247] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.836971] procd: - init -
Please press Enter to activate this console.
[    9.723534] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.900782] urngd: v1.0.0 started.
[    9.948031] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.969573] i2c /dev entries driver
[   10.011714] hidraw: raw HID events driver (C) Jiri Kosina
[   10.055377] Loading modules backported from Linux version v5.3-rc4-0-gd45331b00ddb
[   10.063140] Backport generated by backports.git v5.3-rc4-1-0-g4ec72687
[   10.093849] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.125043] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.263371] usbcore: registered new interface driver usbhid
[   10.269031] usbhid: USB HID core driver
[   10.298269] usbcore: registered new interface driver usblp
[   10.316635] usbcore: registered new interface driver usbserial
[   10.322733] usbcore: registered new interface driver usbserial_generic
[   10.329434] usbserial: USB Serial support registered for generic
[   10.358915] random: crng init done
[   10.362413] random: 7 urandom warning(s) missed due to ratelimiting
[   10.390136] xt_time: kernel timezone is -0000
[   10.427138] usbcore: registered new interface driver cp210x
[   10.432980] usbserial: USB Serial support registered for cp210x
[   10.491876] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   11.513937] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   11.519960] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   11.541821] mt76_wmac 10300000.wmac: firmware init done
[   11.748018] PPP generic driver version 2.4.2
[   11.759277] NET: Registered protocol family 24
[   11.775986] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.31.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10956-62dbe36
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# cat /proc/[   22.975107] br-lan: port 1(eth0) entered blocking state
[   22.980422] br-lan: port 1(eth0) entered disabled state
[   22.986178] device eth0 entered promiscuous mode
[   23.023331] br-lan: port 1(eth0) entered blocking state
[   23.028648] br-lan: port 1(eth0) entered forwarding state
[   23.034417] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.021895] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

1/             158/           646/           device-tree/   mtd
10/            167/           7/             devices        net/
1042/          2/             761/           diskstats      partitions
1056/          221/           786/           driver/        scsi/
1061/          275/           8/             filesystems    self/
115/           3/             849/           fs/            softirqs
117/           339/           882/           interrupts     stat
118/           341/           9/             iomem          swaps
1196/          348/           939/           ioports        sys/
120/           4/             973/           kallsyms       sysrq-trigger
1255/          456/           asound/        kmsg           sysvipc/
1256/          5/             bus/           loadavg        thread-self/
1258/          516/           cgroups        meminfo        uptime
1260/          517/           cmdline        misc           version
1261/          534/           cpuinfo        modules        vmstat
145/           6/             crypto         mounts
root@OpenWrt:/# cat /proc/partitions 
major minor  #blocks  name

  31        0        192 mtdblock0
  31        1         64 mtdblock1
  31        2         64 mtdblock2
  31        3      16064 mtdblock3
  31        4       1843 mtdblock4
  31        5      14220 mtdblock5
  31        6       8512 mtdblock6
root@OpenWrt:/# cat /proc/filesystems 
nodev   sysfs
nodev   rootfs
nodev   ramfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   cgroup2
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   bpf
nodev   pipefs
nodev   devpts
        squashfs
nodev   jffs2
nodev   overlay
nodev   mqueue
        exfat
        ext3
        ext2
        ext4
nodev   autofs
        vfat
root@OpenWrt:/# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 00fb0000 00010000 "firmware"
mtd4: 001ccdac 00010000 "kernel"
mtd5: 00de3254 00010000 "rootfs"
mtd6: 00850000 00010000 "rootfs_data"
root@OpenWrt:/#

#113 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 17:52:53

4.13-y版本完全没问题
adbd_v3s.jpg
启动log:

reading zImage
3911360 bytes read in 219 ms (17 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12671 bytes read in 32 ms (385.7 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff17e ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero (root@ubuntu) (gcc version 7.3.0 (Buildroot 2018.08.2)) #2 SMP Thu Aug 29 17:16:35 CST 2019
[    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] percpu: Embedded 16 pages/cpu @c3f5e000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 55092K/65536K available (6144K kernel code, 215K rwdata, 1432K rodata, 1024K init, 261K bss, 10444K 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 - 0xc0a35d00   ( 216 kB)
[    0.000000]        .bss : 0xc0a3c7e4 - 0xc0a7df2c   ( 262 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000435] Console: colour dummy device 80x30
[    0.000470] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000484] pid_max: default: 32768 minimum: 301
[    0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001228] CPU: Testing write buffer coherency: ok
[    0.001601] /cpus/cpu@0 missing clock-frequency property
[    0.001625] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002082] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002266] Hierarchical SRCU implementation.
[    0.002758] smp: Bringing up secondary CPUs ...
[    0.002772] smp: Brought up 1 node, 1 CPU
[    0.002781] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002787] CPU: All CPU(s) started in SVC mode.
[    0.003548] devtmpfs: initialized
[    0.006818] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007113] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007139] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007312] pinctrl core: initialized pinctrl subsystem
[    0.008163] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.008301] NET: Registered protocol family 16
[    0.008758] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009849] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009866] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023681] SCSI subsystem initialized
[    0.024025] usbcore: registered new interface driver usbfs
[    0.024113] usbcore: registered new interface driver hub
[    0.024209] usbcore: registered new device driver usb
[    0.024464] pps_core: LinuxPPS API ver. 1 registered
[    0.024475] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024497] PTP clock support registered
[    0.024737] Advanced Linux Sound Architecture Driver Initialized.
[    0.026530] clocksource: Switched to clocksource arch_sys_counter
[    0.037009] NET: Registered protocol family 2
[    0.037590] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037625] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037648] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037773] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037821] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038035] NET: Registered protocol family 1
[    0.038641] RPC: Registered named UNIX socket transport module.
[    0.038659] RPC: Registered udp transport module.
[    0.038664] RPC: Registered tcp transport module.
[    0.038670] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040702] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049736] NFS: Registering the id_resolver key type
[    0.049790] Key type id_resolver registered
[    0.049798] Key type id_legacy registered
[    0.050843] random: fast init done
[    0.053702] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053724] io scheduler noop registered
[    0.053731] io scheduler deadline registered
[    0.053940] io scheduler cfq registered (default)
[    0.053951] io scheduler mq-deadline registered
[    0.053958] io scheduler kyber registered
[    0.058409] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.058926] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.127896] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.131069] console [ttyS0] disabled
[    0.151326] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 18750000) is a U6_16550A
[    0.739345] console [ttyS0] enabled
[    0.764364] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 38, base_baud = 18750000) is a U6_16550A
[    0.794951] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 39, base_baud = 18750000) is a U6_16550A
[    0.805261] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[    0.813066] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[    0.820771] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[    0.828459] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[    0.836132] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[    0.843816] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[    0.851499] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[    0.859180] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[    0.866862] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[    0.874533] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[    0.882215] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[    0.889983] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[    0.897752] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[    0.905510] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[    0.913278] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[    0.921046] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[    0.928815] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[    0.936583] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[    0.944342] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[    0.952110] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[    0.959877] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[    0.967646] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[    0.977185] panel-simple panel: panel supply power not found, using dummy regulator
[    0.986376] libphy: Fixed MDIO Bus: probed
[    0.991131] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.997031] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.002762] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    1.008982] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.014665] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.021941] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.027627] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.034862] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.039847] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.046835] libphy: stmmac: probed
[    1.052140] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.058821] ehci-platform: EHCI generic platform driver
[    1.064361] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.070084] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.078046] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.106543] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.113745] hub 1-0:1.0: USB hub found
[    1.117710] hub 1-0:1.0: 1 port detected
[    1.122233] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.128560] ohci-platform: OHCI generic platform driver
[    1.134147] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.140892] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.148855] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.221686] hub 2-0:1.0: USB hub found
[    1.225521] hub 2-0:1.0: 1 port detected
[    1.233791] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.242869] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.249795] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.254379] i2c /dev entries driver
[    1.259409] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.268996] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.336765] sunxi-mmc 1c0f000.mmc: base:0xc4985000 irq:24
[    1.383661] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.393689] mmc0: new high speed SDHC card at address 0001
[    1.399716] sunxi-mmc 1c10000.mmc: base:0xc4989000 irq:25
[    1.406121] usbcore: registered new interface driver usbhid
[    1.411807] usbhid: USB HID core driver
[    1.416438] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.423089] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.431165] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.437687]  mmcblk0: p1 p2
[    1.445759] NET: Registered protocol family 17
[    1.450490] Key type dns_resolver registered
[    1.454907] Registering SWP/SWPB emulation handler
[    1.464905] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.474515] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[    1.482366] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[    1.490085] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[    1.497775] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[    1.505446] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[    1.513131] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[    1.520813] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[    1.528495] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[    1.536166] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[    1.543846] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[    1.551529] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[    1.559297] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[    1.567066] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[    1.574824] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[    1.582594] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[    1.590364] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[    1.598133] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[    1.605891] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[    1.613661] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[    1.621431] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[    1.629200] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[    1.636969] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[    1.645098] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.651850] [drm] No driver support for vblank timestamp query.
[    1.667267] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073ed78)
[    1.674668] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073dbf8)
[    1.723755] Console: switching to colour frame buffer device 100x30
[    1.746916] sun4i-drm display-engine: fb0:  frame buffer device
[    1.753480] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.762008] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.773529] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.779405] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.788494] hub 3-0:1.0: USB hub found
[    1.792331] hub 3-0:1.0: 1 port detected
[    1.799658] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.808366] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.817613] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:12 UTC (12)
[    1.825921] vcc5v0: disabling
[    1.829009] ALSA device list:
[    1.831989]   #0: V3s Audio Codec
[    1.837727] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.846932] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.272992] EXT4-fs (mmcblk0p2): recovery complete
[    2.280017] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.288260] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.294495] devtmpfs: mounted
[    2.298789] Freeing unused kernel memory: 1024K
[    2.478403] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK

Welcome to Buildroot
buildroot login: root
# sh run_adbd.sh 
[   14.138960] file system registered
# install_listener('tcp:5037','*smartsocket*')[   14.238566] read descriptors

[   14.244427] read strings
[   14.247383] g_ffs gadget: g_ffs ready

#114 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 14:00:44

insmod试试,或者depmod -a搞搞
你没有用buildroot??

晕哥小弟 说:

g_serial.ko  是存在的。

#116 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-29 10:06:19

选gadgetfs,fuctionfs

晕哥小弟 说:

https://whycan.cn/files/members/1569/20190829093543.png

v3s 的gadget的配置部分,和楼上的配置不一样。找不到几个选项。

#117 Re: 全志 SOC » 官方bsp f1c100s插上hub,连接键盘鼠标之后只有一个设备能用,有人遇到过这问题吗? » 2019-08-28 18:28:02

多谢坛主帮忙测试。看来f1c USB这个坑等其他大佬填了,我先跳车,有空再回头看看。

#118 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-28 10:26:14

内核配置USB部分可以看我上面f1c的

晕哥小弟 说:
checkout 说:

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

v3s不知道怎么配置?

#119 Re: 全志 SOC » 官方bsp f1c100s插上hub,连接键盘鼠标之后只有一个设备能用,有人遇到过这问题吗? » 2019-08-27 09:44:21

嗯嗯,v3s有6个endpoint,貌似其中5个支持中断传输,每个键盘或鼠标至少申请1个中断ep,应该不能超过5个。

晕哥 说:
checkout 说:

V3s也是使用musb,键盘鼠标多的旁友可以用licheepi zero试试最多能接多少个键盘或鼠标,并且能正常cat得到eventX数据的。估计不能超过5个,至多6个?

要两个 HUB 级联吧?

#120 Re: 全志 SOC » 官方bsp f1c100s插上hub,连接键盘鼠标之后只有一个设备能用,有人遇到过这问题吗? » 2019-08-27 09:07:34

V3s也是使用musb,键盘鼠标多的旁友可以用licheepi zero试试最多能接多少个键盘或鼠标,并且能正常cat得到eventX数据的。估计不能超过5个,至多6个?

#121 Re: 全志 SOC » 官方bsp f1c100s插上hub,连接键盘鼠标之后只有一个设备能用,有人遇到过这问题吗? » 2019-08-27 01:10:50

mark..
1 这两个帖子都提到接hub,同时连两个键盘不能使用的问题:
f1c100s USB otg device 模式可以用吗?
F1C100S 使用BSP USB转以太网,USB摄像头,USB转串口,U盘/读卡

2 估计是ep数量太少,网友类似情况:
am3352 usb can not read/write 18 hids
linux调试LTE模块驱动

3 本人测试:接hub,1个打印机,1个键盘,2个U盘,这是没问题的。同时接两个hid设备类只能用一个。
/drivers/usb/musb/musb_host.c:中musb_schedule出错,return -ENOSPC.分配不到资源

guanglun 说:
晕哥 说:

有没有可能是供电引起呢?
鼠标键盘单独供电试一试.

单独都是OK的,直接插鼠标键盘都OK,单独通过hub插到f1c100s也是OK的,但是两个同时插上去就只有一个能用,另外一个看LOG是挂载上去了,但是无法使用。。
晕哥说说解决思路。。

#123 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-23 11:00:05

漏了,脚本如下:

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &
firstman 说:

加了, 但是电脑上仍然没有反应, 看来还是脚本不太对。

#124 Re: 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-22 21:48:26

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

#125 全志 SOC » 分享个licheepi nano镜像,支持adb调试 » 2019-08-22 21:39:17

checkout
回复: 153

烧写参考这里:https://whycan.cn/t_2179.html
其中,boot.scr、zImage、xx.dtb放到第一分区(FAT16),解压rootfs.tar到第二分区(ext4)
启动到uboot,执行命令:run distro_bootcmd 加载内核
启动到shell,执行命令:sh run_adbd.sh 运行adbd
最后,插入电脑,会看到一个ADB Interface设备


nano-adbd4_14-exp.rar

#126 Re: 全志 SOC » 网友 @chong 大神提供的f1c100s mainline linux usb 补丁包,支持usb otg(host & device) » 2019-08-22 14:28:35

直接按照上面各位大佬的步骤patch到4.14内核是没问题的,但荔枝派官方4.14-exp版本内核有个bug,就是105楼@Peter所遇到的
填坑:修改drivers/usb/musb/sunxi.c:742行

-      of_device_is_compatible(np, "allwinner,suniv-musb")) {
+      of_device_is_compatible(np, "allwinner,suniv-f1c100s-musb")) {

修改后usb正常,log如下:

=> setenv bootargs console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
=> load mmc 0:1 0x80C00000 suniv-f1c100s-licheepi-nano-with-lcd.dtb
reading suniv-f1c100s-licheepi-nano-with-lcd.dtb
7868 bytes read in 27 ms (284.2 KiB/s)
=> load mmc 0:1 0x80008000 zImage
reading zImage
3809368 bytes read in 205 ms (17.7 MiB/s)
=> bootz 0x80008000 - 0x80C00000
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e05000, end 80e09ebb ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-licheepi-nano (root@ubuntu) (gcc version 7.3.0 (Buildroot 2018.08.2)) #4 Thu Aug 22 14:11:09 CST 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] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22676K/32768K available (6144K kernel code, 212K rwdata, 1372K rodata, 1024K init, 249K bss, 10092K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 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 - 0xc0a352a0   ( 213 kB)
[    0.000000]        .bss : 0xc0a3a40c - 0xc0a7880c   ( 249 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.000056] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000131] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000764] Console: colour dummy device 80x30
[    0.000861] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070255] pid_max: default: 32768 minimum: 301
[    0.070616] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070665] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072231] CPU: Testing write buffer coherency: ok
[    0.074116] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076756] devtmpfs: initialized
[    0.083336] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083400] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083654] pinctrl core: initialized pinctrl subsystem
[    0.085723] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[    0.086014] NET: Registered protocol family 16
[    0.087906] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.089886] cpuidle: using governor menu
[    0.115794] SCSI subsystem initialized
[    0.116148] usbcore: registered new interface driver usbfs
[    0.116306] usbcore: registered new interface driver hub
[    0.116537] usbcore: registered new device driver usb
[    0.117059] pps_core: LinuxPPS API ver. 1 registered
[    0.117087] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.117162] PTP clock support registered
[    0.117696] Advanced Linux Sound Architecture Driver Initialized.
[    0.118658] random: fast init done
[    0.121022] clocksource: Switched to clocksource timer
[    0.150646] NET: Registered protocol family 2
[    0.152327] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.152415] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.152476] TCP: Hash tables configured (established 1024 bind 1024)
[    0.152840] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.152917] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.153436] NET: Registered protocol family 1
[    0.154546] RPC: Registered named UNIX socket transport module.
[    0.154593] RPC: Registered udp transport module.
[    0.154613] RPC: Registered tcp transport module.
[    0.154629] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.155666] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.157519] Initialise system trusted keyrings
[    0.158082] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.175928] NFS: Registering the id_resolver key type
[    0.176036] Key type id_resolver registered
[    0.176058] Key type id_legacy registered
[    0.189551] Key type asymmetric registered
[    0.189597] Asymmetric key parser 'x509' registered
[    0.189836] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.189872] io scheduler noop registered
[    0.189890] io scheduler deadline registered
[    0.190662] io scheduler cfq registered (default)
[    0.190700] io scheduler mq-deadline registered
[    0.190719] io scheduler kyber registered
[    0.192098] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.202410] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.394628] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.402035] console [ttyS0] disabled
[    0.422307] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.901117] console [ttyS0] enabled
[    0.911948] panel-simple panel: panel supply power not found, using dummy regulator
[    0.921291] SCSI Media Changer driver v0.25 
[    0.926949] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.933619] ehci-platform: EHCI generic platform driver
[    0.939138] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.945453] ohci-platform: OHCI generic platform driver
[    0.951267] usbcore: registered new interface driver usb-storage
[    0.958575] i2c /dev entries driver
[    1.021166] sunxi-mmc 1c0f000.mmc: base:0xc2855000 irq:19
[    1.028685] usbcore: registered new interface driver usbhid
[    1.034394] usbhid: USB HID core driver
[    1.057282] NET: Registered protocol family 17
[    1.062150] Key type dns_resolver registered
[    1.068913] Loading compiled-in X.509 certificates
[    1.087802] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.094579] [drm] No driver support for vblank timestamp query.
[    1.101621] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0738a08)
[    1.110371] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0737dbc)
[    1.228518] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.250909] Console: switching to colour frame buffer device 100x30
[    1.251838] mmc0: new high speed SDHC card at address 0001
[    1.253048] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.255682]  mmcblk0: p1 p2
[    1.311473] sun4i-drm display-engine: fb0:  frame buffer device
[    1.318660] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.327882] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.339985] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.345924] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.356115] hub 1-0:1.0: USB hub found
[    1.360055] hub 1-0:1.0: 1 port detected
[    1.366563] ALSA device list:
[    1.369562]   #0: Loopback 1
[    1.375778] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.406576] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.414972] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.424770] devtmpfs: mounted
[    1.433995] Freeing unused kernel memory: 1024K
[    1.628349] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK

Welcome to Buildroot
buildroot login: root
# ls
# lsusb
Bus 001 Device 001: ID 1d6b:0002
# [  168.701148] random: crng init done
jiangming1399 说:
Peter 说:
jiangming1399 说:

花了一点时间对Icenowy的patch和chong的patch进行了比较,结果发现chong的patch包基本上就是在Icenowy的基础上更改了下面的这个文件:


--- ../linux/drivers/clk/sunxi-ng/ccu-suniv.c    2019-01-15 22:48:18.824587965 +0800
+++ drivers/clk/sunxi-ng/ccu-suniv.c    2019-01-23 09:05:17.959348454 +0800
@@ -238,7 +238,7 @@
/* The BSP header file has a CIR_CFG, but no mod clock uses this definition */

static SUNXI_CCU_GATE(usb_phy0_clk,    "usb-phy0",    "osc24M",
-              0x0cc, BIT(8), 0);
+              0x0cc, BIT(1), 0);

static SUNXI_CCU_GATE(dram_ve_clk,    "dram-ve",    "pll-ddr",
               0x100, BIT(0), 0);


理论上将上面这个patch应用到Icenowy的4.14内核中,USB应该也就能跑了。


@jiangming1399 我的4.14内核只修改此处,USB没办法正常运行,请问你用的哪个内核?
内核:https://github.com/Lichee-Pi/linux/tree/nano-4.14-exp
内核日志:

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-licheepi-nano (peter@peter-ThinkPad-T440p) (gcc version 6.4.0 (Buildroot 2018.11.1)) #25 Thu Feb 14 14:42:36 CST 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: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 23736K/32768K available (5120K kernel code, 187K rwdata, 1148K rodata, 1024K init, 229K bss, 9032K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0600000   (6112 kB)
[    0.000000]       .init : 0xc0800000 - 0xc0900000   (1024 kB)
[    0.000000]       .data : 0xc0900000 - 0xc092ef40   ( 188 kB)
[    0.000000]        .bss : 0xc0933830 - 0xc096d00c   ( 230 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.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000115] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000628] Console: colour dummy device 80x30
[    0.001539] console [tty0] enabled
[    0.001644] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070285] pid_max: default: 32768 minimum: 301
[    0.070650] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070744] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072205] CPU: Testing write buffer coherency: ok
[    0.073908] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076430] devtmpfs: initialized
[    0.082809] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082969] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083279] pinctrl core: initialized pinctrl subsystem
[    0.085309] NET: Registered protocol family 16
[    0.086631] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088521] cpuidle: using governor menu
[    0.108569] SCSI subsystem initialized
[    0.108976] usbcore: registered new interface driver usbfs
[    0.109224] usbcore: registered new interface driver hub
[    0.109470] usbcore: registered new device driver usb
[    0.109969] pps_core: LinuxPPS API ver. 1 registered
[    0.110054] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.110293] PTP clock support registered
[    0.112052] clocksource: Switched to clocksource timer
[    0.138288] NET: Registered protocol family 2
[    0.139776] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.139930] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140021] TCP: Hash tables configured (established 1024 bind 1024)
[    0.140335] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.140446] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.140970] NET: Registered protocol family 1
[    0.141489] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.143450] Initialise system trusted keyrings
[    0.144298] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.172281] Key type asymmetric registered
[    0.172394] Asymmetric key parser 'x509' registered
[    0.172638] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.172736] io scheduler noop registered
[    0.172784] io scheduler deadline registered
[    0.173593] io scheduler cfq registered (default)
[    0.173690] io scheduler mq-deadline registered
[    0.173743] io scheduler kyber registered
[    0.174895] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.185088] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.353071] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.359799] console [ttyS0] disabled
[    0.380122] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[    0.815430] console [ttyS0] enabled
[    0.825943] panel-simple panel: panel supply power not found, using dummy regulator
[    0.835166] SCSI Media Changer driver v0.25 
[    0.842257] mousedev: PS/2 mouse device common for all mice
[    0.849609] input: 1c24800.rtp as /devices/platform/soc/1c24800.rtp/input/input0
[    0.858396] i2c /dev entries driver
[    0.922179] sunxi-mmc 1c0f000.mmc: base:0xc2857000 irq:19
[    0.930592] NET: Registered protocol family 17
[    0.935344] Key type dns_resolver registered
[    0.941835] Loading compiled-in X.509 certificates
[    0.957017] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.963848] [drm] No driver support for vblank timestamp query.
[    0.970811] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0635088)
[    0.979760] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc063443c)
[    1.122547] Console: switching to colour frame buffer device 100x30
[    1.130367] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.132568] mmc0: new high speed SD card at address 2143
[    1.133765] mmcblk0: mmc0:2143 APPSD 120 MiB 
[    1.171682]  mmcblk0: p1 p2
[    1.172550] mmcblk0: p2 size 1048576 extends beyond EOD, truncated
[    1.256746] sun4i-drm display-engine: fb0:  frame buffer device
[    1.275094] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.295646] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.330101] ------------[ cut here ]------------
[    1.346479] WARNING: CPU: 0 PID: 3 at drivers/usb/musb/sunxi.c:411 sunxi_musb_ep_offset+0x3c/0x54
[    1.367375] sunxi_musb_ep_offset called with non 0 offset
[    1.384570] Modules linked in:
[    1.399371] CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.0-licheepi-nano #25
[    1.418797] Hardware name: Allwinner suniv Family
[    1.435493] Workqueue: events deferred_probe_work_func
[    1.452838] [<c010e6d8>] (unwind_backtrace) from [<c010b88c>] (show_stack+0x10/0x14)
[    1.473318] [<c010b88c>] (show_stack) from [<c0116708>] (__warn+0xd4/0xfc)
[    1.492822] [<c0116708>] (__warn) from [<c0116768>] (warn_slowpath_fmt+0x38/0x48)
[    1.513050] [<c0116768>] (warn_slowpath_fmt) from [<c0418418>] (sunxi_musb_ep_offset+0x3c/0x54)
[    1.534686] [<c0418418>] (sunxi_musb_ep_offset) from [<c040c060>] (ep_config_from_hw+0xe0/0x158)
[    1.556405] [<c040c060>] (ep_config_from_hw) from [<c040d8c4>] (musb_probe+0x528/0xc0c)
[    1.577327] [<c040d8c4>] (musb_probe) from [<c03a6c64>] (platform_drv_probe+0x50/0xb0)
[    1.598033] [<c03a6c64>] (platform_drv_probe) from [<c03a5394>] (driver_probe_device+0x22c/0x2f0)
[    1.619738] [<c03a5394>] (driver_probe_device) from [<c03a39c8>] (bus_for_each_drv+0x64/0x94)
[    1.641224] [<c03a39c8>] (bus_for_each_drv) from [<c03a5084>] (__device_attach+0xac/0x114)
[    1.662464] [<c03a5084>] (__device_attach) from [<c03a467c>] (bus_probe_device+0x84/0x8c)
[    1.683726] [<c03a467c>] (bus_probe_device) from [<c03a2b88>] (device_add+0x3c8/0x578)
[    1.704952] [<c03a2b88>] (device_add) from [<c03a69d8>] (platform_device_add+0x100/0x218)
[    1.726576] [<c03a69d8>] (platform_device_add) from [<c03a73c8>] (platform_device_register_full+0xf0/0x114)
[    1.762783] [<c03a73c8>] (platform_device_register_full) from [<c0418090>] (sunxi_musb_probe+0x26c/0x414)
[    1.798970] [<c0418090>] (sunxi_musb_probe) from [<c03a6c64>] (platform_drv_probe+0x50/0xb0)
[    1.821539] [<c03a6c64>] (platform_drv_probe) from [<c03a5394>] (driver_probe_device+0x22c/0x2f0)
[    1.844552] [<c03a5394>] (driver_probe_device) from [<c03a39c8>] (bus_for_each_drv+0x64/0x94)
[    1.867118] [<c03a39c8>] (bus_for_each_drv) from [<c03a5084>] (__device_attach+0xac/0x114)
[    1.889558] [<c03a5084>] (__device_attach) from [<c03a467c>] (bus_probe_device+0x84/0x8c)
[    1.911845] [<c03a467c>] (bus_probe_device) from [<c03a4ac8>] (deferred_probe_work_func+0x4c/0x140)
[    1.948664] [<c03a4ac8>] (deferred_probe_work_func) from [<c0129de8>] (process_one_work+0x1f4/0x404)
[    1.986179] [<c0129de8>] (process_one_work) from [<c012a27c>] (worker_thread+0x284/0x59c)
[    2.009350] [<c012a27c>] (worker_thread) from [<c012f434>] (kthread+0xf8/0x138)
[    2.031533] [<c012f434>] (kthread) from [<c0107f48>] (ret_from_fork+0x14/0x2c)
[    2.053322] ---[ end trace 0009ee3b665ce1e0 ]---
[    2.072380] musb-sunxi 1c13000.usb: Error unknown readb offset 128
[    2.093172] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22
[    2.115552] musb-hdrc: probe of musb-hdrc.1.auto failed with error -22
[    2.140270] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    2.387597] EXT4-fs (mmcblk0p2): recovery complete
[    2.448078] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.470667] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.492549] devtmpfs: mounted
[    2.516475] Freeing unused kernel memory: 1024K
[    2.720487] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered

我用的就是这个4.14版本的内核,就只改了那里,自己测试时是可以用的,你要不试试重新下载下来用默认配置文件编译?

#127 Re: 全志 SOC » 网友 @chong 大神提供的f1c100s mainline linux usb 补丁包,支持usb otg(host & device) » 2019-08-21 23:35:39

mark!我内核用的是4.14-exp,host模式没反应,原来这样,明天试试

Michael 说:

设备树文件里有个PE2的gpio电平设置,补丁里面设置的是active high为device模式,改为low就是host模式

#128 Re: 全志 SOC » 投屏软件scrcpy在Linux上的移植(porting scrcpy to linux) » 2019-08-21 12:33:11

手机开调试模式了没?

超级萌新 说:
# 
# 
# [   97.063258] usb 1-1: new high-speed USB device number 4 using musb-hdrc

# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 2717:ff08
# 
# 
# adb devices
List of devices attached 

# 

换了一条线 USB 连接貌似可以了, 但是 adb devices 什么都没有  ;(

#129 Re: ESP32/ESP8266 » 开源!吃鸡开发板ESP32+CH374U方案,让你通过鼠标键盘玩手机吃鸡游戏! » 2019-08-21 09:51:30

还可以远程控制的,反向控制手机

guanglun 说:
checkout 说:

触摸事件和你的原理应该一样,延迟高的是图像,scrcpy不只是投屏
移植不难,这是移植到v3s上的效果:https://whycan.cn/t_2736.html

这个应该是只读了event吧?

#130 Re: 全志 SOC » 投屏软件scrcpy在Linux上的移植(porting scrcpy to linux) » 2019-08-21 09:49:29

用来连接手机的话,只需要支持USB host模式就行,不需要修改其他东东。插上手机,运行adb,再执行adb devices可以看正不正常

firstman 说:

楼主大神, 我还是接着到这里来问你合适一点

https://whycan.cn/t_2760.html#p22646

checkout 说:

你首先要分清adb和adbd的区别。adbd是手机里面跑的那种,需要支持gadget,adb是主机模式下跑的,用来连接手机

firstman 说:

https://whycan.cn/files/members/1574/QQ20190820223450.png

弄了一个 adb 执行程序进去, 然而, 并不能连到我的小米手机.

总觉得还有一个协议没有勾选.

如果我的 f1c100s 里面跑一个 adb, 用来连接手机(手机里面应该跑的是 adbd???)
我需要做哪些操作, 需要在 make menuconfig 里面勾选什么协议吗?

#131 Re: ESP32/ESP8266 » 开源!吃鸡开发板ESP32+CH374U方案,让你通过鼠标键盘玩手机吃鸡游戏! » 2019-08-20 23:10:30

你首先要分清adb和adbd的区别。adbd是手机里面跑的那种,需要支持gadget,adb是主机模式下跑的,用来连接手机

firstman 说:

https://whycan.cn/files/members/1574/QQ20190820223450.png

弄了一个 adb 执行程序进去, 然而, 并不能连到我的小米手机.

总觉得还有一个协议没有勾选.

#132 Re: 全志 SOC » 开源自己画的一个F1C100S板子和原理图,摄像头和屏幕同时引出,所有io引出 » 2019-08-20 23:06:12

犀鸠利

微凉VeiLiang 说:
checkout 说:

摄像头采集实时显示调通了?

嗯,之前就调好了

#134 Re: ESP32/ESP8266 » 开源!吃鸡开发板ESP32+CH374U方案,让你通过鼠标键盘玩手机吃鸡游戏! » 2019-08-20 22:14:49

adb的话需要主机模式,直接执行就行了,adbd是从机模式下的,另外还需配置内核,选择configfs和fuctionfs,

firstman 说:
checkout 说:

adb只是个协议

buildroot 里面有 adb tools, 勾上编译一下就可以, 但是不知道USB驱动怎么弄

#136 Re: ESP32/ESP8266 » 开源!吃鸡开发板ESP32+CH374U方案,让你通过鼠标键盘玩手机吃鸡游戏! » 2019-08-20 20:35:46

触摸事件和你的原理应该一样,延迟高的是图像,scrcpy不只是投屏
移植不难,这是移植到v3s上的效果:https://whycan.cn/t_2736.html

#137 Re: 全志 SOC » 有一个电脑可以正常读写的U盘, 但是用 荔枝派nand + f1c100s linux 4.15 无法识别 » 2019-08-20 11:17:59

应该不是电源问题,估计是cmdline挂载没指定rw,打印cmdline出来看看

#139 全志 SOC » 投屏软件scrcpy在Linux上的移植(porting scrcpy to linux) » 2019-08-02 21:34:39

checkout
回复: 37

本帖子旨在分享本人之前在荔枝派zero板子上移植的投屏软件:scrcpy。
scrcpy投屏的分辨率与流畅度受限于两个方面:1.图形渲染  2.解码(h264)
源项目简介:https://github.com/Genymobile/scrcpy.git
大致原理:scrcpy使用adb push一个jar包到Android手机,手机作为server抓取手机屏幕并编码压缩,开发板作为client通过adb连接server;开发板接受到h264码流后解码、渲染显示。此外,client端还可以接受本地键盘和鼠标命令控制Android手机。
硬件验证:licheepi zero开发板
软件:解码与渲染都是软件方式,效果不必期待会有多好。不过,可以拿到有GPU的树莓派上跑,效果应该不错。
scrcpy需要用到adb(不是adbd!!!,所以,你懂的:p要先移植它

先立贴,放放视频,看看是啥东东:

#140 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » Ubuntu 运行 quirc 二维码解码程序 » 2019-03-29 09:19:11

好像是一样,哈哈

jimmy 说:
checkout 说:

不是应该改为$(shell pkg-config --cflags sdl)
$(shell pkg-config --libs sdl)?

和 `pkg-config --cflags sdl`        `pkg-config --libs sdl`  表达的意义一样吧。

不明白 != 是什么意义?

#143 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 请教各位, 二维码usb扫描枪如何自己开发软件捕获输入数据? » 2019-03-28 11:11:01

以前弄过,这个用libusb读取就行,可以使用productID,vendorID识别特定厂商设备进行读取;若要指定特定某个设备的话,使用serialNumber识别,不过有些usb设备没有唯一的serialNumber

#144 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-19 09:07:47

是的,73楼的代码可以直接跑起来的,有兴趣可以试试。
portaudio是和alsalib一样作为库调用,很方便。
迟点开个贴整理一下步骤

jimmy 说:
checkout 说:

移植到zero上跑起来了,播放完全没杂音,也没丢包情况,分包发送应该是sbc配置的问题。
使用正常!!
ubuntu使用cp2102转串口连接,出现杂音,可能是cp2102的问题导致丢包出现杂音

厉害厉害

是用 73 楼这代码搞定的吗?

checkout 说:

晕哥有没试过rtl8723bs,3Mbps速率的情况
上传一下portaudio播放的代码,解压到/port/posix-h5/目录下,直接make就行
需要安装portaudio
不会是我连接的杜邦线太长了吧(捂脸.jpg)
test.rar


再请教一下, portaudio 在 V3s 是作为一个独立进程运行, 还是静态链接到你的app ?
底层还是一样调用 alsalib ?

#145 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-19 01:44:15

移植到zero上跑起来了,播放完全没杂音,也没丢包情况,分包发送应该是sbc配置的问题。
使用正常!!
ubuntu使用cp2102转串口连接,出现杂音,可能是cp2102的问题导致丢包出现杂音

#146 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-18 16:12:14

ubuntu下,apt-get install portaudio19-dev安装portaudio,然后把上面那个test文件解压到你的btatack路径/port/posix-h5/下,进入/你的btstack路径/port/posix-h5/test,直接make就行
上面的test代码默认使用/dev/ttyUSB0,速率1.5Mbps。晕哥你可以试试,看看这个坑怎么填

#147 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-18 13:56:49

晕哥有没试过rtl8723bs,3Mbps速率的情况
上传一下portaudio播放的代码,解压到/port/posix-h5/目录下,直接make就行
需要安装portaudio
不会是我连接的杜邦线太长了吧(捂脸.jpg)
test.rar

#148 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-18 13:35:11

这两天试了一下test/pts下使用portaudio播放音频流的例子,效果不是很好。
测试环境:ubuntu16.04——usb转串口(cp2102)——rtl8723bs,速率1.5Mbps
cp2102最大支持2Mbps
1.主动连接手机/ipad,偶尔会出现丢包,播放还算流畅。

[00:08:38.913] LOG -- hci_transport_h5.c.749: slip frame time 22 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:38.922] LOG -- hci_transport_h5.c.749: slip frame time 7 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:38.946] LOG -- hci_transport_h5.c.749: slip frame time 6 ms for 766 decoded bytes. nomimal time 5 ms
[00:08:38.946] LOG -- hci_transport_h5.c.556: expected payload len 941 but got 760
[00:08:39.066] LOG -- hci_transport_h5.c.749: slip frame time 120 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:39.076] LOG -- hci_transport_h5.c.749: slip frame time 8 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:39.088] LOG -- hci_transport_h5.c.749: slip frame time 9 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:39.113] LOG -- hci_transport_h5.c.749: slip frame time 22 ms for 947 decoded bytes. nomimal time 6 ms
[00:08:39.123] LOG -- hci_transport_h5.c.749: slip frame time 7 ms for 947 decoded bytes. nomimal time 6 ms

2.手机主动连接蓝牙模块,出现分包发送的情况,断断续续的,音质很差

[00:15:27.482] LOG -- hci_transport_h5.c.749: slip frame time 2 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.490] LOG -- hci_transport_h5.c.749: slip frame time 5 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.494] LOG -- hci_transport_h5.c.749: slip frame time 2 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.517] LOG -- hci_transport_h5.c.749: slip frame time 20 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.522] LOG -- hci_transport_h5.c.749: slip frame time 2 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.545] LOG -- hci_transport_h5.c.749: slip frame time 20 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.550] LOG -- hci_transport_h5.c.749: slip frame time 2 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.573] LOG -- hci_transport_h5.c.749: slip frame time 20 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.578] LOG -- hci_transport_h5.c.749: slip frame time 3 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.586] LOG -- hci_transport_h5.c.749: slip frame time 5 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.602] LOG -- hci_transport_h5.c.749: slip frame time 0 ms for 38 decoded bytes. nomimal time 0 ms
[00:15:27.625] LOG -- hci_transport_h5.c.749: slip frame time 21 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.630] LOG -- hci_transport_h5.c.749: slip frame time 2 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.639] LOG -- hci_transport_h5.c.749: slip frame time 5 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.644] LOG -- hci_transport_h5.c.749: slip frame time 3 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.667] LOG -- hci_transport_h5.c.749: slip frame time 21 ms for 689 decoded bytes. nomimal time 4 ms
[00:15:27.673] LOG -- hci_transport_h5.c.749: slip frame time 3 ms for 268 decoded bytes. nomimal time 1 ms
[00:15:27.696] LOG -- hci_transport_h5.c.749: slip frame time 20 ms for 689 decoded bytes. nomimal time 4 m

#151 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-03 17:31:49

终于把自己挖的坑填完,例子都试了一遍,都ok。18年10月份之前的版本,hid profile的例子有bug,所以出现17楼晕哥所说的问题,新版本已经解决掉了

root@ubuntu:/home/liaoqingmo/licheepi/btstack/port/posix-h5# ./hog_keyboard_demo 
Packet Log: /tmp/hci_dump.pklg
H5 device: /dev/ttyUSB0
Local version information:
- HCI Version  0x0006
- HCI Revision 0x1e3e
- LMP Version  0x0006
- LMP Revision 0xe40e
- Manufacturer 0x005d
Unknown manufacturer / manufacturer not supported yet.
Local name: RTK_BT_4.0
BTstack up and running at 8D:18:D9:58:85:14
Display Passkey: 94205
Disconnected
Display Passkey: 78176
Disconnected
Display Passkey: 124430
Report Characteristic Subscribed 1
Boot Keyboard Characteristic Subscribed 1
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k
sending: k

#152 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-03 15:39:33

解决了,word天!!!
电源加了1个104滤波电容,问题没解决,不是电压不稳导致复位的情况。
手动在代码上把流控关掉然后就ok了。。(ps:硬件上明明已经做了下拉,为什么不行呢??百思不得其姐)

#153 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-02 23:42:51

可能是电源纹波太大,导致复位或通讯出问题,明天接个电容再试试。
没逻辑分析仪和示波器,只能靠猜了。。

#154 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-02 20:48:24

请问这个问题当时怎么解决的??

pighead 说:

发现是模块的复位问题,多复位几次就有进展了:

> ./rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :3-wire sync pattern resend : 2, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10
Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :config offset(f4),length(8)
Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth :config offset(27),length(1)
Realtek Bluetooth :config offset(fe),length(1)
Realtek Bluetooth :config offset(15b),length(4)
Realtek Bluetooth :config offset(1e3),length(1)
Realtek Bluetooth :Get config baud rate from config file:4928002
Realtek Bluetooth :Load FW OK
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 0

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth ERROR: h5 hdr checksum error!!!
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 1

暂时卡在这个问题上了

#155 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-02 20:47:03

原来是下拉电阻太大了,换了个470的,结果出现了24楼类似的问题

root@ubuntu:/home/liaoqingmo/licheepi/rtl8723bs_bt# ./rtk_hciattach -n -s 115200 /dev/ttyUSB0 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5 

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10
Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :config offset(f4),length(8)
Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth :config offset(27),length(1)
Realtek Bluetooth :config offset(fe),length(1)
Realtek Bluetooth :config offset(15b),length(4)
Realtek Bluetooth :config offset(1e3),length(1)
Realtek Bluetooth :Get config baud rate from config file:4928002
Realtek Bluetooth :Load FW OK
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 0

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 1

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 2

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :RTK get HCI_VENDOR_READ_RTK_LMP_VERISION_Command

Realtek Bluetooth :rtk get lmp version timeout, retry: 3

Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
Realtek Bluetooth :Peer acked invalid packet
^C

#156 Re: 全志 SOC » 郁闷,没有搞定 Ubuntu下用btstack协议栈驱动 RTL8723BS » 2019-03-01 00:12:34

什么情况??
ubuntu16.04上,cp2102接rtl8723bs,CTS/RTS做了下拉,配置卡在这里。
issue也有人提到这个问题,还没解决
用的固件是这个:https://github.com/lwfinger/rtl8723bs_bt

root@ubuntu:/home/liaoqingmo/licheepi/rtl8723bs_bt# ./rtk_hciattach -n -s 115200 /dev/ttyUSB0 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5 

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10
Realtek Bluetooth :Get CONFG pkt-active mode

Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :config offset(f4),length(8)
Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth :config offset(27),length(1)
Realtek Bluetooth :config offset(fe),length(1)
Realtek Bluetooth :config offset(15b),length(4)
Realtek Bluetooth :config offset(1e3),length(1)
Realtek Bluetooth :Get config baud rate from config file:4928002
Realtek Bluetooth :Load FW OK
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 0 from card
Realtek Bluetooth :receive hci command complete event with command:1001

Realtek Bluetooth :Read RTK LMP version with Status:0
Realtek Bluetooth :gLmpVersion = 0x8723
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 1 from card
Realtek Bluetooth :receive hci command complete event with command:fc6d

Realtek Bluetooth :Read RTK rom version with Status:0
Realtek Bluetooth :rtk_hw_cfg.eversion = 1
Realtek Bluetooth :rtk_get_fw_project_id: opcode 0, len 1, data 1
Realtek Bluetooth :fw_ver 0x1e3ee40e, patch_num 2
Realtek Bluetooth :patch length is 0x5e90
Realtek Bluetooth :start offset is 0x4f00
Realtek Bluetooth :fw: exists, config file: exists
Realtek Bluetooth :baudrate in change speed command: 0x2 0x80 0x92 0x4 

Realtek Bluetooth :Received reliable seqno 2 from card
Realtek Bluetooth :receive hci command complete event with command:fc17

Realtek Bluetooth :Change BD Rate with status:0
Realtek Bluetooth :final_speed 1500000

Realtek Bluetooth :hw flow control enable
Realtek Bluetooth :iEndIndex:96  iLastPacketLen:71 iAdditionpkt:4

Realtek Bluetooth :hci_download_patch tx_index:0 rx_index: -1

Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:1
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:2
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:3
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:4
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:5
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:6
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:7
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:8
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:9
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:10
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:11
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:12
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:13
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:14
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:15
Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:16
Realtek Bluetooth ERROR: patch timerout, retry:

#158 Re: 全志 SOC » 又收了一台唱戏机, 再拆全志唱戏机,看戏机(固件已经读出, 退休不怕孤单了). » 2019-02-20 23:30:23

会不会是软切换?
系统上电默认是USB从机模式,用户插入u盘的话,在用户点击存储UI界面查看U盘内容的时候再切换为主机,主从切换的触发在这个点击按钮上。

#159 Re: 全志 SOC » 全志V3s使用荔枝派最新的 linux 4.13-y 分支,在dev目录下没看到声卡的驱动,如何支持声卡? » 2019-02-20 23:24:07

解决了,是设备树没配置好~
官方的sun8i-v3s-licheepi-zero-dock.dts是有配置的,但sun8i-v3s-licheepi-zero.dts没有配置声卡,buildroot配置的时候使用了这个了

#160 Re: 全志 SOC » 全志V3s使用荔枝派最新的 linux 4.13-y 分支,在dev目录下没看到声卡的驱动,如何支持声卡? » 2019-02-20 22:00:38

上面是群里小熊猫的固件启动log
下面是我自己使用zero默认配置编译出来的固件的启动log
怎么肥事,哪位大佬指点一下

=> boot
reading zImage
3937944 bytes read in 214 ms (17.5 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
11187 bytes read in 26 ms (419.9 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffbb2 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero (root@ubuntu) (gcc version 7.3.0 (Buildroot 2018.08.2)) #1 SMP Mon Jan 28 21:48:04 CST 2019
[    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
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 55096K/65536K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 261K bss, 10440K 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 - 0xc0a366c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d7f0 - 0xc0a7efec   ( 262 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000171] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000400] Console: colour dummy device 80x30
[    0.000435] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000450] pid_max: default: 32768 minimum: 301
[    0.000575] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000592] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001198] CPU: Testing write buffer coherency: ok
[    0.001573] /cpus/cpu@0 missing clock-frequency property
[    0.001595] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002062] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002251] Hierarchical SRCU implementation.
[    0.002753] smp: Bringing up secondary CPUs ...
[    0.002769] smp: Brought up 1 node, 1 CPU
[    0.002777] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002784] CPU: All CPU(s) started in SVC mode.
[    0.003541] devtmpfs: initialized
[    0.006487] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006761] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006788] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006956] pinctrl core: initialized pinctrl subsystem
[    0.007828] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.007964] NET: Registered protocol family 16
[    0.008406] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009508] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009524] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022066] SCSI subsystem initialized
[    0.022349] usbcore: registered new interface driver usbfs
[    0.022416] usbcore: registered new interface driver hub
[    0.022502] usbcore: registered new device driver usb
[    0.022756] pps_core: LinuxPPS API ver. 1 registered
[    0.022767] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022797] PTP clock support registered
[    0.023028] Advanced Linux Sound Architecture Driver Initialized.
[    0.024821] clocksource: Switched to clocksource arch_sys_counter
[    0.035787] NET: Registered protocol family 2
[    0.036382] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036412] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036435] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036562] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036610] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.036804] NET: Registered protocol family 1
[    0.037400] RPC: Registered named UNIX socket transport module.
[    0.037420] RPC: Registered udp transport module.
[    0.037425] RPC: Registered tcp transport module.
[    0.037431] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039480] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.048487] NFS: Registering the id_resolver key type
[    0.048548] Key type id_resolver registered
[    0.048555] Key type id_legacy registered
[    0.049574] random: fast init done
[    0.052574] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.052597] io scheduler noop registered
[    0.052604] io scheduler deadline registered
[    0.052846] io scheduler cfq registered (default)
[    0.052857] io scheduler mq-deadline registered
[    0.052864] io scheduler kyber registered
[    0.057308] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.130116] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133652] console [ttyS0] disabled
[    0.153926] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.730821] console [ttyS0] enabled
[    0.737536] libphy: Fixed MDIO Bus: probed
[    0.741988] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.748602] ehci-platform: EHCI generic platform driver
[    0.754093] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.759763] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.767689] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.794860] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.802011] hub 1-0:1.0: USB hub found
[    0.805984] hub 1-0:1.0: 1 port detected
[    0.810448] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.816746] ohci-platform: OHCI generic platform driver
[    0.822294] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.829019] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.836966] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.909898] hub 2-0:1.0: USB hub found
[    0.913726] hub 2-0:1.0: 1 port detected
[    0.921289] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.931054] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.937947] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.942483] i2c /dev entries driver
[    0.947372] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.956915] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.025063] sunxi-mmc 1c0f000.mmc: base:0xc4869000 irq:23
[    1.032105] usbcore: registered new interface driver usbhid
[    1.037774] usbhid: USB HID core driver
[    1.043458] NET: Registered protocol family 17
[    1.048140] Key type dns_resolver registered
[    1.052540] Registering SWP/SWPB emulation handler
[    1.064185] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.075637] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.081402] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.092787] hub 3-0:1.0: USB hub found
[    1.096944] hub 3-0:1.0: 1 port detected
[    1.101952] using random self ethernet address
[    1.106506] using random host ethernet address
[    1.111960] usb0: HOST MAC ee:64:a2:4a:7f:da
[    1.116383] usb0: MAC 1a:47:51:ff:74:41
[    1.120267] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.127786] g_cdc gadget: g_cdc ready
[    1.131781] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:12 UTC (12)
[    1.140061] vcc3v0: disabling
[    1.143036] vcc5v0: disabling
[    1.146054] ALSA device list:
[    1.149020]   No soundcards found.
[    1.154378] Waiting for root device /dev/mmcblk0p2...
[    1.191963] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.201969] mmc0: new high speed SDHC card at address 0001
[    1.208292] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.214266]  mmcblk0: p1 p2
[    1.246070] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.255201] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.445446] EXT4-fs (mmcblk0p2): recovery complete
[    1.452324] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.460562] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.472419] devtmpfs: mounted
[    1.476644] Freeing unused kernel memory: 1024K
[    1.611147] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting network: OK
Starting sshd: OK

Welcome to Buildroot
buildroot login: root
# ls /dev/snd [   14.724888] random: crng init done

timer
# ls /sys/firmware/devicetree/base/
#address-cells    compatible        model             usb1-vbus
#size-cells       cpus              name              usb2-vbus
ahci-5v           display-engine    serial-number     vcc3v0
aliases           interrupt-parent  soc               vcc3v3
chosen            leds              timer             vcc5v0
clocks            memory            usb0-vbus
# 

#161 Re: 全志 SOC » 全志V3s使用荔枝派最新的 linux 4.13-y 分支,在dev目录下没看到声卡的驱动,如何支持声卡? » 2019-02-20 21:55:28

=> boot
reading zImage
3971936 bytes read in 212 ms (17.9 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
10864 bytes read in 26 ms (407.2 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffa6f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-rc7-licheepi-zero (xiaoxiongmao@xiaoxiongmao-vm) (gcc version 6.3.0 20170321 (Debian 6.3.0-10)) #4 SMP Thu Aug 31 00:05:26 CST 2017
[    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
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f60000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 55076K/65536K available (6144K kernel code, 230K rwdata, 1452K rodata, 1024K init, 263K bss, 10460K 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 - 0xc0a39b80   ( 231 kB)
[    0.000000]        .bss : 0xc0a40874 - 0xc0a825ec   ( 264 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000182] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000397] Console: colour dummy device 80x30
[    0.000432] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000448] pid_max: default: 32768 minimum: 301
[    0.000572] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000584] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001182] CPU: Testing write buffer coherency: ok
[    0.001543] /cpus/cpu@0 missing clock-frequency property
[    0.001567] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001991] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002166] Hierarchical SRCU implementation.
[    0.002656] smp: Bringing up secondary CPUs ...
[    0.002669] smp: Brought up 1 node, 1 CPU
[    0.002679] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002686] CPU: All CPU(s) started in SVC mode.
[    0.003423] devtmpfs: initialized
[    0.006256] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006528] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006558] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006719] pinctrl core: initialized pinctrl subsystem
[    0.007574] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[    0.007711] NET: Registered protocol family 16
[    0.008145] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009192] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009209] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021692] SCSI subsystem initialized
[    0.021968] usbcore: registered new interface driver usbfs
[    0.022033] usbcore: registered new interface driver hub
[    0.022125] usbcore: registered new device driver usb
[    0.022373] pps_core: LinuxPPS API ver. 1 registered
[    0.022383] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022410] PTP clock support registered
[    0.022623] Advanced Linux Sound Architecture Driver Initialized.
[    0.024406] clocksource: Switched to clocksource arch_sys_counter
[    0.034597] NET: Registered protocol family 2
[    0.035215] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.035249] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.035271] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035396] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035443] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.035659] NET: Registered protocol family 1
[    0.036215] RPC: Registered named UNIX socket transport module.
[    0.036236] RPC: Registered udp transport module.
[    0.036242] RPC: Registered tcp transport module.
[    0.036248] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038206] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.047051] NFS: Registering the id_resolver key type
[    0.047098] Key type id_resolver registered
[    0.047105] Key type id_legacy registered
[    0.048042] random: fast init done
[    0.050852] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.050873] io scheduler noop registered
[    0.050880] io scheduler deadline registered
[    0.051123] io scheduler cfq registered (default)
[    0.051134] io scheduler mq-deadline registered
[    0.051141] io scheduler kyber registered
[    0.055520] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.121739] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.125277] console [ttyS0] disabled
[    0.145533] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.724567] console [ttyS0] enabled
[    0.731198] libphy: Fixed MDIO Bus: probed
[    0.735711] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.742236] ehci-platform: EHCI generic platform driver
[    0.747775] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.753389] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.761356] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.794448] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.801553] hub 1-0:1.0: USB hub found
[    0.805502] hub 1-0:1.0: 1 port detected
[    0.809929] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.816223] ohci-platform: OHCI generic platform driver
[    0.821770] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.828494] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.836444] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.909442] hub 2-0:1.0: USB hub found
[    0.913262] hub 2-0:1.0: 1 port detected
[    0.920336] usbcore: registered new interface driver usb-storage
[    0.926975] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.936591] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.943386] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.948016] i2c /dev entries driver
[    0.953201] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.014461] sunxi-mmc 1c0f000.mmc: base:0xc4869000 irq:23
[    1.021402] usbcore: registered new interface driver usbhid
[    1.027080] usbhid: USB HID core driver
[    1.033138] NET: Registered protocol family 17
[    1.037816] Key type dns_resolver registered
[    1.042223] Registering SWP/SWPB emulation handler
[    1.053658] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.065059] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.070826] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.082097] hub 3-0:1.0: USB hub found
[    1.086096] hub 3-0:1.0: 1 port detected
[    1.091218] using random self ethernet address
[    1.095804] using random host ethernet address
[    1.101215] usb0: HOST MAC 7a:2b:29:cc:b7:48
[    1.105647] usb0: MAC 7a:84:fe:19:14:4b
[    1.109529] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.117048] g_cdc gadget: g_cdc ready
[    1.121035] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:23 UTC (23)
[    1.129336] vcc3v0: disabling
[    1.132313] vcc5v0: disabling
[    1.135334] ALSA device list:
[    1.138301]   No soundcards found.
[    1.145703] Waiting for root device /dev/mmcblk0p2...
[    1.181557] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.191568] mmc0: new high speed SDHC card at address 0001
[    1.197872] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.203879]  mmcblk0: p1 p2
[    1.236059] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.245368] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.317054] EXT4-fs (mmcblk0p2): recovery complete
[    1.323905] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.332132] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.341609] devtmpfs: mounted
[    1.345964] Freeing unused kernel memory: 1024K
[    1.476349] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '4.13.0-rc7-licheepi-zero': No such file or directory
Initializing random number generator... done.
Starting network: OK
Starting sshd: OK

Welcome to Buildroot
buildroot login: 

zero默认配置不是配置了声卡?确实是用默认配置编译的哇。。
怎么没有的:(
哪位大佬能提供一些测试好的固件试试

# tinymix contents
Failed to open mixer
# ls /dev/snd/ -l
total 0
crw-rw----    1 root     audio     116,  33 Jan  1 00:00 timer
# ls /sys/firmware/devicetree/base/
#address-cells    compatible        model             usb1-vbus
#size-cells       cpus              name              usb2-vbus
ahci-5v           display-engine    serial-number     vcc3v0
aliases           interrupt-parent  soc               vcc3v3
chosen            leds              timer             vcc5v0
clocks            memory            usb0-vbus
# 

#164 Re: 全志 SOC » 作大死,厚度错了 » 2019-02-17 15:47:53

双面贴片,底部元件不会顶到底板?

#165 Re: 站务公告/网站建设 » 值此新春佳节之际, 站长晕哥在家乡湖南娄底祝各位朋友春节快乐,阖家幸福! » 2019-02-04 13:09:03

在广东湛江的新人也凑个热闹,祝坑网越挖越大!祝大家身体健康,万事如意!

#166 Re: 全志 SOC » licheepi_zero开发板 buildroot配置 一键编译 » 2018-11-09 14:19:04

配置完,一键编译后的uboot还是不能直接从sd卡启动的,需要手动配置CONFIG_BOOTCOMMAND和CONFIG_BOOTARGS参数
1.cd 你的buildroot所在根目录/output/build/uboot-v3s-spi-experimental/
2.删除.stamp_built,.stamp_images_installed,.stamp_installed
3.修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

4.在回到builroot根目录,再次make
5.在output/images目录可以得到uboot.bin,xxx.dtb,zimage和rootfs.tar
6. 烧录TF卡启动盘: 
参考搬运:荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)

    1) 删除TF卡所有分区
    2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
        sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
    3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero.dtb拷贝到 这个分区
    4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
        tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录

   附 log如下:

U-Boot SPL 2017.01-rc2 (Nov 08 2018 - 20:06:11)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Nov 08 2018 - 20:06:11 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment

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


U-Boot 2017.01-rc2 (Nov 08 2018 - 20:06:11 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, 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 
reading zImage
3937936 bytes read in 206 ms (18.2 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
11187 bytes read in 26 ms (419.9 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffbb2 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero (root@ubuntu) (gcc version 7.3.0 (Buildroot 2018.08.2)) #3 SMP Fri Nov 9 00:17:39 CST 2018
[    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
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 55096K/65536K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 261K bss, 10440K 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 - 0xc0a366c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d7f0 - 0xc0a7efec   ( 262 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000174] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000404] Console: colour dummy device 80x30
[    0.000438] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000453] pid_max: default: 32768 minimum: 301
[    0.000580] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000597] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001194] CPU: Testing write buffer coherency: ok
[    0.001567] /cpus/cpu@0 missing clock-frequency property
[    0.001591] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002044] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002229] Hierarchical SRCU implementation.
[    0.002729] smp: Bringing up secondary CPUs ...
[    0.002743] smp: Brought up 1 node, 1 CPU
[    0.002751] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002758] CPU: All CPU(s) started in SVC mode.
[    0.003509] devtmpfs: initialized
[    0.006461] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006735] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006765] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006925] pinctrl core: initialized pinctrl subsystem
[    0.007808] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.007943] NET: Registered protocol family 16
[    0.008390] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009493] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009511] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022063] SCSI subsystem initialized
[    0.022350] usbcore: registered new interface driver usbfs
[    0.022417] usbcore: registered new interface driver hub
[    0.022503] usbcore: registered new device driver usb
[    0.022766] pps_core: LinuxPPS API ver. 1 registered
[    0.022777] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022808] PTP clock support registered
[    0.023035] Advanced Linux Sound Architecture Driver Initialized.
[    0.024843] clocksource: Switched to clocksource arch_sys_counter
[    0.035851] NET: Registered protocol family 2
[    0.036445] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036478] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036501] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036624] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036672] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.036863] NET: Registered protocol family 1
[    0.037458] RPC: Registered named UNIX socket transport module.
[    0.037476] RPC: Registered udp transport module.
[    0.037481] RPC: Registered tcp transport module.
[    0.037487] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039536] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.048572] NFS: Registering the id_resolver key type
[    0.048619] Key type id_resolver registered
[    0.048626] Key type id_legacy registered
[    0.049668] random: fast init done
[    0.052668] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.052690] io scheduler noop registered
[    0.052697] io scheduler deadline registered
[    0.052942] io scheduler cfq registered (default)
[    0.052956] io scheduler mq-deadline registered
[    0.052962] io scheduler kyber registered
[    0.057383] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.130187] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133726] console [ttyS0] disabled
[    0.153995] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.730815] console [ttyS0] enabled
[    0.737534] libphy: Fixed MDIO Bus: probed
[    0.741981] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.748597] ehci-platform: EHCI generic platform driver
[    0.754087] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.759759] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.767682] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.794889] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.802044] hub 1-0:1.0: USB hub found
[    0.806020] hub 1-0:1.0: 1 port detected
[    0.810484] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.816779] ohci-platform: OHCI generic platform driver
[    0.822323] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.829049] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.837003] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.909912] hub 2-0:1.0: USB hub found
[    0.913739] hub 2-0:1.0: 1 port detected
[    0.921298] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.931051] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.937938] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.942468] i2c /dev entries driver
[    0.947364] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.956908] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.025085] sunxi-mmc 1c0f000.mmc: base:0xc4869000 irq:23
[    1.032135] usbcore: registered new interface driver usbhid
[    1.037809] usbhid: USB HID core driver
[    1.043484] NET: Registered protocol family 17
[    1.048163] Key type dns_resolver registered
[    1.052570] Registering SWP/SWPB emulation handler
[    1.064226] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.075671] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.081437] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.092806] hub 3-0:1.0: USB hub found
[    1.096782] hub 3-0:1.0: 1 port detected
[    1.101852] using random self ethernet address
[    1.106411] using random host ethernet address
[    1.111878] usb0: HOST MAC 82:36:5c:de:e9:65
[    1.116306] usb0: MAC 7e:61:88:48:1c:f4
[    1.120188] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.127706] g_cdc gadget: g_cdc ready
[    1.131701] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:32 UTC (32)
[    1.139972] vcc3v0: disabling
[    1.142948] vcc5v0: disabling
[    1.145969] ALSA device list:
[    1.148935]   No soundcards found.
[    1.154304] Waiting for root device /dev/mmcblk0p2...
[    1.191988] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.201993] mmc0: new high speed SDHC card at address 0001
[    1.208315] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.214376]  mmcblk0: p1 p2
[    1.246409] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.255643] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.283859] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.356292] EXT4-fs (mmcblk0p2): recovery complete
[    1.363139] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.371387] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.380654] devtmpfs: mounted
[    1.384805] Freeing unused kernel memory: 1024K
[    1.472655] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# 

第一次发帖,先写这么多了:D

#167 Re: 全志 SOC » licheepi_zero开发板 buildroot配置 一键编译 » 2018-11-09 13:47:35

本人的开发环境是vmware workstation 15 pro+ubuntu 16.04_x64
参照沉鱼的帖子荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)
做如下配置:
1.target options配置
target_options.jpg
2.kernel配置
    使用licheepi官方git代码库linux-4.13.y分支
    使用licheepi_zero_deconfig配置(可在内核文件夹arch/arm/configs/下找到)
    使用sun8i-v3s-licheepi-zero.dts,生成dtb(可在内核文件夹arch/arm/boot/dts/下找到)
kernel.jpg
3.uboot配置
    使用Kconfig构建(新版本都是使用Kconfig)
    使用licheepi官方git代码库ubootuboot v3s-spi-experimental分支
    使用licheepi官方uboot里面的LicheePi_Zero_defconfig
bootloader.jpg
4.Toolchain配置
    使用buildroot工具链
    kernel header配置成same as kernel being built
    custom kernel headers series配置成相应的4.13.x版本(可在内核文件夹根目录Makefile文件中查看相应内核版本)
   其他项默认即可,如默认编译uClibc, 开启MMU等
toolchain.jpg
5.其余项配置,可按需配置
Build options,默认配置
System configuration
    -/dev managerment,选择dynamic using devtmpfs+mdev
Target packages,各种第三方软件包,默认配置
Filesystem images,默认是tar
Host utilities,默认配置
Legacy config  options,默认配置

保存配置,执行make,由于buildroot版本较新,可能对系统软件个别依赖包版本较高,可在编译前sudo apt-get update,再sudo apt-get upgrade

#168 全志 SOC » licheepi_zero开发板 buildroot配置 一键编译 » 2018-11-09 12:26:20

checkout
回复: 55

开贴记录配置最新buildroot-2018.08.使用buildroot自带工具链一键编译生成uboot,kernel,dtb和rootfs.
最新稳定版buildroot下载:buildroot-2018.08.02稳定版
我配置好的config文件:配置好的.config

页脚

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

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