您尚未登录。

#1 Re: 全志 SOC » V3S 主线,怎么启用 DRM? » 2021-11-27 00:29:35

@chenzh

你试试更新版本,modetest不正常是因为DRM驱动有问题。我有patch正常的驱动,但因保密问题,不能共享

#3 Re: 全志 SOC » v3s 上调 MIPI-CSI2 摄像头 » 2021-11-16 00:25:12

如果是要实时显示,还得弄DRM,这个好像驱动不完善

#5 全志 SOC » 请问大佬们,那里能买到AIC800的芯片??能批量吗?? » 2021-11-03 18:01:27

wupaul2001
回复: 3

请问大佬们,那里能买到AIC800的芯片??能批量吗??

#9 Re: 全志 SOC » 淘宝V3s摄像头(防瞌睡? 检测司机打电话?)卡在gc0403驱动,有能力继续研究的朋友送两台拆解,跟帖或者联系微信 whycan_cn » 2021-07-05 16:54:34

@哇酷小二
晕哥,v3s性能不行,我已经研究详细算法了,必须有NPU才能实现 防瞌睡? 检测司机打电话?
我现在正在搞这么一个项目,使用RV1126实现,带2T NPU,要使用RKNN把人体识别模型转过来

#10 Re: 全志 SOC » 帮定制V3S的sdk,有偿 » 2021-03-20 10:19:31

我有现成的环境,至于串口配置,还要看你原理图

#12 Re: 全志 SOC » 分享一个好不容易下载到的 XR829 Datasheet V1.0.pdf » 2021-02-13 23:37:12

我能搞到最新固件,但驱动不知道能否搞到,现在我用XR819

#14 Re: SigmaStar/SSD201/SSD202/SSD212 » 有坛友玩SSD201的吗? » 2021-02-09 15:05:04

EE 说:
wupaul2001 说:

已经成功跑起来,并且使用自己的文件系统,但是有一个不好的,就是只能从flash启动

二个不好,就是只能用I2C烧空片,还要买一个下载器。是这样吗?(我还没有跑过)

资料获取程度,下载方式,启动方式。。。都不爱

可是,A7 x 2 + 128M 又很勾引人,毕竟现在是用 F1C100S 跑 debian。。

所以,是想画一块SSD的板子,但有点的下不了手的感觉。有点 dirty

---

求助:有没有网友可以把下载器件的 EEPROM dump 出来发一下呢

如果有下载器 EEPROM,我想做一个下载器 onboard 的板子

不然,,,就整一块 A20

如果你是新手,暂时不建议玩,主线不支持,驱动不开源

#15 Re: SigmaStar/SSD201/SSD202/SSD212 » 有坛友玩SSD201的吗? » 2021-02-09 15:03:38

EE 说:
wupaul2001 说:

已经成功跑起来,并且使用自己的文件系统,但是有一个不好的,就是只能从flash启动

二个不好,就是只能用I2C烧空片,还要买一个下载器。是这样吗?(我还没有跑过)

资料获取程度,下载方式,启动方式。。。都不爱

可是,A7 x 2 + 128M 又很勾引人,毕竟现在是用 F1C100S 跑 debian。。

所以,是想画一块SSD的板子,但有点的下不了手的感觉。有点 dirty

---

求助:有没有网友可以把下载器件的 EEPROM dump 出来发一下呢

如果有下载器 EEPROM,我想做一个下载器 onboard 的板子

不然,,,就整一块 A20

是的,要买一个下载器,55块,这个就不要自己干了吧。

#16 Re: SigmaStar/SSD201/SSD202/SSD212 » 转自Q群的 SSD201/SSD202/SSD20X AD/DXP 原理图与PCB » 2021-02-08 16:12:24

已经打样,并贴好片,系统也完成跑起来了,但不是用这个转的文件打的样

#17 Re: SigmaStar/SSD201/SSD202/SSD212 » 有坛友玩SSD201的吗? » 2021-02-08 16:10:33

已经成功跑起来,并且使用自己的文件系统,但是有一个不好的,就是只能从flash启动

#21 Re: 全志 SOC » V3S好像快断货了,都快买不到芯片了 » 2021-01-27 12:00:24

fastspeet 说:

z真的假的呀,F1C200S会不会断货呀


200s比V3s断货还早,手上还有200多只上过机没上电的。需要可联系。

#22 Re: 全志 SOC » V3S好像快断货了,都快买不到芯片了 » 2021-01-26 13:48:03

varzhou 说:

大家都是通过谁家买的V3S芯片啊,我需要点搞样机


直接断了,我想入3K都没货了

#24 Re: 全志 SOC » F1C100s涨价又缺货,有什么推荐的替代? » 2021-01-25 18:30:23

Blueskull 说:
wupaul2001 说:

热风枪吹不坏的

汕头佬会用正常的320度吹?他们会用450度速战速决,或者直接下锅。
我手里有汕头来的F1C200S,坏的,表面塑料都起皮了。

所以我可以保证好的

#25 Re: 全志 SOC » F1C100s涨价又缺货,有什么推荐的替代? » 2021-01-25 16:59:06

Blueskull 说:
zzm24 说:

由于价格问题转向淘宝6元拆机,2000目砂纸打磨后上机,生产出来贼漂亮了
烧录,测试,结果翻车了.晶振不起振,DRAM坏,莫名不开机,翻车了,大家慎买F1C100S的拆机

F1c的封装的问题,热风吹两下就坏。这种带内存合封的芯片经不起汕头佬那种高温或者油炸暴力拆机。

热风枪吹不坏的

#27 Re: 全志 SOC » F1C100s涨价又缺货,有什么推荐的替代? » 2021-01-25 16:48:11

smartcar 说:
wupaul2001 说:

还有200多上过机的,没通电的

是连板子一起卖么?

拆卖

#34 Re: SigmaStar/SSD201/SSD202/SSD212 » 有没有人用过SigmaStar SSD201这颗芯片,感觉挺不错的啊 » 2020-12-08 17:41:05

雷霆跳蚤 说:

像这种搞个芯片资料还要遮遮掩掩的,我直接就排除了。国外的芯片生怕你不知道芯片的资料,国内的刚好反过来,话说开放这些资料主要是怕竞争对手抄还是怎么地?

这个芯片是台湾的

#37 Re: 全志 SOC » V3s使用gstreamer的插件openmax调用cedar硬解码,荔枝派zero测试通过 » 2020-11-27 15:49:34

逸俊晨晖 说:

40楼
看gstreamer相关资料

41楼
gst-omx认不出全志在openmax自己定义的颜色空间
看一楼的openmax接口修改部分
一种可能是没按照我说的添加颜色空间 另一种可能是添加了 但是buildroot编译标记没清理好导致改的没编译

42楼
gst对omx注册失败
看一楼的gst-omx注册部分


你在説我踩DE的坑吗?我已经完全填好了,只是还没有共享上来。F1C那个不能半透的BUG,在V3s上也有,我已经填好

#38 Re: 全志 SOC » 关于V3s display-engine/display_clocks /mixer0和tcon0 有关lcd时钟配置的一些问题 » 2020-11-27 15:20:51

hanzixi_angel 说:
wupaul2001 说:

不想换内核的话。修改/drivers/gpu/drm/sun4i/sun4i_tcon.c

