您尚未登录。

#4 Re: 全志 SOC » v3s加载esp8089失败 » 2019-08-24 13:33:34

john78 说:

LZ测试怎么样了,我也买了ESP8098 准备试下

ESP8089尚未调试好,一直是搜不到网络的问题。
RTL8723bs比较好调,但是ping一会儿会自动断开重连,也不是很稳定。

#5 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-08-03 13:50:26

[quoto]
  3) 建立第一个分区,前面空出8MB   大小32M(可以随意填写), 格式FAT16, 把uImage,boot.src,script.bin,拷贝到 这个分区
[/quoto]

前面空出 8MB 是什么原理啊?是给 uboot 留的么?晕哥的 https://whycan.cn/t_547.html 没留好像也没事

#6 Re: 全志 SOC » 关于SD接口NAND在全志等MCU上的应用 » 2019-08-03 10:38:15

晕哥 说:
fan12398 说:

请教一个小问题,SD NAND空片焊接到V3s板子上后,烧写程序怎么弄呢?

好几个朋友用在生产环境了:  https://whycan.cn/t_2449.html

谢晕哥!

#7 全志 SOC » rtl8723模块总是自动掉线 » 2019-08-03 10:36:31

fan12398
回复: 1

rtl8723bs模块是tf卡模块,V3s是淘宝买的lichee zero核心版。
连上wifi后,ping一会大约30秒左右,就会掉线,然后自动重连,是什么原因呢

64 bytes from 61.151.166.139: seq=25 ttl=51 time=11.242 ms
64 bytes from 61.151.166.139: seq=26 ttl=51 time=18.844 ms
64 bytes from 61.151.166.139: seq=27 ttl=51 time=12.793 ms
64 bytes from 61.151.166.139: seq=28 ttl=51 time=14.494 ms
64 bytes from 61.151.166.139: seq=29 ttl=51 time=73.121 ms
64 bytes from 61.151.166.139: seq=30 ttl=51 time=11.535 ms
64 bytes from 61.151.166.139: seq=31 ttl=51 time=11.188 ms
64 bytes from 61.151.166.139: seq=32 ttl=51 time=16.665 ms
[  120.367231] RTL8723BS: sta recv deauth reason code(8) sta:4c:ed:fb:a2:cc:08, ignore = 0
ping: sendto: Network is unreachable
# [  122.023923] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[  122.242847] RTL8723BS: sta recv deauth reason code(6) sta:4c:ed:fb:a2:cc:08, ignore = 0
[  124.423994] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[  124.657186] RTL8723BS: sta recv deauth reason code(6) sta:4c:ed:fb:a2:cc:08, ignore = 0
[  127.225828] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[  127.442710] RTL8723BS: sta recv deauth reason code(6) sta:4c:ed:fb:a2:cc:08, ignore = 0
[  127.451137] RTL8723BS: sta recv deauth reason code(6) sta:4c:ed:fb:a2:cc:08, ignore = 0
[  127.460150] RTL8723BS: sta recv deauth reason code(6) sta:4c:ed:fb:a2:cc:08, ignore = 0
[  131.367011] RTL8723BS: nolinked power save enter
[  132.698843] RTL8723BS: nolinked power save leave
[  134.907671] RTL8723BS: nolinked power save enter
[  137.918834] RTL8723BS: nolinked power save leave
[  138.135956] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[  138.246014] RTL8723BS: start auth
[  138.251692] RTL8723BS: auth success, start assoc
[  138.261523] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[  138.268722] RTL8723BS: assoc success
[  138.279324] RTL8723BS: send eapol packet
[  139.256642] RTL8723BS: send eapol packet
[  139.276550] RTL8723BS: send eapol packet
[  139.281350] RTL8723BS: set pairwise key camid:4, addr:4c:ed:fb:a2:cc:08, kid:0, type:AES
[  139.305766] RTL8723BS: set group key camid:5, addr:4c:ed:fb:a2:cc:08, kid:1, type:AES

# 
# 
# ping www.qq.com
PING www.qq.com (61.151.166.146): 56 data bytes
64 bytes from 61.151.166.146: seq=0 ttl=51 time=14.269 ms
64 bytes from 61.151.166.146: seq=1 ttl=51 time=11.851 ms
64 bytes from 61.151.166.146: seq=2 ttl=51 time=11.424 ms

#8 Re: 全志 SOC » 关于SD接口NAND在全志等MCU上的应用 » 2019-08-03 10:18:36

请教一个小问题,SD NAND空片焊接到V3s板子上后,烧写程序怎么弄呢?

#9 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-27 14:44:55

/var/log/message 里的信息,ipv6的问题?

