您尚未登录。

#1 Re: 全志 SOC » usbotg的device和host能同时工作?加个hub芯片呢? » 2021-09-02 21:47:16

3050311118 说:
tigger 说:

不能同时 device & host,只能动态切换,可以加hub芯片。

加了后可以device和host同时工作吗

hub芯片就占用一个host口,还如何device...

#2 Re: 全志 SOC » 哪个大哥有芯灵思v3s的光盘资料 » 2021-07-26 21:49:14

链接:https://pan.baidu.com/s/14jD6UbvN9HShW5qe3l30pw
提取码:i4vq
拿去吧

#3 Re: 全志 SOC » 小菜鸟又有新问题了, tinyalsa如何编译成arm-linux 静态链接版本 » 2021-02-08 11:18:03

忙着折腾 说:

为什么我的用mplayer播放mp3只有一边耳机响?你们的也是这样的吗?我内核是4.13-y

自己解决了,原来./tinymix set 2 1只打开了单声道,./tinymix set 2 1 1这样才是打开双声道。
FluxBB bbcode 测试
FluxBB bbcode 测试

#4 Re: 全志 SOC » 编解码引擎 CedarX for Mainline Linux v5.4 » 2021-02-07 17:02:27

心情复杂 说:
aodzip 说:

Linux 5.4.35是通过测试的版本,试一下

吐了 用5.3 5.6都不行  又得下个5.4

请问在哪里可以下载Linux 5.4?我的荔枝派zero能下载的最高才5.2

#5 Re: 全志 SOC » V3S禁用屏幕log,用于显示qt » 2021-02-07 12:06:49

mysteryli 说:
mysteryli 说:
忙着折腾 说:

我的内核是4.13.y 不是5.2的

那我换你的内核试试

老哥我试了一下 确实是没有log了,但是也没了/dev/fb0节点...
你后来又配置什么了嘛


我用的是SPI的屏幕,改了下面3个文件。
FluxBB bbcode 测试
FluxBB bbcode 测试
FluxBB bbcode 测试
FluxBB bbcode 测试
可能是你修改drivers/video/console/Makefile这个文件后,就不会生成原来并口RGB的fb0了(我也不知道这样改fb0会消失),你用的是并口RGB屏,而我又启用了SPI屏的驱动,又生成了fb0,我用的是SPI屏。

#6 Re: 全志 SOC » V3S禁用屏幕log,用于显示qt » 2021-02-04 20:11:40

mysteryli 说:
忙着折腾 说:

修改这个文件:drivers/video/console/Makefile
#obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o softcursor.o  这行屏蔽掉
#obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += tileblit.o 这行也屏蔽掉

然后重新编译,亲测可行。

我看了一下,我对应的Makefile只有这些内容啊
https://whycan.com/files/members/3311/QQ截图20210204002725.jpg
另外  eth0的那个问题的命令 会报错的
https://whycan.com/files/members/3311/QQ截图20210204002623.jpg


我的内核是4.13.y 不是5.2的

#7 Re: 全志 SOC » 小菜鸟又有新问题了, tinyalsa如何编译成arm-linux 静态链接版本 » 2021-02-03 00:03:01

为什么我的用mplayer播放mp3只有一边耳机响?你们的也是这样的吗?我内核是4.13-y

#8 Re: 全志 SOC » V3S禁用屏幕log,用于显示qt » 2021-02-01 22:40:31

mysteryli 说:
哇酷小二 说:

[    0.000000] Linux version 4.10.15-licheepi-zero+ (l@l-VirtualBox) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP Fri Nov 20 22:44:44 CST 2020


楼主, 你的kernel到底啥时候编译的? 2020-11-20?

我刚刚换了 5.2的kernel
日志发现一句Setting up a 800x480 lcd console (overscan 0x0)感觉是罪魁祸首,但是不知道如何消除掉
还得请问各位大佬
另外还发现一个问题,读取的是带dock的那个设备树,为啥ifconfig查不到eth0呢

奉上dtb文件,没有改动过,荔枝派内核5.2分支的原版
sun8i-v3s-licheepi-zero-dock.zip


Xshell 6 (Build 0095)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[D:\~]$ 