-tcon->dclk_min_div = 6;
+tcon->dclk_min_div = 1;

 

这个就是分频设置了吧

解决最小分频限制

#39 Re: 全志 SOC » 关于V3s display-engine/display_clocks /mixer0和tcon0 有关lcd时钟配置的一些问题 » 2020-11-27 15:20:07

hanzixi_angel 说:
wupaul2001 说:

我使用5,2的内核


我使用的也是5.2的内核   您是从那个地址clone的?


主线clone的

#40 Re: 全志 SOC » 关于V3s display-engine/display_clocks /mixer0和tcon0 有关lcd时钟配置的一些问题 » 2020-11-24 18:13:15

不想换内核的话。修改/drivers/gpu/drm/sun4i/sun4i_tcon.c

-tcon->dclk_min_div = 6;
+tcon->dclk_min_div = 1;

#43 Re: 全志 SOC » 关于V3s display-engine/display_clocks /mixer0和tcon0 有关lcd时钟配置的一些问题 » 2020-11-19 00:40:21

不用搞了,直接换新的内核,虽然我知道是那里问题,根本问题不在设备树

#49 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 展会现场看到的机器狗 » 2020-09-26 01:03:17

达克罗德 说:
wupaul2001 说:

狗用的不是舵机,用的是FOC的无刷电机

谢谢指正,请问FOC能否做到关节静止保持一个角度?

可以的

#50 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 展会现场看到的机器狗 » 2020-09-22 12:30:51

达克罗德 说:
wupaul2001 说:

调整姿态

我怀疑是舵机必须有一定速度才能微调和维持某个角度,否则会过流?

狗用的不是舵机,用的是FOC的无刷电机

#51 Re: DIY/综合/Arduino/写字机/3D打印机/智能小车/平衡车/四轴飞行/MQTT/物联网 » 展会现场看到的机器狗 » 2020-09-18 12:49:53

达克罗德 说:

好像是基于MIT的狗。
一个疑问,为什么机器狗即使不跑动也得不停原地踏步呢?看到好多机器狗都这样

调整姿态

#60 Re: 全志 SOC » 请教licheepi-zero使用4.19内核,LCD显示不正常 » 2020-08-14 13:55:14

我想起来那个BUG不是存在内核,是U-BOOT,而且是X3的BUG

#62 Re: 全志 SOC » 请教licheepi-zero使用4.19内核,LCD显示不正常 » 2020-08-13 10:26:27

觉得你寻找问题的方向错了
1.你设备树中Panel节点对应的LCD型号选对了吗?
2.fb0是drm上真实的一个层
3.Linux 4版本VSYNC控制有一个BUG, 具体看你屏使用的是DE MODE还是SYNC
4.你的问题应该出在屏的时序上,而不是FB

#66 Re: 全志 SOC » 能在linux下使用h264编解码功能的V3S方案,只有海豚派吗? » 2020-07-30 11:51:26

wlcccccc 说:

可喜可贺啊 有代码没?


寻找aodzip大佬的贴子

#70 全志 SOC » patch了aodzip大佬的mipi-csi摄像头驱动,支持RGB565LE与RGB565BE » 2020-07-25 22:25:41

wupaul2001
回复: 13

patch了aodzip大佬的mipi-csi摄像头驱动,

支持RGB565LE与RGB565BE,

但实际速度还不如YUV420P,

发上来让大伙测试测试

sun6i-csi.zip

#71 全志 SOC » 关于v3s关机后,使用后备电池时钟不跑的解决方法 » 2020-07-14 16:32:36

wupaul2001
回复: 4

修改文件 drivers/rtc/rtc-sun6i.c

添加

#define SUN6I_LOSC_CTRL_FIX			BIT(15)				//fix bug, when powerdown
#define SUN6I_LOSC_CTRL_EXT_OSC_GSM		BIT(3)

修改

/* Switch to the external, more precise, oscillator */
writel(SUN6I_LOSC_CTRL_KEY | SUN6I_LOSC_CTRL_EXT_OSC | SUN6I_LOSC_CTRL_EXT_OSC_GSM | SUN6I_LOSC_CTRL_FIX,
	       rtc->base + SUN6I_LOSC_CTRL);

#75 Re: 全志 SOC » V3S 自己按照zero设计了个板子 开机不亮 555555555555 » 2020-06-16 23:47:05

V3s中间的热焊盘有焊上吗?那个必须焊的,是V3s的GND

#80 Re: DSP » 公司急需DSP数字电源大牛 » 2020-06-03 14:22:59

做了两年的电源,但不想努力了

#87 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-26 11:46:30

aodzip 说:

我加你

大佬我QQ是110460775

#88 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-26 11:44:31

aodzip 说:

看了下OV5647在主线的驱动,输出的格式好像只支持MEDIA_BUS_FMT_SBGGR8_1X8
而我5640的DEMO是MEDIA_BUS_FMT_UYVY8_2X8
你可能要自己改很多东西


好的,那我换个摄像头吧,谢谢大佬指点了

#89 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-26 11:41:28

aodzip 说:

你方便远程么?

media-ctl --set-v4l2 '5:0[fmt:UYVY8_2X8/1920x1080]'

可以的,能加一吓吗?

#90 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-26 11:21:34

aodzip 说:

可能是因为摄像头不支持FPS设置,尝试这个指令

media-ctl --set-v4l2 '5:0[fmt:UYVY8_2X8/1920x1080]'

大佬,能帮忙看看吗?

#91 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-26 10:57:38

我试了那命令,还是不行,估计是不支持了。我用media-ctl -p打印如下

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
    pad0: Sink
        <- "ov5647 1-0036":0 [ENABLED,IMMUTABLE]