Jan  1 00:01:23 whale daemon.info dhcpcd[113]: wlan0: waiting for carrier
Jan  1 00:01:23 whale daemon.info dhcpcd[113]: wlan0: carrier acquired
Jan  1 00:01:23 whale daemon.info dhcpcd[113]: wlan0: IAID 74:51:38:dd
Jan  1 00:01:23 whale daemon.info dhcpcd[113]: wlan0: adding address fe80::cb99:e911:b98d:fb89
Jan  1 00:01:23 whale daemon.err dhcpcd[113]: ipv6_addaddr1: Operation not supported
Jan  1 00:01:23 whale daemon.info dhcpcd[113]: wlan0: carrier lost

#10 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-26 20:03:44

error_0 说:

esp8089.zip  这个是我之前移植过的 源码,我用的是4.10的主线,里面有个镜像 你下载进去看下 我当时也是用的SD卡模块测试的。

用这个固件,esp8089会挂掉,试了手里的两个esp8089模块,都是这样

# insmod esp8089.ko 
# [   25.285795] mmc0: card 0001 removed
[   25.380013] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[   25.392662] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[   25.401439] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[   25.408763] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[   25.414292] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[   25.420264] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[   25.426184] mmc0: new high speed SDIO card at address 0001
# ifconfig
eth0      Link encap:Ethernet  HWaddr 62:90:16:EE:5E:F8  
          UP BROADCAST MULTICAST  MTU:1500  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)
          Interrupt:36 

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)

usb0      Link encap:Ethernet  HWaddr 7A:BB:12:80:E4:25  
          UP BROADCAST MULTICAST  MTU:1500  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)

wlan0     Link encap:Ethernet  HWaddr AC:D0:74:E2:02:A6  
          UP BROADCAST MULTICAST  MTU:1500  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)

# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# udhcpc -i wlan0
udhcpc: started, v1.29.3
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: read error: Network is down, reopening socket
[  159.086191] mmc0: card 0001 removed
[  159.179959] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[  159.192547] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[  159.201249] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[  159.208582] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[  159.214115] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[  159.220129] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[  159.225728] mmc0: new high speed SDIO card at address 0001
[  159.964896] sip_write_memory send buffer failed
[  159.969467] esp_download_fw Failed to write fw, err: -16
[  159.974781] download firmware failed
[  159.978385] esp_init_all failed: -16
[  159.981955] first error exit
[  161.045562] sip_detach wrong state 1
[  161.049481] mmc0: card 0001 removed
[  161.825308] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
udhcpc: bind: No such device
# [  163.605311] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  164.355289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  165.105306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  167.965307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  168.715290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  169.465306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  172.285306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  173.035294] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  173.785304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  175.585306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  177.365306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  178.115290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  178.865306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  181.725307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  182.475290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  183.225307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  186.045306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  186.795290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  187.545305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  189.345306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  191.125307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  191.875290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  192.625305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  194.465305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  196.245306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  196.995289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  197.745303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  200.605304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  201.355290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  202.105304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  204.925306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  205.675289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  206.425304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  209.245306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  209.995289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  210.745305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  213.565306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  214.315291] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  215.065306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  217.885305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  218.635290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  219.385303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  222.205306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  222.955289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  223.705306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  226.525305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  227.275289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  228.025303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  229.825305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  231.605306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  232.355288] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  233.105304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  234.945307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  236.725306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  237.475290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  238.225305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  240.065306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  241.845305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  242.595290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  243.345303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  245.185307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  246.965306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  247.715291] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  248.465304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  250.305306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  252.085306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  252.835289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  253.585305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  255.425307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  257.205305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  257.955289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  258.705304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  261.565305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  262.315289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  263.065304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  265.885307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  266.635289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  267.385304] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  270.205307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  270.955290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  271.705303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  273.505303] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  275.285305] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  276.035289] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  276.785306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  278.625306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  280.405306] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  281.155290] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  281.905302] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  284.765307] sunxi-mmc 1c0f000.mmc: fatal err update clk timeout
[  286.339943] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[  286.352522] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[  286.361329] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[  286.368665] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[  286.374199] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[  286.380222] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[  286.385846] mmc0: new high speed SDIO card at address 0001
[  286.391835] Unable to handle kernel paging request at virtual address 7365636d
[  286.399134] pgd = c0004000
[  286.401842] [7365636d] *pgd=00000000
[  286.405445] Internal error: Oops: 5 [#1] SMP ARM
[  286.410055] Modules linked in: esp8089
[  286.413810] CPU: 0 PID: 21 Comm: kworker/0:1 Tainted: G        W       4.10.15-mangopi #7
[  286.421973] Hardware name: Allwinner sun8i Family
[  286.426685] Workqueue: events_freezable mmc_rescan
[  286.431471] task: c387ea00 task.stack: c3920000
[  286.436035] PC is at esp_sdio_probe+0x54/0x438 [esp8089]
[  286.441343] LR is at sdio_bus_probe+0xa0/0x114
[  286.445782] pc : [<bf000c48>]    lr : [<c049bd54>]    psr: a0000013
[  286.445782] sp : c3921de0  ip : 00000000  fp : c3b89000
[  286.457240] r10: bf007e18  r9 : c332ca08  r8 : bf00a500
[  286.462456] r7 : bf009b70  r6 : 73656369  r5 : c332ca00  r4 : c31c7100
[  286.468973] r3 : 00000000  r2 : 00000003  r1 : bf007e18  r0 : c332ca00
[  286.475492] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  286.482616] Control: 10c5387d  Table: 431cc06a  DAC: 00000051
[  286.488353] Process kworker/0:1 (pid: 21, stack limit = 0xc3920210)
[  286.494610] Stack: (0xc3921de0 to 0xc3922000)
[  286.498965] 1de0: 60000013 bf007e18 0000000c c332ca08 00000000 c332ca00 bf009b84 bf007e18
[  286.507133] 1e00: 0000000c 00000000 00000346 c049bd54 c332ca08 c0a6c9c8 00000000 bf009b84
[  286.515300] 1e20: 00000000 c03cdec4 00000000 c3921e60 c03ce058 00000001 c0a6c9a4 00000000
[  286.523467] 1e40: 00000000 c03cc4ac c3914c6c c31e8138 c332ca08 c332ca3c c0a29fec c03cdc08
[  286.531634] 1e60: c332ca08 00000001 c332ca08 c332ca10 c332ca08 c0a29fec 00000000 c03cd29c
[  286.539801] 1e80: c332ca10 c3384008 c332ca08 c03cb614 00000001 c0492ac8 c332ca00 c332ca08
[  286.547968] 1ea0: c332ca00 c332ca08 c3b89000 c3384000 c3384000 00000001 0000019a c049c03c
[  286.556135] 1ec0: 00000001 00000001 c3b89000 c049b528 00000000 c3921ee3 00000000 00000000
[  286.564303] 1ee0: 00000000 10ffff00 00000000 c3b89254 00061a80 c3b89000 c073ad5c c073ad68
[  286.572470] 1f00: 00000000 c3ee6200 c3916e00 c049365c c3b89254 c3916e00 c3ee6200 c3ee9500
[  286.580638] 1f20: 00000000 c0131578 c3ee6218 ffffe000 c3ee6200 c3916e18 c0a02d00 c3ee6218
[  286.588805] 1f40: ffffe000 00000008 c3ee6200 c0132300 c0a0e3aa ffffe000 c3917840 c07b61c8
[  286.596972] 1f60: ffffe000 c3917900 c3917840 00000000 c3920000 c3916e00 c01322b4 c3841ed8
[  286.605139] 1f80: c391791c c0137220 c3920000 c3917840 c01370d4 00000000 00000000 00000000
[  286.613306] 1fa0: 00000000 00000000 00000000 c0107638 00000000 00000000 00000000 00000000
[  286.621472] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  286.629639] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 aae8aae8 abe8bae8
[  286.637832] [<bf000c48>] (esp_sdio_probe [esp8089]) from [<c049bd54>] (sdio_bus_probe+0xa0/0x114)
[  286.646701] [<c049bd54>] (sdio_bus_probe) from [<c03cdec4>] (driver_probe_device+0x1dc/0x2c8)
[  286.655220] [<c03cdec4>] (driver_probe_device) from [<c03cc4ac>] (bus_for_each_drv+0x44/0x94)
[  286.663737] [<c03cc4ac>] (bus_for_each_drv) from [<c03cdc08>] (__device_attach+0xb0/0x114)
[  286.671993] [<c03cdc08>] (__device_attach) from [<c03cd29c>] (bus_probe_device+0x84/0x8c)
[  286.680162] [<c03cd29c>] (bus_probe_device) from [<c03cb614>] (device_add+0x394/0x594)
[  286.688070] [<c03cb614>] (device_add) from [<c049c03c>] (sdio_add_func+0x5c/0x70)
[  286.695545] [<c049c03c>] (sdio_add_func) from [<c049b528>] (mmc_attach_sdio+0x290/0x34c)
[  286.703629] [<c049b528>] (mmc_attach_sdio) from [<c049365c>] (mmc_rescan+0x33c/0x3e4)
[  286.711457] [<c049365c>] (mmc_rescan) from [<c0131578>] (process_one_work+0x1ec/0x414)
[  286.719369] [<c0131578>] (process_one_work) from [<c0132300>] (worker_thread+0x4c/0x59c)
[  286.727453] [<c0132300>] (worker_thread) from [<c0137220>] (kthread+0x14c/0x154)
[  286.734845] [<c0137220>] (kthread) from [<c0107638>] (ret_from_fork+0x14/0x3c)
[  286.742061] Code: e5946004 e3a03000 e5883000 e3a02003 (e5963004) 
[  286.748207] ---[ end trace b099dcd113abe3a5 ]---

#11 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-26 19:46:30

fan12398 说:
error_0 说:

esp8089.zip  这个是我之前移植过的 源码,我用的是4.10的主线,里面有个镜像 你下载进去看下 我当时也是用的SD卡模块测试的。

登录密码是什么啊

试出来了,密码是1

#13 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-26 12:42:57

学习 说:
fan12398 说:
晕哥 说:

根据log你没有生成 /dev/mtd 分区, 导致没有 /dev/mtdblockX

所以根文件系统没有跑起来

晕哥,生成 /dev/mtd 分区是在 dts文件里加上partition吗?
我按照 lichee zero 教程里通过bootargs传递给内核就是上面的结果了

我也有这样的问题,请问你解决了吗?


我使用的是16M SPI flash,主线 linux,
最终试验的结果是,参考 http://nano.lichee.pro/build_sys/build_flash.html 修改设备树dts,
然后 include/configs/sun8i.h,加入如下宏,就可以挂载上去了。注意 root=31:03。

tf卡的话 参考晕哥的这篇帖子 https://whycan.cn/t_547.html ,我照着做的,一次成功。注意dd时 of=/dev/sdb,是你自己的tf卡,别写到硬盘上去了

#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x400000; " \
                             "bootz 0x41000000 - 0x41800000"

 #define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "root=31:03 rw rootfstype=jffs2"

#14 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-26 12:33:42

error_0 说:

esp8089.zip  这个是我之前移植过的 源码,我用的是4.10的主线,里面有个镜像 你下载进去看下 我当时也是用的SD卡模块测试的。

登录密码是什么啊

#15 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 20:38:48

可是,esp8089 模块是什么问题呢

#16 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 20:38:05

相同的操作用rtl8723bs 模块,一切正常。

不同的是,rtl8723bs再modprobe之后,Daemonize..之后会多打印几行,

nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: cc:d2:9b:4b:8e:7d
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# [  207.903689] RTL8723BS: rtw_set_802_11_connect(wlan0)  fw_state = 0x00000008
[  208.144314] RTL8723BS: start auth
[  208.150359] RTL8723BS: auth success, start assoc
[  208.471382] RTL8723BS: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[  208.478534] RTL8723BS: assoc success
[  208.489164] RTL8723BS: send eapol packet
[  208.503662] RTL8723BS: send eapol packet
[  208.508456] RTL8723BS: set pairwise key camid:4, addr:4c:ed:fb:a2:cc:08, kid:0, type:AES
[  208.535670] RTL8723BS: set group key camid:5, addr:4c:ed:fb:a2:cc:08, kid:2, type:AES
udhcpc -i wlan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 192.168.1.9
udhcpc: lease of 192.168.1.9 obtained, lease time 86400
deleting routers
adding dns 192.168.1.1
# 

#17 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 19:30:27

error_0 说:

你这个可能是挂载命令的问题,你的晶振是不是24M的, 你试下这个命令 modprobe esp8089.ko config=crystal_26M_en=2

esp8089 是淘宝上买来的TF卡形状的模块,是26M的,命令 modprobe esp8089.ko config=crystal_26M_en=2 也是一样的现象。

这次打印了详细信息,大佬再帮忙看下,感谢

# modprobe esp8089.ko config=crystal_26M_en=1
# [   44.084946] mmc1: card 0001 removed
[   44.179029] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[   44.191696] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[   44.200500] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[   44.207924] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[   44.213461] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[   44.219453] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[   44.225048] mmc1: new high speed SDIO card at address 0001

# ifconfig wlan0 up
# wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant v2.7
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Priority group 0
   id=0 ssid='ASUS'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xa4a18
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa4a18 match=0500
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=5 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: ac:d0:74:e2:02:a6
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=5 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
Daemonize..
# udhcpc -i wlan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover

#18 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 17:33:53

大神们帮我看一下5楼的问题呀

#20 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 15:13:50

继续求助啊!esp8089 扫描不到 wifi,直接连接wifi udhcpc: sending discover 无限循环

附注:我把 esp8089 放到 linux 文件夹编译就没有4楼的问题了,可能是单独编译有参数没有设置吧。

# modprobe esp8089.ko config=crystal_26M_en=1
# [  172.004796] mmc1: card 0001 removed
[  172.098913] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[  172.111566] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[  172.120338] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[  172.127769] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[  172.133297] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[  172.139250] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[  172.144830] mmc1: new high speed SDIO card at address 0001
# 
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
# 
# udhcpc -i wlan0
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
^C
# 
# 
# 
# iwlist wlan0 scan
wlan0     No scan results

# iwlist wlan0 scan
wlan0     No scan results

# [  856.496219] wlan0: authenticate with 4c:ed:fb:a2:cc:08
[  856.501521] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 1/3)
[  856.714237] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 2/3)
[  856.924264] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 3/3)
[  857.134225] wlan0: authentication with 4c:ed:fb:a2:cc:08 timed out
# 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)