Connecting to COM35...
Failed to open COM35.

Type `help' to learn how to use Xshell prompt.
[D:\~]$ 

Connecting to COM3...
Connected.


U-Boot SPL 2017.01-rc2-g32ab180-dirty (Jan 28 2021 - 20:45:58)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-g32ab180-dirty (Jan 28 2021 - 20:45:58 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-g32ab180-dirty (Jan 28 2021 - 20:45:58 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
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 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
292 bytes read in 17 ms (16.6 KiB/s)
## Executing script at 41900000
reading zImage
5001344 bytes read in 276 ms (17.3 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12100 bytes read in 30 ms (393.6 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff43 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (l@l-VirtualBox) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #1 SMP Fri Jan 29 22:12:35 CST 2021
[    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: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 51496K/64036K available (8192K kernel code, 301K rwdata, 1676K rodata, 1024K init, 252K bss, 12540K 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+0x354/0x514 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.000018] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000042] Switching to timer-based delay loop, resolution 41ns
[    0.000425] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000967] Console: colour dummy device 80x30
[    0.001898] printk: console [tty0] enabled
[    0.001991] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002067] pid_max: default: 32768 minimum: 301
[    0.002347] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002415] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003682] CPU: Testing write buffer coherency: ok
[    0.004380] /cpus/cpu@0 missing clock-frequency property
[    0.004459] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005495] Setting up static identity map for 0x40100000 - 0x40100060
[    0.005811] rcu: Hierarchical SRCU implementation.
[    0.006504] smp: Bringing up secondary CPUs ...
[    0.006571] smp: Brought up 1 node, 1 CPU
[    0.006611] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.006651] CPU: All CPU(s) started in SVC mode.
[    0.008230] devtmpfs: initialized
[    0.015943] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.016546] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016645] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.017005] pinctrl core: initialized pinctrl subsystem
[    0.018717] NET: Registered protocol family 16
[    0.019518] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022423] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.022505] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.066409] SCSI subsystem initialized
[    0.066782] usbcore: registered new interface driver usbfs
[    0.066950] usbcore: registered new interface driver hub
[    0.067157] usbcore: registered new device driver usb
[    0.067616] mc: Linux media interface: v0.10
[    0.067738] videodev: Linux video capture interface: v2.00
[    0.068221] Advanced Linux Sound Architecture Driver Initialized.
[    0.070918] clocksource: Switched to clocksource arch_sys_counter
[    0.091974] NET: Registered protocol family 2
[    0.093218] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.093350] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.093463] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.093562] TCP: Hash tables configured (established 1024 bind 1024)
[    0.093786] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.093893] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.094349] NET: Registered protocol family 1
[    0.097860] Initialise system trusted keyrings
[    0.098353] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.157717] Key type asymmetric registered
[    0.157788] Asymmetric key parser 'x509' registered
[    0.157957] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.158013] io scheduler mq-deadline registered
[    0.158050] io scheduler kyber registered
[    0.159983] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.168807] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.298068] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.302823] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.304773] printk: console [ttyS0] disabled
[    0.325261] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.840829] printk: console [ttyS0] enabled
[    0.945364] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.952060] ehci-platform: EHCI generic platform driver
[    0.957799] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.963585] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.971719] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    1.000543] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.008550] hub 1-0:1.0: USB hub found
[    1.012602] hub 1-0:1.0: 1 port detected
[    1.017811] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.024215] ohci-platform: OHCI generic platform driver
[    1.029964] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.036789] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.044902] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.129860] hub 2-0:1.0: USB hub found
[    1.133929] hub 2-0:1.0: 1 port detected
[    1.139511] usbcore: registered new interface driver usb-storage
[    1.147680] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.157861] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.163122] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.167908] i2c /dev entries driver
[    1.174148] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.184916] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.194420] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.231660] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.239193] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.275169] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.284578] usbcore: registered new interface driver usbhid
[    1.290206] usbhid: USB HID core driver
[    1.297373] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.305110] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.313193] Initializing XFRM netlink socket
[    1.317577] NET: Registered protocol family 17
[    1.323180] Registering SWP/SWPB emulation handler
[    1.329779] Loading compiled-in X.509 certificates
[    1.344612] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0x(ptrval)
[    1.355401] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.390624] Console: switching to colour frame buffer device 100x30
[    1.437142] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.463048] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.507045] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.529520] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.556606] hub 3-0:1.0: USB hub found
[    1.577611] hub 3-0:1.0: 1 port detected
[    1.597843] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.626133] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.651534] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.678707] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.703269] mmc0: new high speed SD card at address 1388
[    1.727686] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:05 UTC (5)
[    1.752686] vcc5v0: disabling
[    1.771793] ALSA device list:
[    1.790402]   #0: V3s Audio Codec
[    1.811584] mmcblk0: mmc0:1388 CS006 482 MiB 
[    1.832594] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.855897]  mmcblk0: p1 p2
[    1.883331] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.908595] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.934099] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.957604] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.980746] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    2.001812] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    2.023166] random: fast init done
[    2.037804] devtmpfs: mounted
[    2.055140] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    2.080604] Freeing unused kernel memory: 1024K
[    2.099337] mmc1: new high speed SDIO card at address 0001
[    2.119238] Run /sbin/init as init process
[    2.257094] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.602926] random: dd: uninitialized urandom read (512 bytes read)

Welcome to Buildroot
ljn login: root
Password: 
# ifconfig 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# 

ifconfig eth0 192.168.1.150 netmask 255.255.255.0 执行这条命令试下,这样eth0应该就出来了。

#9 Re: 全志 SOC » V3S禁用屏幕log,用于显示qt » 2021-02-01 22:32:06

修改这个文件:drivers/video/console/Makefile
#obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon.o bitblit.o softcursor.o  这行屏蔽掉
#obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += tileblit.o 这行也屏蔽掉

然后重新编译,亲测可行。

#11 Re: 全志 SOC » F1c100s逆向了一下melis的TVD.DRV » 2020-04-01 23:33:03

忙着折腾 说:

下载下来只有tvd.drv文件,裸机用不了吧?

明白了,楼主发的是寄存器初始化代码。

#12 Re: 全志 SOC » F1c100s逆向了一下melis的TVD.DRV » 2020-04-01 23:29:05

下载下来只有tvd.drv文件,裸机用不了吧?

#16 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2020-02-19 13:03:29

firstman 说:

@忙着折腾 这个界面看起来还挺不错噢.

这个是melis默认的界面,试了下tvin功能,还可以。
我现在调试melis的app很麻烦,修改一点东西都要重新make,再烧录固件,才能测试...
@九霄云外,不知有没有更便捷的调试方法?

#17 Re: 全志 SOC » F1C100S的Keil裸机USB+LCD+PWM+GPIO工程搞定,修复GNU工具链BUG » 2020-02-18 00:03:39

晕哥 说:

eXeScope.exeCFF Explorer.exe 等软件可以分析 exe 文件的依赖库, 把对应的库拷到同一目录, 一般都可以。

mksunxi.exe 需要用到msvcr120d.dll这个库,keil调用mksunxi出错后没有任何提示... 我通过cmd来运行mksunxi.exe就弹出一个错误框,提示缺少这个文件。   
又学到一招:eXeScope.exeCFF Explorer.exe 等软件可以分析 exe 文件的依赖库,向晕哥学习。

#18 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2020-02-17 18:06:16

忙着折腾 说:

我直接下载你的固件到荔枝Nano,Phoenix一直卡在进度条,驱动也设置了Phoenix安装目录里面的,串口输出如下:

DBG: init uart OK, running at 102000000M
fes1 is starting
init dram , base        is 0x80000000
init dram , clk         is 120
init dram , access_mode is 1
init dram , cs_num      is 1
init dram , ddr8_remap  is 0
init dram , sdr_ddr     is 1
init dram , bwidth      is 16
init dram , col_width   is 10
init dram , row_width   is 13
init dram , bank_size   is 4
init dram , cas         is 3
init dram , size        is 0
dram init successed,size is 32
init dram OK, size is 32
DBG: init heap OK, base address is 0x80000000, size is 0x00100000
fes init dram OK, size is 32
gy

[      0.059]version: 1.0.0
monitor len: 00437BD4
[      0.098]DRAM:  32 MiB
relocation Offset is: 01ac8000
donn't initialize ther user_gpio (main_key:boot_init_gpio)
workmode = 16
read flash error
In:    serial
Out:   serial
Err:   serial
[      0.867]Hit any key to stop autoboot:  0
work mode=0x10
run usb efex
delay time 2500
usb init ok

有个read flash error,我的Flash型号是w25q128fvsg,但我下载xboot是正常的,不知道什么原因。

换了个USB口可以下载了IMG_20200217_175752.png

#19 Re: 全志 SOC » 发现淘宝有卖F1C100S源码的 » 2020-02-17 13:38:02

微凉VeiLiang 说:

TVIN可以搞

大神调通了?

#20 Re: 全志 SOC » 发现淘宝有卖F1C100S源码的 » 2020-02-16 22:57:51

关注tvin的功能,学习实在是贵了点。

#21 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2020-02-15 20:13:43

Sam 说:

我用的是TINY200,屏幕480X272,这个固件是没有改动过的,屏幕驱动与跟我手头的不一样所以没法验证,我烧录后屏幕会闪一下

ePDKv100.rar

https://whycan.cn/files/members/2591/image.png
https://whycan.cn/files/members/2591/success.png

我直接下载你的固件到荔枝Nano,Phoenix一直卡在进度条,驱动也设置了Phoenix安装目录里面的,串口输出如下:

DBG: init uart OK, running at 102000000M
fes1 is starting
init dram , base        is 0x80000000
init dram , clk         is 120
init dram , access_mode is 1
init dram , cs_num      is 1
init dram , ddr8_remap  is 0
init dram , sdr_ddr     is 1
init dram , bwidth      is 16
init dram , col_width   is 10
init dram , row_width   is 13
init dram , bank_size   is 4
init dram , cas         is 3
init dram , size        is 0
dram init successed,size is 32
init dram OK, size is 32
DBG: init heap OK, base address is 0x80000000, size is 0x00100000
fes init dram OK, size is 32
gy

[      0.059]version: 1.0.0
monitor len: 00437BD4
[      0.098]DRAM:  32 MiB
relocation Offset is: 01ac8000
donn't initialize ther user_gpio (main_key:boot_init_gpio)
workmode = 16
read flash error
In:    serial
Out:   serial
Err:   serial
[      0.867]Hit any key to stop autoboot:  0
work mode=0x10
run usb efex
delay time 2500
usb init ok

有个read flash error,我的Flash型号是w25q128fvsg,但我下载xboot是正常的,不知道什么原因。

#23 Re: 全志 SOC » F1C100S的Keil裸机USB+LCD+PWM+GPIO工程搞定,修复GNU工具链BUG » 2020-02-10 19:20:46

xidaole 说:

After Build Run #2  Tools\mksunxi Objects\@L.bin     
试过,删除bin后,重新成功生成f1c100s.bin文件。

还有改用 flashtospi 文件,编译通过后,再点下载,能成功下载;重启F1C100s板子,还是进入fel模式(电脑显示驱动)。

下载msvcr120d.dll放到Tools里面,再编译,重新生成的f1c100s.bin下载到spiflash就能正常运行了。msvcr120d.zip

#24 Re: 全志 SOC » F1C100S的Keil裸机USB+LCD+PWM+GPIO工程搞定,修复GNU工具链BUG » 2020-02-10 17:20:04

phpweb 说:

这样可以用MDK + JLink单步调试吗?调试器会自动加载gcc编译elf文件吗?

这样只是可以编译通过,我的无法运行,f1c100s.bin下载到spiflash运行后会回到fel模式。

#27 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2020-01-31 13:40:26

已解决。是因为环境变量Path的字符超过1K,RealView2.2安装时自动添加环境变量失败。
删除掉一些无用的环境变量,重新安装RealView2.2,问题解决。

#28 Re: 全志 SOC » 全志melis系统环境搭建、打包、烧录流程 » 2020-01-31 00:42:57

Administrator@PC-20171219EEDF /home/sdk/livedesk/beetles
$ make
make -C elibs
make[1]: Entering directory `/home/sdk/livedesk/beetles/elibs'
make -C lib_ex
make[2]: Entering directory `/home/sdk/livedesk/beetles/elibs/lib_ex'
make[2]: Warning: File `../../../../includes/cfgs/chip.cfg' has modification tim
e 1.4e+08 s in the future
cp elibs_ex.a ./../../../../libs/suniv/elibs_ex.a
-------------------------------
lib ex build finish!
-------------------------------
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/home/sdk/livedesk/beetles/elibs/lib_ex'
make[1]: Leaving directory `/home/sdk/livedesk/beetles/elibs'
make -C res
make[1]: Entering directory `/home/sdk/livedesk/beetles/res'
make[1]: Warning: File `../../../includes/cfgs/chip.cfg' has modification time 1
.4e+08 s in the future
make -C lang
make[2]: Entering directory `/home/sdk/livedesk/beetles/res/lang'
make[2]: Warning: File `../../../../includes/cfgs/chip.cfg' has modification tim
e 1.4e+08 s in the future
./../../../../../eStudio/Softwares/LangBuild/LangOSDBuild.exe ./lang.xml
cp ./lang.h     ./../../include/res/lang.h
cp ./lang.bin   ./../../../../workspace/suniv/beetles/rootfs/apps/lang.bin
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/home/sdk/livedesk/beetles/res/lang'
make -C theme
make[2]: Entering directory `/home/sdk/livedesk/beetles/res/theme'
make[2]: Warning: File `../../../../includes/cfgs/chip.cfg' has modification tim
e 1.4e+08 s in the future
# make scripts for every application
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./init
  1       1000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./mainmenu
      1001    2000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./movie
  2001    3000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./explorer
  3001    4000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./music
  4001    5000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./photo
  5001    6000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./setting
  6001    7000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./ebook
  7001    8000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./fm
  8001    9000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./dialog
  9001   10000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./record
  10001   11000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./loading
  12001   13000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./avin    1
3001   14000
./../../../../../eStudio/Softwares/Face200/MakeScript/MakeScript.exe ./atv
14001   15000
# create theme for the whole case
rm touchtheme.script
cat ./config/touchthemehdr.script   \
                ./init/init.script              \
                ./mainmenu/mainmenu.script              \
                ./movie/movie.script            \
                ./explorer/explorer.script            \
                ./music/music.script            \
                ./photo/photo.script            \
                ./setting/setting.script            \
                ./ebook/ebook.script            \
                ./fm/fm.script            \
                ./dialog/dialog.script            \
                ./record/record.script            \
                ./loading/loading.script            \
                ./avin/avin.script                \
                ./atv/atv.script                                \
  >> touchtheme.script
# build the theme
./../../../../../eStudio/Softwares/Face200/FaceBuilderCmd/FaceBuilderCmd.exe ./c
onfig/config.ini
filename C:\cygwin\home\sdk\livedesk\beetles\res\theme\./config/config.ini
# copy the theme to workspace
cp ./theme.h   ./../../include/res/theme.h
cp ./theme.bin ./../../../../workspace/suniv/beetles/rootfs/apps/theme.bin
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/home/sdk/livedesk/beetles/res/theme'
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/home/sdk/livedesk/beetles/res'
make -C shell
make[1]: Entering directory `/home/sdk/livedesk/beetles/shell'
make[1]: Warning: File `../../../includes/cfgs/chip.cfg' has modification time 1
.4e+08 s in the future
"C:/Program Files (x86)/ARM/RVCT/Programs/2.2/349/win_32-pentium"/armlink --nore
move --scatter=./config/shell.sct -o __image.axf Esh_execute_cmd.o Esh_exit.o Es
h_init.o Esh_read_command.o Esh_shell.o helloworld.o magic.o bmp_parser/Parse_Pi
cture.o bmp_parser/bmp.o Esh_builtins/Esh_builtins.o Esh_builtins/commands/doass
ert.o Esh_builtins/commands/docat.o Esh_builtins/commands/docd.o Esh_builtins/co
mmands/doconfigfs.o Esh_builtins/commands/docopy.o Esh_builtins/commands/docpust
at.o Esh_builtins/commands/docreate.o Esh_builtins/commands/dode.o Esh_builtins/
commands/dodel.o Esh_builtins/commands/dodir.o Esh_builtins/commands/doformat.o
Esh_builtins/commands/doformatcheck.o Esh_builtins/commands/dofs.o Esh_builtins/
commands/dohelp.o Esh_builtins/commands/dohistory.o Esh_builtins/commands/doinsm
od.o Esh_builtins/commands/dokeysim.o Esh_builtins/commands/domeminfo.o Esh_buil
tins/commands/domkdir.o Esh_builtins/commands/domount.o Esh_builtins/commands/do
poweroff.o Esh_builtins/commands/doquit.o Esh_builtins/commands/doreset.o Esh_bu
iltins/commands/dormdir.o Esh_builtins/commands/dorun.o Esh_builtins/commands/do
sendkey.o Esh_builtins/commands/dosetpath.o Esh_builtins/commands/doshowdsize.o
Esh_builtins/commands/doshowfsize.o Esh_builtins/commands/dostartx.o Esh_builtin
s/commands/dosysinfo.o Esh_builtins/commands/dowait.o Esh_builtins/commands/doxc
opy.o Esh_builtins/commands/doscript/Esh_script_area.o Esh_builtins/commands/dos
cript/Esh_script_domisc.o Esh_builtins/commands/doscript/Esh_script_eval.o Esh_b
uiltins/commands/doscript/Esh_script_executer.o Esh_builtins/commands/doscript/E
sh_script_lexer.o Esh_builtins/commands/doscript/Esh_script_onecommand.o Esh_bui
ltins/commands/doscript/Esh_script_parser.o Esh_builtins/commands/doscript/Esh_s
cript_var.o Esh_builtins/commands/doscript/doscript.o Esh_builtins/commands/doup
date/config.o Esh_builtins/commands/doupdate/config_parser.o Esh_builtins/comman
ds/doupdate/doupdate.o Esh_builtins/commands/doupdate/scan_ini/ini.o Esh_builtin
s/commands/doupdate/scan_ini/scan_ini.o Esh_error/Esh_error.o Esh_support/Esh_li
bc.o Esh_support/Esh_support.o ./../../../libs/suniv/elibs.a
Warning: L6310W: Unable to find ARM libraries.
Error: L6218E: Undefined symbol __aeabi_uread4 (referred from Parse_Picture.o).
Error: L6218E: Undefined symbol __aeabi_memcpy4 (referred from dode.o).
Error: L6218E: Undefined symbol __aeabi_uidivmod (referred from dowait.o).
Error: L6218E: Undefined symbol __aeabi_idivmod (referred from Esh_script_domisc
.o).
Error: L6218E: Undefined symbol __aeabi_memcpy (referred from LzmaDec.o).
Finished: 0 information, 1 warning and 5 error messages.
make[1]: *** [__image.axf] Error 1
make[1]: Leaving directory `/home/sdk/livedesk/beetles/shell'
make: *** [all] Error 2

Administrator@PC-20171219EEDF /home/sdk/livedesk/beetles
$

make 出现这几个错误,请问各位有遇到过吗?

#29 Re: 全志 SOC » 【1】step by step 编译全志 f1c100s 官方linux bsp » 2019-08-13 11:12:24

egsen 说:

在uboot源码目录下 进入 ./include/configs/

修改 suniv.h¶
#define CONFIG_BOOTCOMMAND   "sf probe 0:50000000; "                           \
                             "sf read 0x80C00000 0x100000 0x4000; "  \
                             "sf read 0x80008000 0x110000 0x400000; " \
                             "bootz 0x80008000 - 0x80C00000"

suniv.h这样改会报错:
Failed to initialize SPI flash at 0:50000000 (error -2)

把sf probe 0:50000000 改为 sf probe 0 时:
不会报错了,但SPI读取速度超慢,sf read 0x80008000 0x110000 0x400000这条命令读完要5分钟!!!

把sf probe 0:50000000 改为 sf probe 0 50000000时:
不会报错了,SPI读取速度也正常了,可以启动linux了。

页脚

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

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