- entity 5: ov5647 1-0036 (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
    pad0: Source
        -> "sun6i-csi":0 [ENABLED,IMMUTABLE]

#92 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 22:56:39

aodzip 说:

可能是因为摄像头不支持FPS设置,尝试这个指令

media-ctl --set-v4l2 '5:0[fmt:UYVY8_2X8/1920x1080]'

好的, 我明天试试,谢谢指点

#93 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 18:05:28

aodzip 说:

这个驱动在编写的时候,是基于
Buildroot环境buildroot 2020.02.1
Linux Kernel版本5.4.35

你先准备一个相同的环境,内核我认为都是5.4版本的就可以接受


环境弄好了,运行media-ctl报
# media-ctl --set-v4l2 '5:0[fmt:UYVY8_2X8/1920x1080@1/15]'
Unable to setup formats: Inappropriate ioctl for device (25)

#94 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 16:15:35

aodzip 说:

请先严格按照github上所指示的环境和初始化方法配置。


buildroot 2019把media-ctl去掉了,我该怎么弄,我是v3s

#95 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 16:12:18

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero+ (paulwu@paulwu-virtual-machine) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #57 SMP Mon May 25 13:44:58 CST 2020
[    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] On node 0 totalpages: 15784
[    0.000000]   Normal zone: 124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 15784 pages, LIFO batch:3
[    0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[    0.000000] pcpu-alloc: s34508 r8192 d22836 u65536 alloc=16*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15660
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 50572K/63136K available (7168K kernel code, 303K rwdata, 1968K rodata, 1024K init, 268K bss, 12564K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x488 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000213] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000465] Console: colour dummy device 80x30
[    0.000764] printk: console [tty0] enabled
[    0.000822] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000853] pid_max: default: 32768 minimum: 301
[    0.001024] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001056] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001897] CPU: Testing write buffer coherency: ok
[    0.002472] /cpus/cpu@0 missing clock-frequency property
[    0.002517] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003353] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003613] rcu: Hierarchical SRCU implementation.
[    0.004189] smp: Bringing up secondary CPUs ...
[    0.004229] smp: Brought up 1 node, 1 CPU
[    0.004246] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004261] CPU: All CPU(s) started in SVC mode.
[    0.005357] devtmpfs: initialized
[    0.009161] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009525] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009575] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009844] pinctrl core: initialized pinctrl subsystem
[    0.011013] NET: Registered protocol family 16
[    0.011614] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012924] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012973] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.039450] SCSI subsystem initialized
[    0.039780] usbcore: registered new interface driver usbfs
[    0.039867] usbcore: registered new interface driver hub
[    0.039992] usbcore: registered new device driver usb
[    0.040421] mc: Linux media interface: v0.10
[    0.040485] videodev: Linux video capture interface: v2.00
[    0.040836] Advanced Linux Sound Architecture Driver Initialized.
[    0.042375] clocksource: Switched to clocksource arch_sys_counter
[    0.054758] NET: Registered protocol family 2
[    0.055616] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.055685] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.055725] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.055756] TCP: Hash tables configured (established 1024 bind 1024)
[    0.055921] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055988] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.056335] NET: Registered protocol family 1
[    0.057302] RPC: Registered named UNIX socket transport module.
[    0.057349] RPC: Registered udp transport module.
[    0.057362] RPC: Registered tcp transport module.
[    0.057375] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.059997] Initialise system trusted keyrings
[    0.060422] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.068745] NFS: Registering the id_resolver key type
[    0.068833] Key type id_resolver registered
[    0.068850] Key type id_legacy registered
[    0.068877] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.104345] Key type asymmetric registered
[    0.104391] Asymmetric key parser 'x509' registered
[    0.104502] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.104528] io scheduler mq-deadline registered
[    0.104543] io scheduler kyber registered
[    0.109950] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.110479] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.111378] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.179835] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.183305] printk: console [ttyS0] disabled
[    0.203639] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.765386] printk: console [ttyS0] enabled
[    0.793147] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.804317] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.840350] panel-simple panel: panel supply power not found, using dummy regulator
[    0.849922] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.862282] libphy: Fixed MDIO Bus: probed
[    0.867252] PPP generic driver version 2.4.2
[    0.871890] PPP BSD Compression module registered
[    0.876684] PPP Deflate Compression module registered
[    0.881759] PPP MPPE Compression module registered
[    0.886578] NET: Registered protocol family 24
[    0.891182] usbcore: registered new interface driver asix
[    0.896698] usbcore: registered new interface driver ax88179_178a
[    0.902872] usbcore: registered new interface driver cdc_ether
[    0.908745] usbcore: registered new interface driver net1080
[    0.914468] usbcore: registered new interface driver cdc_subset
[    0.920419] usbcore: registered new interface driver zaurus
[    0.926062] usbcore: registered new interface driver simcom_wwan
[    0.932138] usbcore: registered new interface driver sierra_net
[    0.938149] usbcore: registered new interface driver cdc_ncm
[    0.943835] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.950356] ehci-platform: EHCI generic platform driver
[    0.955939] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.961567] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.969580] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.002386] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.009638] hub 1-0:1.0: USB hub found
[    1.013641] hub 1-0:1.0: 1 port detected
[    1.018292] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.024648] ohci-platform: OHCI generic platform driver
[    1.030229] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.036986] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.044966] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.117475] hub 2-0:1.0: USB hub found
[    1.121334] hub 2-0:1.0: 1 port detected
[    1.128933] usbcore: registered new interface driver usb-storage
[    1.135283] usbcore: registered new interface driver usbserial_generic
[    1.141861] usbserial: USB Serial support registered for generic
[    1.147991] usbcore: registered new interface driver option
[    1.153644] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.160782] usbcore: registered new interface driver qcserial
[    1.166640] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.174253] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.185799] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.191586] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.200953] hub 3-0:1.0: USB hub found
[    1.204984] hub 3-0:1.0: 1 port detected
[    1.211145] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.216351] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.221027] i2c /dev entries driver
[    1.225840] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.241427] bm_cw2015_init
[    1.245032] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.253845] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.290370] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.297736] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.332474] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.340682] usbcore: registered new interface driver usbhid
[    1.346384] usbhid: USB HID core driver
[    1.354882] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.362526] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.370075] Initializing XFRM netlink socket
[    1.374534] NET: Registered protocol family 17
[    1.379625] Key type dns_resolver registered
[    1.384205] Registering SWP/SWPB emulation handler
[    1.390189] Loading compiled-in X.509 certificates
[    1.400452] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0x(ptrval)
[    1.411165] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    1.431195] Console: switching to colour frame buffer device 128x37
[    1.447318] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[    1.457761] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc084b380)
[    1.465551] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc084867c)
[    1.473486] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.480256] [drm] No driver support for vblank timestamp query.
[    1.486337] checking generic (43da8000 258000) vs hw (0 ffffffff)
[    1.486344] fb0: switching to sun4i-drm-fb from simple
[    1.491753] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.505301] Console: switching to colour dummy device 80x30
[    1.511235] mmc0: new high speed SDHC card at address 0001
[    1.518786] mmcblk0: mmc0:0001 N1BN1 7.52 GiB 
[    1.525001]  mmcblk0: p1 p2
[    1.530517] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.584642] Console: switching to colour frame buffer device 128x37
[    1.608202] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.616836] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.625671] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.636094] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.644762] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T01:14:47 UTC (4487)
[    1.653452] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.665301] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.676133] vcc3v0: disabling
[    1.683126] vcc5v0: disabling
[    1.689943] ALSA device list:
[    1.696706]   #0: V3s Audio Codec
[    1.704505] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.717099] cfg80211: failed to load regulatory.db
[    1.758347] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.770763] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.785121] devtmpfs: mounted
[    1.793540] Freeing unused kernel memory: 1024K
[    1.802285] Run /sbin/init as init process
[    1.951507] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.188946] random: dd: uninitialized urandom read (512 bytes read)
[    3.769924] random: crng init done

#96 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 16:11:16

aodzip 说:

请提供更详细的信息:Linux版本,media-ctl所使用的参数,dmesg日志
而且github上的版本比坑网缓存的驱动改动已经很大了,你是从github同步的代码吗?


我是从github下的,我文件系统没安装media-ctl,系统是linux 5.2

#97 Re: 全志 SOC » 摄像头驱动 主线DVP与MIPI-CSI2 » 2020-05-25 15:53:23

aodzip 说:

白嫖: https://github.com/aodzip/sun6i-mipi-csi

MIPI-CSI2 驱动已经测试OV5640摄像头2Lane模式 1080P@15FPS 720P@30FPS
DVP没测试,因为主线本身就支持DVP,希望没给它改坏吧





以下由 @哇酷小二 2020-05-04 添加:
-------------------------------------

不方便打开github的朋友可以此处下载: sun6i-mipi-csi_20200504.7z


大佬,我移植后,运行fswebcam出现以下情况,请是什么问题?我用的摄像头是ov5647