wlan0     Link encap:Ethernet  HWaddr AC:D0:74:E2:02:A6  
          UP BROADCAST MULTICAST  MTU:1500  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)

# [ 1461.095903] wlan0: authenticate with 4c:ed:fb:a2:cc:08
[ 1461.101201] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 1/3)
[ 1461.314238] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 2/3)
[ 1461.524237] wlan0: send auth to 4c:ed:fb:a2:cc:08 (try 3/3)
[ 1461.734223] wlan0: authentication with 4c:ed:fb:a2:cc:08 timed out

#21 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-25 10:00:25

把esp8089 编译后的 firmware 复制到 /lib/firmware下了,
insmod 又显示以下错误。才疏学浅,老是卡在比较二的问题上 neutral

# insmod esp8089.ko 
[   13.877068] esp8089: loading out-of-tree module taints kernel.
[   14.157825] ESSERT:/home/fantl/esp8089/esp_sip.c 2142
[   14.162909] Unable to handle kernel NULL pointer dereference at virtual address 000000c0
[   14.170989] pgd = c0004000
[   14.173693] [000000c0] *pgd=00000000
[   14.177276] Internal error: Oops: 17 [#1] SMP ARM
[   14.181971] Modules linked in: esp8089(O+)
[   14.186072] CPU: 0 PID: 5 Comm: kworker/u2:0 Tainted: G           O    4.14.14-licheepi-zero+ #11
[   14.194928] Hardware name: Allwinner sun8i Family
[   14.199703] Workqueue: esp_wkq sip_rxq_process [esp8089]
[   14.205011] task: c382d700 task.stack: c3842000
[   14.209547] PC is at __queue_work+0x20/0x41c
[   14.213813] LR is at queue_work_on+0x40/0x4c
[   14.218076] pc : [<c01304ac>]    lr : [<c01308e8>]    psr: 200f0093
[   14.224332] sp : c3843e50  ip : 00000000  fp : c3bd4f64
[   14.229547] r10: c3bd4f00  r9 : 00000008  r8 : 0000c3bf
[   14.234764] r7 : 00000000  r6 : 00000008  r5 : c3bb2f78  r4 : c3bb2f78
[   14.241280] r3 : 600f0093  r2 : c3bb2f78  r1 : 00000000  r0 : 00000008
[   14.247801] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   14.255011] Control: 10c5387d  Table: 4303c06a  DAC: 00000051
[   14.260749] Process kworker/u2:0 (pid: 5, stack limit = 0xc3842210)
[   14.267007] Stack: (0xc3843e50 to 0xc3844000)
[   14.271361] 3e40:                                     c3bf1000 0000000c 0000c3bf 00000000
[   14.279529] 3e60: 0000001b c3bb2f78 600f0013 00000008 00000000 0000c3bf c3bf1000 c3bd4f00
[   14.287697] 3e80: c3bd4f64 c01308e8 00000000 c3bd4f00 c3804200 c3be9800 0000c3bf bf004a28
[   14.295865] 3ea0: c3bd4f00 0000c3bf c3804200 bf002a04 00031202 0000c3bf c3804200 bf0032f4
[   14.304032] 3ec0: 00000001 c39e2280 c3bd4480 c3deda40 c382d700 c39e2280 c301d540 bf00a000
[   14.312200] 3ee0: c3bd4f54 c3bd4f40 c3843f3c c067076c 00000001 c03abbf0 c3bf0c00 c3a0d004
[   14.320368] 3f00: c3a0d014 c3bd4f64 c383c100 c3804200 c3be9800 00000000 00000000 00000088
[   14.328536] 3f20: c3804200 c0131a68 c0a02d00 c3804218 c383c100 c3804200 c383c118 c0a02d00
[   14.336704] 3f40: c3804218 ffffe000 00000088 c01327f0 ffffe000 c0a4f99e c07bfbec 00000000
[   14.344872] 3f60: ffffe000 c380fd40 c380fbc0 00000000 c3842000 c383c100 c01327a4 c3831ee0
[   14.353040] 3f80: c380fd5c c013753c c3842000 c380fbc0 c01373f0 00000000 00000000 00000000
[   14.361207] 3fa0: 00000000 00000000 00000000 c0107868 00000000 00000000 00000000 00000000
[   14.369374] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   14.377541] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 bae8ab58 abe13bf4
[   14.385727] [<c01304ac>] (__queue_work) from [<c01308e8>] (queue_work_on+0x40/0x4c)
[   14.393412] [<c01308e8>] (queue_work_on) from [<bf004a28>] (sip_cmd_enqueue+0x88/0xe0 [esp8089])
[   14.402250] [<bf004a28>] (sip_cmd_enqueue [esp8089]) from [<bf002a04>] (sip_recalc_credit_claim+0x38/0xb4 [esp8)
[   14.412815] [<bf002a04>] (sip_recalc_credit_claim [esp8089]) from [<bf0032f4>] (sip_rxq_process+0x788/0x894 [es)
[   14.423528] [<bf0032f4>] (sip_rxq_process [esp8089]) from [<c0131a68>] (process_one_work+0x1ec/0x414)
[   14.432742] [<c0131a68>] (process_one_work) from [<c01327f0>] (worker_thread+0x4c/0x5d4)
[   14.440826] [<c01327f0>] (worker_thread) from [<c013753c>] (kthread+0x14c/0x154)
[   14.448220] [<c013753c>] (kthread) from [<c0107868>] (ret_from_fork+0x14/0x2c)
[   14.455438] Code: e1a05002 e10f3000 e3130080 0a0000be (e59730c0) 
[   14.461528] ---[ end trace 5ea13a16d8132001 ]---
[   24.163941] resetting event timeout
[   24.167449] esp_init_all failed: -110
[   24.171105] first error exit
# 

#22 Re: 全志 SOC » v3s加载esp8089失败 » 2019-07-24 21:35:16

kernel 启动日志最后的mmc部分如下

[    1.249474] mmc0: new high speed SD card at address 219b
[    1.255511] mmcblk0: mmc0:219b XTSDA 122 MiB 
[    1.261319]  mmcblk0: p1 p2
[    1.272244] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc430
[    1.282954] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.292704] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.301200] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy rer
[    1.312622] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.318469] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.327483] hub 3-0:1.0: USB hub found
[    1.331321] hub 3-0:1.0: 1 port detected
[    1.336465] using random self ethernet address
[    1.340919] using random host ethernet address
[    1.346354] usb0: HOST MAC 5e:73:73:10:9e:76
[    1.350672] usb0: MAC 5a:ef:22:7d:e8:14
[    1.354674] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.362151] g_cdc gadget: g_cdc ready
[    1.366250] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.374479] vcc5v0: disabling
[    1.379533] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.388849] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.399854] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.408269] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.416564] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.424958] devtmpfs: mounted
[    1.429289] Freeing unused kernel memory: 1024K
[    1.437303] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.447474] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.455073] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.461240] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.467591] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.474092] mmc1: new high speed SDIO card at address 0001
[    1.583167] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting network: OK
Starting sshd: OK