# fswebcam -S 5 -d /dev/video0 -p YUV420P -r 320x240 test.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Error starting stream.
VIDIOC_STREAMON: Invalid argument
Unable to use mmap. Using read instead.
Unable to use read.

#98 Re: 全志 SOC » 搞定NS2009驱动 校准后没有大幅度的跳点 » 2020-05-22 16:50:56

为啥不直接移植tslib的呢,这个触摸库非常完善

#99 Re: 全志 SOC » 小智科技X3开发板正式开卖,2.54排针全接口引出,DIY神器。 (新货到, 第三批开放购买)Q群 202900925 » 2020-05-22 16:46:30

小智科技 说:

核心板默认没带任何储存,价格也做了修改,不带EMMC 79、带8G 三星 EMMC 99,不包邮,大家对包邮不太满意,对于买多个核心板的用户不划算,所以取消包邮降低售价,批量价格Q详谈。


昨晚付款了,什么时候能发货??

#100 Re: 全志 SOC » F1C100s看门狗失效bug » 2020-05-22 16:44:15

不用研究了,F1C100s看门狗初始化不对,你试试热重启,如果重启不了,看门狗就不正常了

#104 Re: 全志 SOC » 全志X3 样片零售 4核A7 内置128MB 512MB内存 双层板神器 » 2020-03-27 15:41:21

小智科技 说:

开发板还没定价,核心板大概几十元,比全淘宝A33核心板要便宜不少,主要走量!

512M版本大概什么时候有???

#106 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2020-03-23 16:25:56

迪卡 说:

对,同关注

F1c200s 硬件只有三个端点可用,估计无解了。

#109 Re: 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-12 17:02:58

smartcar 说:

也就是说wifi驱动没有bug,设备树配置修改就可以了?

不是,内核,驱动,设备树配置都得改

#110 Re: 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-12 16:24:15

终于驱动起来了

        brcmf: wifi@1 {
                reg = <1>;
                compatible = "brcm,bcm4329-fmac";

        };

最后不要中断,否则会出现超时

#112 Re: 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-12 12:34:08

# [  232.527064] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1

# [  235.282051] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[  235.291898] ieee80211 phy1: brcmf_bus_started: failed: -110
[  235.301435] ieee80211 phy1: brcmf_attach: dongle is not responding: err=-110
[  235.313568] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

新问题又来了

#113 Re: 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-12 12:13:34

问题已找到,是驱动早于rootfs加载,所以驱动不能编译到内核,只能编译为模块,然后加载,否则就会找不到固件

#114 Re: 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-11 17:08:48

晕哥 说:

https://blog.csdn.net/mike8825/article/details/51171055

https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/errno-base.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H

#define	EPERM		 1	/* Operation not permitted */
#define	ENOENT		 2	/* No such file or directory */
#define	ESRCH		 3	/* No such process */
#define	EINTR		 4	/* Interrupted system call */
#define	EIO		 5	/* I/O error */
#define	ENXIO		 6	/* No such device or address */
#define	E2BIG		 7	/* Argument list too long */
#define	ENOEXEC		 8	/* Exec format error */
#define	EBADF		 9	/* Bad file number */
#define	ECHILD		10	/* No child processes */
#define	EAGAIN		11	/* Try again */
#define	ENOMEM		12	/* Out of memory */
#define	EACCES		13	/* Permission denied */
#define	EFAULT		14	/* Bad address */
#define	ENOTBLK		15	/* Block device required */
#define	EBUSY		16	/* Device or resource busy */
#define	EEXIST		17	/* File exists */
#define	EXDEV		18	/* Cross-device link */
#define	ENODEV		19	/* No such device */
#define	ENOTDIR		20	/* Not a directory */
#define	EISDIR		21	/* Is a directory */
#define	EINVAL		22	/* Invalid argument */
#define	ENFILE		23	/* File table overflow */
#define	EMFILE		24	/* Too many open files */
#define	ENOTTY		25	/* Not a typewriter */
#define	ETXTBSY		26	/* Text file busy */
#define	EFBIG		27	/* File too large */
#define	ENOSPC		28	/* No space left on device */
#define	ESPIPE		29	/* Illegal seek */
#define	EROFS		30	/* Read-only file system */
#define	EMLINK		31	/* Too many links */
#define	EPIPE		32	/* Broken pipe */
#define	EDOM		33	/* Math argument out of domain of func */
#define	ERANGE		34	/* Math result not representable */

#endif

看起来是目录或文件不存在: No such file or directory


晕哥,我目录和文件都对的

#115 全志 SOC » 请教大家,我编译好AP6181的驱动后,为何死活加载不了固件 » 2020-03-11 16:19:45

wupaul2001
回复: 15

如题