Welcome to Buildroot
whale login: 

#23 全志 SOC » v3s加载esp8089失败 » 2019-07-24 21:26:22

fan12398
回复: 24

错误如下,dtb 文件使用的 sun8i-v3s-licheepi-zero-dock.dtb,
esp8089.ko 是按照 https://whycan.cn/t_2232.html 编译出来的
esp8089模块是接在 SDC1上的,SDC0插了SD卡,

# insmod esp8089.ko 
[   64.175698] esp8089: loading out-of-tree module taints kernel.
[   64.204349] eagle_sdio mmc1:0001:1: Direct firmware load for eagle_fw_ate_config_v19.bin failed with error -2
[   64.214349] download firmware failed
[   64.217925] esp_init_all failed: -2
[   64.221408] first error exit

#24 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-19 09:36:17

晕哥 说:

根据log你没有生成 /dev/mtd 分区, 导致没有 /dev/mtdblockX

所以根文件系统没有跑起来

晕哥,生成 /dev/mtd 分区是在 dts文件里加上partition吗?
我按照 lichee zero 教程里通过bootargs传递给内核就是上面的结果了

#25 全志 SOC » V3s rootfs挂载失败 » 2019-07-18 20:27:15

fan12398
回复: 11

板子是lichee pi zero焊接上了16M spi nor flash,按照下面链接的教程搞得。
zero.lichee.pro/spi系统杂谈
rootfs是我自己用buildroot编译的,
启动串口输出如下,看起来是rootfs挂载失败,不知到是不是我的rootfs有问题。