终端打印

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero+ (paulwu@paulwu-virtual-machine) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #41 SMP Tue Mar 10 23:13:46 PDT 2020
[    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 s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16129
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 51424K/65024K available (8192K kernel code, 319K rwdata, 2016K rodata, 1024K init, 269K bss, 13600K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x488 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000204] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000441] Console: colour dummy device 80x30
[    0.000738] printk: console [tty0] enabled
[    0.000793] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000823] pid_max: default: 32768 minimum: 301
[    0.000991] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001022] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001835] CPU: Testing write buffer coherency: ok
[    0.002401] /cpus/cpu@0 missing clock-frequency property
[    0.002449] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003303] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003560] rcu: Hierarchical SRCU implementation.
[    0.004134] smp: Bringing up secondary CPUs ...
[    0.004175] smp: Brought up 1 node, 1 CPU
[    0.004193] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004207] CPU: All CPU(s) started in SVC mode.
[    0.005287] devtmpfs: initialized
[    0.008934] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009282] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009333] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009587] pinctrl core: initialized pinctrl subsystem
[    0.010726] NET: Registered protocol family 16
[    0.011316] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012617] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012665] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.038941] SCSI subsystem initialized
[    0.039258] usbcore: registered new interface driver usbfs
[    0.039340] usbcore: registered new interface driver hub
[    0.039462] usbcore: registered new device driver usb
[    0.039737] mc: Linux media interface: v0.10
[    0.039792] videodev: Linux video capture interface: v2.00
[    0.040093] Advanced Linux Sound Architecture Driver Initialized.
[    0.042095] clocksource: Switched to clocksource arch_sys_counter
[    0.053867] NET: Registered protocol family 2
[    0.054698] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.054769] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054807] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.054840] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054995] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055058] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055385] NET: Registered protocol family 1
[    0.056331] RPC: Registered named UNIX socket transport module.
[    0.056376] RPC: Registered udp transport module.
[    0.056390] RPC: Registered tcp transport module.
[    0.056402] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.058959] Initialise system trusted keyrings
[    0.059390] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.067757] NFS: Registering the id_resolver key type
[    0.067841] Key type id_resolver registered
[    0.067857] Key type id_legacy registered
[    0.067887] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.103864] Key type asymmetric registered
[    0.103911] Asymmetric key parser 'x509' registered
[    0.104022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.104052] io scheduler mq-deadline registered
[    0.104067] io scheduler kyber registered
[    0.109259] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.109731] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.110592] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.179327] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.182706] printk: console [ttyS0] disabled
[    0.203025] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.764809] printk: console [ttyS0] enabled
[    0.790741] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.801761] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.837510] panel-simple panel: panel supply power not found, using dummy regulator
[    0.847024] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.858930] libphy: Fixed MDIO Bus: probed
[    0.863847] PPP generic driver version 2.4.2
[    0.868510] PPP BSD Compression module registered
[    0.873305] PPP Deflate Compression module registered
[    0.878379] PPP MPPE Compression module registered
[    0.883200] NET: Registered protocol family 24
[    0.887935] usbcore: registered new interface driver asix
[    0.893497] usbcore: registered new interface driver ax88179_178a
[    0.899639] usbcore: registered new interface driver cdc_ether
[    0.905563] usbcore: registered new interface driver net1080
[    0.911289] usbcore: registered new interface driver cdc_subset
[    0.917286] usbcore: registered new interface driver zaurus
[    0.922949] usbcore: registered new interface driver simcom_wwan
[    0.929005] usbcore: registered new interface driver sierra_net
[    0.935007] usbcore: registered new interface driver cdc_ncm
[    0.940670] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.947219] ehci-platform: EHCI generic platform driver
[    0.952774] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.958406] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.966415] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.002069] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.009320] hub 1-0:1.0: USB hub found
[    1.013292] hub 1-0:1.0: 1 port detected
[    1.017959] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.024315] ohci-platform: OHCI generic platform driver
[    1.029892] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.036640] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.044637] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.117149] hub 2-0:1.0: USB hub found
[    1.121007] hub 2-0:1.0: 1 port detected
[    1.128676] usbcore: registered new interface driver usb-storage
[    1.135003] usbcore: registered new interface driver usbserial_generic
[    1.141589] usbserial: USB Serial support registered for generic
[    1.147713] usbcore: registered new interface driver option
[    1.153369] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.160540] usbcore: registered new interface driver qcserial
[    1.166416] usbserial: USB Serial support registered for Qualcomm USB modem
[    1.173983] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.185512] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.191302] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.200748] hub 3-0:1.0: USB hub found
[    1.204758] hub 3-0:1.0: 1 port detected
[    1.210938] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.216144] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.220799] i2c /dev entries driver
[    1.225748] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.237260] bm_cw2015_init
[    1.240090] cw2015_probe...
[    1.334045] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.342889] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.379753] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.387079] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.422170] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.430471] usbcore: registered new interface driver usbhid
[    1.436157] usbhid: USB HID core driver
[    1.442488] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.450024] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.457620] Initializing XFRM netlink socket
[    1.461953] NET: Registered protocol family 17
[    1.467009] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.474727] Key type dns_resolver registered
[    1.479265] Registering SWP/SWPB emulation handler
[    1.485481] Loading compiled-in X.509 certificates
[    1.495734] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0x(ptrval)
[    1.506357] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[    1.518828] Console: switching to colour frame buffer device 60x34
[    1.527445] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[    1.537766] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc094b380)
[    1.549167] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc094867c)
[    1.560714] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.571172] [drm] No driver support for vblank timestamp query.
[    1.580971] fb0: switching to sun4i-drm-fb from simple
[    1.589204] Console: switching to colour dummy device 80x30
[    1.596013] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.606920] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.618850] mmc0: new high speed SDHC card at address aaaa
[    1.620818] mmcblk0: mmc0:aaaa SA08G 7.40 GiB 
[    1.623423]  mmcblk0: p1 p2
[    1.626888] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.628393] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.629887] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.632578] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.646592] random: fast init done
[    1.647213] mmc1: new high speed SDIO card at address 0001
[    1.650913] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1
[    1.651144] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43362-sdio.bin failed with error -2
[    1.704014] usb-storage 1-1:1.0: USB Mass Storage device detected
[    1.704648] scsi host0: usb-storage 1-1:1.0
[    1.931135] Console: switching to colour frame buffer device 128x37
[    2.069133] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    2.081121] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    2.093528] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    2.107517] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    2.119907] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T01:56:29 UTC (6989)
[    2.132272] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.147666] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.158272] vcc3v0: disabling
[    2.165068] vcc5v0: disabling
[    2.171658] ALSA device list:
[    2.178208]   #0: V3s Audio Codec
[    2.185926] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.198381] cfg80211: failed to load regulatory.db
[    2.252896] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[    2.269809] EXT4-fs (mmcblk0p2): recovery complete
[    2.280318] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.292399] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.304252] devtmpfs: mounted
[    2.312396] Freeing unused kernel memory: 1024K
[    2.320927] Run /sbin/init as init process
[    2.458899] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

brcmfmac43362-sdio.bin 和brcmfmac43362-sdio.txt都放到lib/firmware/brcm里了

#118 全志 SOC » 关于F1C100s打开watchdog后仍然无法重启的解决办法 » 2020-03-09 00:42:00

wupaul2001
回复: 4

参考了坛上一位高人的贴子,到内核里打开watchdog,但是结果仍然无法重启。

由于项目需要,于是用了奋战了一个晚上到3点,终找到了问题所在, 其实就是watchdog的寄存器偏移不对,最后只要修改sunxi-f1c100s.dtsi

把wdt: watchdog@1c20ca0 {
   compatible = "allwinner, suniv-f1c100s-wdt",
                       "allwinner, sun4i-a10-wdt";
   reg = <0x1c20ca0 0x20>;
}
改为
wdt: watchdog@1c20ca0 {
   compatible = "allwinner, suniv-f1c100s-wdt",
                       "allwinner, sun6i-a31-wdt";
   reg = <0x1c20ca0 0x20>;
}

这样就能正常重启了,我使用的是5.2的内核,其它的内核有可能不存在这个情况
存储器使用的是TF卡,如果是SPI NAND,请修改驱动退出4byte模式

#121 Re: 全志 SOC » 关于nano pi从u-boot启动到kernal出现1秒的花屏问题的分析及解决方法 » 2020-03-03 13:33:30

达克罗德 说:

有可能,我查一下。

另外,在uboot中需要保留这个1MB吗?我看有人说需要设置CONFIG_SYS_MEM_TOP_HIDE

Continuity with Linux Boot Logo
If you want Linux to keep your U-Boot Logo during boot process, then some tweaks are needed:
define CONFIG_SYS_MEM_TOP_HIDE in U-Boot configuration file, here we reserve 2MBytes:
#define CONFIG_SYS_MEM_TOP_HIDE         (2 << 20)

Uboot本来就用这1M作为fb

#122 Re: 全志 SOC » 关于nano pi从u-boot启动到kernal出现1秒的花屏问题的分析及解决方法 » 2020-03-03 11:36:43

达克罗德 说:

谢谢楼主分享,我f1c也有同样问题。不过我在玩a33主线Linux的时候,没有这个问题,我也没有去设置kernel的mem大小,为什么就没问题呢?按照一楼的思路,只要不保留高位地址就应该会出问题

不一定在启动参数,可以在设备树中保留, 可以修改ioremap保留,方法各式各样

#123 Re: 全志 SOC » 关于nano pi从u-boot启动到kernal出现1秒的花屏问题的分析及解决方法 » 2020-03-03 10:17:19

gunge204 说:

终于有人对这个问题动手了,这也是困扰了我很久的问题。感谢分享
不过内核的东西我了解很少,请问这里的“mem=63M“,是在uboot里设置的传递给kernel的参数的吗?就是修改uboot中的bootargs,加上这么一句?

对的

#125 全志 SOC » 关于nano pi从u-boot启动到kernal出现1秒的花屏问题的分析及解决方法 » 2020-03-03 00:52:22

wupaul2001
回复: 16

由于f1c系列的性价比,所以我选用了f1c做产品,但所有程序和硬件都做好时,突然想起了从u-boot启动到kernal出现1秒的花屏这个问题,这问题客户是百分百不能接受的,于是花了两天时间去解决这问题。

1。从u-boot的源代码 /drivers/video/sunix/sunix_display.c里找到sunxi_simplefb_setup这个函数,再往里面看找到
    start = gd->bd->bi_dram[0].start;
    size = gd->bd->bi_dram[0].size - sunxi_display.fb_size;
这两行代码説明,framebuffer的内存是放到总内存大小的最后,gd->bd->bi_dram[0].start,gd->bd->bi_dram[0].size这两个是Uboot从硬件里获取到的内存起始地址及大小。

于是在网上找资料,找了很多资料都説fb放到最后就不会被kernal覆盖掉。但奇怪了,fb已经在最后了为啥还是花屏。

2。直接今天看到/drivers/video/sunix/sunix_display.c, 里有这么一段话
    /*
     * Do not report the framebuffer as free RAM to the OS, note we cannot
     * use fdt_add_mem_rsv() here, because then it is still seen as RAM,
     * and e.g. Linux refuses to iomap RAM on ARM, see:
     * linux/arch/arm/mm/ioremap.c around line 301.
     */
于是在网上再找资料,无意中看到一篇文章説用cat /proc/iomem查看kernal中占用的RAM空间,运行后,注意到80000000-83FFFFFF : System RAM
靠,这不是把fb干掉了,难怪花屏,然后按着文章试用在uboot的启动参数里加入memmap=1m$0x83EFFFFF,结果还是不行,试了好几个memmap方式都不行, 最后想了一吓反正kernal都是从0x80000000开始,我是否可以用mem=63M的参数限制kernal的RAM空间呢。抱着一丝的希望。结果成功了,启动不花屏了。

3。最后提醒大家,fb这个空间不一定是1M的,空间最小大小是按屏幕分辩率的,例如我的480x272的屏为例最小大小为480x272x4=510K,为了方便,我直接保留1M,还有,我的CPU是F1C200s,所以我的是mem=63M, 如果是100s那就应该是31M了。

本人写作水平有限,敬请见谅

#127 Re: 全志 SOC » 使用Buildroot编译出来的Qmake编译异常求解。 » 2019-12-23 17:57:03

晕哥 说:

https://whycan.cn/files/members/3/2019-12-23_143701.png

cd /opt/buildroot-2019.08-sf/output/build/qt5serialbus-5.12.4/examples/serialbus/modbus/master

/opt/buildroot-2019.08-sf/output/host/bin/qmake master.pro

make

跟着楼上试了一把, 一切正常。


谢谢晕哥,我路径错了

#128 全志 SOC » 使用Buildroot编译出来的Qmake编译异常求解。 » 2019-12-23 10:57:46

wupaul2001
回复: 4

使用Buildroot编译出来的Qmake编译异常,我有个APP需要用到serialport和mutilmedia模块,可是明明在menuconfig已经选择了这两个模块,qmake -v里指向引用的lib也找到,可是一编译就报Error unknow module: serialport mutilmedia.有朋友遇到过吗???

#133 Re: 全志 SOC » 新版buildroot去掉了mplayer,请问大家,用那个播放器代替??? » 2019-11-04 16:42:11

换回2017, 不是QT5.12.4, 低版本QT不支持Mqtt, 一连串的不支持

#142 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-11-02 12:51:48

有兄弟有F1C上可以高效执行的壳么?

#143 Re: VMWare/Linux/Ubuntu/Fedora/CentOS/U-BOOT » 习惯了在vps上面编译代码,又买了一个40G ssd/2G RAM/3x Intel Xeon 搬瓦工vps(运行远程桌面,可以Qt编程) » 2019-11-02 12:49:58

@晕哥 咋不自己搭?比这个便宜多了,我公司两台服务器,才4K多一台. 我们自己写了个程序,动态IP也能公网访问

#147 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 17:39:05

@达克罗德 问题这个虚拟机F1C运行起来效率如何

#148 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 16:46:05

用加密芯片,生成动态码,这个最好,然后APP加壳,这样就很难拿到真正的key了

#150 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 13:46:18

只要加壳后,使APP难以反汇编,就能得到效果

#151 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 13:45:31

APP生成一个随机数,用密钥加密后送给加密芯片,详细方法可以参数RFID的加密方式,RFID卡被破,是因为他的随机数发生器是伪的,每次重新上电,随机数的产生顺序都一样

#152 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 13:39:43

不过想了一吓,加密IC和APP加壳一起用,能有效保护一般破解

#153 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 13:38:22

现在就是密钥要怎样存放,才能安全,才能让破解者,即使用逻辑分析仪,也无法分析出明文

#154 Re: 全志 SOC » 各位F1C100s有研究过怎样加密吗?? » 2019-10-31 13:26:44

@达克罗德 昨晚刚看到有一个加壳软件,可以混乱反汇编,而且现在一般的脱壳软件脱不了,就是不知道加了一层壳后,F1C200s的运行速度。把密钥放加壳的程序里最实际

#157 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-30 21:20:56

@晕哥,按这个patch不一定可行,因为要.config配合,否则整个usb都不能用

#159 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-26 19:47:10

checkout 说:

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

wupaul2001 说:

@checkout 已测试,hub没问题

包里有已打包好的固件

#162 Re: 全志 SOC » 编译内核,遇到怪问题,请高手帮忙解决 » 2019-10-26 13:58:36

@晕哥 我没详细对比,但我觉得应该是我的环境有问题

#163 全志 SOC » 编译内核,遇到怪问题,请高手帮忙解决 » 2019-10-26 13:33:10

wupaul2001
回复: 3

遇到怪问题,请高手帮忙解决,我现在的内核版本是5.2,很奇怪,只要我用menuconfig配置后,编译生成的zImage OTG必定不能使用,因为.config里没有对network 的支持,但我有记事本粘贴后生成的文件image是有效的,但只要我在记事本打开RNDIS功能,otg又失效了,有高手遇到过吗?4.19内核存在同样情况

#164 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-25 22:31:05

修改几个文件,等吓我放网盘上,让大家下载

#165 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2019-10-25 21:44:30