U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Jul 18 2019 - 13:02:19)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Jul 18 2019 - 13:02:19 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** 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-00073-gdd6e8740dc-dirty (Jul 18 2019 - 13:02:19 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** 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 
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff2e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.14-licheepi-zero+ (fantl@fantl-RESCUER-R720-15IKBN) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #2 SMP Thu Jul 18 19
[    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] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33740 r8192 d23604 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53512K/64036K available (6144K kernel code, 284K rwdata, 1500K rodata, 1024K init, 265K bss, 10524K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a470e0   ( 285 kB)
[    0.000000]        .bss : 0xc0a4e964 - 0xc0a90ee4   ( 266 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    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.000186] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000440] Console: colour dummy device 80x30
[    0.000480] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000496] pid_max: default: 32768 minimum: 301
[    0.000625] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000638] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001289] CPU: Testing write buffer coherency: ok
[    0.001694] /cpus/cpu@0 missing clock-frequency property
[    0.001717] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002189] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002372] Hierarchical SRCU implementation.
[    0.002881] smp: Bringing up secondary CPUs ...
[    0.002896] smp: Brought up 1 node, 1 CPU
[    0.002905] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002913] CPU: All CPU(s) started in SVC mode.
[    0.003719] devtmpfs: initialized
[    0.007055] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007366] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007391] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007574] pinctrl core: initialized pinctrl subsystem
[    0.008563] NET: Registered protocol family 16
[    0.009053] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010219] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010237] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022261] SCSI subsystem initialized
[    0.022505] usbcore: registered new interface driver usbfs
[    0.022578] usbcore: registered new interface driver hub
[    0.022679] usbcore: registered new device driver usb
[    0.022937] pps_core: LinuxPPS API ver. 1 registered
[    0.022949] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022971] PTP clock support registered
[    0.023152] Advanced Linux Sound Architecture Driver Initialized.
[    0.024824] clocksource: Switched to clocksource arch_sys_counter
[    0.034488] NET: Registered protocol family 2
[    0.035161] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.035195] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.035218] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035349] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035397] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.035613] NET: Registered protocol family 1
[    0.036343] RPC: Registered named UNIX socket transport module.
[    0.036364] RPC: Registered udp transport module.
[    0.036370] RPC: Registered tcp transport module.
[    0.036376] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038304] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.044157] NFS: Registering the id_resolver key type
[    0.044208] Key type id_resolver registered
[    0.044217] Key type id_legacy registered
[    0.044267] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.048608] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.048632] io scheduler noop registered
[    0.048640] io scheduler deadline registered
[    0.048937] io scheduler cfq registered (default)
[    0.048948] io scheduler mq-deadline registered
[    0.048955] io scheduler kyber registered
[    0.049554] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.052876] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.053746] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.144294] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.147454] console [ttyS0] disabled
[    0.167733] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.764128] console [ttyS0] enabled
[    0.770387] panel-simple panel: panel supply power not found, using dummy regulator
[    0.780572] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.786395] libphy: Fixed MDIO Bus: probed
[    0.790935] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.797547] ehci-platform: EHCI generic platform driver
[    0.803044] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.808727] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.816685] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.844878] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.851979] hub 1-0:1.0: USB hub found
[    0.855915] hub 1-0:1.0: 1 port detected
[    0.860472] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.866781] ohci-platform: OHCI generic platform driver
[    0.872335] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.879055] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.887035] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.959851] hub 2-0:1.0: USB hub found
[    0.963680] hub 2-0:1.0: 1 port detected
[    0.971337] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.981063] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.987963] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.992544] i2c /dev entries driver
[    0.997467] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.006460] IR NEC protocol handler initialized
[    1.010996] IR RC5(x/sz) protocol handler initialized
[    1.016135] IR RC6 protocol handler initialized
[    1.020663] IR JVC protocol handler initialized
[    1.025211] IR Sony protocol handler initialized
[    1.029822] IR SANYO protocol handler initialized
[    1.034518] IR Sharp protocol handler initialized
[    1.039231] IR MCE Keyboard/mouse protocol handler initialized
[    1.045068] IR XMP protocol handler initialized
[    1.050291] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.114867] sunxi-mmc 1c0f000.mmc: base:0xc4079000 irq:24
[    1.121786] usbcore: registered new interface driver usbhid
[    1.127472] usbhid: USB HID core driver
[    1.133566] NET: Registered protocol family 17
[    1.138264] Key type dns_resolver registered
[    1.142688] Registering SWP/SWPB emulation handler
[    1.155412] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.166784] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.172547] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.183759] hub 3-0:1.0: USB hub found
[    1.187757] hub 3-0:1.0: 1 port detected
[    1.192825] using random self ethernet address
[    1.197407] using random host ethernet address
[    1.202751] usb0: HOST MAC 8e:c2:f5:ba:3e:7e
[    1.207231] usb0: MAC de:72:f7:d0:36:fc
[    1.211116] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.218639] g_cdc gadget: g_cdc ready
[    1.223638] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:50:36 UTC (3036)
[    1.232155] vcc3v0: disabling
[    1.235190] vcc5v0: disabling
[    1.238159] ALSA device list:
[    1.241122]   No soundcards found.
[    1.245499] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    1.253123] Please append a correct "root=" boot option; here are the available partitions:
[    1.261554] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.269901] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.14-licheepi-zero+ #2
[    1.277198] Hardware name: Allwinner sun8i Family
[    1.281937] [<c010e894>] (unwind_backtrace) from [<c010b548>] (show_stack+0x10/0x14)
[    1.289679] [<c010b548>] (show_stack) from [<c06868e8>] (dump_stack+0x88/0x9c)
[    1.296900] [<c06868e8>] (dump_stack) from [<c011b848>] (panic+0xdc/0x248)
[    1.303777] [<c011b848>] (panic) from [<c09011dc>] (mount_block_root+0x18c/0x260)
[    1.311256] [<c09011dc>] (mount_block_root) from [<c09013d0>] (mount_root+0x120/0x128)
[    1.319165] [<c09013d0>] (mount_root) from [<c0901528>] (prepare_namespace+0x150/0x194)
[    1.327162] [<c0901528>] (prepare_namespace) from [<c0900e28>] (kernel_init_freeable+0x1c4/0x1d4)
[    1.336026] [<c0900e28>] (kernel_init_freeable) from [<c0698aa0>] (kernel_init+0x8/0x108)
[    1.344197] [<c0698aa0>] (kernel_init) from [<c0107868>] (ret_from_fork+0x14/0x2c)
[    1.351768] Rebooting in 5 seconds..