wupaul2001
回复: 69
U-Boot 2018.01-05679-g013ca457fd (Oct 15 2019 - 23:25:52 -0700) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
279 bytes read in 16 ms (16.6 KiB/s)
## Executing script at 80c50000
reading suniv-f1c100s-licheepi-nano.dtb
6545 bytes read in 28 ms (227.5 KiB/s)
reading zImage
3068056 bytes read in 179 ms (16.3 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e4a000, end 80e4e990 ... OK

Starting kernel ...

[    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)) #1 Fri Oct 25 06:08:24 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: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    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: 23768K/32768K available (5120K kernel code, 208K rwdata, 1284K rodata, 1024K init, 218K bss, 9000K 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.000050] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000125] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000664] Console: colour dummy device 80x30
[    0.001279] printk: console [tty0] enabled
[    0.001378] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070270] pid_max: default: 32768 minimum: 301
[    0.070725] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070797] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072474] CPU: Testing write buffer coherency: ok
[    0.074617] Setting up static identity map for 0x80100000 - 0x80100058
[    0.077005] devtmpfs: initialized
[    0.082514] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082682] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083079] pinctrl core: initialized pinctrl subsystem
[    0.085989] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088129] cpuidle: using governor menu
[    0.139067] SCSI subsystem initialized
[    0.139545] usbcore: registered new interface driver usbfs
[    0.139796] usbcore: registered new interface driver hub
[    0.140040] usbcore: registered new device driver usb
[    0.140721] pps_core: LinuxPPS API ver. 1 registered
[    0.140809] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.141437] Advanced Linux Sound Architecture Driver Initialized.
[    0.141885] clocksource: Switched to clocksource timer
[    0.172725] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.174964] Initialise system trusted keyrings
[    0.175587] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.200344] Key type asymmetric registered
[    0.200456] Asymmetric key parser 'x509' registered
[    0.200670] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.200762] io scheduler mq-deadline registered
[    0.200808] io scheduler kyber registered
[    0.203095] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.214671] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.403343] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.409114] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.411051] printk: console [ttyS0] disabled
[    0.431401] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.765481] printk: console [ttyS0] enabled
[    0.773791] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.792270] SCSI Media Changer driver v0.25 
[    0.797848] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.804588] ehci-platform: EHCI generic platform driver
[    0.810166] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.816543] ohci-platform: OHCI generic platform driver
[    0.822410] usbcore: registered new interface driver usb-storage
[    0.829489] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    0.838621] i2c /dev entries driver
[    0.844063] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.882349] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.891709] usbcore: registered new interface driver usbhid
[    0.897508] usbhid: USB HID core driver
[    0.919852] Loading compiled-in X.509 certificates
[    0.936443] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.948043] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    0.959041] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc06375b4)
[    0.968277] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc063620c)
[    0.976158] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.982873] [drm] No driver support for vblank timestamp query.
[    0.990546] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.033218] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.035205] mmc0: Problem switching card into high-speed mode!
[    1.035665] mmc0: new SDHC card at address 0001
[    1.039114] mmcblk0: mmc0:0001 SS128 3.73 GiB 
[    1.048685] Console: switching to colour frame buffer device 60x34
[    1.049448]  mmcblk0: p1 p2
[    1.130576] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.152352] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.183807] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.202946] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.226679] hub 1-0:1.0: USB hub found
[    1.237456] hub 1-0:1.0: 1 port detected
[    1.249926] zero gadget: Gadget Zero, version: Cinco de Mayo 2008
[    1.269189] zero gadget: zero ready
[    1.280337] ALSA device list:
[    1.289848]   #0: Loopback 1
[    1.326898] random: fast init done
[    1.340274] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.360949] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.381670] devtmpfs: mounted
[    1.395703] Freeing unused kernel memory: 1024K
[    1.406618] Run /sbin/init as init process
[    1.693194] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Initializing random number generator... [    1.976268] random: dd: uninitialized urandom read (512 bytes read)
done.

Welcome to Lichee Pi
Lichee login: root
login[94]: root login on 'ttyS0'
# 
# 
# 
# [   18.152006] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[   18.344764] usb-storage 1-1:1.0: USB Mass Storage device detected
[   18.364087] scsi host0: usb-storage 1-1:1.0
[   19.443870] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Switch    1.27 PQ: 0 ANSI: 6
[   19.466729] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   19.481041] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   19.504090] sd 0:0:0:0: [sda] Write Protect is off
[   19.516108] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   19.551506]  sda: sda1
[   19.565309] sd 0:0:0:0: [sda] Attached SCSI disk

# 
# 
# 
# [   33.294502] musb-hdrc musb-hdrc.1.auto: Babble
[   33.305401] usb 1-1: USB disconnect, device number 2
[  171.872013] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[  172.064900] usb-storage 1-1:1.0: USB Mass Storage device detected
[  172.084002] scsi host0: usb-storage 1-1:1.0
[  174.379483] scsi 0:0:0:0: Direct-Access     NORELSYS 1081             0    PQ: 0 ANSI: 6
[  174.403617] sd 0:0:0:0: [sda] 31063808 512-byte logical blocks: (15.9 GB/14.8 GiB)
[  174.424681] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  174.437965] sd 0:0:0:0: [sda] Write Protect is off
[  174.450971] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  174.480328] random: crng init done
[  174.490697]  sda: sda4
[  174.505909] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  206.088806] musb-hdrc musb-hdrc.1.auto: Babble
[  206.099974] usb 1-1: USB disconnect, device number 3

#167 Re: 全志 SOC » 刚刚弄好Linux 4.19的USB驱动,但发现一个问题,只要我打开fb, Otg就会失效,有大神能解决这个问题吗? » 2019-10-25 17:55:26

另外一个贴字小改了{ .compatible = "allwinner,suniv-tcon", .data = &suniv_quirks }, 这个是我自己加上去的

#168 Re: 全志 SOC » 刚刚弄好Linux 4.19的USB驱动,但发现一个问题,只要我打开fb, Otg就会失效,有大神能解决这个问题吗? » 2019-10-25 17:38:01

static const struct sun4i_tcon_quirks suniv_quirks = {
    .has_channel_0        = true,
};

const struct of_device_id sun4i_tcon_of_table[] = {
    { .compatible = "allwinner,suniv-tcon", .data = &suniv_quirks },
    { .compatible = "allwinner,sun4i-a10-tcon", .data = &sun4i_a10_quirks },
    { .compatible = "allwinner,sun5i-a13-tcon", .data = &sun5i_a13_quirks },
    { .compatible = "allwinner,sun6i-a31-tcon", .data = &sun6i_a31_quirks },
    { .compatible = "allwinner,sun6i-a31s-tcon", .data = &sun6i_a31s_quirks },
    { .compatible = "allwinner,sun7i-a20-tcon", .data = &sun7i_a20_quirks },
    { .compatible = "allwinner,sun8i-a33-tcon", .data = &sun8i_a33_quirks },
    { .compatible = "allwinner,sun8i-a83t-tcon-lcd", .data = &sun8i_a83t_lcd_quirks },
    { .compatible = "allwinner,sun8i-a83t-tcon-tv", .data = &sun8i_a83t_tv_quirks },
    { .compatible = "allwinner,sun8i-v3s-tcon", .data = &sun8i_v3s_quirks },
    { .compatible = "allwinner,sun9i-a80-tcon-lcd", .data = &sun9i_a80_tcon_lcd_quirks },
    { .compatible = "allwinner,sun9i-a80-tcon-tv", .data = &sun9i_a80_tcon_tv_quirks },
    { }
};

#174 全志 SOC » 刚刚弄好Linux 4.19的USB驱动,但发现一个问题,只要我打开fb, Otg就会失效,有大神能解决这个问题吗? » 2019-10-25 16:01:56

wupaul2001
回复: 15

刚刚弄好Linux 4.19的USB驱动,但发现一个问题,只要我打开fb, Otg就会失效,有大神能解决这个问题吗?必须dr_mode="host",才能使用host模式