在uboot里printenv如下,

=> printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=fel mmc0 usb0 pxe dhcp 
bootargs=console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
bootcmd=sf probe 0; sf read 0x41800000 0x100000 0x10000; sf read 0x41000000 0x110000 0x400000; bootz 0x41000000 - 0x41800000
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=2
bootm_size=0x2e00000
console=ttyS0,115200
cpu=armv7
dfu_alt_info_ram=kernel ram 0x41000000 0x800000;fdt ram 0x41800000 0x100000;ramdisk ram 0x41B00000 0x1000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr_r=0x41800000
fdtcontroladdr=43b57388
fdtfile=sun8i-v3s-licheepi-zero.dtb
kernel_addr_r=0x41000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
preboot=usb start
pxefile_addr_r=0x41A00000
ramdisk_addr_r=0x41B00000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scane
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_booe
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; e
scriptaddr=0x41900000
serial#=12c00001e4d75909
soc=sunxi
stderr=serial@01c28000
stdin=serial@01c28000
stdout=serial@01c28000
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi

Environment size: 4295/32764 bytes

#26 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-07-18 14:28:28

晕哥 说:
fan12398 说:

最新的uboot支持V3s的spi nor flash启动吗

看源码应该是支持的,当时我测试的是 usb 启动。

赞!

#27 Re: 全志 SOC » 编译 V3s 2019 版本的 u-boot » 2019-07-18 12:45:41

最新的uboot支持V3s的spi nor flash启动吗

#28 Re: 全志 SOC » sunxi-fel烧写f1c100s出错usb_bulk_send() ERROR » 2019-07-15 12:21:49

新买了一块,是好的。上一块还不知道是什么问题。

#30 Re: 全志 SOC » sunxi-fel烧写f1c100s出错usb_bulk_send() ERROR » 2019-07-12 15:01:50

晕哥 说:

每个芯片对应不同的 sunxi-fel 版本, 你使用的确实是对应的版本吗?

是的,不是对应版本的话会提示no sram info。嘿嘿,我又买了一块,等回来了再看看,感觉像是主芯片到spi nor flash脚虚焊了

#31 Re: 全志 SOC » sunxi-fel烧写f1c100s出错usb_bulk_send() ERROR » 2019-07-12 13:53:39

晕哥 说:

用 zadig 把 libusb 驱动装好了吗?可以在系统设备里面看到的。

驱动按教程来的,应该是好的
driver

#32 全志 SOC » sunxi-fel烧写f1c100s出错usb_bulk_send() ERROR » 2019-07-12 11:27:44

fan12398
回复: 7

sunxi-fel version 正常,直接sunxi-fel uboot u-boot-sunxi-with-spl.bin下到ram中运行也是正常。
但是spifalsh-write就一直出错,从没成功过。ERROR -1 -7 -8 -9都出现过。
我装的双系统,在ubuntu和win10下现象一样,换台电脑现象也一样。
我是淘宝上买的licheepi-nano,是不是我的板子主芯片坏了或者spi nor flash有问题?
出错截图

#33 Re: 全志 SOC » 请问f1c100s有哪几款可用的sdio wifi芯片啊 » 2019-07-09 12:21:33

晕哥 说:

以下都是SDIO的:

1. RTL8723BS:
https://whycan.cn/t_1133.html

2. AP6212模块(内部是BCM43438):
https://whycan.cn/t_2360.html
https://whycan.cn/t_2522.html

3. ESP8089(估计就是一个烧了某固件的ESP8266):
https://whycan.cn/t_2091.html


ESP8089出货量貌似挺大, 应该没有停产,具体要咨询乐鑫。

感谢晕哥指点。
RTL8189ES 有人在f1c100s上搞成功过吗?

#34 全志 SOC » 请问f1c100s有哪几款可用的sdio wifi芯片啊 » 2019-07-09 09:50:26

fan12398
回复: 6

最近想自己设计做电子相框,wifi通信的,看到很多人用的是esp8089,貌似这款芯片比较老,功耗也比较高,也不知道乐鑫停产没有。各位大佬有其他推荐的wifi芯片吗,最好是sdio的,适合做产品的,感激不尽!

页脚

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

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