#181 Re: 全志 SOC » 请教大家,linux-5.2-tf编译好后,USB不能用是什么情况? » 2019-10-23 17:47:46

@ippen 设备树里面的描述我添加回去,还是不能用,而且将LCD的vcc5v0也关掉

#182 Re: 全志 SOC » 请教大家,linux-5.2-tf编译好后,USB不能用是什么情况? » 2019-10-23 17:31:25

还是用回4.19吧,但我在论坛里,都找不到4.19的分支

#183 Re: 全志 SOC » 请教大家,linux-5.2-tf编译好后,USB不能用是什么情况? » 2019-10-23 17:30:28

估计是内核USB部分代码都删了,我对比设备树,usb-otg和usb-phy部分都没有了

#187 Re: 全志 SOC » 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败 » 2019-10-22 18:03:59

修改两个文件,编译过了。遇到有朋友可以借鉴一吓
1.修改Buildroot-2017.08/output/build/host-flex-2.6.4/configure.ac
AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex])
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([src/scan.l])
AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
LT_INIT
AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects])
AC_CONFIG_HEADER([src/config.h])

2.修改Buildroot-2017.08/output/build/host-flex-2.6.4/src/scan.l
/* scan.l - scanner for flex input -*-C-*- */

%top{
/* flexdef.h includes config.h, which may contain macros that alter the API */
/* of libc functions. Must include first before any libc header. */
#include "flexdef.h"
}

%{
/*  Copyright (c) 1990 The Regents of the University of California. */
/*  All rights reserved. */
@@ -32,7 +38,6 @@
/*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/*  PURPOSE. */

#include "flexdef.h"
#include "parse.h"
extern bool tablesverify, tablesext;
extern int trlcontxt; /* Set in  parse.y for each rule. */

#189 Re: 全志 SOC » 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败 » 2019-10-22 16:41:26

现在用回buildroot的toolchain,把gcc调到6.x,正在编译

#194 Re: 全志 SOC » 大家有没有遇到使用buildroot-2017.08编译host-flex 2.6.4 失败 » 2019-10-22 15:36:15

libtool: link: /usr/bin/gcc -shared  -fPIC -DPIC  .libs/libmain.o .libs/libyywrap.o   -L/home/paulwu/buildroot-2017.08/output/host/lib -lm  -O2 -Wl,-rpath -Wl,/home/paulwu/buildroot-2017.08/output/host/lib   -Wl,-soname -Wl,libfl.so.2 -o .libs/libfl.so.2.0.0
libtool: link: (cd ".libs" && rm -f "libfl.so.2" && ln -s "libfl.so.2.0.0" "libfl.so.2")
libtool: link: (cd ".libs" && rm -f "libfl.so" && ln -s "libfl.so.2.0.0" "libfl.so")
/bin/bash ../libtool  --tag=CC   --mode=link /usr/bin/gcc  -O2 -I/home/paulwu/buildroot-2017.08/output/host/include  -L/home/paulwu/buildroot-2017.08/output/host/lib -Wl,-rpath,/home/paulwu/buildroot-2017.08/output/host/lib -o stage1flex stage1flex-scan.o stage1flex-buf.o stage1flex-ccl.o stage1flex-dfa.o stage1flex-ecs.o stage1flex-filter.o stage1flex-gen.o stage1flex-main.o stage1flex-misc.o stage1flex-nfa.o stage1flex-options.o stage1flex-parse.o stage1flex-regex.o stage1flex-scanflags.o stage1flex-scanopt.o stage1flex-skel.o stage1flex-sym.o stage1flex-tables.o stage1flex-tables_shared.o stage1flex-tblcmp.o stage1flex-yylex.o    -lm
libtool: link: ( cd ".libs" && rm -f "libfl.la" && ln -s "../libfl.la" "libfl.la" )
libtool: link: /usr/bin/gcc -O2 -I/home/paulwu/buildroot-2017.08/output/host/include -Wl,-rpath -Wl,/home/paulwu/buildroot-2017.08/output/host/lib -o stage1flex stage1flex-scan.o stage1flex-buf.o stage1flex-ccl.o stage1flex-dfa.o stage1flex-ecs.o stage1flex-filter.o stage1flex-gen.o stage1flex-main.o stage1flex-misc.o stage1flex-nfa.o stage1flex-options.o stage1flex-parse.o stage1flex-regex.o stage1flex-scanflags.o stage1flex-scanopt.o stage1flex-skel.o stage1flex-sym.o stage1flex-tables.o stage1flex-tables_shared.o stage1flex-tblcmp.o stage1flex-yylex.o  -L/home/paulwu/buildroot-2017.08/output/host/lib -lm
./stage1flex   -o stage1scan.c ./scan.l
Makefile:1696: recipe for target 'stage1scan.c' failed
make[3]: *** [stage1scan.c] 段错误 (core dumped)
make[3]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/src”
Makefile:546: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/src”
Makefile:532: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: 离开目录“/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4”
package/pkg-generic.mk:227: recipe for target '/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/.stamp_built' failed
make: *** [/home/paulwu/buildroot-2017.08/output/build/host-flex-2.6.4/.stamp_built] Error 2

#196 Re: 全志 SOC » 大家好,刚入手了nano,想请教点问题。 » 2019-10-21 17:26:54

问题找到了,原来是我配置的时候,Librarys选了共享库和静态库的问题

#197 Re: 全志 SOC » 大家好,刚入手了nano,想请教点问题。 » 2019-10-21 16:11:06

@晕哥 我今天把内核header设为5.2时就编译不通过了,请问有遇到过吗?
Makefile.xcb_qpa_lib:316: recipe for target '../../../../lib/libQt5XcbQpa.so.5.13.1' failed
make[6]: *** [../../../../lib/libQt5XcbQpa.so.5.13.1] Error 1
make[6]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/src/plugins/platforms/xcb”
Makefile:90: recipe for target 'sub-xcb_qpa_lib-pro-make_first-ordered' failed
make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
make[5]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/src/plugins/platforms/xcb”
Makefile:101: recipe for target 'sub-xcb-make_first' failed
make[4]: *** [sub-xcb-make_first] Error 2
make[4]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/src/plugins/platforms”
Makefile:104: recipe for target 'sub-platforms-make_first' failed
make[3]: *** [sub-platforms-make_first] Error 2
make[3]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/src/plugins”
Makefile:560: recipe for target 'sub-plugins-make_first' failed
make[2]: *** [sub-plugins-make_first] Error 2
make[2]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/src”
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: 离开目录“/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1”
package/pkg-generic.mk:238: recipe for target '/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/.stamp_built' failed
make: *** [/home/paulwu/buildroot-2019.08.1/output/build/qt5base-5.13.1/.stamp_built] Error 2

#198 Re: 全志 SOC » 编译buildroot问题 » 2019-10-21 00:07:47

不能用buildroot里的kernel吧,驱动都对不上的

#200 Re: 全志 SOC » 使用buildroot构建文件系统, mplayer视频播放器, Qt运行库等 » 2019-10-20 00:26:45

xiongxinjian 说:
wupaul2001 说:

@晕哥 使用-platform linuxfb可以运行了

请问下,你这个SD卡启动的还是SPI FLASH启动的?也是用吗?

使用SD卡启动,也是用BUILDROOT构建的文件系统,用的Buildroot-2019.08.1

页脚

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

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