您尚未登录。

#2 全志 SOC » 【讨论】如何开发一款基于ARM Linux的离线的语音助手 » 2024-02-29 14:25:33

liefyuan
回复: 2

我最终的目标是:
1、具有唤醒功能
2、本地离线,机器可以边学习边使用,前期弱智,后期会越来越聪明。
3、最理想的是一款“养成系的语音助手”。
4、所有的语音模型都是运行在本地。


分析了多款在卖的产品:
1、基于ESP32/ESP8266本地录音,通过网络上传到远程服务器进行SSE-ASR-NLU-DM-NLG-TTS,几乎所有的工作都在远程服务器上运行,本地则只负责声音采集和播放语音。


目前做了一下尝试:
1、交叉编译了Kaldi并移植到了全志H3,瑞芯微RV1126,瑞芯微RK3566,可以将自然语言转为文字。
2、使用snowboy制作了唤醒词。

并了解了大致框架:
e61ccdd4796a45b0a203c24a99629922.png


本人有时间、有精力但是不知道怎么开始,目前比较擅长使用的比较牛逼的芯片就是RK3566和RK3568.

#3 Re: 全志 SOC » 求助:RTL8723BS通过Buildroot移植Bluez5.56,Bluetooth工作不正常。 » 2024-02-20 14:40:23

我的芯片是瑞芯微  RV1103/RV1106,对应的SDK里面的交叉编译器的C库是基于uClibc,在bluez5_utils: not available with uClibc 可以了解到,Bluez5.27以后的版本是引入了glibc的wordexp模块的(对应的wordexp.c, wordexp.h)而uClibc是没有实现这个wordexp模块的。

好在bluez5源码里面自带了一个wordexp.h文件,里面的两个函数是空的没有实现(使得可以编译过去不报错),

#ifndef _WORDEXP_H_
#define _WORDEXP_H_

#define WRDE_NOCMD 0

typedef struct {
	size_t we_wordc;
	char **we_wordv;
	size_t we_offs;
} wordexp_t;

static inline int wordexp(const char *c, wordexp_t *w, int _i)
{
	return -1;
}

static inline void wordfree(wordexp_t *__wordexp)
{
}

#endif

目前评估可能是由于uClibc这个C库功能支持不完整导致 bluetoothctl软件的交互命令没有反应。

#4 Re: RK3288/RK3399/RK1108 » 求助,luckfox pico 驱动 dht11 设备树问题? » 2024-01-03 15:39:40

最新的SDK,文件系统已经是基于Buildroot构建的了!

#5 Re: 全志 SOC » 求助:RTL8723BS通过Buildroot移植Bluez5.56,Bluetooth工作不正常。 » 2024-01-03 15:37:34

使用hcitool是没有问题的,就是无法理解的是使用bluetoothctl软件进入交互界面,那些命令毫无反应。

#6 全志 SOC » 求助:RTL8723BS通过Buildroot移植Bluez5.56,Bluetooth工作不正常。 » 2024-01-02 10:42:59

liefyuan
回复: 2
# killall dbus-daemon
# rm /run/messagebus.pid
# dbus-daemon --system --print-pid --print-address
unix:path=/run/dbus/system_bus_socket,guid=c605419e56c29689568f731600000049
499
# insmod hci_uart.ko
[   85.769096] Bluetooth: HCI UART driver ver 2.2.74e8f89.20210423-153941
[   85.769134] Blue# tooth: HCI H4 protocol initialized
[   85.769142] Bluetooth: HCI Realtek H5 protocol initialized
[   85.769151] rtk_btcoex: rtk_btcoex_init: version: 1.2
[   85.769158] rtk_btcoex: create workqueue
[   85.770358] rtk_btcoex: alloc buffers 1408, 2240 for ev and l2

# ./rtk_hciattach -n -s 115200 /dev/ttyS5 rtk_h5 &
# [  111.202955] of_dma_request_slave_channel: dma-names property of nRealtek Bluetootode '/h :Realtek Bluetooth init uart witsh init speed:115200, type:HCI UART H5
erial@ff4Realtek Bluetooth :Realtek hciattach version 3.1.dced3af.20210423-153942

Realtek Bluetooth :Use epoll
f0000' missing or empty
[  111.203055] dw-apbRealtek Bluetooth :[SYNC] Get SYNC Resp Pkt
Realtek Bluetooth :[CONFIG] Get S-YNC pkt
uart ff4f0000.serial: failed to reqRealtek Bluetooth :[CONFIG] Get CONFG pkt
Realtek Bluetooth :[CONFIG] Get CONFG resp pkt
Realtek Bluetooth :dic is 1, cfg field 0x14
Realtek Bluetooth :H5 init finished

Realtek Bluetooth :Realtek H5 IC
uest DMA, use interrupt mode
Realtek Bluetooth :Receive cmd complete event of command: 1001
Realtek Bluetooth :HCI Version 0x06
Realtek Bluetooth :HCI Revision 0x000b
Realtek Bluetooth :LMP Subversion 0x8723
Realtek Bluetooth :Receive cmd complete event of command: fc6d
Realtek Bluetooth :Read ROM version 01
Realtek Bluetooth :LMP Subversion 0x8723
Realtek Bluetooth :EVersion 1
Realtek Bluetooth :IC: RTL8723BS
Realtek Bluetooth :Firmware/config: rtl8723b_fw, rtl8723b_config
Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory
Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr
Realtek Bluetooth :Origin cfg len 55
Realtek Bluetooth :55 ab 23 87 31 00 f4 00 08 01 00 00 00 05 50 00
Realtek Bluetooth :00 0c 00 10 02 80 92 04 50 c5 ea 19 e1 1b f1 af
Realtek Bluetooth :5f 01 a4 0b 27 00 01 63 fe 00 01 01 5b 01 04 0b
Realtek Bluetooth :0b 0b 0a e3 01 01 00
Realtek Bluetooth :Config baudrate: 04928002
Realtek Bluetooth :uart flow ctrl: 1
Realtek Bluetooth :Vendor baud from Config file: 04928002
Realtek Bluetooth :New cfg len 55
Realtek Bluetooth :55 ab 23 87 31 00 f4 00 08 01 00 00 00 05 50 00
Realtek Bluetooth :00 0c 00 10 02 80 92 04 50 c5 ea 19 e1 1b f1 af
Realtek Bluetooth :5f 01 a4 0b 27 00 01 63 fe 00 01 01 5b 01 04 0b
Realtek Bluetooth :0b 0b 0a e3 01 01 00
Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8723b_fw OK, size 51364
Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 1
Realtek Bluetooth :FW version 0x373e6962, Patch num 3
Realtek Bluetooth :Chip id 0x0000
Realtek Bluetooth :Chip id 0x0001
Realtek Bluetooth :Chip id 0x0002
Realtek Bluetooth :Patch length 0x5c5c
Realtek Bluetooth :Start offset 0x00006c00
Realtek Bluetooth :Svn version:    13226
Realtek Bluetooth :Coexistence: BTCOEX_20140708-5240

Realtek Bluetooth :FW  exists, Config file  exists
Realtek Bluetooth :Total len 23699 for fwc
Realtek Bluetooth :baudrate in change speed command: 0x02 0x80 0x92 0x04
Realtek Bluetooth :Receive cmd complete event of command: fc17
Realtek Bluetooth :Received cc of vendor change baud
Realtek Bluetooth :Final speed 1500000
Realtek Bluetooth :end_idx: 94, lp_len: 11, additional pkts: 5

Realtek Bluetooth :Start downloading...
Realtek Bluetooth :Send additional packet 95
Realtek Bluetooth :Send additional packet 96
Realtek Bluetooth :Send additional packet 97
Realtek Bluetooth :Send additional packet 98
Realtek Bluetooth :Last packet 227
Realtek Bluetooth :Send last pkt
Realtek Bluetooth :Enable host hw flow control
Realtek Bluetooth :h5_hci_reset: Issue hci reset cmd
Realtek Bluetooth :Receive cmd complete event of command: 0c03
Realtek Bluetooth :Received cc of hci reset cmd
Realtek Bluetooth :Init Process finished
[  112.061727] Bluetooth: h5_open
[  112.061780] Bluetooth:Realtek Bluetoot hci_h :Realtek Bluetouaoth post processrt_register_dev

Realtek Bluetoot[  112.0h :Device setup c68101] rtk_btcoex: Opeonmplete BTCOEX

[  112.076785] rtk_btcoex: BTCOEX hci_rev 0x373e
[  112.076807] rtk_btcoex: BTCOEX lmp_subver 0x6962
[  112.106088] Bluetooth: __hci_uart_flush: hdev 71d3cf89 tty 968ae35f
[  112.165995] Bluetooth: hci_uart_close: hdev 71d3cf89
[  112.166047] Bluetooth: __hci_uart_flush: hdev 71d3cf89 tty 968ae35f
[  112.166076] rtk_btcoex: Close BTCOEX
[  112.166098] rtk_btcoex: -x

#
#
# hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: 84:20:96:B1:4D:92  ACL MTU: 820:8  SCO MTU: 255:16
        DOWN
        RX bytes:1079 acl:0 sco:0 events:31 errors:0
        TX bytes:678 acl:0 sco:0 commands:31 errors:0

# hciconfig hci0 up
Can't init device hci0: Unknown error 132 (22)
# echo 1 > /sys/class/rfkill/rfkill2/state
# hciconfig hci0 up
[  149.015170] rtk_btcoex: Open BTCOEX
[  149.281276] Bluetooth: hu c7caa0e2 retransmitting 1 pkts
[  149.283642] rtk_btcoex: BTCOEX hci_rev 0x373e
[  149.283673] rtk_btcoex: BTCOEX lmp_subver 0x6962
#
# cd /usr/libexec/bluetooth/
# ./bluetoothd -n -d &
# bluetoothd[515]: Bluetooth daemon 5.65
bluetoothd[515]: src/adapter.c:adapter_init() sending read version command
bluetoothd[515]: Starting SDP server
bluetoothd[515]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0541
bluetoothd[515]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[515]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading gap plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[515]: src/plugin.c:add_plugin() Loading battery plugin
bluetoothd[515]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[515]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[515]: src/main.c:main() Entering main loop
bluetoothd[515]: src/shared/mgmt.c:send_request() [0xffff] command 0x0001
bluetoothd[515]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 1 hard 0
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0xffff] command 0x0001 complete: 0x00
bluetoothd[515]: Bluetooth management interface 1.18 initialized
bluetoothd[515]: src/adapter.c:read_version_complete() sending read supported commands command
bluetoothd[515]: src/adapter.c:read_version_complete() sending read index list command
bluetoothd[515]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 1 op 0 soft 0 hard 0
bluetoothd[515]: src/rfkill.c:rfkill_event() RFKILL event idx 2 type 2 op 0 soft 0 hard 0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0xffff] command 0x0002
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0xffff] command 0x0002 complete: 0x00
bluetoothd[515]: src/adapter.c:read_commands_complete() Number of commands: 79
bluetoothd[515]: src/adapter.c:read_commands_complete() Number of events: 40
bluetoothd[515]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
bluetoothd[515]: src/adapter.c:read_commands_complete() kernel supports the set_blocked_keys op
bluetoothd[515]: src/adapter.c:read_commands_complete() kernel supports controller cap command
bluetoothd[515]: src/adapter.c:read_commands_complete() kernel supports exp features
bluetoothd[515]: src/adapter.c:read_commands_complete() kernel supports set system confic
bluetoothd[515]: src/adapter.c:read_commands_complete() kernel supports suspend/resume events
bluetoothd[515]: src/shared/mgmt.c:send_request() [0xffff] command 0x0003
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0xffff] command 0x0003 complete: 0x00
bluetoothd[515]: src/adapter.c:read_index_list_complete() Number of controllers: 1
bluetoothd[515]: src/adapter.c:read_index_list_complete() Found index 0
bluetoothd[515]: src/adapter.c:index_added() index 0
bluetoothd[515]: src/adapter.c:reset_adv_monitors() sending remove Adv Monitor command with handle 0
bluetoothd[515]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.65
bluetoothd[515]: src/adapter.c:btd_adapter_new() Major class: 0
bluetoothd[515]: src/adapter.c:btd_adapter_new() Minor class: 0
bluetoothd[515]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0541
bluetoothd[515]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
bluetoothd[515]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
bluetoothd[515]: src/adapter.c:index_added() sending read info command for index 0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0053
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0053 complete: 0x00
bluetoothd[515]: src/adapter.c:reset_adv_monitors_complete() Removed all Adv Monitors
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0049
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0049 complete: 0x00
bluetoothd[515]: src/adapter.c:read_exp_features_complete() index 0 status 0x00
bluetoothd[515]: src/adapter.c:read_exp_features_complete() 671b10b5-42c0-4696-9227-eb28d1b049d6 flags 0 action 0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0004
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0004 complete: 0x00
bluetoothd[515]: src/adapter.c:read_info_complete() index 0 status 0x00
bluetoothd[515]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
bluetoothd[515]: src/adapter.c:clear_devices() sending clear devices command for index 0
bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/adapter.c:set_privacy() sending set privacy command for index 0
bluetoothd[515]: src/adapter.c:set_privacy() setting privacy mode 0x00 for index 0
bluetoothd[515]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0
bluetoothd[515]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9
bluetoothd[515]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[515]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[515]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9
bluetoothd[515]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[515]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[515]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[515]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000180a-0000-1000-8000-00805f9
bluetoothd[515]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[515]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[515]: src/advertising.c:btd_adv_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0
bluetoothd[515]: plugins/policy.c:policy_adapter_probe()
bluetoothd[515]: plugins/hostname.c:hostname_probe()
bluetoothd[515]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
bluetoothd[515]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
bluetoothd[515]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
bluetoothd[515]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
bluetoothd[515]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
bluetoothd[515]: src/adapter.c:load_link_keys() hci0 keys 0 debug_keys 0
bluetoothd[515]: src/adapter.c:load_ltks() hci0 keys 0
bluetoothd[515]: src/adapter.c:load_irks() hci0 irks 0
bluetoothd[515]: src/adapter.c:load_conn_params() hci0 conn params 0
bluetoothd[515]: src/adapter.c:load_connections() sending get connections command for index 0
bluetoothd[515]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[515]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[515]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 541
bluetoothd[515]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
bluetoothd[515]: src/adapter.c:set_dev_class() sending set device class command for index 0
bluetoothd[515]: src/adapter.c:set_name() sending set local name command for index 0
bluetoothd[515]: src/adapter.c:adapter_start() adapter /org/bluez/hci0 has been enabled
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0011
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0011 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0034
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0034 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x000b
[  285.041264] Bluetooth: hu c7caa0e2 retransmitting 1 pkts
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x000b complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x000000c1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000040
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x000d
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x000d complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x000002c1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000200
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[515]: src/adapter.c:trigger_passive_scanning()
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x002d
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x002d complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x00000ac1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000800
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x002f
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x2f status: 0x0b
bluetoothd[515]: Failed to set privacy: Rejected (0x0b)
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0010
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0010 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0010
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0010 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0010
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0010 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x003d
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x003d complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0027
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0027 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0012
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0012 complete: 0x00
bluetoothd[515]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0013
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0013 complete: 0x00
bluetoothd[515]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0030
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0030 complete: 0x00
bluetoothd[515]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0035
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0035 complete: 0x00
bluetoothd[515]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0015
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0015 complete: 0x00
bluetoothd[515]: src/adapter.c:get_connections_complete() Connection count: 0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0010
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0010 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0028
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0028 complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x000e
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x000e complete: 0x00
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x000f
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x000f complete: 0x00
bluetoothd[515]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.65
bluetoothd[515]: src/adapter.c:local_name_changed_callback() Short name:
bluetoothd[515]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.65
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0046
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0046 complete: 0x00
bluetoothd[515]: src/adapter.c:set_blocked_keys_complete() Successfully set blocked keys for index 0

#
#
#
# bluetoothctl
[bluetooth]# bluetoothd[515]: src/agent.c:add_default_agent() Default agent set to :1.1 /org/bluez/agent
bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/agent.c:agent_ref() 0x58a118: ref=1
bluetoothd[515]: src/agent.c:register_agent() agent :1.1
Agent registered
[blubluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0009
etooth]# bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0009 complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0018
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0018 complete: 0x00
[CHG] Controller 84:20:96:B1:4D:92 Pairable: yes
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# scan on
[bluetooth]# quit
bluetoothd[515]: src/agent.c:agent_disconnect() Agent :1.1 disconnected
bluetoothd[515]: src/agent.c:remove_default_agent() Default agent cleared
# bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/agent.c:agent_destroy() agent :1.1
bluetoothd[515]: src/agent.c:agent_unref() 0x58a118: ref=0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0009
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0009 complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x00000ac1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000

#
#
# hcitool dev
Devices:
        hci0    84:20:96:B1:4D:92
# hcitool lescan
[  427.201224] Bluetooth: hu c7caa0e2 retransmitting 1 pkts
LE Scan ...
24:96:AE:E4:A5:F4 (unknown)
72:70:12:68:D6:84 (unknown)
26:E0:40:6E:E9:D0 (unknown)
78:D2:46:88:AD:6A (unknown)
38:49:27:67:48:FD (unknown)
49:27:23:ED:48:B6 (unknown)
EA:D8:D1:7C:20:4F (unknown)
69:2B:1A:9B:9F:D3 (unknown)
C9:25:05:40:5C:7A YA50_D451A94C8A2371DD
50:0E:50:8D:A9:80 (unknown)
5E:A8:9D:9C:A7:64 (unknown)
F9:B8:E4:D8:90:96 YA50_D4E23ABD1F96A8D8
CB:C2:68:3F:4B:C2 (unknown)
6D:D9:9E:DE:C3:37 (unknown)
F1:D2:0B:C4:EF:4C YA50_E1BB5A0ADC1F067B
1D:9E:73:B1:E9:D9 (unknown)
F6:33:9C:C0:32:FA (unknown)
71:65:4E:7C:02:EE (unknown)
55:D7:61:98:65:E5 (unknown)
78:76:52:F9:B2:A5 (unknown)
30:F2:BB:9F:53:18 (unknown)
C1:93:C6:8B:E1:F2 (unknown)
CA:3C:4A:5F:2C:38 (unknown)
79:FF:1B:4E:09:83 (unknown)
0C:69:9E:DE:D4:27 (unknown)
^C#
#
# hcitool scan
Scanning ...
[  472.637751] rtk_btcoex: hci (periodic)inq start
[  482.882982] rtk_btcoex: inquiry complete
        70:BB:E9:F2:5F:FA       小米手机
        44:8C:00:46:17:C2       n/a
# hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: 84:20:96:B1:4D:92  ACL MTU: 820:8  SCO MTU: 255:16
        UP RUNNING
        RX bytes:4928 acl:0 sco:0 events:106 errors:0
        TX bytes:2674 acl:0 sco:0 commands:77 errors:0

# hciconfig -a
hci0:   Type: Primary  Bus: UART
        BD Address: 84:20:96:B1:4D:92  ACL MTU: 820:8  SCO MTU: 255:16
        UP RUNNING
        RX bytes:4928 acl:0 sco:0 events:106 errors:0
        TX bytes:2674 acl:0 sco:0 commands:77 errors:0
        Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: PERIPHERAL ACCEPT
[  569.414530] Bluetooth: hu c7caa0e2 retransmitting 1 pkts
        Name: 'BlueZ 5.65'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x373e
        LMP Version: 4.0 (0x6)  Subversion: 0x6962
        Manufacturer: Realtek Semiconductor Corporation (93)

# [  569.424401] rtk_btcoex: BTCOEX hci_rev 0x373e
[  569.424434] rtk_btcoex: BTCOEX lmp_subver 0x6962

如上是操作的全部过程,我遇到的问题是进入 bluetoothctl 的交互界面,没有任何反应,不知道是为啥。

# bluetoothctl
[bluetooth]# bluetoothd[515]: src/agent.c:add_default_agent() Default agent set to :1.1 /org/bluez/agent
bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/agent.c:agent_ref() 0x58a118: ref=1
bluetoothd[515]: src/agent.c:register_agent() agent :1.1
Agent registered
[blubluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0009
etooth]# bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0009 complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x00000ad1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0018
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0018 complete: 0x00
[CHG] Controller 84:20:96:B1:4D:92 Pairable: yes
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# scan on
[bluetooth]# quit
bluetoothd[515]: src/agent.c:agent_disconnect() Agent :1.1 disconnected
bluetoothd[515]: src/agent.c:remove_default_agent() Default agent cleared
# bluetoothd[515]: src/adapter.c:set_mode() sending set mode command for index 0
bluetoothd[515]: src/agent.c:agent_destroy() agent :1.1
bluetoothd[515]: src/agent.c:agent_unref() 0x58a118: ref=0
bluetoothd[515]: src/shared/mgmt.c:send_request() [0x0000] command 0x0009
bluetoothd[515]: src/shared/mgmt.c:can_read_data() [0x0000] command 0x0009 complete: 0x00
bluetoothd[515]: src/adapter.c:new_settings_callback() Settings: 0x00000ac1
bluetoothd[515]: src/adapter.c:settings_changed() Changed settings: 0x00000010
bluetoothd[515]: src/adapter.c:settings_changed() Pending settings: 0x00000000

#7 全志 SOC » Buildroot 编译出错 ERROR: Automatic wrap-based subproject downloading is » 2023-10-20 00:48:46

liefyuan
回复: 0

我在编译一个简单的Buildroot根文件系统的时候出现了一个从没有遇到过的错误,请大神帮忙看看,谢谢了。

Checking for size of "wchar_t" : 4
Checking if "GCC size_t typedef is int" compiles: YES 
Checking if "GCC size_t typedef is long" compiles: NO 
Checking if "__va_copy check" compiles: YES 
Checking if "va_copy check" compiles: YES 
Checking if "ISO C99 varargs macros in C" compiles: YES 
Checking if "GNUC varargs macros" compiles: YES 
Has header "alloca.h" : YES (cached)
Has header "sys/poll.h" : YES 
Has header "sys/types.h" : YES (cached)
Has header "winsock2.h" : NO 
Computing int of "POLLIN" : 1
Computing int of "POLLOUT" : 4
Computing int of "POLLPRI" : 2
Computing int of "POLLERR" : 8
Computing int of "POLLHUP" : 16
Computing int of "POLLNVAL" : 32
Computing int of "AF_UNIX" : 1
Computing int of "AF_INET" : 2
Computing int of "AF_INET6" : 10
Computing int of "MSG_OOB" : 1
Computing int of "MSG_PEEK" : 2
Computing int of "MSG_DONTROUTE" : 4
Checking for type "struct in6_addr" : YES 
Checking if "atomic ops" : links: YES 
Checking if "atomic ops define" compiles: YES 
Run-time dependency threads found: YES
Header "pthread.h" has symbol "pthread_attr_setstacksize" : YES 
Header "pthread.h" has symbol "pthread_attr_setinheritsched" : YES 
Header "pthread.h" has symbol "pthread_condattr_setclock" : YES 
Header "pthread.h" has symbol "pthread_cond_timedwait_relative_np" : NO 
Header "pthread.h" has symbol "pthread_getname_np" : YES 
Header "sys/syscall.h" has symbol "SYS_sched_getattr" : YES 
Checking if "pthread_setname_np(const char*)" with dependency threads: links: NO 
Checking if "pthread_setname_np(pthread_t, const char*)" with dependency threads: links: YES 
Header "iconv.h" has symbol "iconv_open" : YES 
Library iconv found: YES
Found pkg-config: /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/source/buildroot-2023.02.6/output/host/bin/pkgconf (1.6.3)
Run-time dependency libpcre found: YES 8.45
Library m found: YES
Run-time dependency libffi found: YES 3.4.4
Run-time dependency zlib found: YES 1.2.13
Checking for function "ngettext" : NO 
Library intl found: NO

output/build/libglib2-2.72.3/meson.build:2102:4: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/source/buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-logs/meson-log.txt
package/pkg-generic.mk:273: recipe for target '/home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/source/buildroot-2023.02.6/output/build/libglib2-2.72.3/.stamp_configured' failed
make[1]: *** [/home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/source/buildroot-2023.02.6/output/build/libglib2-2.72.3/.stamp_configured] Error 1
Makefile:82: recipe for target '_all' failed
make: *** [_all] Error 2

buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-logs/meson-log.txt文件内容:

Checking for function "ngettext" : NO
Running compile:
Working directory:  /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/tools/board/buildroot/buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-private/tmpq5wyfo6i
Command line:  /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/tools/board/buildroot/buildroot-2023.02.6/output/host/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/tools/board/buildroot/buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-private/tmpq5wyfo6i/testfile.c -o /home/liefyuan/rv1103/luckfox-pico-main-origin/sysdrv/tools/board/buildroot/buildroot-2023.02.6/output/build/libglib2-2.72.3/build/meson-private/tmpq5wyfo6i/output.exe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Os -g0 -D_FILE_OFFSET_BITS=64 -O0 -Wl,--start-group -lintl -Wl,--end-group -Wl,--allow-shlib-undefined

Code:
 int main(void) { return 0; }

Compiler stdout:

Compiler stderr:
 /home/liefyuan/rv1103/luckfox-pico-main-origin/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/../lib/gcc/arm-rockchip830-linux-uclibcgnueabihf/8.3.0/../../../../arm-rockchip830-linux-uclibcgnueabihf/bin/ld.bfd: cannot find -lintl
collect2: error: ld returned 1 exit status

Library intl found: NO

output/build/libglib2-2.72.3/meson.build:2102:4: ERROR: Automatic wrap-based subproject downloading is disabled

#8 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2023-09-18 01:17:02

上电信息:

U-Boot SPL 2022.04 (Sep 18 2023 - 00:29:22 +0800)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x20000
sunxi SPI-NAND: u-boot hcrc OK!


U-Boot 2022.04 (Sep 18 2023 - 00:29:22 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
Core:  23 devices, 11 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select! : -110
In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Reading 131072 byte(s) (64 page(s)) at offset 0x00100000
Reading 5242880 byte(s) (2560 page(s)) at offset 0x00120000
Kernel image @ 0x41000000 [ 0x000000 - 0x4462a0 ]
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff021 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (liefyuan@ubuntu) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP Mon Sep 18 00:44:44 HKT 2023
[    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] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:1M(uboot)ro,128k(dtb)ro,5M(kernel)ro,-(rootfs) ubi.mtd=3 root=ubi0:rootfs rw rootfstype=ubifs
[    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: 54004K/65536K available (7168K kernel code, 309K rwdata, 1748K rodata, 1024K init, 257K bss, 11532K 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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x300/0x48c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    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.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000206] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000454] Console: colour dummy device 80x30
[    0.000509] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000526] pid_max: default: 32768 minimum: 301
[    0.000692] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000709] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001518] CPU: Testing write buffer coherency: ok
[    0.002030] /cpus/cpu@0 missing clock-frequency property
[    0.002055] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002816] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003016] rcu: Hierarchical SRCU implementation.
[    0.003559] smp: Bringing up secondary CPUs ...
[    0.003580] smp: Brought up 1 node, 1 CPU
[    0.003590] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003596] CPU: All CPU(s) started in HYP mode.
[    0.003601] CPU: Virtualization extensions available.
[    0.004671] devtmpfs: initialized
[    0.008303] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008602] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008634] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008877] pinctrl core: initialized pinctrl subsystem
[    0.010023] NET: Registered protocol family 16
[    0.010536] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011803] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011822] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.039661] SCSI subsystem initialized
[    0.039833] usbcore: registered new interface driver usbfs
[    0.039923] usbcore: registered new interface driver hub
[    0.040037] usbcore: registered new device driver usb
[    0.040445] mc: Linux media interface: v0.10
[    0.040503] videodev: Linux video capture interface: v2.00
[    0.040717] Advanced Linux Sound Architecture Driver Initialized.
[    0.042525] clocksource: Switched to clocksource arch_sys_counter
[    0.054786] NET: Registered protocol family 2
[    0.055586] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.055626] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.055650] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.055675] TCP: Hash tables configured (established 1024 bind 1024)
[    0.055821] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.055872] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.056162] NET: Registered protocol family 1
[    0.058007] Initialise system trusted keyrings
[    0.058392] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.094888] Key type asymmetric registered
[    0.094912] Asymmetric key parser 'x509' registered
[    0.095008] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.095021] io scheduler mq-deadline registered
[    0.095029] io scheduler kyber registered
[    0.096072] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.099827] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.100244] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.100971] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.207369] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.210787] printk: console [ttyS0] disabled
[    0.231090] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.777121] printk: console [ttyS0] enabled
[    0.783118] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.816395] panel-simple panel: panel supply power not found, using dummy regulator
[    0.825713] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.837258] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.842655] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.851489] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.857938] Creating 4 MTD partitions on "spi0.0":
[    0.862771] 0x000000000000-0x000000100000 : "uboot"
[    0.870563] 0x000000100000-0x000000120000 : "dtb"
[    0.876422] 0x000000120000-0x000000620000 : "kernel"
[    0.882823] random: fast init done
[    0.896001] 0x000000620000-0x000008000000 : "rootfs"
[    1.066934] random: crng init done
[    1.152983] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.159517] ehci-platform: EHCI generic platform driver
[    1.165120] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.170729] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.178727] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    1.212529] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.219697] hub 1-0:1.0: USB hub found
[    1.223666] hub 1-0:1.0: 1 port detected
[    1.228284] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.234607] ohci-platform: OHCI generic platform driver
[    1.240150] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.246866] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.254824] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.327566] hub 2-0:1.0: USB hub found
[    1.331403] hub 2-0:1.0: 1 port detected
[    1.338704] usbcore: registered new interface driver usb-storage
[    1.346320] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.351383] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.356127] i2c /dev entries driver
[    1.360994] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    1.370661] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.379378] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.415156] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.422708] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.434060] usbcore: registered new interface driver usbhid
[    1.439636] usbhid: USB HID core driver
[    1.446245] Initializing XFRM netlink socket
[    1.450555] NET: Registered protocol family 17
[    1.455681] Registering SWP/SWPB emulation handler
[    1.461591] Loading compiled-in X.509 certificates
[    1.475524] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.488068] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0848700)
[    1.495646] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc08459fc)
[    1.503384] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.509990] [drm] No driver support for vblank timestamp query.
[    1.516976] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.577198] Console: switching to colour frame buffer device 100x30
[    1.605684] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.613687] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.625210] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.630978] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.640100] hub 3-0:1.0: USB hub found
[    1.644059] hub 3-0:1.0: 1 port detected
[    1.649336] ubi0: attaching mtd3
[    2.783395] ubi0: scanning is finished
[    2.802438] ubi0: attached mtd3 (name "rootfs", size 121 MiB)
[    2.808283] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.815175] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.821990] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.828962] ubi0: good PEBs: 975, bad PEBs: 0, corrupted PEBs: 0
[    2.834975] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.842198] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 2044279944
[    2.851331] ubi0: available PEBs: 0, total reserved PEBs: 975, PEBs reserved for bad PEB handling: 20
[    2.860632] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T02:04:24 UTC (7464)
[    2.869105] vcc3v0: disabling
[    2.872080] vcc3v3: disabling
[    2.875100] vcc5v0: disabling
[    2.878066] ALSA device list:
[    2.881030]   No soundcards found.
[    2.885035] ubi0: background thread "ubi_bgt0d" started, PID 93
[    2.893346] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    2.901567] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 94
[    2.979892] UBIFS (ubi0:0): recovery needed
[    3.169975] UBIFS (ubi0:0): recovery completed
[    3.174670] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.182063] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.192011] UBIFS (ubi0:0): FS size: 91549696 bytes (87 MiB, 721 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    3.202502] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    3.208334] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 7831B145-D97D-464D-B67B-5D6C3C51E18C, small LPT model
[    3.221318] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    3.231470] devtmpfs: mounted
[    3.235800] Freeing unused kernel memory: 1024K
[    3.240545] Run /sbin/init as init process
Starting logging: OK
Starting mdev...
/etc/init.d/S10mdev: line 21: can't create /proc/sys/kernel/hotplug: nonexistent directory
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK

Welcome to Lichee Pi
Lichee login: root
# cd /
# cat /proc/mtd*
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00020000 00020000 "dtb"
mtd2: 00500000 00020000 "kernel"
mtd3: 079e0000 00020000 "rootfs"
#

#9 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2023-09-18 01:13:41

刚刚v3s spinand flash w25n01gvzeig全部调通:

所有的流程和工程源码都在这里了

【全志V3s】SPI NAND Flash 驱动开发

2023年9月18日01:13:34

#10 Re: 全志 SOC » 全志v3s无法从SPI NAND FLASH启动 » 2023-09-17 18:39:27

编译成功后,需要修改uboot输出文件使其可以在spinandflash上运行,此时,u-boot-sunxi-with-spl.bin还不能被直接下载到nand flash。因为V3s默认从spi nand flash加载page内容,是1个page加载1KB。我使用的是winbond的W25N01GVZEIG,它的page是2KB。
使用的脚步gen_sunxi_spinand_onlyboot_img.sh
脚本地址:https://github.com/bamkrs/openwrt/blob/dolphinpi-spinand/target/linux/sunxi/image/gen_sunxi_spinand_onlyboot_img.sh

#!/usr/bin/env bash
#
# Copyright (C) 2019 Benedikt-Alexander Mokroß (iCOGNIZE GmbH)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

set -ex
[ $# -eq 4 ] || [ $# -eq 6 ] || {
    echo "SYNTAX: $0 <outputfile> <u-boot image> <nand page size> <nand block size in KiB> [<spl copies> <u-boot copies>]"
    echo "Given: $@"
    exit 1
}

OUTPUT="$1"
UBOOT="$2"
PAGESIZE="$3"
BLOCKSIZE="$4"
SPLCOPIES="0"
UBOOTCOPIES="0"

[ $# -eq 6 ] && {
	SPLCOPIES=$(($5 - 1))
	UBOOTCOPIES=$(($6 - 1))
}

# SPL-Size is an uint32 at 16 bytes offset contained in the SPL header
SPLSIZE=$(od -An -t u4 -j16 -N4 "$UBOOT" | xargs)
# The u-boot size is at offset 12 (4. 32-bit int) from the start of u-boot, which is padded 0x2000 bytes (observed) after the SPL 
UBOOTSIZE=$(od --endian=big -An -t u4 -j $(($SPLSIZE + 8192 + 12)) -N4 "$UBOOT" | xargs)

ALIGNCHECK=$(($PAGESIZE%1024))
if [ "$ALIGNCHECK" -ne "0" ]; then
	echo "Page-size is not 1k alignable and thus not supported by EGON"
	exit -1
fi

KPAGESIZE=$(($PAGESIZE/1024))
SPLBLOCKS=$(($SPLSIZE/1024))
LOOPSPLBLOCKS=$(($SPLBLOCKS-1))
SPLENTRYSTEPS=$(($KPAGESIZE * 32))
TOTALSPLSIZE=$((($SPLENTRYSTEPS * $SPLCOPIES) + $SPLBLOCKS))
NEXTPEB=$(($TOTALSPLSIZE + $BLOCKSIZE - ($TOTALSPLSIZE % $BLOCKSIZE)))
UBOOTPEBS=$((($UBOOTSIZE/1024) + $BLOCKSIZE - ($UBOOTSIZE/1024) % $BLOCKSIZE))

echo "$@" > $OUTPUT.imgmeta
echo "SPL-size $SPLSIZE">> $OUTPUT.imgmeta
echo "u-boot-size $UBOOTSIZE">> $OUTPUT.imgmeta
echo "block-size 1 KiB" >> $OUTPUT.imgmeta
echo "Page-size $KPAGESIZE KiB">> $OUTPUT.imgmeta
echo "PEB-size $BLOCKSIZE KiB">> $OUTPUT.imgmeta
echo "SPL-count $(($SPLCOPIES + 1))">> $OUTPUT.imgmeta
echo "u-boot-count $(($UBOOTCOPIES + 1))">> $OUTPUT.imgmeta
printf "SPL-entry-steps 0x%x\n" $(($SPLENTRYSTEPS*1024))>> $OUTPUT.imgmeta
echo "SPL-blocks $TOTALSPLSIZE">> $OUTPUT.imgmeta
echo "u-boot-block $UBOOTPEBS">> $OUTPUT.imgmeta
echo "first-u-boot $NEXTPEB">> $OUTPUT.imgmeta
echo "## Layout ##">> $OUTPUT.imgmeta

# The BROM of the SUNXI is only able to load 1k per page from SPI-NAND
# Thus, even if we have an 2k or 4k page-size, we have to chunk the SPL in 1k pieces
#
# Entry-Pages:
#          32,      64,      96,      128,      160,      192,      224
# 1k:  0x8000, 0x10000, 0x18000   0x20000,  0x28000,  0x30000,  0x38000
# 2k: 0x10000, 0x20000, 0x30000,  0x40000,  0x50000,  0x60000,  0x70000
# 4K: 0x20000, 0x40000, 0x60000,  0x80000,  0xA0000,  0xC0000,  0xE0000
# 8K: 0x40000, 0x80000, 0xC0000, 0x100000, 0x140000, 0x180000, 0x1C0000

echo "Generating 0-image for boot part of size $SPLSIZE ($SPLBLOCKS blocks)"
dd if="/dev/zero" of="$OUTPUT" bs=1024 count=$(($SPLBLOCKS * ($SPLCOPIES + 1)))

for splcopy in `seq 0 $SPLCOPIES`;
do
	echo "SPL Copy $splcopy"
	printf "spl-%u 0x%x\n" $splcopy $(($SPLENTRYSTEPS * $splcopy * 1024)) >> $OUTPUT.imgmeta
	echo "Copying block 0 to $(($SPLENTRYSTEPS * $splcopy))"
	dd if="$UBOOT" of="$OUTPUT" bs=1024 count=2 seek=$(($SPLENTRYSTEPS * $splcopy)) skip=0 conv=notrunc

	for from in `seq 1 $LOOPSPLBLOCKS`;
	do
		to=$((($SPLENTRYSTEPS * $splcopy) + ($from*$KPAGESIZE)))
		echo "Copying block $from to $to" 
		dd if="$UBOOT" of="$OUTPUT" bs=1024 count=1 seek=$to skip=$from conv=notrunc
	done

done

# it was observed, that u-boot is padded 0x2000 behind the spl. so add 0x2000 (= 8192 -> 8x1024k blocks) to the splsize to get the uboot-entry
for ubootcopy in `seq 0 $UBOOTCOPIES`;
do
	echo "Appending u-boot to chunked SPL at block $(($NEXTPEB + ($UBOOTPEBS * $ubootcopy))) (origin: $SPLBLOCKS)"
	dd if="$UBOOT" of="$OUTPUT" bs=1024 seek=$(($NEXTPEB + ($UBOOTPEBS * $ubootcopy))) skip=$(($SPLBLOCKS + 8)) conv=notrunc

	printf "u-boot-%u 0x%x\n" $ubootcopy $((($NEXTPEB + ($UBOOTPEBS * $ubootcopy)) * 1024)) >> $OUTPUT.imgmeta
done

运行命令:

./gen_sunxi_spinand_onlyboot_img.sh split.bin u-boot-sunxi-with-spl.bin 2048 128

1.其中split.bin代表生成的目标文件,u-boot-sunxi-with-spl.bin表示刚刚编译好的uboot文件,2048代表page大小,单位是byte,而128则代表block大小,单位是k byte。

下载修改后的uboot文件到spinandflash文件

$ sudo xfel spinand erase 0x0 0x100000
[sudo] password for liefyuan: 
100% [================================================] 1024.000 KB, 4.381 MB/s        
$ sudo xfel spinand write 0x0 split.bin
100% [================================================] 505.250 KB, 91.550 KB/s        

写入文件是nandflash的由0开始的地址空间。
上电信息

U-Boot SPL 2017.01-rc2 (Sep 16 2023 - 23:29:35)
DRAM: 64 MiB
Trying to boot from sunxi SPI

上电失败。。。。
折腾一大圈,还是失败,卡在上面的那个位置。
1.尝试了一下,uboot烧录到开始位置偏移8KB的位置,连这点打印信息都没有了。而是直接进入USB升级模式了。说明spinandflash真的是从0地址开始读取固件的。

#11 Re: 全志 SOC » T113-s3 Buildroot SDK,有几个Qt Demo很有意思(CarlifeDemo等)编译不过,求大神帮助。 » 2023-09-04 18:10:44

我买这块板子是被里面的这几个Qt Demo吸引的,我想通过这个几个Qt Demo学习一下,据商家说这个几个demo像carlifedemo改一改就可以用在小轿车上的中控屏上面了。
_20230904180409.png

我编译后报了很多错误,我修改了一些错误,不过还有大量的错误,如上图。头都大了。

比如大量的xxxxx.so文件里面出现没有定义的引用标识符。
_20230904180931.png

#12 全志 SOC » T113-s3 Buildroot SDK,有几个Qt Demo很有意思(CarlifeDemo等)编译不过,求大神帮助。 » 2023-09-04 18:00:39

liefyuan
回复: 6

我从某宝上买了一块REVB-T113的板子,商家给的SDK说是原厂提供的,说实话我是被里面的几个Qt Demo吸引住的,怎奈何自己技术有限,编译不过去。


如下

_20230904174835.png

板子商家没有技术支持!

- CameraUI:可以编译过去。
- CarlifeDemo:不能编译过去
- Launcher:可以编译过去
- MediaUI:可以编译过去
- phoneMachineConnect:不能编译过去
- ui_qt_simple:不能编译过去


SDK下载链接:
链接: https://pan.baidu.com/s/15ZFfWSWfRgXMIlZrJQALjw
提取码:lief

#13 全志 SOC » Line in接口插了话筒却录的都是杂音!被大佬笑死了!原来Line in和Mic in是有区别的!还有不知道的小伙伴赶紧补补! » 2023-04-20 15:44:36

liefyuan
回复: 5

Mic in 接口用来连接麦克风,芯片内部有放大器,可以对来自麦克风的信号进行放大。

Line in 只能输入音频信号,芯片内部没有放大器,因此不能连接麦克风,只能输入来自其他播放器的音频信号。

Line out 是音频信号输出,此信号未经放大器放大,所以功率小,驱动能力弱,只能输出到其他的音频接收设备(比如电脑音响),不能直接接到耳机、扬声器。电脑音响接收到Line out信号后,经过内部放大器的放大来驱动喇叭发声。

#14 Re: 全志 SOC » 求救!调试电容触摸屏,使用tslib里面的调试打印程序ts_print_mt,X轴数据正常变化,Y轴数据跳变 » 2023-03-20 00:47:27

然后再在运行的LVGL的demo中,只有左半部分是可以滑动触摸的,右半部分是没有反应的。

360截图17610612387843.jpg

太奇怪了,哪位大佬有遇到过吗?

#15 全志 SOC » 求救!调试电容触摸屏,使用tslib里面的调试打印程序ts_print_mt,X轴数据正常变化,Y轴数据跳变 » 2023-03-20 00:33:10

liefyuan
回复: 1

屏幕信息:MIPI屏,1024x600

操作:
运行程序ts_print_mt,然后食指均匀从上部左边到右边均匀划过,输出打印的信息Y轴数据是不连续的,并且没有规律

_20230320002512.jpg

其中有大的断裂Y轴数据:
1、267直接跳到600多

sample 0 - 1679214059.024727 - (slot 0)    260     28    255
sample 0 - 1679214059.036413 - (slot 0)    262     28    255
sample 0 - 1679214059.047390 - (slot 0)    263     29    255
sample 0 - 1679214059.057314 - (slot 0)    264     29    255
sample 0 - 1679214059.067888 - (slot 0)    265     30    255
sample 0 - 1679214059.077858 - (slot 0)    267     30    255
sample 0 - 1679214059.087589 - (slot 0)    268     30    255
sample 0 - 1679214059.098597 - (slot 0)    657     34    255
sample 0 - 1679214059.109808 - (slot 0)    657     34    255
sample 0 - 1679214059.119715 - (slot 0)    657     34    255
sample 0 - 1679214059.130936 - (slot 0)    657     34    255
sample 0 - 1679214059.138304 - (slot 0)    657     34    255
sample 0 - 1679214059.149538 - (slot 0)    657     34    255

2、737直接跳到1000多

sample 0 - 1679214059.940523 - (slot 0)    737     38    255
sample 0 - 1679214059.951649 - (slot 0)    737     38    255
sample 0 - 1679214059.962513 - (slot 0)    737     38    255
sample 0 - 1679214059.970897 - (slot 0)    737     38    255
sample 0 - 1679214059.983147 - (slot 0)    737     38    255
sample 0 - 1679214059.992488 - (slot 0)   1099     41    255
sample 0 - 1679214060.003070 - (slot 0)   1099     41    255
sample 0 - 1679214060.012711 - (slot 0)   1099     41    255
sample 0 - 1679214060.020961 - (slot 0)   1099     41    255
sample 0 - 1679214060.033545 - (slot 0)   1099     41    255
sample 0 - 1679214060.043428 - (slot 0)   1099     41    255
sample 0 - 1679214060.053849 - (slot 0)   1099     41    255
sample 0 - 1679214060.063898 - (slot 0)   1099     41    255
sample 0 - 1679214060.074286 - (slot 0)   1099     41    255
sample 0 - 1679214060.084518 - (slot 0)   1099     41    255
sample 0 - 1679214060.095319 - (slot 0)   1099     41    255
sample 0 - 1679214060.105171 - (slot 0)   1099     41    255
sample 0 - 1679214060.115692 - (slot 0)   1099     41    255
sample 0 - 1679214060.125587 - (slot 0)   1098     41    2

3、从1018然后递减到900多

sample 0 - 1679214059.931828 - (slot 0)    737     38    255
sample 0 - 1679214059.940523 - (slot 0)    737     38    255
sample 0 - 1679214059.951649 - (slot 0)    737     38    255
sample 0 - 1679214059.962513 - (slot 0)    737     38    255
sample 0 - 1679214059.970897 - (slot 0)    737     38    255
sample 0 - 1679214059.983147 - (slot 0)    737     38    255
sample 0 - 1679214059.992488 - (slot 0)   1099     41    255
sample 0 - 1679214060.003070 - (slot 0)   1099     41    255
sample 0 - 1679214060.012711 - (slot 0)   1099     41    255
sample 0 - 1679214060.020961 - (slot 0)   1099     41    255
sample 0 - 1679214060.033545 - (slot 0)   1099     41    255
sample 0 - 1679214060.043428 - (slot 0)   1099     41    255
sample 0 - 1679214060.053849 - (slot 0)   1099     41    255
sample 0 - 1679214060.063898 - (slot 0)   1099     41    255
sample 0 - 1679214060.074286 - (slot 0)   1099     41    255
sample 0 - 1679214060.084518 - (slot 0)   1099     41    255
sample 0 - 1679214060.095319 - (slot 0)   1099     41    255
sample 0 - 1679214060.105171 - (slot 0)   1099     41    255
sample 0 - 1679214060.115692 - (slot 0)   1099     41    255
sample 0 - 1679214060.125587 - (slot 0)   1098     41    255
sample 0 - 1679214060.136385 - (slot 0)   1096     40    255
sample 0 - 1679214060.146715 - (slot 0)   1093     38    255
sample 0 - 1679214060.156123 - (slot 0)   1088     37    255
sample 0 - 1679214060.166685 - (slot 0)   1083     37    255
sample 0 - 1679214060.177437 - (slot 0)   1078     36    255
sample 0 - 1679214060.187395 - (slot 0)   1074     36    255
sample 0 - 1679214060.197549 - (slot 0)   1071     36    255
sample 0 - 1679214060.207823 - (slot 0)   1067     36    255
sample 0 - 1679214060.218620 - (slot 0)   1064     36    255
sample 0 - 1679214060.227371 - (slot 0)   1061     36    255
sample 0 - 1679214060.238692 - (slot 0)   1058     36    255
sample 0 - 1679214060.249164 - (slot 0)   1055     37    255
sample 0 - 1679214060.259599 - (slot 0)   1053     37    255
sample 0 - 1679214060.269560 - (slot 0)   1050     37    255
sample 0 - 1679214060.279740 - (slot 0)   1048     37    255
sample 0 - 1679214060.290021 - (slot 0)   1046     37    255
sample 0 - 1679214060.300225 - (slot 0)   1044     37    255
sample 0 - 1679214060.310932 - (slot 0)   1043     37    255
sample 0 - 1679214060.320792 - (slot 0)   1041     38    255
sample 0 - 1679214060.330994 - (slot 0)   1040     38    255
sample 0 - 1679214060.341351 - (slot 0)   1039     39    255
sample 0 - 1679214060.351715 - (slot 0)   1038     39    255
sample 0 - 1679214060.361947 - (slot 0)   1038     39    255
sample 0 - 1679214060.372906 - (slot 0)   1037     39    255
sample 0 - 1679214060.381405 - (slot 0)   1036     39    255
sample 0 - 1679214060.391669 - (slot 0)   1036     39    255
sample 0 - 1679214060.400096 - (slot 0)   1035     39    255
sample 0 - 1679214060.411797 - (slot 0)   1034     39    255
sample 0 - 1679214060.420837 - (slot 0)   1033     39    255
sample 0 - 1679214060.433719 - (slot 0)   1032     39    255
sample 0 - 1679214060.441691 - (slot 0)   1030     39    255
sample 0 - 1679214060.453452 - (slot 0)   1028     38    255
sample 0 - 1679214060.463069 - (slot 0)   1026     38    255
sample 0 - 1679214060.472836 - (slot 0)   1023     38    255
sample 0 - 1679214060.482402 - (slot 0)   1021     37    255
sample 0 - 1679214060.493310 - (slot 0)   1018     36    255
sample 0 - 1679214060.504120 - (slot 0)   1015     35    255
sample 0 - 1679214060.514633 - (slot 0)   1012     35    255
sample 0 - 1679214060.523769 - (slot 0)   1009     34    255
sample 0 - 1679214060.534635 - (slot 0)   1007     33    255
sample 0 - 1679214060.544698 - (slot 0)   1005     33    255
sample 0 - 1679214060.555563 - (slot 0)   1003     33    255
sample 0 - 1679214060.565440 - (slot 0)   1001     33    255
sample 0 - 1679214060.575477 - (slot 0)    999     33    255
sample 0 - 1679214060.585665 - (slot 0)    998     33    255
sample 0 - 1679214060.596642 - (slot 0)    997     33    255
sample 0 - 1679214060.606335 - (slot 0)    995     33    255
sample 0 - 1679214060.617332 - (slot 0)    994     33    255
sample 0 - 1679214060.627389 - (slot 0)    992     33    255
sample 0 - 1679214060.637084 - (slot 0)    991     33    255
sample 0 - 1679214060.647897 - (slot 0)    989     33    255
sample 0 - 1679214060.658211 - (slot 0)    988     33    255
sample 0 - 1679214060.668319 - (slot 0)    986     33    255
sample 0 - 1679214060.679649 - (slot 0)    984     33    255
sample 0 - 1679214060.690062 - (slot 0)    982     33    255
sample 0 - 1679214060.700212 - (slot 0)    980     33    255
sample 0 - 1679214060.710854 - (slot 0)    978     33    255
sample 0 - 1679214060.720711 - (slot 0)    977     33    255
sample 0 - 1679214060.731545 - (slot 0)    975     33    255
sample 0 - 1679214060.741189 - (slot 0)    973     33    255
sample 0 - 1679214060.751759 - (slot 0)    971     33    255
sample 0 - 1679214060.761944 - (slot 0)    968     33    255
sample 0 - 1679214060.773052 - (slot 0)    966     33    255
sample 0 - 1679214060.782627 - (slot 0)    964     33    255
sample 0 - 1679214060.792720 - (slot 0)    962     34    255
sample 0 - 1679214060.803159 - (slot 0)    960     34    255
sample 0 - 1679214060.814258 - (slot 0)    959     34    255
sample 0 - 1679214060.822465 - (slot 0)    957     34    255
sample 0 - 1679214060.834231 - (slot 0)    956     34    255
sample 0 - 1679214060.842985 - (slot 0)    954     34    255
sample 0 - 1679214060.854873 - (slot 0)    952     34    255
sample 0 - 1679214060.864005 - (slot 0)    949     34    255
sample 0 - 1679214060.874793 - (slot 0)    947     34    255
sample 0 - 1679214060.885625 - (slot 0)    944     35    255
sample 0 - 1679214060.896187 - (slot 0)    942     35    255
sample 0 - 1679214060.906188 - (slot 0)    940     36    255
sample 0 - 1679214060.916507 - (slot 0)    937     37    255
sample 0 - 1679214060.925795 - (slot 0)    935     37    255
sample 0 - 1679214060.936532 - (slot 0)    933     37    255
sample 0 - 1679214060.946847 - (slot 0)    931     37    255
sample 0 - 1679214060.956163 - (slot 0)    929     37    255
sample 0 - 1679214060.966317 - (slot 0)    928     38    255
sample 0 - 1679214060.976254 - (slot 0)    926     38    255
sample 0 - 1679214060.985402 - (slot 0)    925     38    255
sample 0 - 1679214060.996314 - (slot 0)    923     38    255
sample 0 - 1679214061.005850 - (slot 0)    922     39    255
sample 0 - 1679214061.016438 - (slot 0)    921     39    255
sample 0 - 1679214061.026491 - (slot 0)    920     39    255
sample 0 - 1679214061.036889 - (slot 0)    919     39    255
sample 0 - 1679214061.047695 - (slot 0)    918     39    255
sample 0 - 1679214061.057465 - (slot 0)    918     39    255
sample 0 - 1679214061.070994 - (slot 0)    918     39    255
sample 0 - 1679214061.080898 - (slot 0)    917     39    255
sample 0 - 1679214061.091132 - (slot 0)    917     39    255
sample 0 - 1679214061.101844 - (slot 0)    917     39    255
sample 0 - 1679214061.111823 - (slot 0)    917     40    255
sample 0 - 1679214061.122308 - (slot 0)    917     40    255
sample 0 - 1679214061.132296 - (slot 0)    917     40    255
sample 0 - 1679214061.143067 - (slot 0)    917     40    255
sample 0 - 1679214061.150888 - (slot 0)    917     40    255
sample 0 - 1679214061.161536 - (slot 0)    916     39    255
sample 0 - 1679214061.173297 - (slot 0)    916     39    255
sample 0 - 1679214061.184034 - (slot 0)    915     39    255
sample 0 - 1679214061.193331 - (slot 0)    915     39    255
sample 0 - 1679214061.201932 - (slot 0)    915     39    255
sample 0 - 1679214061.214748 - (slot 0)    915     39    255
sample 0 - 1679214061.224627 - (slot 0)    915     39    255
sample 0 - 1679214061.234840 - (slot 0)    914     39    255
sample 0 - 1679214061.243350 - (slot 0)    914     38    255
sample 0 - 1679214061.256518 - (slot 0)    914     38    255
sample 0 - 1679214061.265820 - (slot 0)    914     38    255
sample 0 - 1679214061.276189 - (slot 0)    914     38    255
sample 0 - 1679214061.284685 - (slot 0)    914     38    255
sample 0 - 1679214061.296995 - (slot 0)    914     37    255
sample 0 - 1679214061.306887 - (slot 0)    914     37    255
sample 0 - 1679214061.317802 - (slot 0)    914     36    255
sample 0 - 1679214061.327471 - (slot 0)    914     36    255
sample 0 - 1679214061.337671 - (slot 0)    914     35    255
sample 0 - 1679214061.345770 - (slot 0)    914     35    255

具体打印如下:

[root@yuan:/usr/bin]# ts_print_mt
sample 0 - 1679214056.833965 - (slot 0)     10     13    255
sample 0 - 1679214056.844196 - (slot 0)     10     13    255
sample 0 - 1679214056.857805 - (slot 0)     10     13    255
sample 0 - 1679214056.865451 - (slot 0)     10     13    255
sample 0 - 1679214056.875760 - (slot 0)     10     13    255
sample 0 - 1679214056.886063 - (slot 0)     10     13    255
sample 0 - 1679214056.896288 - (slot 0)     10     13    255
sample 0 - 1679214056.906586 - (slot 0)     10     13    255
sample 0 - 1679214056.916909 - (slot 0)     10     13    255
sample 0 - 1679214056.927133 - (slot 0)     10     13    255
sample 0 - 1679214056.937405 - (slot 0)     10     13    255
sample 0 - 1679214056.947617 - (slot 0)     10     13    255
sample 0 - 1679214056.960485 - (slot 0)     10     13    255
sample 0 - 1679214056.970326 - (slot 0)     10     13    255
sample 0 - 1679214056.978488 - (slot 0)     10     13    255
sample 0 - 1679214056.988774 - (slot 0)     10     13    255
sample 0 - 1679214057.001545 - (slot 0)     10     13    255
sample 0 - 1679214057.009273 - (slot 0)     10     13    255
sample 0 - 1679214057.022107 - (slot 0)     10     13    255
sample 0 - 1679214057.031806 - (slot 0)     10     13    255
sample 0 - 1679214057.041663 - (slot 0)     10     13    255
sample 0 - 1679214057.052980 - (slot 0)     10     13    255
sample 0 - 1679214057.063385 - (slot 0)     10     13    255
sample 0 - 1679214057.070890 - (slot 0)     10     13    255
sample 0 - 1679214057.081194 - (slot 0)     10     13    255
sample 0 - 1679214057.094004 - (slot 0)     10     13    255
sample 0 - 1679214057.104332 - (slot 0)     10     13    255
sample 0 - 1679214057.114302 - (slot 0)     10     13    255
sample 0 - 1679214057.122370 - (slot 0)     10     13    255
sample 0 - 1679214057.133886 - (slot 0)     10     13    255
sample 0 - 1679214057.144355 - (slot 0)     10     13    255
sample 0 - 1679214057.155053 - (slot 0)     10     13    255
sample 0 - 1679214057.165824 - (slot 0)     10     13    255
sample 0 - 1679214057.176505 - (slot 0)     10     13    255
sample 0 - 1679214057.186550 - (slot 0)     10     13    255
sample 0 - 1679214057.196764 - (slot 0)     10     13    255
sample 0 - 1679214057.206592 - (slot 0)     10     13    255
sample 0 - 1679214057.216945 - (slot 0)     10     13    255
sample 0 - 1679214057.227483 - (slot 0)     10     13    255
sample 0 - 1679214057.238317 - (slot 0)     10     13    255
sample 0 - 1679214057.247931 - (slot 0)     10     13    255
sample 0 - 1679214057.258025 - (slot 0)     10     13    255
sample 0 - 1679214057.268339 - (slot 0)     10     13    255
sample 0 - 1679214057.279460 - (slot 0)     10     13    255
sample 0 - 1679214057.288861 - (slot 0)     10     13    255
sample 0 - 1679214057.299180 - (slot 0)     10     13    255
sample 0 - 1679214057.309352 - (slot 0)     10     13    255
sample 0 - 1679214057.320002 - (slot 0)     10     13    255
sample 0 - 1679214057.329695 - (slot 0)     10     13    255
sample 0 - 1679214057.340618 - (slot 0)     10     13    255
sample 0 - 1679214057.350510 - (slot 0)     10     13    255
sample 0 - 1679214057.361619 - (slot 0)     11     15    255
sample 0 - 1679214057.369169 - (slot 0)     15     17    255
sample 0 - 1679214057.379136 - (slot 0)     20     19    255
sample 0 - 1679214057.391922 - (slot 0)     26     20    255
sample 0 - 1679214057.400779 - (slot 0)     30     21    255
sample 0 - 1679214057.413310 - (slot 0)     33     22    255
sample 0 - 1679214057.420193 - (slot 0)     34     22    255
sample 0 - 1679214057.431174 - (slot 0)     35     22    255
sample 0 - 1679214057.440894 - (slot 0)     36     21    255
sample 0 - 1679214057.452081 - (slot 0)     37     21    255
sample 0 - 1679214057.462263 - (slot 0)     37     21    255
sample 0 - 1679214057.473667 - (slot 0)     38     22    255
sample 0 - 1679214057.482896 - (slot 0)     39     22    255
sample 0 - 1679214057.494288 - (slot 0)     40     22    255
sample 0 - 1679214057.503023 - (slot 0)     42     23    255
sample 0 - 1679214057.514744 - (slot 0)     44     23    255
sample 0 - 1679214057.523955 - (slot 0)     46     23    255
sample 0 - 1679214057.535362 - (slot 0)     48     24    255
sample 0 - 1679214057.543189 - (slot 0)     50     24    255
sample 0 - 1679214057.555754 - (slot 0)     52     25    255
sample 0 - 1679214057.566251 - (slot 0)     54     26    255
sample 0 - 1679214057.576910 - (slot 0)     57     27    255
sample 0 - 1679214057.586866 - (slot 0)     60     28    255
sample 0 - 1679214057.597001 - (slot 0)     62     28    255
sample 0 - 1679214057.606102 - (slot 0)     65     29    255
sample 0 - 1679214057.617904 - (slot 0)     68     29    255
sample 0 - 1679214057.626694 - (slot 0)     70     28    255
sample 0 - 1679214057.638399 - (slot 0)     73     27    255
sample 0 - 1679214057.648867 - (slot 0)     75     26    255
sample 0 - 1679214057.659425 - (slot 0)     77     25    255
sample 0 - 1679214057.670783 - (slot 0)     79     24    255
sample 0 - 1679214057.680029 - (slot 0)     81     23    255
sample 0 - 1679214057.692033 - (slot 0)     83     22    255
sample 0 - 1679214057.700530 - (slot 0)     84     21    255
sample 0 - 1679214057.712157 - (slot 0)     86     20    255
sample 0 - 1679214057.721056 - (slot 0)     88     19    255
sample 0 - 1679214057.731173 - (slot 0)     90     18    255
sample 0 - 1679214057.742451 - (slot 0)     91     18    255
sample 0 - 1679214057.751693 - (slot 0)     93     17    255
sample 0 - 1679214057.762668 - (slot 0)     95     17    255
sample 0 - 1679214057.772357 - (slot 0)     97     17    255
sample 0 - 1679214057.783786 - (slot 0)     99     17    255
sample 0 - 1679214057.792551 - (slot 0)    101     17    255
sample 0 - 1679214057.802799 - (slot 0)    104     17    255
sample 0 - 1679214057.814710 - (slot 0)    106     17    255
sample 0 - 1679214057.823524 - (slot 0)    108     17    255
sample 0 - 1679214057.834743 - (slot 0)    110     16    255
sample 0 - 1679214057.843989 - (slot 0)    113     16    255
sample 0 - 1679214057.854985 - (slot 0)    114     16    255
sample 0 - 1679214057.864764 - (slot 0)    116     16    255
sample 0 - 1679214057.875932 - (slot 0)    117     15    255
sample 0 - 1679214057.885120 - (slot 0)    119     15    255
sample 0 - 1679214057.896259 - (slot 0)    120     15    255
sample 0 - 1679214057.905782 - (slot 0)    121     15    255
sample 0 - 1679214057.915753 - (slot 0)    122     15    255
sample 0 - 1679214057.927210 - (slot 0)    123     15    255
sample 0 - 1679214057.936735 - (slot 0)    124     15    255
sample 0 - 1679214057.948570 - (slot 0)    125     15    255
sample 0 - 1679214057.956795 - (slot 0)    127     15    255
sample 0 - 1679214057.967324 - (slot 0)    128     15    255
sample 0 - 1679214057.976811 - (slot 0)    129     15    255
sample 0 - 1679214057.986268 - (slot 0)    130     15    255
sample 0 - 1679214057.996356 - (slot 0)    131     15    255
sample 0 - 1679214058.006754 - (slot 0)    132     15    255
sample 0 - 1679214058.016560 - (slot 0)    134     15    255
sample 0 - 1679214058.027100 - (slot 0)    135     15    255
sample 0 - 1679214058.037508 - (slot 0)    136     15    255
sample 0 - 1679214058.047692 - (slot 0)    136     15    255
sample 0 - 1679214058.057952 - (slot 0)    137     15    255
sample 0 - 1679214058.070873 - (slot 0)    138     15    255
sample 0 - 1679214058.081647 - (slot 0)    139     15    255
sample 0 - 1679214058.091808 - (slot 0)    140     16    255
sample 0 - 1679214058.102403 - (slot 0)    140     16    255
sample 0 - 1679214058.112750 - (slot 0)    142     17    255
sample 0 - 1679214058.123100 - (slot 0)    143     17    255
sample 0 - 1679214058.133206 - (slot 0)    144     17    255
sample 0 - 1679214058.140971 - (slot 0)    146     17    255
sample 0 - 1679214058.152397 - (slot 0)    147     17    255
sample 0 - 1679214058.163554 - (slot 0)    149     17    255
sample 0 - 1679214058.173994 - (slot 0)    150     17    255
sample 0 - 1679214058.183984 - (slot 0)    152     17    255
sample 0 - 1679214058.194555 - (slot 0)    154     17    255
sample 0 - 1679214058.204639 - (slot 0)    155     17    255
sample 0 - 1679214058.214228 - (slot 0)    157     17    255
sample 0 - 1679214058.225073 - (slot 0)    158     17    255
sample 0 - 1679214058.235228 - (slot 0)    159     16    255
sample 0 - 1679214058.245706 - (slot 0)    161     16    255
sample 0 - 1679214058.253836 - (slot 0)    162     16    255
sample 0 - 1679214058.264319 - (slot 0)    163     15    255
sample 0 - 1679214058.276481 - (slot 0)    164     15    255
sample 0 - 1679214058.286495 - (slot 0)    165     15    255
sample 0 - 1679214058.295223 - (slot 0)    166     15    255
sample 0 - 1679214058.307551 - (slot 0)    167     15    255
sample 0 - 1679214058.315493 - (slot 0)    168     15    255
sample 0 - 1679214058.326155 - (slot 0)    169     15    255
sample 0 - 1679214058.337944 - (slot 0)    170     15    255
sample 0 - 1679214058.347300 - (slot 0)    171     15    255
sample 0 - 1679214058.357980 - (slot 0)    172     15    255
sample 0 - 1679214058.369201 - (slot 0)    173     15    255
sample 0 - 1679214058.379147 - (slot 0)    174     15    255
sample 0 - 1679214058.387979 - (slot 0)    175     15    255
sample 0 - 1679214058.397897 - (slot 0)    176     15    255
sample 0 - 1679214058.410414 - (slot 0)    177     15    255
sample 0 - 1679214058.420298 - (slot 0)    178     15    255
sample 0 - 1679214058.430683 - (slot 0)    179     15    255
sample 0 - 1679214058.441196 - (slot 0)    180     15    255
sample 0 - 1679214058.451674 - (slot 0)    181     15    255
sample 0 - 1679214058.460779 - (slot 0)    182     15    255
sample 0 - 1679214058.471664 - (slot 0)    183     15    255
sample 0 - 1679214058.481977 - (slot 0)    184     15    255
sample 0 - 1679214058.492757 - (slot 0)    185     16    255
sample 0 - 1679214058.502960 - (slot 0)    186     16    255
sample 0 - 1679214058.512985 - (slot 0)    187     17    255
sample 0 - 1679214058.523528 - (slot 0)    189     17    255
sample 0 - 1679214058.533685 - (slot 0)    190     17    255
sample 0 - 1679214058.543485 - (slot 0)    192     17    255
sample 0 - 1679214058.553963 - (slot 0)    194     17    255
sample 0 - 1679214058.563919 - (slot 0)    196     17    255
sample 0 - 1679214058.574611 - (slot 0)    197     17    255
sample 0 - 1679214058.585025 - (slot 0)    199     17    255
sample 0 - 1679214058.593870 - (slot 0)    200     17    255
sample 0 - 1679214058.605460 - (slot 0)    202     17    255
sample 0 - 1679214058.615844 - (slot 0)    203     16    255
sample 0 - 1679214058.626022 - (slot 0)    204     16    255
sample 0 - 1679214058.635945 - (slot 0)    206     16    255
sample 0 - 1679214058.644296 - (slot 0)    207     16    255
sample 0 - 1679214058.656490 - (slot 0)    208     16    255
sample 0 - 1679214058.666874 - (slot 0)    210     16    255
sample 0 - 1679214058.675059 - (slot 0)    211     16    255
sample 0 - 1679214058.687352 - (slot 0)    213     16    255
sample 0 - 1679214058.697573 - (slot 0)    214     16    255
sample 0 - 1679214058.708564 - (slot 0)    216     16    255
sample 0 - 1679214058.716291 - (slot 0)    217     16    255
sample 0 - 1679214058.727832 - (slot 0)    219     16    255
sample 0 - 1679214058.739672 - (slot 0)    221     16    255
sample 0 - 1679214058.748925 - (slot 0)    222     16    255
sample 0 - 1679214058.759039 - (slot 0)    224     17    255
sample 0 - 1679214058.767889 - (slot 0)    225     17    255
sample 0 - 1679214058.779909 - (slot 0)    226     19    255
sample 0 - 1679214058.788206 - (slot 0)    227     20    255
sample 0 - 1679214058.799561 - (slot 0)    228     22    255
sample 0 - 1679214058.809979 - (slot 0)    229     23    255
sample 0 - 1679214058.820093 - (slot 0)    230     24    255
sample 0 - 1679214058.830899 - (slot 0)    232     25    255
sample 0 - 1679214058.840795 - (slot 0)    234     25    255
sample 0 - 1679214058.851694 - (slot 0)    235     26    255
sample 0 - 1679214058.862079 - (slot 0)    237     26    255
sample 0 - 1679214058.873018 - (slot 0)    239     26    255
sample 0 - 1679214058.882660 - (slot 0)    240     26    255
sample 0 - 1679214058.892619 - (slot 0)    242     27    255
sample 0 - 1679214058.903648 - (slot 0)    243     27    255
sample 0 - 1679214058.913827 - (slot 0)    245     27    255
sample 0 - 1679214058.923362 - (slot 0)    246     27    255
sample 0 - 1679214058.934165 - (slot 0)    247     27    255
sample 0 - 1679214058.944201 - (slot 0)    249     27    255
sample 0 - 1679214058.955000 - (slot 0)    250     27    255
sample 0 - 1679214058.963565 - (slot 0)    252     27    255
sample 0 - 1679214058.974997 - (slot 0)    253     27    255
sample 0 - 1679214058.984811 - (slot 0)    255     27    255
sample 0 - 1679214058.996118 - (slot 0)    256     27    255
sample 0 - 1679214059.006285 - (slot 0)    257     27    255
sample 0 - 1679214059.016426 - (slot 0)    259     27    255
sample 0 - 1679214059.024727 - (slot 0)    260     28    255
sample 0 - 1679214059.036413 - (slot 0)    262     28    255
sample 0 - 1679214059.047390 - (slot 0)    263     29    255
sample 0 - 1679214059.057314 - (slot 0)    264     29    255
sample 0 - 1679214059.067888 - (slot 0)    265     30    255
sample 0 - 1679214059.077858 - (slot 0)    267     30    255
sample 0 - 1679214059.087589 - (slot 0)    268     30    255
sample 0 - 1679214059.098597 - (slot 0)    657     34    255
sample 0 - 1679214059.109808 - (slot 0)    657     34    255
sample 0 - 1679214059.119715 - (slot 0)    657     34    255
sample 0 - 1679214059.130936 - (slot 0)    657     34    255
sample 0 - 1679214059.138304 - (slot 0)    657     34    255
sample 0 - 1679214059.149538 - (slot 0)    657     34    255
sample 0 - 1679214059.159694 - (slot 0)    657     34    255
sample 0 - 1679214059.171391 - (slot 0)    657     34    255
sample 0 - 1679214059.181027 - (slot 0)    657     34    255
sample 0 - 1679214059.191732 - (slot 0)    657     34    255
sample 0 - 1679214059.202377 - (slot 0)    657     34    255
sample 0 - 1679214059.212639 - (slot 0)    657     34    255
sample 0 - 1679214059.222783 - (slot 0)    657     34    255
sample 0 - 1679214059.233037 - (slot 0)    657     34    255
sample 0 - 1679214059.243765 - (slot 0)    657     34    255
sample 0 - 1679214059.253213 - (slot 0)    657     34    255
sample 0 - 1679214059.264494 - (slot 0)    657     34    255
sample 0 - 1679214059.274373 - (slot 0)    657     34    255
sample 0 - 1679214059.284740 - (slot 0)    657     34    255
sample 0 - 1679214059.295401 - (slot 0)    657     34    255
sample 0 - 1679214059.305215 - (slot 0)    657     34    255
sample 0 - 1679214059.315002 - (slot 0)    657     34    255
sample 0 - 1679214059.324531 - (slot 0)    657     34    255
sample 0 - 1679214059.335260 - (slot 0)    657     34    255
sample 0 - 1679214059.345274 - (slot 0)    657     34    255
sample 0 - 1679214059.354209 - (slot 0)    657     34    255
sample 0 - 1679214059.365002 - (slot 0)    657     34    255
sample 0 - 1679214059.377481 - (slot 0)    657     34    255
sample 0 - 1679214059.384107 - (slot 0)    657     34    255
sample 0 - 1679214059.393927 - (slot 0)    657     34    255
sample 0 - 1679214059.406325 - (slot 0)    657     34    255
sample 0 - 1679214059.417006 - (slot 0)    657     34    255
sample 0 - 1679214059.426478 - (slot 0)    657     34    255
sample 0 - 1679214059.437584 - (slot 0)    657     34    255
sample 0 - 1679214059.447780 - (slot 0)    657     34    255
sample 0 - 1679214059.458514 - (slot 0)    659     35    255
sample 0 - 1679214059.468513 - (slot 0)    662     36    255
sample 0 - 1679214059.478591 - (slot 0)    666     36    255
sample 0 - 1679214059.489341 - (slot 0)    671     37    255
sample 0 - 1679214059.499692 - (slot 0)    674     37    255
sample 0 - 1679214059.510146 - (slot 0)    678     38    255
sample 0 - 1679214059.520275 - (slot 0)    681     38    255
sample 0 - 1679214059.530105 - (slot 0)    683     38    255
sample 0 - 1679214059.540733 - (slot 0)    686     38    255
sample 0 - 1679214059.549869 - (slot 0)    688     38    255
sample 0 - 1679214059.558617 - (slot 0)    691     38    255
sample 0 - 1679214059.571092 - (slot 0)    693     38    255
sample 0 - 1679214059.581258 - (slot 0)    696     38    255
sample 0 - 1679214059.591696 - (slot 0)    698     38    255
sample 0 - 1679214059.599923 - (slot 0)    701     38    255
sample 0 - 1679214059.612267 - (slot 0)    704     38    255
sample 0 - 1679214059.622473 - (slot 0)    706     38    255
sample 0 - 1679214059.632794 - (slot 0)    709     38    255
sample 0 - 1679214059.643382 - (slot 0)    712     38    255
sample 0 - 1679214059.652243 - (slot 0)    715     38    255
sample 0 - 1679214059.662376 - (slot 0)    717     38    255
sample 0 - 1679214059.674385 - (slot 0)    719     38    255
sample 0 - 1679214059.684392 - (slot 0)    721     38    255
sample 0 - 1679214059.694291 - (slot 0)    723     38    255
sample 0 - 1679214059.705157 - (slot 0)    724     39    255
sample 0 - 1679214059.715534 - (slot 0)    725     39    255
sample 0 - 1679214059.725270 - (slot 0)    726     39    255
sample 0 - 1679214059.735451 - (slot 0)    727     39    255
sample 0 - 1679214059.745158 - (slot 0)    728     39    255
sample 0 - 1679214059.756236 - (slot 0)    730     39    255
sample 0 - 1679214059.766309 - (slot 0)    731     39    255
sample 0 - 1679214059.776449 - (slot 0)    732     39    255
sample 0 - 1679214059.787843 - (slot 0)    733     39    255
sample 0 - 1679214059.796806 - (slot 0)    734     39    255
sample 0 - 1679214059.808010 - (slot 0)    735     39    255
sample 0 - 1679214059.817369 - (slot 0)    735     39    255
sample 0 - 1679214059.828406 - (slot 0)    735     39    255
sample 0 - 1679214059.839634 - (slot 0)    735     39    255
sample 0 - 1679214059.849266 - (slot 0)    736     39    255
sample 0 - 1679214059.858716 - (slot 0)    736     39    255
sample 0 - 1679214059.868345 - (slot 0)    736     39    255
sample 0 - 1679214059.880550 - (slot 0)    736     39    255
sample 0 - 1679214059.891069 - (slot 0)    736     39    255
sample 0 - 1679214059.900831 - (slot 0)    736     39    255
sample 0 - 1679214059.911303 - (slot 0)    736     38    255
sample 0 - 1679214059.921325 - (slot 0)    737     38    255
sample 0 - 1679214059.931828 - (slot 0)    737     38    255
sample 0 - 1679214059.940523 - (slot 0)    737     38    255
sample 0 - 1679214059.951649 - (slot 0)    737     38    255
sample 0 - 1679214059.962513 - (slot 0)    737     38    255
sample 0 - 1679214059.970897 - (slot 0)    737     38    255
sample 0 - 1679214059.983147 - (slot 0)    737     38    255
sample 0 - 1679214059.992488 - (slot 0)   1099     41    255
sample 0 - 1679214060.003070 - (slot 0)   1099     41    255
sample 0 - 1679214060.012711 - (slot 0)   1099     41    255
sample 0 - 1679214060.020961 - (slot 0)   1099     41    255
sample 0 - 1679214060.033545 - (slot 0)   1099     41    255
sample 0 - 1679214060.043428 - (slot 0)   1099     41    255
sample 0 - 1679214060.053849 - (slot 0)   1099     41    255
sample 0 - 1679214060.063898 - (slot 0)   1099     41    255
sample 0 - 1679214060.074286 - (slot 0)   1099     41    255
sample 0 - 1679214060.084518 - (slot 0)   1099     41    255
sample 0 - 1679214060.095319 - (slot 0)   1099     41    255
sample 0 - 1679214060.105171 - (slot 0)   1099     41    255
sample 0 - 1679214060.115692 - (slot 0)   1099     41    255
sample 0 - 1679214060.125587 - (slot 0)   1098     41    255
sample 0 - 1679214060.136385 - (slot 0)   1096     40    255
sample 0 - 1679214060.146715 - (slot 0)   1093     38    255
sample 0 - 1679214060.156123 - (slot 0)   1088     37    255
sample 0 - 1679214060.166685 - (slot 0)   1083     37    255
sample 0 - 1679214060.177437 - (slot 0)   1078     36    255
sample 0 - 1679214060.187395 - (slot 0)   1074     36    255
sample 0 - 1679214060.197549 - (slot 0)   1071     36    255
sample 0 - 1679214060.207823 - (slot 0)   1067     36    255
sample 0 - 1679214060.218620 - (slot 0)   1064     36    255
sample 0 - 1679214060.227371 - (slot 0)   1061     36    255
sample 0 - 1679214060.238692 - (slot 0)   1058     36    255
sample 0 - 1679214060.249164 - (slot 0)   1055     37    255
sample 0 - 1679214060.259599 - (slot 0)   1053     37    255
sample 0 - 1679214060.269560 - (slot 0)   1050     37    255
sample 0 - 1679214060.279740 - (slot 0)   1048     37    255
sample 0 - 1679214060.290021 - (slot 0)   1046     37    255
sample 0 - 1679214060.300225 - (slot 0)   1044     37    255
sample 0 - 1679214060.310932 - (slot 0)   1043     37    255
sample 0 - 1679214060.320792 - (slot 0)   1041     38    255
sample 0 - 1679214060.330994 - (slot 0)   1040     38    255
sample 0 - 1679214060.341351 - (slot 0)   1039     39    255
sample 0 - 1679214060.351715 - (slot 0)   1038     39    255
sample 0 - 1679214060.361947 - (slot 0)   1038     39    255
sample 0 - 1679214060.372906 - (slot 0)   1037     39    255
sample 0 - 1679214060.381405 - (slot 0)   1036     39    255
sample 0 - 1679214060.391669 - (slot 0)   1036     39    255
sample 0 - 1679214060.400096 - (slot 0)   1035     39    255
sample 0 - 1679214060.411797 - (slot 0)   1034     39    255
sample 0 - 1679214060.420837 - (slot 0)   1033     39    255
sample 0 - 1679214060.433719 - (slot 0)   1032     39    255
sample 0 - 1679214060.441691 - (slot 0)   1030     39    255
sample 0 - 1679214060.453452 - (slot 0)   1028     38    255
sample 0 - 1679214060.463069 - (slot 0)   1026     38    255
sample 0 - 1679214060.472836 - (slot 0)   1023     38    255
sample 0 - 1679214060.482402 - (slot 0)   1021     37    255
sample 0 - 1679214060.493310 - (slot 0)   1018     36    255
sample 0 - 1679214060.504120 - (slot 0)   1015     35    255
sample 0 - 1679214060.514633 - (slot 0)   1012     35    255
sample 0 - 1679214060.523769 - (slot 0)   1009     34    255
sample 0 - 1679214060.534635 - (slot 0)   1007     33    255
sample 0 - 1679214060.544698 - (slot 0)   1005     33    255
sample 0 - 1679214060.555563 - (slot 0)   1003     33    255
sample 0 - 1679214060.565440 - (slot 0)   1001     33    255
sample 0 - 1679214060.575477 - (slot 0)    999     33    255
sample 0 - 1679214060.585665 - (slot 0)    998     33    255
sample 0 - 1679214060.596642 - (slot 0)    997     33    255
sample 0 - 1679214060.606335 - (slot 0)    995     33    255
sample 0 - 1679214060.617332 - (slot 0)    994     33    255
sample 0 - 1679214060.627389 - (slot 0)    992     33    255
sample 0 - 1679214060.637084 - (slot 0)    991     33    255
sample 0 - 1679214060.647897 - (slot 0)    989     33    255
sample 0 - 1679214060.658211 - (slot 0)    988     33    255
sample 0 - 1679214060.668319 - (slot 0)    986     33    255
sample 0 - 1679214060.679649 - (slot 0)    984     33    255
sample 0 - 1679214060.690062 - (slot 0)    982     33    255
sample 0 - 1679214060.700212 - (slot 0)    980     33    255
sample 0 - 1679214060.710854 - (slot 0)    978     33    255
sample 0 - 1679214060.720711 - (slot 0)    977     33    255
sample 0 - 1679214060.731545 - (slot 0)    975     33    255
sample 0 - 1679214060.741189 - (slot 0)    973     33    255
sample 0 - 1679214060.751759 - (slot 0)    971     33    255
sample 0 - 1679214060.761944 - (slot 0)    968     33    255
sample 0 - 1679214060.773052 - (slot 0)    966     33    255
sample 0 - 1679214060.782627 - (slot 0)    964     33    255
sample 0 - 1679214060.792720 - (slot 0)    962     34    255
sample 0 - 1679214060.803159 - (slot 0)    960     34    255
sample 0 - 1679214060.814258 - (slot 0)    959     34    255
sample 0 - 1679214060.822465 - (slot 0)    957     34    255
sample 0 - 1679214060.834231 - (slot 0)    956     34    255
sample 0 - 1679214060.842985 - (slot 0)    954     34    255
sample 0 - 1679214060.854873 - (slot 0)    952     34    255
sample 0 - 1679214060.864005 - (slot 0)    949     34    255
sample 0 - 1679214060.874793 - (slot 0)    947     34    255
sample 0 - 1679214060.885625 - (slot 0)    944     35    255
sample 0 - 1679214060.896187 - (slot 0)    942     35    255
sample 0 - 1679214060.906188 - (slot 0)    940     36    255
sample 0 - 1679214060.916507 - (slot 0)    937     37    255
sample 0 - 1679214060.925795 - (slot 0)    935     37    255
sample 0 - 1679214060.936532 - (slot 0)    933     37    255
sample 0 - 1679214060.946847 - (slot 0)    931     37    255
sample 0 - 1679214060.956163 - (slot 0)    929     37    255
sample 0 - 1679214060.966317 - (slot 0)    928     38    255
sample 0 - 1679214060.976254 - (slot 0)    926     38    255
sample 0 - 1679214060.985402 - (slot 0)    925     38    255
sample 0 - 1679214060.996314 - (slot 0)    923     38    255
sample 0 - 1679214061.005850 - (slot 0)    922     39    255
sample 0 - 1679214061.016438 - (slot 0)    921     39    255
sample 0 - 1679214061.026491 - (slot 0)    920     39    255
sample 0 - 1679214061.036889 - (slot 0)    919     39    255
sample 0 - 1679214061.047695 - (slot 0)    918     39    255
sample 0 - 1679214061.057465 - (slot 0)    918     39    255
sample 0 - 1679214061.070994 - (slot 0)    918     39    255
sample 0 - 1679214061.080898 - (slot 0)    917     39    255
sample 0 - 1679214061.091132 - (slot 0)    917     39    255
sample 0 - 1679214061.101844 - (slot 0)    917     39    255
sample 0 - 1679214061.111823 - (slot 0)    917     40    255
sample 0 - 1679214061.122308 - (slot 0)    917     40    255
sample 0 - 1679214061.132296 - (slot 0)    917     40    255
sample 0 - 1679214061.143067 - (slot 0)    917     40    255
sample 0 - 1679214061.150888 - (slot 0)    917     40    255
sample 0 - 1679214061.161536 - (slot 0)    916     39    255
sample 0 - 1679214061.173297 - (slot 0)    916     39    255
sample 0 - 1679214061.184034 - (slot 0)    915     39    255
sample 0 - 1679214061.193331 - (slot 0)    915     39    255
sample 0 - 1679214061.201932 - (slot 0)    915     39    255
sample 0 - 1679214061.214748 - (slot 0)    915     39    255
sample 0 - 1679214061.224627 - (slot 0)    915     39    255
sample 0 - 1679214061.234840 - (slot 0)    914     39    255
sample 0 - 1679214061.243350 - (slot 0)    914     38    255
sample 0 - 1679214061.256518 - (slot 0)    914     38    255
sample 0 - 1679214061.265820 - (slot 0)    914     38    255
sample 0 - 1679214061.276189 - (slot 0)    914     38    255
sample 0 - 1679214061.284685 - (slot 0)    914     38    255
sample 0 - 1679214061.296995 - (slot 0)    914     37    255
sample 0 - 1679214061.306887 - (slot 0)    914     37    255
sample 0 - 1679214061.317802 - (slot 0)    914     36    255
sample 0 - 1679214061.327471 - (slot 0)    914     36    255
sample 0 - 1679214061.337671 - (slot 0)    914     35    255
sample 0 - 1679214061.345770 - (slot 0)    914     35    255
sample 0 - 1679214061.355982 - (slot 0)    914     35      0

#17 全志 SOC » 全志T113-S3 MQ-R 使用Tina系统适配5寸屏幕失败:满屏幕闪烁、扫描线 » 2022-10-20 01:14:12

liefyuan
回复: 4

这是我的屏幕的时序:
360截图17400114586789.png

只改了以下这个文件根据我屏幕的规格书改的如上:
目录为:Tina-Linux/device/config/chips/t113/configs/mq_r/board.dts

&lcd0 {
	lcd_used            = <1>;            // 启用lcd

	lcd_driver_name     = "default_lcd";  // 使用 default_lcd 驱动
	lcd_backlight       = <50>;
	lcd_if              = <0>;            // 0:rgb 4:dsi

	// Part 1
	lcd_x               = <800>;          // 宽度
	lcd_y               = <480>;		  // 高度
	lcd_width           = <108>;          // 屏幕物理宽度,单位 mm
	lcd_height          = <65>;           // 屏幕物理高度,单位 mm

	// Part 2
	lcd_pwm_used        = <1>;            // 启用背光 PWM
	lcd_pwm_ch          = <7>;            // 使用 PWM 通道 7
	lcd_pwm_freq        = <5000>;         // PWM 频率,单位 Hz
	lcd_pwm_pol         = <0>;            // 背光 PWM 的极性
	lcd_pwm_max_limit   = <255>;          // 背光 PWM 的最大值(<=255)

	// Part 3 
	lcd_dclk_freq       = <29>;           // 屏幕时钟,单位 MHz
	lcd_ht              = <928>;          // hsync total cycle(pixel)
	lcd_hbp             = <88>;           // hsync back porch(pixel) + hsync plus width(pixel);
	lcd_hspw            = <48>;           // hsync plus width(pixel)
	lcd_vt              = <525>;          // vsync total cycle(line)
	lcd_vbp             = <32>;           // vsync back porch(line) + vysnc plus width(line)
	lcd_vspw            = <1>;            // vsync plus width(pixel)

	// Part 4
	lcd_lvds_if         = <0>;
	lcd_lvds_colordepth = <1>;
	lcd_lvds_mode       = <0>;
	lcd_frm             = <0>;            // 0:关闭; 1:启用rgb666抖动; 2:启用rgb656抖动
	lcd_io_phase        = <0x0000>;
	lcd_gamma_en        = <0>;
	lcd_bright_curve_en = <0>;
	lcd_cmap_en         = <0>;
	deu_mode            = <0>;
	lcdgamma4iep        = <22>;
	smart_color         = <90>;

	// Part 5
	pinctrl-0 = <&rgb18_pins_a>;
	pinctrl-1 = <&rgb18_pins_b>;
};

一直在闪频,是很快速的闪,好不容易拍下的图:
360截图16800414516458.png
360截图17070115638962.png
360截图18141214116135102.png

root@TinaLinux:/# lv_examples 0
wh=800x480, vwh=800x480, bpp=32, rotated=0
unable open evdev interface:: No such file or directory

root@TinaLinux:/# echo 8 > /sys/class/disp/disp/attr/colorbar

屏幕闪的很难受,大神们救救我啊。

#19 全志 SOC » 使用buildroot构建文件系统,上电打印时dhcpcd启动完毕需要3分钟,请问是怎么解决啊? » 2022-10-16 12:35:33

liefyuan
回复: 3
...
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
[    1.680036] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    1.911867] hub 1-1:1.0: USB hub found
[    1.920588] hub 1-1:1.0: 4 ports detected
[    2.359925] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[    2.620956] random: fast init done
Saving random seed: [    3.057420] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [    3.118221] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    3.125652] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 156

就一直卡在这里有三分多钟!才到下面的打印。

Starting dropbear sshd: OK
[  185.369872] random: crng init done
[  185.373296] random: 3 urandom warning(s) missed due to ratelimiting
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Starting sshd: Privilege separation user sshd does not exist
OK

Welcome to Buildroot-V3s v1.1
...

如上:

终于进入系统后,使用ps命令看看这个pid:156是何方神圣!!

# ps
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [rcu_gp]
    4 root     [rcu_par_gp]
    7 root     [kworker/u2:0-ev]
    8 root     [mm_percpu_wq]
    9 root     [ksoftirqd/0]
   10 root     [rcu_sched]
   11 root     [migration/0]
   12 root     [cpuhp/0]
   13 root     [kdevtmpfs]
   14 root     [netns]
   15 root     [oom_reaper]
   16 root     [writeback]
   17 root     [kcompactd0]
   19 root     [kworker/u2:1]
   67 root     [kblockd]
   68 root     [watchdogd]
   69 root     [kworker/0:1-eve]
   70 root     [cfg80211]
   71 root     [kswapd0]
   74 root     [irq/23-sunxi-mm]
   75 root     [irq/24-sunxi-mm]
   76 root     [kworker/0:2-mm_]
   78 root     [kstrp]
   79 root     [kworker/0:4-eve]
   81 root     [mmc_complete]
   83 root     [kworker/0:1H-kb]
   88 root     [jbd2/mmcblk0p2-]
   89 root     [ext4-rsv-conver]
   90 root     [kworker/0:2H]
  105 root     /sbin/syslogd -n
  109 root     /sbin/klogd -n
  121 root     /sbin/mdev -df
  143 dbus     dbus-daemon --system
  156 root     /sbin/dhcpcd -f /etc/dhcpcd.conf
  164 root     /usr/sbin/dropbear -R
  171 root     -sh
  174 root     [kworker/0:0-eve]
  175 root     ps

就是这个:dhcpcd的进程!!

而且发现是在/etc/init.d/S41dhcpcd 文件中:

#!/bin/sh
#
# Start/stop dhcpcd
#

DAEMON=/sbin/dhcpcd
CONFIG=/etc/dhcpcd.conf
PIDFILE=/var/run/dhcpcd.pid

[ -f $CONFIG ] || exit 0

case "$1" in
  start)
        echo "Starting dhcpcd..."
        start-stop-daemon -S -x "$DAEMON" -p "$PIDFILE" -- -f "$CONFIG"
        ;;
  stop)
        echo "Stopping dhcpcd..."
        start-stop-daemon -K -x "$DAEMON" -p "$PIDFILE" -o
        ;;
  reload|force-reload)
        echo "Reloading dhcpcd configuration..."
        "$DAEMON" -s reload
        ;;
  restart)
        "$0" stop
        sleep 1 # Prevent race condition: ensure dhcpcd stops before start.
        "$0" start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|force-reload}"
        exit 1
esac

#21 全志 SOC » T113-S3 Tina系统独立编译Qt,但是无法拷贝Qt文件夹到启动卡,根文件系统分区的inodes耗尽!!求救啊! » 2022-10-09 11:05:06

liefyuan
回复: 6

我的启动卡rootfs分区是1GB,文件系统格式为ext4,这个是在TinaSDK里面配置的,另外还重新配置了sys_partition.fex文件:

我拷贝Qt5安装文件夹的压缩包到启动卡里面去,再把压缩包解压出来,就出现了大量的

Cannot mkdir: No space left on device

报错

部分错误:

tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/SplineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/LineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarAreaSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/StackedBarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/AreaSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/BoxPlotSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/HorizontalPercentBarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/BarSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarSplineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarLineSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/PolarScatterSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/designer/default/ScatterSeries.qml: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/libqtchartsqml2.so: Cannot open: No such file or directory
tar: qt5.12.9-arm-t113/qml: Cannot mkdir: No space left on device
tar: qt5.12.9-arm-t113/qml/QtCharts/plugins.qmltypes: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors

我直接拷贝Qt安装文件到启动卡也是会报错,所以我就先压缩,把压缩包拷贝到启动卡里面去没有问题,然后解压的时候才出现。

这是我使用GParted软件查看SD卡分区的截图,/dev/sdb5是1GB的ext4分区。
360截图17860531262561.png

如下是我查看的结果,/dev/sdb5分区就是rootfs分区。奇怪的是1GB的分区大小只有6016个inodes,有没有大佬知道?

liefyuan@ubuntu:/media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b/opt/qt5.12.9-arm-t113/examples$ df -i
Filesystem      Inodes   IUsed   IFree IUse% Mounted on
udev           1784537     520 1784017    1% /dev
tmpfs          1792228     786 1791442    1% /run
/dev/sda1      6496256 2324896 4171360   36% /
tmpfs          1792228       9 1792219    1% /dev/shm
tmpfs          1792228       5 1792223    1% /run/lock
tmpfs          1792228      17 1792211    1% /sys/fs/cgroup
tmpfs          1792228      35 1792193    1% /run/user/1000
/dev/sdb1            0       0       0     - /media/liefyuan/Volumn
/dev/sdb5         6016    6016       0  100% /media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b
/dev/sdb7         6288      11    6277    1% /media/liefyuan/280c157f-8c2e-4d5e-a838-c73b3e13d956
liefyuan@ubuntu:/media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b/opt/qt5.12.9-arm-t113/examples$ df -k
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             7138148        0   7138148   0% /dev
tmpfs            1433784     9588   1424196   1% /run
/dev/sda1      102094168 72437412  24447568  75% /
tmpfs            7168912      252   7168660   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            7168912        0   7168912   0% /sys/fs/cgroup
tmpfs            1433784       76   1433708   1% /run/user/1000
/dev/sdb1           8151       42      8109   1% /media/liefyuan/Volumn
/dev/sdb5        1046968   248480    782104  25% /media/liefyuan/57f8f4bc-abf4-655f-bf67-946fc0f9f25b
/dev/sdb7          21586       14     21081   1% /media/liefyuan/280c157f-8c2e-4d5e-a838-c73b3e13d956
/dev/sdb8       28473856       24  28457448   1% /media/liefyuan/fcb51570-6dd7-4b8d-b0f7-2c15b18cac56

在Tina系统中的文件系统配置:
360截图1848110687106137.png

sys_partition.fex文件的配置:

;---------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------


;---------------------------------------------------------------------------------------------------
;                                   固件下载参数配置
;---------------------------------------------------------------------------------------------------
;***************************************************************************************************
;    mbr的大小, 以Kbyte为单位
;***************************************************************************************************
[mbr]
size = 16384

;***************************************************************************************************
;                                              分区配置
;
;
;  partition 定义范例:
;    [partition]                ;  //表示是一个分区
;    name        = USERFS2      ; //分区名称
;    size        = 16384        ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
;    downloadfile = "123.fex"   ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
;    keydata     = 1            ; //私有数据分区,重新量产数据将不丢失
;    encrypt     = 1            ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
;    user_type   = ?            ; //私有用法
;    verify      = 1            ; //要求量产完成后校验是否正确
;
; 注:1、name唯一, 不允许同名
;     2、name最大12个字符
;     3、size = 0, 将创建一个无大小的空分区
;     4、align to logical block size(504 sectors), leb size = 2*(1 nand phy block size - 1 phy page size)
;***************************************************************************************************
[partition_start]

[partition]
    name         = boot-resource
    size         = 504
    downloadfile = "boot-resource.fex"
    user_type    = 0x8000


[partition]
    name         = env
    size         = 504
    downloadfile = "env.fex"
    user_type    = 0x8000

[partition]
    name         = env-redund
    size         = 504
    downloadfile = "env.fex"
    user_type    = 0x8000

[partition]
    name         = boot
    size         = 8064
    downloadfile = "boot.fex"
    user_type    = 0x8000

[partition]
    name         = rootfs
    size         = 2097152
    downloadfile = "rootfs.fex"
    user_type    = 0x8000

;[partition]
;    name         = dsp0
;    size         = 2048
;    downloadfile = "dsp0.fex"
;    user_type    = 0x8000

;[partition]
;    name         = recovery
;    size         = 16128
;    ;downloadfile = "recovery.fex"
;    user_type    = 0x8000

[partition]
    name         = private
    size         = 10240
    user_type    = 0x8000

[partition]
    name         = rootfs_data
    size         = 50400
    user_type    = 0x8000

[partition]
    name         = UDISK
    user_type    = 0x8100

#22 全志 SOC » T113-s3使用Tina SDK编译Qt5.12.9失败 » 2022-09-30 01:35:19

liefyuan
回复: 5

硬件:mangopi MQ-R(T113-s3)
SDK: Tina
tslib:已经使用这个编译器编译、安装好了,位置在:/opt/tslib-t113
交叉编译器:Tina SDK自带的编译器

文件:/etc/profile

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

export PATH=$PATH:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin

export PATH=$PATH:/usr/local/arm/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin

# T113-s3 Tina-Linux Path
export PATH=$PATH:/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin

export STAGING_DIR=$STAGING_DIR:/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir

如上最后两句已经添加了Tina SDK的交叉编译器的位置,和“STAGING_DIR”这个该死的环境变量

并且在终端也可以看到这个环境变量:

liefyuan@ubuntu:~/qt-src/qt-everywhere-src-5.12.9$ echo $STAGING_DIR
:/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir

编辑文件:vim qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf

#
# qmake configuration for building with arm-linux-gnueabi-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

# modifications to g++.conf
QMAKE_CC                = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-gcc
QMAKE_CXX               = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-g++
QMAKE_LINK              = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-g++
QMAKE_LINK_SHLIB        = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-g++

# modifications to linux.conf
QMAKE_AR                = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-ar cqs
QMAKE_OBJCOPY           = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-objcopy
QMAKE_NM                = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-nm -P
QMAKE_STRIP             = /home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-muslgnueabi-strip
load(qt_config)
~               

配置文件 $ vim autoconfigure.sh

#!/bin/sh
export PATH=$PATH:/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin
./configure \
-prefix /opt/qt5.12.9-arm-t113 \
-opensource \
-confirm-license \
-release \
-strip \
-shared \
-xplatform linux-arm-gnueabi-g++ \
-optimized-qmake \
-c++std c++11 \
--rpath=no \
-pch \
-skip qt3d \
-skip qtactiveqt \
-skip qtandroidextras \
-skip qtcanvas3d \
-skip qtconnectivity \
-skip qtdatavis3d \
-skip qtdoc \
-skip qtgamepad \
-skip qtlocation \
-skip qtmacextras \
-skip qtnetworkauth \
-skip qtpurchasing \
-skip qtremoteobjects \
-skip qtscript \
-skip qtscxml \
-skip qtsensors \
-skip qtspeech \
-skip qtsvg \
-skip qttools \
-skip qttranslations \
-skip qtwayland \
-skip qtwebengine \
-skip qtwebview \
-skip qtwinextras \
-skip qtx11extras \
-skip qtxmlpatterns \
-make libs \
-nomake examples \
-nomake tools \
-nomake tests \
-gui \
-widgets \
-dbus-runtime \
--glib=no \
--iconv=no \
--pcre=qt \
--zlib=qt \
-no-openssl \
--freetype=qt \
--harfbuzz=qt \
-no-opengl \
-linuxfb \
--xcb=no \
-tslib \
--libpng=qt \
--libjpeg=qt \
--sqlite=qt \
-plugin-sql-sqlite \
-I/opt/tslib-t113/include \
-L/opt/tslib-t113/lib \
-plugin-sql-sqlite \
-I/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir/target/usr/include/ \
-I/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir/target/usr/include/allwinner/ \
-I/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir/target/usr/include/allwinner/include/ \
-L/home/liefyuan/Liefyuan/Tina-Linux/Tina-Linux/out/t113-mq_r/staging_dir/target/usr/lib/ \
-recheck-all

配置命令:$ ./autoconfigure.sh

编译命令:$ time sudo make -j16

配置没有问题

就是在编译的时候报错:

arm-openwrt-linux-muslgnueabi-g++.bin: warning: environment variable 'STAGING_DIR' not defined
arm-openwrt-linux-muslgnueabi-g++.bin: warning: environment variable 'STAGING_DIR' not defined
.obj/qlogging.o: In function `qFormatLogMessage(QtMsgType, QMessageLogContext const&, QString const&)':
qlogging.cpp:(.text+0x434c): undefined reference to `backtrace'
qlogging.cpp:(.text+0x440c): undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
Makefile:1245: recipe for target '../../lib/libQt5Core.so.5.12.9' failed
make[3]: *** [../../lib/libQt5Core.so.5.12.9] Error 1
make[3]: Leaving directory '/home/liefyuan/qt-src/qt-everywhere-src-5.12.9/qtbase/src/corelib'
Makefile:226: recipe for target 'sub-corelib-make_first' failed
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory '/home/liefyuan/qt-src/qt-everywhere-src-5.12.9/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/liefyuan/qt-src/qt-everywhere-src-5.12.9/qtbase'
Makefile:58: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2

real	0m38.265s
user	7m2.573s
sys	1m21.482s

网上能看的解答都看了:
【V853开发板试用】编译QT测试下
tina2.5|openwrt 交叉编译错误解决方法warning: environment variable 'STAGING_DIR' not defined
全志D1-H,官方SDK Tina2.0 移植 QT5.15

确实是没有办法了,向大佬们求救!
解决这个问题之后我会写一个详细的博客来介绍的:博客占坑:【Mangopi MQ-R:T113-s3编译Tina Linux系统(三)加Qt5】

#23 Re: 全志 SOC » 调试应用程序时,怎么快速烧写到目标板? » 2022-08-11 14:55:45

在驱动开发的过程中,我们的驱动会编译为.ko 文件,该文件需要放到开发板中,但是对于有些开发板比较简陋,可能没有网络功能,无法实现 FTP 这种文件传输,更谈不上 ssh 远程登录。但几乎所有的开发板都有串口,因此我们可以利用串口来传输我们的文件,最常用的串口文件传输工具就是lrzsz,该工具非常方便,只要串口终端支持 Xmodem 或者 Ymodem 或者 Zmodem 其中的任意一种即可,目前 Xshell 和 SecurtCRT 是支持的,下面我们开始移植这个工具到我们的开发板上。首先进入 lrzsz 的官网,

地址: https://www.ohse.de/uwe/software/lrzsz.html

#24 Re: 全志 SOC » T113-S3使用主线为啥就这么难呢?SPL跑起来了死活进不去uboot » 2022-07-18 18:24:02

没有搞定,收集了些资料:

gitee上的大佬:https://whycan.com/t_8123.html
spl(只能编译nand版本):https://gitee.com/weiwei382-163-com/nand_spl
Uboot:https://gitee.com/weiwei382-163-com/t113-s3-u-boot
linux:https://gitee.com/weiwei382-163-com/linux-t113-5.4

结果:spl跑起来了,Uboot死活跑不起来!

github上资料(只找到了spl没有找到主线的Uboot和Linux):
spl(nand,mmc,spinor都可以正常编译出来):https://github.com/szemzoa/sun8iw20_spl

结果:spl跑起来了,Uboot还是死活跑不起来!

#25 全志 SOC » T113-S3使用主线为啥就这么难呢?SPL跑起来了死活进不去uboot » 2022-07-17 23:37:24

liefyuan
回复: 13

SPL的地址:https://github.com/liefyuan/t113-s3-spl
主线uboot:https://gitee.com/weiwei382-163-com/t113-s3-u-boot
主线kernel:https://gitee.com/weiwei382-163-com/linux-t113-5.4
交叉编译器下载地址:http://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/
开发环境:ubuntu20.04
硬件是:MQ-R
存储是spinand: 128M

SPL部分:
编译spl
重新装了一个交叉编译器:gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi

下载源码:

git clone -b main https://github.com/liefyuan/t113-s3-spl.git

编译命令:

编译mmc/SD:make CROSS_COMPILE=arm-linux-gnueabi- p=sun8iw20p1 mmc
编译nand flash:make CROSS_COMPILE=arm-linux-gnueabi- p=sun8iw20p1 nand
编译spinor flash:make CROSS_COMPILE=arm-linux-gnueabi- p=sun8iw20p1 spinor
编译fes:make CROSS_COMPILE=arm-linux-gnueabi- p=sun8iw20p1 fes

烧录文件:t113-s3-spl/nboot/boot0_nand_sun8iw20p1.bin
使用xfel烧录进spi nand flash里面去

让板子上电的时候进入FEL模式,检查一下有没有识别出来:

$ xfel spinand
Found spi nand flash 'W25N01GV' with 134217728 bytes

全片擦除一下:

$ xfel spinand erase 0x00000000 0x8000000
100% [================================================] 128.000 MB, 63.026 MB/s

烧录

$ xfel spinand write 0x00000000 boot0_nand_sun8iw20p1.bin

上电信息,SPL(boot0)跑起来了!

[30]HELLO! BOOT0 is starting!
[33]BOOT0 commit : aedc18e
[35]set pll start
[37]periph0 has been enabled
[40]set pll end
[42]board init ok
[43]ZQ value = 0x2f
[45]ddr_efuse_type: 0xa
[48]mark_id: 0x60
[50]trefi:7.8ms
[52][AUTO DEBUG] single rank and full DQ!
[56]ddr_efuse_type: 0xa
[58]mark_id: 0x60
[60]trefi:7.8ms
[63][AUTO DEBUG] rank 0 row = 13
[66][AUTO DEBUG] rank 0 bank = 8
[69][AUTO DEBUG] rank 0 page size = 2 KB
[73]DRAM BOOT DRIVE INFO: V0.24
[76]DRAM CLK = 792 MHz
[78]DRAM Type = 3 (2:DDR2,3:DDR3)
[82]DRAMC read ODT  off.
[84]DRAM ODT value: 0x42.
[87]ddr_efuse_type: 0xa
[89]mark_id: 0x60
[92]DRAM SIZE = 128M
[98]DRAM simple test OK.
[101]dram size =128
[103]spinand UBOOT_START_BLK_NUM 1 UBOOT_LAST_BLK_NUM 1
[108]block from 1 to 1
[111]oob_buf[0] = 0
[112]spi nand block 1 is bad
[115]Can't find a good Boot1 copy in spi nand.
[119]dma 0x29010 int is not used yet
[122]dma 0x29010 int is free, you do not need to free it again

U-Boot部分:

make t113_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16 u-boot.bin

烧录u-boot

liefyuan@ubuntu:~/t113/t113-s3-u-boot$ xfel spinand write 0x100000 u-boot.bin
100% [================================================] 463.646 KB, 433.945 KB/s 

 

上电信息,SPL(boot0)跑起来了,但是U-Boot还是没有启动!

[30]HELLO! BOOT0 is starting!
[33]BOOT0 commit : aedc18e
[35]set pll start
[37]periph0 has been enabled
[40]set pll end
[42]board init ok
[43]ZQ value = 0x2f
[45]ddr_efuse_type: 0xa
[48]mark_id: 0x60
[50]trefi:7.8ms
[52][AUTO DEBUG] single rank and full DQ!
[56]ddr_efuse_type: 0xa
[58]mark_id: 0x60
[60]trefi:7.8ms
[63][AUTO DEBUG] rank 0 row = 13
[66][AUTO DEBUG] rank 0 bank = 8
[69][AUTO DEBUG] rank 0 page size = 2 KB
[73]DRAM BOOT DRIVE INFO: V0.24
[76]DRAM CLK = 792 MHz
[78]DRAM Type = 3 (2:DDR2,3:DDR3)
[82]DRAMC read ODT  off.
[84]DRAM ODT value: 0x42.
[87]ddr_efuse_type: 0xa
[89]mark_id: 0x60
[92]DRAM SIZE = 128M
[98]DRAM simple test OK.
[101]dram size =128
[103]spinand UBOOT_START_BLK_NUM 1 UBOOT_LAST_BLK_NUM 1
[108]block from 1 to 1
[111]oob_buf[0] = 0
[112]spi nand block 1 is bad
[115]Can't find a good Boot1 copy in spi nand.
[119]dma 0x29010 int is not used yet
[122]dma 0x29010 int is free, you do not need to free it again

boot0启动后,U-Boot一点反应的都没有
请问有谁知道是怎么回事吗?

#26 Re: 全志 SOC » 我的Linux入坑日记,顺便求解其中的问题。 » 2022-07-15 17:54:20

楼主是个大怨种!!但这是成为大神的必备的经历,参数这里可以使用boot.scr的方法传参考这个文章:https://liefyuan.blog.csdn.net/article/details/124724089

#27 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-15 17:45:19

大佬可以确定是xfel的问题吗?

#28 全志 SOC » 全志V3S Licheepi zero dock开发板有TFT接口、mipi接口,请问有没有可以使用的对应屏幕和对应mipi摄像头推荐啊? » 2022-07-12 12:13:22

liefyuan
回复: 3

问过sipeed客服了,虽然Licheepi zero dock开发板上有TFT接口和mipi接口,但是没有卖对应的屏幕和摄像头的!!

1.8寸原理图(官方图)

360截图17891227241429.png

360截图17290501425470.png

360截图16680909106132118.png

mipi摄像头原理图(官方图)

360截图16720402104132130.png

360截图1761061399119129.png

#29 全志 SOC » Lichee Pi Zero Dock使用OV2640照片出现横纹,请教是怎么回事啊? » 2022-07-11 23:02:56

liefyuan
回复: 4

这是开发板:
360截图17860605366643.png

这是拍的照片:
fswebcam2.jpg

fswebcam.jpg

不知道为啥

这是上电信息:

U-Boot SPL 2017.01-rc2 (May 31 2022 - 23:43:42)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 31 2022 - 23:43:42 +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 (May 31 2022 - 23:43:42 +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
282 bytes read in 15 ms (17.6 KiB/s)
## Executing script at 41900000
reading zImage
4152248 bytes read in 213 ms (18.6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12748 bytes read in 26 ms (478.5 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff1cb ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (liefyuan@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01)) #7 SMP Sun Jul 10 23:54:29 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu s34560 r8192 d22784 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 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: 55060K/65536K available (6144K kernel code, 289K rwdata, 1668K rodata, 1024K init, 252K bss, 10476K 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+0x2f8/0x48c 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.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000228] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000469] Console: colour dummy device 80x30
[    0.000527] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000543] pid_max: default: 32768 minimum: 301
[    0.000706] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000723] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001540] CPU: Testing write buffer coherency: ok
[    0.002065] /cpus/cpu@0 missing clock-frequency property
[    0.002091] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002865] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003067] rcu: Hierarchical SRCU implementation.
[    0.003600] smp: Bringing up secondary CPUs ...
[    0.003620] smp: Brought up 1 node, 1 CPU
[    0.003631] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003638] CPU: All CPU(s) started in SVC mode.
[    0.004731] devtmpfs: initialized
[    0.008355] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008673] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008707] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008958] pinctrl core: initialized pinctrl subsystem
[    0.010119] NET: Registered protocol family 16
[    0.010644] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011877] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011896] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.035896] SCSI subsystem initialized
[    0.036087] usbcore: registered new interface driver usbfs
[    0.036143] usbcore: registered new interface driver hub
[    0.036244] usbcore: registered new device driver usb
[    0.036468] mc: Linux media interface: v0.10
[    0.036511] videodev: Linux video capture interface: v2.00
[    0.036763] Advanced Linux Sound Architecture Driver Initialized.
[    0.038053] clocksource: Switched to clocksource arch_sys_counter
[    0.050341] NET: Registered protocol family 2
[    0.051201] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.051241] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051266] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.051290] TCP: Hash tables configured (established 1024 bind 1024)
[    0.051440] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051494] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051802] NET: Registered protocol family 1
[    0.053725] Initialise system trusted keyrings
[    0.054109] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.091272] Key type asymmetric registered
[    0.091296] Asymmetric key parser 'x509' registered
[    0.091406] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.091421] io scheduler mq-deadline registered
[    0.091428] io scheduler kyber registered
[    0.092459] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.096291] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.096754] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.166691] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.170275] printk: console [ttyS0] disabled
[    0.190590] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.697387] printk: console [ttyS0] enabled
[    0.726788] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.733418] ehci-platform: EHCI generic platform driver
[    0.738954] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.744568] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.752572] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.788066] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.795292] hub 1-0:1.0: USB hub found
[    0.799257] hub 1-0:1.0: 1 port detected
[    0.803893] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.810221] ohci-platform: OHCI generic platform driver
[    0.815766] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.822488] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.830449] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.903194] hub 2-0:1.0: USB hub found
[    0.907034] hub 2-0:1.0: 1 port detected
[    0.914422] usbcore: registered new interface driver usb-storage
[    0.921753] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.931087] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.936152] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.940900] i2c /dev entries driver
[    0.945888] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.954922] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.968452] ov2640 1-0030: ov2640 Product ID 26:42 Manufacturer ID 7f:a2
[    0.975168] i2c i2c-1: OV2640 Probed
[    0.981689] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.990407] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.026889] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.034207] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.069001] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.077099] usbcore: registered new interface driver usbhid
[    1.082771] usbhid: USB HID core driver
[    1.088984] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.096488] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.104062] Initializing XFRM netlink socket
[    1.108497] NET: Registered protocol family 17
[    1.113596] Registering SWP/SWPB emulation handler
[    1.119687] Loading compiled-in X.509 certificates
[    1.131401] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.142898] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.148746] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.158394] hub 3-0:1.0: USB hub found
[    1.162325] hub 3-0:1.0: 1 port detected
[    1.168978] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.177526] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.187621] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.196406] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:05 UTC (5)
[    1.204748] vcc5v0: disabling
[    1.207725] ALSA device list:
[    1.210756]   #0: V3s Audio Codec
[    1.214665] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.223303] Waiting for root device /dev/mmcblk0p2...
[    1.228784] mmc0: new high speed SDHC card at address 1234
[    1.236073] mmcblk0: mmc0:1234 SA32G 29.1 GiB
[    1.243135]  mmcblk0: p1 p2
[    1.251711] mmc1: new high speed SDIO card at address 0001
[    1.272495] random: fast init done
[    1.292832] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.301113] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.308957] devtmpfs: mounted
[    1.313137] Freeing unused kernel memory: 1024K
[    1.317812] Run /sbin/init as init process
[    1.439444] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
modprobe: can't change directory to '5.2.0-licheepi-zero': No such file or directory
Initializing random number generator: OK
Saving random seed: [    2.871613] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [    2.935508] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    2.942911] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 149
# [   46.968136] random: crng init done
[   46.971564] random: 2 urandom warning(s) missed due to ratelimiting
fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   57.844044] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   68.149654] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   75.053734] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam.jpg'.
#
U-Boot SPL 2017.01-rc2 (May 31 2022 - 23:43:42)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 31 2022 - 23:43:42 +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 (May 31 2022 - 23:43:42 +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
282 bytes read in 15 ms (17.6 KiB/s)
## Executing script at 41900000
reading zImage
4152248 bytes read in 213 ms (18.6 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12748 bytes read in 25 ms (497.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff1cb ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-zero (liefyuan@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01)) #7 SMP Sun Jul 10 23:54:29 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu s34560 r8192 d22784 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 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: 55060K/65536K available (6144K kernel code, 289K rwdata, 1668K rodata, 1024K init, 252K bss, 10476K 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+0x2f8/0x48c 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.000219] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000463] Console: colour dummy device 80x30
[    0.000521] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000537] pid_max: default: 32768 minimum: 301
[    0.000699] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000715] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001535] CPU: Testing write buffer coherency: ok
[    0.002063] /cpus/cpu@0 missing clock-frequency property
[    0.002092] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002878] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003091] rcu: Hierarchical SRCU implementation.
[    0.003643] smp: Bringing up secondary CPUs ...
[    0.003664] smp: Brought up 1 node, 1 CPU
[    0.003674] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003682] CPU: All CPU(s) started in SVC mode.
[    0.004776] devtmpfs: initialized
[    0.008401] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008759] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009005] pinctrl core: initialized pinctrl subsystem
[    0.010157] NET: Registered protocol family 16
[    0.010680] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011910] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011929] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.035881] SCSI subsystem initialized
[    0.036070] usbcore: registered new interface driver usbfs
[    0.036129] usbcore: registered new interface driver hub
[    0.036231] usbcore: registered new device driver usb
[    0.036458] mc: Linux media interface: v0.10
[    0.036498] videodev: Linux video capture interface: v2.00
[    0.036744] Advanced Linux Sound Architecture Driver Initialized.
[    0.038029] clocksource: Switched to clocksource arch_sys_counter
[    0.050310] NET: Registered protocol family 2
[    0.051157] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.051199] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051225] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.051248] TCP: Hash tables configured (established 1024 bind 1024)
[    0.051402] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051457] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.051762] NET: Registered protocol family 1
[    0.053679] Initialise system trusted keyrings
[    0.054059] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.091500] Key type asymmetric registered
[    0.091526] Asymmetric key parser 'x509' registered
[    0.091633] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.091645] io scheduler mq-deadline registered
[    0.091652] io scheduler kyber registered
[    0.092677] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.096494] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.096947] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.166811] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.170359] printk: console [ttyS0] disabled
[    0.190675] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.697467] printk: console [ttyS0] enabled
[    0.726835] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.733468] ehci-platform: EHCI generic platform driver
[    0.739009] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.744621] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.752620] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.788042] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.795274] hub 1-0:1.0: USB hub found
[    0.799236] hub 1-0:1.0: 1 port detected
[    0.803852] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.810176] ohci-platform: OHCI generic platform driver
[    0.815720] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.822444] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.830403] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.903161] hub 2-0:1.0: USB hub found
[    0.907004] hub 2-0:1.0: 1 port detected
[    0.914380] usbcore: registered new interface driver usb-storage
[    0.921718] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.931036] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.936100] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.940839] i2c /dev entries driver
[    0.945842] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    0.954878] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.968412] ov2640 1-0030: ov2640 Product ID 26:42 Manufacturer ID 7f:a2
[    0.975127] i2c i2c-1: OV2640 Probed
[    0.981620] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.990338] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.026817] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.034131] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.068920] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.077024] usbcore: registered new interface driver usbhid
[    1.082689] usbhid: USB HID core driver
[    1.088904] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.096408] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.103964] Initializing XFRM netlink socket
[    1.108405] NET: Registered protocol family 17
[    1.113508] Registering SWP/SWPB emulation handler
[    1.119590] Loading compiled-in X.509 certificates
[    1.131306] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.142794] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.148643] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.158403] hub 3-0:1.0: USB hub found
[    1.162349] hub 3-0:1.0: 1 port detected
[    1.168939] debugfs: Directory '1c22c00.codec' with parent 'V3s Audio Codec' already present!
[    1.177486] sun4i-codec 1c22c00.codec: ASoC: Failed to create component debugfs directory: -17
[    1.187591] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.194969] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.204504] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:05 UTC (5)
[    1.212839] vcc5v0: disabling
[    1.215819] ALSA device list:
[    1.218854]   #0: V3s Audio Codec
[    1.223054] mmc0: new high speed SDHC card at address 1234
[    1.230868] mmcblk0: mmc0:1234 SA32G 29.1 GiB
[    1.237766]  mmcblk0: p1 p2
[    1.248624] mmc1: new high speed SDIO card at address 0001
[    1.263521] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.271844] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.279806] devtmpfs: mounted
[    1.283992] Freeing unused kernel memory: 1024K
[    1.288856] Run /sbin/init as init process
[    1.410293] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: [    1.492741] random: fast init done
OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
modprobe: can't change directory to '5.2.0-licheepi-zero': No such file or directory
Initializing random number generator: OK
Saving random seed: [    2.866104] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [    2.926391] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[    2.933820] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 149
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   32.431306] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
2.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   42.573018] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam2.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
5.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   50.927005] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam5.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
4.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   64.615518] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
[   64.700752] random: crng init done
[   64.704178] random: 2 urandom warning(s) missed due to ratelimiting
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.41 seconds. (14 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam4.jpg'.
# fswebcam -S 20 -d /dev/video0 -p UYVY -r 800x600 --dumpframe dump.bin fswebcam
3.jpg
--- Opening /dev/video0...
Trying source module v4l2...[   73.945225] sun6i-csi 1cb4000.csi: Unsupported pixformat: 0x59565955, defaulting to YUYV

/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Skipping 20 frames...
Capturing 1 frames...
Dumping raw frame to 'dump.bin'...
Captured 21 frames in 1.37 seconds. (15 fps)
--- Processing captured image...
Unable to load font 'sans': Could not find/open font
Disabling the the banner.
Writing JPEG image to 'fswebcam3.jpg'.
# ls
bin                          media
dev                          mnt
dump.bin                     opt
etc                          proc
fswebcam.jpg                 root
fswebcam2.jpg                rootfs-bak-rtl8723bs.tar.gz
fswebcam3.jpg                run
fswebcam4.jpg                sbin
fswebcam5.jpg                sys
lib                          tmp
lib32                        usr
linuxrc                      var
#

#30 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-08 23:43:26

查看了一下xfel的版本:

liefyuan@ubuntu:~/samba-share$ xfel
xfel(v1.2.9) - https://github.com/xboot/xfel
usage:
    xfel version                                        - Show chip version
    xfel hexdump <address> <length>                     - Dumps memory region in hex
    xfel dump <address> <length>                        - Binary memory dump to stdout
    xfel read32 <address>                               - Read 32-bits value from device memory
    xfel write32 <address> <value>                      - Write 32-bits value to device memory
    xfel read <address> <length> <file>                 - Read memory to file
    xfel write <address> <file>                         - Write file to memory
    xfel exec <address>                                 - Call function address
    xfel reset                                          - Reset device using watchdog
    xfel sid                                            - Show sid information
    xfel jtag                                           - Enable jtag debug
    xfel ddr [type]                                     - Initial ddr controller with optional type
    xfel sign <public-key> <private-key> <file>         - Generate ecdsa256 signature file for sha256 of sid
    xfel spinor                                         - Detect spi nor flash
    xfel spinor erase <address> <length>                - Erase spi nor flash
    xfel spinor read <address> <length> <file>          - Read spi nor flash to file
    xfel spinor write <address> <file>                  - Write file to spi nor flash
    xfel spinand                                        - Detect spi nand flash
    xfel spinand erase <address> <length>               - Erase spi nand flash
    xfel spinand read <address> <length> <file>         - Read spi nand flash to file
    xfel spinand write <address> <file>                 - Write file to spi nand flash
    xfel spinand splwrite <split-size> <address> <file> - Write file to spi nand flash with split support

#31 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-08 22:38:03

大佬,还是不行呢

liefyuan@ubuntu:~/samba-share$ xfel spinandFound spi nand flash 'W25N01GV' with 134217728 bytes
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x8000000100% [================================================] 128.000 MB, 54.894 MB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x1000000
100% [================================================] 16.000 MB, 58.917 MB/s        
liefyuan@ubuntu:~/samba-share$ xfel ddr t113-s3
Initial ddr controller succeeded
liefyuan@ubuntu:~/samba-share$ sleep 1
liefyuan@ubuntu:~/samba-share$ xfel write 0x43000000 u-boot.bin
usb bulk send error
liefyuan@ubuntu:~/samba-share$ xfel exec 0x43000000
usb bulk send error

#32 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-08 10:12:52

谢谢大佬,晚上回去试试。

#33 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-08 01:38:41

大佬,今天我新买的华邦的芯片到了,我换了发现还是不行啊,信息如下:
spi nand flash 芯片的具体型号是:winbond 25N01GVZEIG
烧录信息:

liefyuan@ubuntu:~/samba-share$ xfel spinand
Found spi nand flash 'W25N01GV' with 134217728 bytes

liefyuan@ubuntu:~/samba-share$ sudo xfel version
AWUSBFEX ID=0x00185900(R528/T113) dflag=0x44 dlength=0x08 scratchpad=0x00045000

liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
100% [================================================] 128.000 KB, 77.351 MB/s        
100% [================================================] 32.000 KB, 567.750 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
100% [================================================] 640.000 KB, 46.451 MB/s        
100% [================================================] 463.692 KB, 400.257 KB/s      

上电信息为:

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2f
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
oob_buf[0] = 0
spi nand block 8 is bad
oob_buf[0] = 0
spi nand block 9 is bad
oob_buf[0] = 0
spi nand block 10 is bad
oob_buf[0] = 0
spi nand block 11 is bad
oob_buf[0] = 0
spi nand block 12 is bad
oob_buf[0] = 0
spi nand block 13 is bad
oob_buf[0] = 0
spi nand block 14 is bad
oob_buf[0] = 0
spi nand block 15 is bad
oob_buf[0] = 0
spi nand block 16 is bad
Can't find a good Boot1 copy in spi nand.
Jump to second Boot.

还是无法启动uboot

#34 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-06 11:30:41

spi nand flash的芯片型号(应该是这个):GD5F1GQ5UExxG

烧录记录:

liefyuan@ubuntu:~/t113/nand_spl-master/nboot$ xfel spinand
Found spi nand flash 'GD5F1GQ5UExxG' with 134217728 bytes

liefyuan@ubuntu:~/t113/nand_spl-master/nboot$ sudo xfel version
AWUSBFEX ID=0x00185900(R528/T113) dflag=0x44 dlength=0x08 scratchpad=0x00045000

liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
100% [================================================] 128.000 KB, 74.547 MB/s        
100% [================================================] 32.000 KB, 523.013 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
100% [================================================] 640.000 KB, 37.423 MB/s        
100% [================================================] 463.692 KB, 376.152 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00200000 0x20000 && xfel spinand write 0x00200000 board.dtb
100% [================================================] 128.000 KB, 62.594 MB/s        
100% [================================================] 53.260 KB, 557.436 KB/s        
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00220000 0x800000 && xfel spinand write 0x00220000 uImage
100% [================================================] 8.000 MB, 36.676 MB/s         
100% [================================================] 6.462 MB, 380.708 KB/s         
liefyuan@ubuntu:~/samba-share$ xfel spinand erase 0x00a20000 0x4000000 && xfel spinand write 0x00a20000 usr_ubi.img
100% [================================================] 64.000 MB, 34.496 MB/s        
100% [================================================] 21.125 MB, 366.828 KB/s  

#35 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-04 18:36:14

大佬按照你的步骤下载了你的文件file_burn.tar.gz,并且烧录了压缩包里面的所有文件,发现只有boot0成功的运行起来,Uboot没有运行起来,能帮忙看看是什么问题吗?
以下是所有的上电信息,后面就啥信息都没有打印了。

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

#36 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-29 14:29:20

编译mmc时报的错如下:

liefyuan@ubuntu:~/t113/nand_spl-master$ make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc
/home/liefyuan/t113/nand_spl-master/tools/generate_hash_header_file.sh > /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
if [ -r /home/liefyuan/t113/nand_spl-master/include/commit_info.h ] && cmp -s /home/liefyuan/t113/nand_spl-master/include/commit_info.h /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; then rm -f /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; else echo '  UPD     /home/liefyuan/t113/nand_spl-master/include/commit_info.h'; mv /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp /home/liefyuan/t113/nand_spl-master/include/commit_info.h; fi
make  -C  /home/liefyuan/t113/nand_spl-master/nboot mmc
  CHK     /home/liefyuan/t113/nand_spl-master/include/config.h
  CHK     /home/liefyuan/t113/nand_spl-master/autoconf.mk
  UPD     /home/liefyuan/t113/nand_spl-master/include/config.h
  UPD     /home/liefyuan/t113/nand_spl-master/autoconf.mk
make -C /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/
make -C /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/common/
make -C /home/liefyuan/t113/nand_spl-master/drivers/
make -C /home/liefyuan/t113/nand_spl-master/nboot/main/
make[2]: Nothing to be done for 'all'.
 CC      boot0_entry.S ...
 CC      boot0_head.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/
make -C /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/drivers/power/
make -C /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/
 CC      watchdog.c ...
 CC      serial.c ...
 CC      boot0_main.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/
 CC      rtc.c ...
make -C lib-dram
 CC      sunxi_dram.c ...
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      load_image.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmain.o  load_image.o
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      axp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libpower.o  axp.o
rm -f libdram.o; /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar rcs libdram.o 
 CC      pinmux.c ...
# -s libdram.o
cp libdram.o ../libdram
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdram.o  sunxi_dram.o /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/libdram
 CC      load_image_sdmmc.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libloadmmc.o  load_image_sdmmc.o
 CC      eabi_compat.c ...
 CC      iobase_sunxi.c ...
 CC      memset_sunxi.c ...
 CC      boot_utils.c ...
 CC      debug.c ...
 CC      memcpy_sunxi.c ...
 CC      malloc.c ...
 CC      crc32.c ...
 CC      gunzip.c ...
 CC      string.c ...
 CC      printf.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libcommon.o  string.o printf.o boot_utils.o eabi_compat.o malloc.o iobase_sunxi.o memset_sunxi.o memcpy_sunxi.o debug.o crc32.o gunzip.o zlib/zlib.o lz4/lz4_wrapper.o lzma/LzmaDec.o lzma/LzmaTools.o
 CC      mmc.c ...
 CC      mmc_bsp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmmc.o  mmc.o mmc_bsp.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdrivers.o  serial.o pinmux.o rtc.o watchdog.o /home/liefyuan/t113/nand_spl-master/drivers/dram/libdram.o /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/libmmc.o /home/liefyuan/t113/nand_spl-master/drivers/power/libpower.o /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/libloadmmc.o
bootaddr is 0x20000
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/libarch.o /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/libboard.o /home/liefyuan/t113/nand_spl-master/common/libcommon.o /home/liefyuan/t113/nand_spl-master/drivers/libdrivers.o /home/liefyuan/t113/nand_spl-master/nboot/main/libmain.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld --allow-multiple-definition libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o -L /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0 -lgcc  --gc-sections --gc-sections -Tboot0.lds -o boot0_sdcard.elf -Map boot0_sdcard.map -L/home/liefyuan/t113/nand_spl-master/nboot -lsun8iw20p1_nand 
libsun20iw1p1_sdcard.o: In function `mmc_trans_data_by_dma':
/home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/mmc_bsp.c:1168: undefined reference to `wmb'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o: In function `main':
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para_len'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para'
make[1]: *** [Makefile:117: mmc] Error 1
make: *** [Makefile:189: mmc] Error 2

#37 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-29 14:24:34

大佬,你好,我在你的Gitee的仓库里面看到了:https://gitee.com/weiwei382-163-com/nand_spl,发现他只能编译nand版本的spl,编译mmc和spinor版本的spl就报错,所以就很好奇大佬您这份spl(boot0)的源码是基于哪一份源码的基础上面改的呢?

#38 Re: 全志 SOC » T113-S3使用spl、主线uboot、主线Linux kernel » 2022-06-23 00:44:39

编译spl mmc版本报错:

liefyuan@ubuntu:~/t113/nand_spl-master$ make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc
/home/liefyuan/t113/nand_spl-master/tools/generate_hash_header_file.sh > /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
if [ -r /home/liefyuan/t113/nand_spl-master/include/commit_info.h ] && cmp -s /home/liefyuan/t113/nand_spl-master/include/commit_info.h /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; then rm -f /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; else echo '  UPD     /home/liefyuan/t113/nand_spl-master/include/commit_info.h'; mv /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp /home/liefyuan/t113/nand_spl-master/include/commit_info.h; fi
make  -C  /home/liefyuan/t113/nand_spl-master/nboot mmc
  CHK     /home/liefyuan/t113/nand_spl-master/include/config.h
  CHK     /home/liefyuan/t113/nand_spl-master/autoconf.mk
  UPD     /home/liefyuan/t113/nand_spl-master/include/config.h
  UPD     /home/liefyuan/t113/nand_spl-master/autoconf.mk
make -C /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/
make -C /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/common/
make -C /home/liefyuan/t113/nand_spl-master/drivers/
make -C /home/liefyuan/t113/nand_spl-master/nboot/main/
make[2]: Nothing to be done for 'all'.
 CC      boot0_entry.S ...
 CC      boot0_head.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/
make -C /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/drivers/power/
make -C /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/
 CC      watchdog.c ...
 CC      serial.c ...
 CC      boot0_main.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/
 CC      rtc.c ...
make -C lib-dram
 CC      sunxi_dram.c ...
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      load_image.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmain.o  load_image.o
make[5]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
 CC      axp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libpower.o  axp.o
rm -f libdram.o; /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar rcs libdram.o 
 CC      pinmux.c ...
# -s libdram.o
cp libdram.o ../libdram
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdram.o  sunxi_dram.o /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/libdram
 CC      load_image_sdmmc.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libloadmmc.o  load_image_sdmmc.o
 CC      eabi_compat.c ...
 CC      iobase_sunxi.c ...
 CC      memset_sunxi.c ...
 CC      boot_utils.c ...
 CC      debug.c ...
 CC      memcpy_sunxi.c ...
 CC      malloc.c ...
 CC      crc32.c ...
 CC      gunzip.c ...
 CC      string.c ...
 CC      printf.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libcommon.o  string.o printf.o boot_utils.o eabi_compat.o malloc.o iobase_sunxi.o memset_sunxi.o memcpy_sunxi.o debug.o crc32.o gunzip.o zlib/zlib.o lz4/lz4_wrapper.o lzma/LzmaDec.o lzma/LzmaTools.o
 CC      mmc.c ...
 CC      mmc_bsp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libmmc.o  mmc.o mmc_bsp.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld  -r -o libdrivers.o  serial.o pinmux.o rtc.o watchdog.o /home/liefyuan/t113/nand_spl-master/drivers/dram/libdram.o /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/libmmc.o /home/liefyuan/t113/nand_spl-master/drivers/power/libpower.o /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/libloadmmc.o
bootaddr is 0x20000
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/libarch.o /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/libboard.o /home/liefyuan/t113/nand_spl-master/common/libcommon.o /home/liefyuan/t113/nand_spl-master/drivers/libdrivers.o /home/liefyuan/t113/nand_spl-master/nboot/main/libmain.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld --allow-multiple-definition libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o -L /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0 -lgcc  --gc-sections --gc-sections -Tboot0.lds -o boot0_sdcard.elf -Map boot0_sdcard.map -L/home/liefyuan/t113/nand_spl-master/nboot -lsun8iw20p1_nand 
libsun20iw1p1_sdcard.o: In function `mmc_trans_data_by_dma':
/home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/mmc_bsp.c:1168: undefined reference to `wmb'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o: In function `main':
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para_len'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para'
make[1]: *** [Makefile:117: mmc] Error 1
make: *** [Makefile:189: mmc] Error 2

#39 全志 SOC » T113-S3使用spl、主线uboot、主线Linux kernel » 2022-06-23 00:20:05

liefyuan
回复: 1

- spl:https://gitee.com/weiwei382-163-com/nand_spl
- 主线uboot:https://gitee.com/weiwei382-163-com/t113-s3-u-boot
- 主线kernel:https://gitee.com/weiwei382-163-com/linux-t113-5.4
- 交叉编译器下载地址:http://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/

# 编译nand spl

make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 nand

# 编译mmc spl

make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc

有错误!!

# 编译uboot

make t113_defconfig
make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 u-boot.bin

# 编译 Linux kernel

export ARCH=arm && export CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- && make t113_s3_ok_defconfig && make uImage LOADADDR=0x40008000 -j16

#40 Re: 全志 SOC » V3s esp8089wifi模块 连接上WiFi后大概一两分钟就崩溃了 » 2022-06-20 22:20:17

LinuxGo 说:

老哥这个问题后来怎么解决的

没有解决啊,解决不了。主线这块无解。

#41 全志 SOC » 一起玩一下吧!全志A133的小平板Aiwee M400:PDD的180块的安卓10机器 » 2022-06-19 23:46:43

liefyuan
回复: 20

产品图:
360截图1706022481118131.png

其他介绍:
360截图17930725112150104.png

360截图17380330573868.png

拆机图:
QQ图片20220619234155.jpg

QQ图片20220619234200.jpg

屏幕是4.0英寸的,分辨率是480x800,电容触摸屏,安卓10,带WiFi,蓝牙。

原理图没有,SDK也没有,只能从其他地方白嫖。

A133的资料链接: http://116.255.210.52/hdonline/index.php/首页

#43 全志 SOC » Buildroot的make过程中出现 mkbootimg: not found,如下网上找的方法全部安装失败,求教啊! » 2022-06-05 11:53:15

liefyuan
回复: 3

Ubuntu16.04

方法一:失败

$ sudo apt install mkbootimg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mkbootimg

方法二:失败

$ sudo apt install -y android-tools-mkbootimg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg

方法三:失败

$ sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree       
Reading state information... Done
aptitude is already the newest version (0.7.4-2ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo aptitude install android-tools-mkbootimg
Couldn't find any package whose name or description matched "android-tools-mkbootimg"
Couldn't find any package whose name or description matched "android-tools-mkbootimg"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

方法四(Ubuntu换源):失败

$ sudo vim /etc/apt/sources.list
[sudo] password for liefyuan: 

$ sudo apt install -y android-tools-mkbootimg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package android-tools-mkbootimg

$ sudo aptitude install mkbootimg
Couldn't find any package whose name or description matched "mkbootimg"
Couldn't find any package whose name or description matched "mkbootimg"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

#44 全志 SOC » V3s esp8089wifi模块 连接上WiFi后大概一两分钟就崩溃了 » 2022-06-03 01:30:14

liefyuan
回复: 3

这是加载模块以及测试过程:

# insmod /lib/modules/esp8089.ko config=crystal_26M_en=1 esp_reset_gpio=14
[   16.991294] esp8089: unknown parameter 'config' ignored
[   16.996948]
[   16.996948] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[   16.996948]
[   17.005069] ESP8089 reset via GPIO 14
[   17.219263] esp_sdio_dummy_probe enter
[   17.438922] esp_sdio_init power up OK
[   17.918508] esp_host:bdf5087c3deb
[   17.918508] esp_target: e826c2b3c9fd 57 18202
[   17.918508]
[   17.927814] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[   17.936953] first normal exit
[   17.940274] esp_sdio_remove enter
[   17.944620] sif_disable_irq release irq failed
[   18.009322] mmc1: card 0001 removed
[   18.065966] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
# [   18.086665] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[   18.095367] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[   18.103095] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[   18.108646] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[   18.114739] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[   18.120380] mmc1: new high speed SDIO card at address 0001
[   18.486456] esp_host:bdf5087c3deb
[   18.486456] esp_target: e826c2b3c9fd 57 18202
[   18.486456]
[   18.576315] esp_op_add_interface STA
[   18.604205] urandom_read: 3 callbacks suppressed
[   18.604218] random: dhcpcd: uninitialized urandom read (120 bytes read)

#
# 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:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4736 (4.6 KiB)  TX bytes:4736 (4.6 KiB)

wlan0     Link encap:Ethernet  HWaddr AC:D0:74:C1:26:99
          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)

# [   38.340421] random: crng init done
ifconfig wlan0 up
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
# [   59.941566] wlan0: authenticate with c8:e7:d8:34:27:84
[   59.946904] wlan0: send auth to c8:e7:d8:34:27:84 (try 1/3)
[   59.957283] wlan0: authenticated
[   59.969346] wlan0: associate with c8:e7:d8:34:27:84 (try 1/3)
[   59.979746] wlan0: RX AssocResp from c8:e7:d8:34:27:84 (capab=0x431 status=0 aid=4)
[   59.987551] wlan0: associated
udhcpc -i wlan0
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending select for 192.168.1.109
udhcpc: lease of 192.168.1.109 obtained, lease time 7200
deleting routers
adding dns 202.96.134.33
adding dns 202.96.128.68
# wpa_cli -iwlan0 status
bssid=c8:e7:d8:34:27:84
freq=2437
ssid=MERCURY_2784
id=0
mode=station
wifi_generation=4
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.1.109
p2p_device_address=ac:d0:74:c1:26:99
address=ac:d0:74:c1:26:99
uuid=29899bfe-dde5-5afd-9f9f-0797878b0d93
# ping www.baidu.com
PING www.baidu.com (14.215.177.39): 56 data bytes
64 bytes from 14.215.177.39: seq=0 ttl=56 time=12.207 ms
64 bytes from 14.215.177.39: seq=1 ttl=56 time=16.141 ms
64 bytes from 14.215.177.39: seq=2 ttl=56 time=23.015 ms
64 bytes from 14.215.177.39: seq=3 ttl=56 time=17.179 ms
64 bytes from 14.215.177.39: seq=4 ttl=56 time=32.256 ms
64 bytes from 14.215.177.39: seq=5 ttl=56 time=14.608 ms
64 bytes from 14.215.177.39: seq=6 ttl=56 time=20.701 ms
64 bytes from 14.215.177.39: seq=7 ttl=56 time=11.978 ms
64 bytes from 14.215.177.39: seq=8 ttl=56 time=15.777 ms
^C
--- www.baidu.com ping statistics ---
9 packets transmitted, 9 packets received, 0% packet loss
round-trip min/avg/max = 11.978/18.206/32.256 ms

如下,我在ping百度的时候,突然就崩溃了,请问有大佬知道怎么解决?

# ping www.baidu.com
PING www.baidu.com (14.215.177.38): 56 data bytes
64 bytes from 14.215.177.38: seq=0 ttl=56 time=10.405 ms
[  252.489515] esp_sdio_remove enter
[  252.494046] sif_disable_irq release irq failed
[  252.498511] ------------[ cut here ]------------
[  252.503258] WARNING: CPU: 0 PID: 5 at kernel/workqueue.c:3031 __flush_work+0x184/0x1ac
[  252.511186] Modules linked in: esp8089
[  252.514944] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.2.0-licheepi-zero #3
[  252.522154] Hardware name: Allwinner sun8i Family
[  252.526864] Workqueue: events_freezable mmc_rescan
[  252.531678] [<c010ec34>] (unwind_backtrace) from [<c010b6cc>] (show_stack+0x10/0x14)
[  252.539419] [<c010b6cc>] (show_stack) from [<c0715720>] (dump_stack+0x94/0xa8)
[  252.546641] [<c0715720>] (dump_stack) from [<c011d984>] (__warn+0xfc/0x114)
[  252.553598] [<c011d984>] (__warn) from [<c011dab0>] (warn_slowpath_null+0x40/0x48)
[  252.561161] [<c011dab0>] (warn_slowpath_null) from [<c0133eec>] (__flush_work+0x184/0x1ac)
[  252.569421] [<c0133eec>] (__flush_work) from [<c0136fc8>] (__cancel_work_timer+0x110/0x1ec)
[  252.577800] [<c0136fc8>] (__cancel_work_timer) from [<bf004168>] (sip_detach+0xe8/0x1bc [esp8089])
[  252.586778] [<bf004168>] (sip_detach [esp8089]) from [<bf000fe0>] (esp_sdio_remove+0x60/0x1ac [esp8089])
[  252.596265] [<bf000fe0>] (esp_sdio_remove [esp8089]) from [<c0539780>] (sdio_bus_remove+0x30/0xf8)
[  252.605225] [<c0539780>] (sdio_bus_remove) from [<c04330b4>] (device_release_driver_internal+0xdc/0x1a0)
[  252.614701] [<c04330b4>] (device_release_driver_internal) from [<c0431bec>] (bus_remove_device+0xcc/0xf8)
[  252.624260] [<c0431bec>] (bus_remove_device) from [<c042e2a0>] (device_del+0x13c/0x324)
[  252.632250] [<c042e2a0>] (device_del) from [<c0539c08>] (sdio_remove_func+0x1c/0x28)
[  252.639987] [<c0539c08>] (sdio_remove_func) from [<c0537a34>] (mmc_sdio_remove+0x40/0x70)
[  252.648159] [<c0537a34>] (mmc_sdio_remove) from [<c0537c44>] (mmc_sdio_detect+0x6c/0xf8)
[  252.656242] [<c0537c44>] (mmc_sdio_detect) from [<c052fe30>] (mmc_rescan+0x1bc/0x38c)
[  252.664066] [<c052fe30>] (mmc_rescan) from [<c0135e64>] (process_one_work+0x150/0x358)
[  252.671976] [<c0135e64>] (process_one_work) from [<c0136098>] (worker_thread+0x2c/0x518)
[  252.680062] [<c0136098>] (worker_thread) from [<c013b854>] (kthread+0x120/0x150)
[  252.687453] [<c013b854>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[  252.694663] Exception stack(0xc3845fb0 to 0xc3845ff8)
[  252.699701] 5fa0:                                     00000000 00000000 00000000 00000000
[  252.707868] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.716034] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  252.722767] ---[ end trace c2da1efaf38c4f3d ]---
[  252.727432] wlan0: deauthenticating from c8:e7:d8:34:27:84 by local choice (Reason: 3=DEAUTH_LEAVING)
[  252.831695] mmc1: card 0001 removed
[  252.887836] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[  252.908732] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[  252.923924] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[  252.939568] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[  252.949438] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[  252.962697] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[  252.971128] mmc1: new high speed SDIO card at address 0001
[  252.990913] 8<--- cut here ---
[  252.993997] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[  253.002247] pgd = 6ae702fa
[  253.004956] [00000004] *pgd=00000000
[  253.008538] Internal error: Oops: 17 [#1] SMP ARM
[  253.013235] Modules linked in: esp8089
[  253.016989] CPU: 0 PID: 5 Comm: kworker/0:0 Tainted: G        W         5.2.0-licheepi-zero #3
[  253.025584] Hardware name: Allwinner sun8i Family
[  253.030297] Workqueue: events_freezable mmc_rescan
[  253.035123] PC is at esp_sdio_probe+0x48/0x3e4 [esp8089]
[  253.040432] LR is at sdio_bus_probe+0xfc/0x114
[  253.044868] pc : [<bf001174>]    lr : [<c0539944>]    psr: 20060013
[  253.051124] sp : c3845d98  ip : 29aaaaab  fp : c0b04c48
[  253.056340] r10: 0000000e  r9 : bf00a188  r8 : bf00a188
[  253.061557] r7 : c32bf400  r6 : bf00d080  r5 : bf039784  r4 : 00000000
[  253.068073] r3 : c32bf408  r2 : 00000003  r1 : 00000000  r0 : c32bf400
[  253.074592] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  253.081716] Control: 10c5387d  Table: 432b406a  DAC: 00000051
[  253.087455] Process kworker/0:0 (pid: 5, stack limit = 0xb741b1b1)
[  253.093626] Stack: (0xc3845d98 to 0xc3846000)
[  253.097979] 5d80:                                                       bf00d0e8 0000000e
[  253.106147] 5da0: c0b04c48 c32bf408 00000000 c32bf400 bf00d0e8 bf00a188 bf00d0e8 c0539944
[  253.114315] 5dc0: c0b838c8 c32bf408 00000000 c0b838cc 00000001 c04329b4 c32bf408 bf00d0e8
[  253.122482] 5de0: c0432e1c c0b04c48 00000001 00000000 00000001 c0432c34 c0b41240 00000000
[  253.130650] 5e00: 00000000 c0b87250 bf00d0e8 c3845e64 c32bf408 00000000 c3845e64 c0432e1c
[  253.138818] 5e20: c0b04c48 00000001 00000000 00000001 c0b04c48 c0430cc8 00000001 c39a0c6c
[  253.146986] 5e40: c31dd2b8 3e4fcf47 c32bf408 c32bf408 c0b04c48 c32bf44c c3300008 c0432764
[  253.155153] 5e60: 00000cc0 c32bf408 00000001 3e4fcf47 c32bf408 c32bf408 c0b3b860 c3300008
[  253.163321] 5e80: 00000000 c0431b18 c32bf408 00000000 c0b04c48 c042f5cc c32bf400 c3b91000
[  253.171489] 5ea0: 00000001 c052f164 c3300004 3e4fcf47 c3845ec8 c32bf400 c32bf408 c3300004
[  253.179657] 5ec0: c3b91000 c3300398 c3300000 c0539bd8 00000000 00000001 c3300004 c0538f40
[  253.187824] 5ee0: 00000000 c3845ef7 00000000 00000000 00000000 00000000 10ffff00 3e4fcf47
[  253.195992] 5f00: ffffff92 c3b9128c 00061a80 c3b91000 c086bfc0 c086bfcc c3b91290 00000000
[  253.204160] 5f20: c3dee880 c052ff78 c380d680 c3b9128c c3dee880 c3df1c00 00000000 c0135e64
[  253.212328] 5f40: c3dee898 c0b03d00 c380d680 c3dee880 c380d694 c3dee898 c0b03d00 c3844000
[  253.220496] 5f60: 00000008 c0136098 00000000 c3816980 c38168c0 00000000 c380d680 c013606c
[  253.228663] 5f80: c381699c c3833eac 00000000 c013b854 c38168c0 c013b734 00000000 00000000
[  253.236830] 5fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
[  253.244997] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  253.253164] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[  253.261360] [<bf001174>] (esp_sdio_probe [esp8089]) from [<c0539944>] (sdio_bus_probe+0xfc/0x114)
[  253.270233] [<c0539944>] (sdio_bus_probe) from [<c04329b4>] (really_probe+0x1dc/0x2e0)
[  253.278147] [<c04329b4>] (really_probe) from [<c0432c34>] (driver_probe_device+0x60/0x1a0)
[  253.286406] [<c0432c34>] (driver_probe_device) from [<c0430cc8>] (bus_for_each_drv+0x74/0xb8)
[  253.294925] [<c0430cc8>] (bus_for_each_drv) from [<c0432764>] (__device_attach+0xd0/0x13c)
[  253.303181] [<c0432764>] (__device_attach) from [<c0431b18>] (bus_probe_device+0x84/0x8c)
[  253.311352] [<c0431b18>] (bus_probe_device) from [<c042f5cc>] (device_add+0x444/0x5e4)
[  253.319263] [<c042f5cc>] (device_add) from [<c0539bd8>] (sdio_add_func+0x5c/0x70)
[  253.326741] [<c0539bd8>] (sdio_add_func) from [<c0538f40>] (mmc_attach_sdio+0x270/0x370)
[  253.334825] [<c0538f40>] (mmc_attach_sdio) from [<c052ff78>] (mmc_rescan+0x304/0x38c)
[  253.342652] [<c052ff78>] (mmc_rescan) from [<c0135e64>] (process_one_work+0x150/0x358)
[  253.350566] [<c0135e64>] (process_one_work) from [<c0136098>] (worker_thread+0x2c/0x518)
[  253.358653] [<c0136098>] (worker_thread) from [<c013b854>] (kthread+0x120/0x150)
[  253.366044] [<c013b854>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[  253.373255] Exception stack(0xc3845fb0 to 0xc3845ff8)
[  253.378299] 5fa0:                                     00000000 00000000 00000000 00000000
[  253.386466] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  253.394632] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  253.401243] Code: e5954018 e3a01000 e5851018 e2873008 (e5948004)
[  253.407446] ---[ end trace c2da1efaf38c4f3e ]---
ping: sendto: Network is unreachable

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

buildroot-2020.02.4$ vim Config.in.legacy
(1814行) 如下都注释掉了

#config BR2_PACKAGE_MPLAYER
#       bool "mplayer package removed"
#       select BR2_LEGACY
#       help
#         The mplayer package was removed.

#config BR2_PACKAGE_MPLAYER_MPLAYER
#       bool "mplayer package removed"
#       select BR2_LEGACY
#       help
#         The mplayer package was removed.

#config BR2_PACKAGE_MPLAYER_MENCODER
#       bool "mplayer package removed"
#       select BR2_LEGACY
#       help
#         The mplayer package was removed.

#config BR2_PACKAGE_LIBPLAYER_MPLAYER
#       bool "mplayer support in libplayer removed"
#       select BR2_LEGACY
#       help
#         The mplayer package was removed.

不过编译的时候还是不行啊!

liefyuan@ubuntu:~/Liefyuan/cherry-pi/buildroot-2020.02.4$ sudo time make -j16
[sudo] password for liefyuan: 
Makefile.legacy:9: *** "You have legacy configuration in your .config! Please check your configuration.".  Stop.
Command exited with non-zero status 2
0.04user 0.00system 0:00.04elapsed 112%CPU (0avgtext+0avgdata 12580maxresident)k
0inputs+80outputs (0major+11500minor)pagefaults 0swaps

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

晕哥,如建议我就从buildroot2017拷贝了一个mplayer文件夹进buildroot2020然后编译的时候报错了:

liefyuan@ubuntu:~/Liefyuan/cherry-pi/buildroot-2020.02.4$ sudo time make -j16Makefile.legacy:9: *** "You have legacy configuration in your .config! Please check your configuration.".  Stop.
Command exited with non-zero status 2
0.03user 0.01system 0:00.04elapsed 111%CPU (0avgtext+0avgdata 12280maxresident)k
0inputs+80outputs (0major+11530minor)pagefaults 0swaps

#48 Re: 全志 SOC » 全志V3s (板子是mangopi v3s)主线linux5.2.0加载ESP8089wifi .ko报错: » 2022-05-15 23:50:55

让板子重新上电其实就没有这个问题,可以正常加载模块的!

# insmod /lib/modules/esp8089.ko
[   33.142620]
[   33.142620] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[   33.142620]
[   33.150803] ESP8089 reset via GPIO 0
[   33.367996] esp_sdio_dummy_probe enter
[   33.587670] esp_sdio_init power up OK
[   34.039162] esp_host:bdf5087c3deb
[   34.039162] esp_target: e826c2b3c9fd 57 18202
[   34.039162]
[   34.048460] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[   34.056547] first normal exit
[   34.059745] esp_sdio_remove enter
[   34.064033] sif_disable_irq release irq failed
[   34.187987] eagle_sdio: probe of mmc1:0001:1 failed with error -110
# [   34.888079] mmc1: card 0001 removed
[   34.942183] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[   34.954824] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[   34.963661] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[   34.971008] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[   34.976546] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[   34.982568] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[   34.988163] mmc1: new high speed SDIO card at address 0001
[   35.352056] esp_host:bdf5087c3deb
[   35.352056] esp_target: e826c2b3c9fd 57 18202
[   35.352056]

#
#
# ifconfig wlan0 up
[   49.594517] esp_op_add_interface STA
# 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:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4736 (4.6 KiB)  TX bytes:4736 (4.6 KiB)

wlan0     Link encap:Ethernet  HWaddr AC:D0:74:C8:E9: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)

#

#49 Re: 全志 SOC » 全志V3s (板子是mangopi v3s)主线linux5.2.0加载ESP8089wifi .ko报错: » 2022-05-15 22:14:22

哇酷小二 说:

ESP8089 reset via GPIO 0

驱动可能需要传一个gpio进去。

# insmod esp8089.ko reset via GPIO 0
[ 8426.078282] esp8089: unknown parameter 'reset' ignored
[ 8426.083446] esp8089: unknown parameter 'via' ignored
[ 8426.088514] esp8089: unknown parameter 'GPIO' ignored
[ 8426.093563] esp8089: unknown parameter '0' ignored
[ 8426.098678]
[ 8426.098678] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[ 8426.098678]
[ 8426.106608] debugfs: Directory 'esp_debug' with parent '/' already present!
[ 8426.113646] ESP8089 reset via GPIO 0
[ 8437.607699] esp_sdio_init ------ RETRY ------
[ 8437.612244] ESP8089 reset via GPIO 0
[ 8437.827788] ESP8089 reset via GPIO 0
[ 8449.127694] esp_sdio_init ------ RETRY ------
[ 8449.132234] ESP8089 reset via GPIO 0
[ 8449.347724] ESP8089 reset via GPIO 0
[ 8460.647704] esp_sdio_init ------ RETRY ------
[ 8460.652249] ESP8089 reset via GPIO 0
[ 8460.867733] ESP8089 reset via GPIO 0
[ 8472.167701] esp_sdio_init ------ RETRY ------
[ 8472.172240] ESP8089 reset via GPIO 0
[ 8472.387717] eagle sdio can not power up!
[ 8472.399061] esp8089: unknown parameter 'reset' ignored
[ 8472.404223] esp8089: unknown parameter 'via' ignored
[ 8472.409276] esp8089: unknown parameter 'GPIO' ignored
[ 8472.414327] esp8089: unknown parameter '0' ignored
[ 8472.419446]
[ 8472.419446] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[ 8472.419446]
[ 8472.427372] debugfs: Directory 'esp_debug' with parent '/' already present!
[ 8472.434420] ESP8089 reset via GPIO 0
[ 8483.687696] esp_sdio_init ------ RETRY ------
[ 8483.692232] ESP8089 reset via GPIO 0
[ 8483.907724] ESP8089 reset via GPIO 0
[ 8495.207697] esp_sdio_init ------ RETRY ------
[ 8495.212233] ESP8089 reset via GPIO 0
[ 8495.427728] ESP8089 reset via GPIO 0
[ 8506.727701] esp_sdio_init ------ RETRY ------
[ 8506.732232] ESP8089 reset via GPIO 0
[ 8506.947728] ESP8089 reset via GPIO 0
[ 8518.247696] esp_sdio_init ------ RETRY ------
[ 8518.252238] ESP8089 reset via GPIO 0
[ 8518.467755] eagle sdio can not power up!
insmod: can't insert 'esp8089.ko': No such device

不行啊

#50 Re: 全志 SOC » 全志V3s (板子是mangopi v3s)主线linux5.2.0加载ESP8089wifi .ko报错: » 2022-05-15 22:08:31

哇酷小二 说:

ESP8089 reset via GPIO 0

驱动可能需要传一个gpio进去。

您是说加载模块的时候吗?
这样吗?

insmod esp8089.ko reset via GPIO 0

#51 全志 SOC » 全志V3s (板子是mangopi v3s)主线linux5.2.0加载ESP8089wifi .ko报错: » 2022-05-15 21:46:26

liefyuan
回复: 6

硬件:mangopi v3s
linux kernel: linux5.2.0
原理图:
360截图17571117486896.png

360截图1734091197136127.png

设备树:使用的licheepi的

/*
 * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz>
 *
 * This file is dual-licensed: you can use it either under the terms
 * of the GPL or the X11 license, at your option. Note that this dual
 * licensing only applies to this file, and not this project as a
 * whole.
 *
 *  a) This file is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of the
 *     License, or (at your option) any later version.
 *
 *     This file is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 * Or, alternatively,
 *
 *  b) Permission is hereby granted, free of charge, to any person
 *     obtaining a copy of this software and associated documentation
 *     files (the "Software"), to deal in the Software without
 *     restriction, including without limitation the rights to use,
 *     copy, modify, merge, publish, distribute, sublicense, and/or
 *     sell copies of the Software, and to permit persons to whom the
 *     Software is furnished to do so, subject to the following
 *     conditions:
 *
 *     The above copyright notice and this permission notice shall be
 *     included in all copies or substantial portions of the Software.
 *
 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
	model = "Lichee Pi Zero with Dock";
	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
		     "allwinner,sun8i-v3s";

	aliases {
		ethernet0 = &emac;
	};

	leds {
		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
		status = "disabled";
	};
};

&codec {
	allwinner,audio-routing =
		"Headphone", "HP",
		"Headphone", "HPCOM",
		"MIC1", "Mic",
		"Mic",  "HBIAS";
	status = "okay";
};

&emac {
	phy-handle = <&int_mii_phy>;
	phy-mode = "mii";
	allwinner,leds-active-low;
	status = "okay";
};

&mmc1 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&lradc {
	vref-supply = <&reg_vcc3v0>;
	status = "okay";

	button-200 {
		label = "Volume Up";
		linux,code = <KEY_VOLUMEUP>;
		channel = <0>;
		voltage = <200000>;
	};

	button-400 {
		label = "Volume Down";
		linux,code = <KEY_VOLUMEDOWN>;
		channel = <0>;
		voltage = <400000>;
	};

	button-600 {
		label = "Select";
		linux,code = <KEY_SELECT>;
		channel = <0>;
		voltage = <600000>;
	};

	button-800 {
		label = "Start";
		linux,code = <KEY_OK>;
		channel = <0>;
		voltage = <800000>;
	};
};

&i2c0 {
	status = "okay";

	gt911: touchscreen@14 {
        	compatible = "goodix,gt911";
        	reg = <0x14>;
        	interrupt-parent = <&pio>;
        	interrupts = <1 1 IRQ_TYPE_EDGE_FALLING>; /* (PB1) */
        	pinctrl-names = "default";
        	irq-gpios = <&pio 1 1 GPIO_ACTIVE_HIGH>; /* (PB1) */
        	reset-gpios = <&pio 1 0 GPIO_ACTIVE_HIGH>; /* RST (PB0) */
        	/* touchscreen-swapped-x-y */
    };
};
#include "sun8i-v3s.dtsi"
#include "sunxi-common-regulators.dtsi"

/ {
	model = "Lichee Pi Zero";
	compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";

	aliases {
		serial0 = &uart0;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	leds {
		compatible = "gpio-leds";

		blue_led {
			label = "licheepi:blue:usr";
			gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
		};

		green_led {
			label = "licheepi:green:usr";
			gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
			default-state = "on";
		};

		red_led {
			label = "licheepi:red:usr";
			gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */
		};
	};
};

&ehci0 {
	status = "okay";
};

&mmc0 {
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

/*&i2c0 {
	status = "okay";

	ns2009: ns2009@48 {
		compatible = "nsiway,ns2009";
		reg = <0x48>;
	};
};*/

&ohci0 {
	status = "okay";
};

&uart0 {
	pinctrl-0 = <&uart0_pb_pins>;
	pinctrl-names = "default";
	status = "okay";
};

&usb_otg {
	dr_mode = "otg";
	status = "okay";
};

&usbphy {
	usb0_id_det-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
	status = "okay";
};

加载esp8089.ko之后出现的问题:

# insmod esp8089.ko
[ 6037.164266]
[ 6037.164266] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[ 6037.164266]
[ 6037.172352] debugfs: Directory 'esp_debug' with parent '/' already present!
[ 6037.179391] ESP8089 reset via GPIO 0
[ 6048.487708] esp_sdio_init ------ RETRY ------
[ 6048.492255] ESP8089 reset via GPIO 0
[ 6048.707737] ESP8089 reset via GPIO 0
[ 6060.007706] esp_sdio_init ------ RETRY ------
[ 6060.012250] ESP8089 reset via GPIO 0
[ 6060.227738] ESP8089 reset via GPIO 0
[ 6071.527710] esp_sdio_init ------ RETRY ------
[ 6071.532249] ESP8089 reset via GPIO 0
[ 6071.747749] ESP8089 reset via GPIO 0
[ 6083.047715] esp_sdio_init ------ RETRY ------
[ 6083.052250] ESP8089 reset via GPIO 0
[ 6083.267797] eagle sdio can not power up!
[ 6083.279314]
[ 6083.279314] ***** EAGLE DRIVER VER:bdf5087c3deb*****
[ 6083.279314]
[ 6083.287253] debugfs: Directory 'esp_debug' with parent '/' already present!
[ 6083.294340] ESP8089 reset via GPIO 0
[ 6094.567707] esp_sdio_init ------ RETRY ------
[ 6094.572245] ESP8089 reset via GPIO 0
[ 6094.787736] ESP8089 reset via GPIO 0
[ 6106.087714] esp_sdio_init ------ RETRY ------
[ 6106.092250] ESP8089 reset via GPIO 0
[ 6106.307733] ESP8089 reset via GPIO 0
[ 6117.607708] esp_sdio_init ------ RETRY ------
[ 6117.612243] ESP8089 reset via GPIO 0
[ 6117.827737] ESP8089 reset via GPIO 0
[ 6129.127704] esp_sdio_init ------ RETRY ------
[ 6129.132240] ESP8089 reset via GPIO 0
[ 6129.347722] eagle sdio can not power up!
insmod: can't insert 'esp8089.ko': No such device

#52 Re: 全志 SOC » 好气啊!满心欢喜买了块芯思灵V3s的板子却发现它的40pin的屏幕RGB接口不是常规的接口线序,咋办呢? » 2022-05-11 11:33:42

画转接板中回复!太恶心了!怪不得这么便宜呢!

1、它的开发板上没有背光电路,要想用,得在转接板上画背光电路?????
2、触摸部分:看得出来转接板上如果通过直连的方式只能支持IIC电容触摸(还得加TP接口),不加TP接口和排线共用的话就得在转接板上面画NS2009电路。

#54 全志 SOC » V3s板子 LRADC KEY按键显示的键值错误,并且显示毫无规律,求教啊! » 2022-03-06 01:13:19

liefyuan
回复: 1

原理图:


360截图17650103117133121.png

硬件检查:
R24电阻按键不按下时电压为:2.98v

R24电阻S1按键按下时电压为:0.19v
R25电阻S2按键按下时电压为:0.39v
R26电阻S3按键按下时电压为:0.6v
R27电阻S4按键按下时电压为:0.8v

问题:
按键与键值显示错误。

设备树文件:

#include <dt-bindings/input/input.h>

#include "sun8i-v3s-licheepi-zero.dts"

/ {
        model = "Lichee Pi Zero with Dock";
        compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
                     "allwinner,sun8i-v3s";
};

&codec {
        allwinner,audio-routing =
                "Headphone", "HP",
                "Headphone", "HPCOM",
                "MIC1", "Mic",
                "Mic",  "HBIAS";
        status = "okay";
};

&lradc {
        vref-supply = <&reg_vcc3v0>;
        status = "okay";

        button@200 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <200000>;
        };

        button@400 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;
                voltage = <400000>;
        };

        button@600 {
                label = "Select";
                linux,code = <KEY_SELECT>;
                channel = <0>;
                voltage = <600000>;
        };
        button@800 {
                label = "Start";
                linux,code = <KEY_OK>;
                channel = <0>;
                voltage = <800000>;
        };
};

&mmc1 {
        pinctrl-0 = <&mmc1_pins>;
        pinctrl-names = "default";
        broken-cd;
        bus-width = <4>;
        vmmc-supply = <&reg_vcc3v3>;
        status = "okay";
};

测试代码:https://elinux.org/images/9/93/Evtest.c

以下我是按照原理图上的S1,S2,S3,S4按键的顺序按下的,输出的信息完全不对,求教。

# ./evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "1c22800.lradc"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 114 (VolumeDown)
    Event code 115 (VolumeUp)
    Event code 352 (Ok)
    Event code 353 (Select)
Testing ... (interrupt to exit)
Event: time 17480.008424, type 1 (Key), code 114 (VolumeDown), value 1
Event: time 17480.008424, -------------- Report Sync ------------
Event: time 17480.246700, type 1 (Key), code 114 (VolumeDown), value 0
Event: time 17480.246700, -------------- Report Sync ------------
Event: time 17480.727180, type 1 (Key), code 352 (Ok), value 1
Event: time 17480.727180, -------------- Report Sync ------------
Event: time 17480.942028, type 1 (Key), code 352 (Ok), value 0
Event: time 17480.942028, -------------- Report Sync ------------
Event: time 17481.465484, type 1 (Key), code 352 (Ok), value 1
Event: time 17481.465484, -------------- Report Sync ------------
Event: time 17481.680335, type 1 (Key), code 352 (Ok), value 0
Event: time 17481.680335, -------------- Report Sync ------------
Event: time 17482.195977, type 1 (Key), code 352 (Ok), value 1
Event: time 17482.195977, -------------- Report Sync ------------
Event: time 17482.445982, type 1 (Key), code 352 (Ok), value 0
Event: time 17482.445982, -------------- Report Sync ------------

我按下S1按键再松开:

Event: time 17480.008424, type 1 (Key), code 114 (VolumeDown), value 1
Event: time 17480.008424, -------------- Report Sync ------------
Event: time 17480.246700, type 1 (Key), code 114 (VolumeDown), value 0
Event: time 17480.246700, -------------- Report Sync ------------

如上它显示的是S2按键(VolumeDown)的信息和键值,为什么呢?

我按下S2、S3、S4键都是显示的是S4按键(KEY_OK)的信息,为什么呢?

Event: time 17480.727180, type 1 (Key), code 352 (Ok), value 1
Event: time 17480.727180, -------------- Report Sync ------------
Event: time 17480.942028, type 1 (Key), code 352 (Ok), value 0
Event: time 17480.942028, -------------- Report Sync ------------


查看中断列表:

# cat /proc/interrupts
           CPU0
 19:        576     GIC-0  27 Level     arch_timer
 21:          0     GIC-0  50 Level     sun4i_timer0
 22:          0     GIC-0  82 Level     1c02000.dma-controller
 23:       5039     GIC-0  92 Level     sunxi-mmc
 24:        159     GIC-0  93 Level     sunxi-mmc
 25:          1     GIC-0 103 Level     musb-hdrc.1.auto
 26:          0     GIC-0  72 Level     1c20400.rtc
 32:          2     GIC-0  62 Level     sun4i-a10-lradc-keys
 34:        226     GIC-0  32 Level     serial
 35:         63     GIC-0  38 Level     mv64xxx_i2c
IPI0:          0  CPU wakeup interrupts
IPI1:          0  Timer broadcast interrupts
IPI2:          0  Rescheduling interrupts
IPI3:          0  Function call interrupts
IPI4:          0  CPU stop interrupts
IPI5:          0  IRQ work interrupts
IPI6:          0  completion interrupts
Err:          0

有中断:

 32:          2     GIC-0  62 Level     sun4i-a10-lradc-keys

以上就是所有的信息

#56 Re: 全志 SOC » V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。 » 2022-02-26 23:16:42

YuzukiTsuru 说:

https://whycan.com/files/members/5198/2.png

PB2不可以PWM,飞线或者改改驱动

已经改了驱动了,肉眼可见屏幕是亮了,但是,现在是没有打印信息。

#57 Re: 全志 SOC » V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。 » 2022-02-26 21:07:05

cube 说:

进入Linux之后串口还能输入吗?

可以啊,在串口可以正常输入各种命令啊。现在就是在屏幕上啥都没有,不知道啥问题。

#58 Re: 全志 SOC » V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。 » 2022-02-26 21:06:16

sunxiang 说:

我也遇到过的,飞线把PB2电阻的另外一段接到PB4,就可以显示出来了


不行啊,还是显示不出来任何打印信息

#59 全志 SOC » V3S板子接40PIN标准RGB屏幕无法打印信息,无法显示Qt例程,同样的TF系统卡在Licheepi Zero上显示正常,Qt运行正常。 » 2022-02-26 00:00:38

liefyuan
回复: 7

同样的Uboot和同样的Kernel同样的文件系统(我使用的同一张TF系统卡)Licheepi Zero 是可以显示上电信息的,包括我移植好的的Qt都是可以正常显示Qt例程的。但是这我的这块板子上却无法显示打印信息,甚至无法点亮。

后面通过对比发现了背光引脚有差别。

Licheepi和我的板子的背光电路对比图--不同点Lichee用的是PB4,我的板子用的是PB2:
360截图17390222586185.png

由于有背光引脚的差别,所以我更改了uboot的LicheePi_Zero_800x480LCD_defconfig文件 CONFIG_VIDEO_LCD_BL_PWM="PB2" :

CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
# CONFIG_ARMV7_NONSEC is not set
CONFIG_MACH_SUN8I_V3S=y
CONFIG_DRAM_CLK=360
CONFIG_DRAM_ZQ=14779
CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:87,ri:40,up:31,lo:13,hs:1,vs:1,sync:3,vmode:0"
CONFIG_VIDEO_LCD_BL_PWM="PB2"
# CONFIG_VIDEO_LCD_BL_PWM_ACTIVE_LOW is not set
CONFIG_DEFAULT_DEVICE_TREE="sun8i-v3s-licheepi-zero"
# CONFIG_CONSOLE_MUX is not set
CONFIG_SPL=y
CONFIG_CMD_BOOTMENU=y
# CONFIG_CMD_IMLS is not set
CONFIG_CMD_MEMINFO=y
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_FPGA is not set
# CONFIG_NETDEVICES is not set
CONFIG_OF_LIBFDT_OVERLAY=y

所以上电之后是有看到屏幕亮的。也是有生成fb0的。不过还是没有打印信息,无法显示Qt例程


Licheepi和我这块板子的RGB接口的对比图,是完全一样的:
360截图16720402112117107.png

原理图:


CherryPi-PC-V3S_V1.2.pdf


RGB连接相关的
360截图18720116838989.png

RGB屏幕是通用的40pin的引脚

设备树是licheepi zero的原版dts,没有做修改的:

 
#include "sun8i-v3s.dtsi"
#include "sunxi-common-regulators.dtsi"

/ {
        model = "Lichee Pi Zero";
        compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";

        aliases {
                serial0 = &uart0;
        };

        chosen {
                stdout-path = "serial0:115200n8";

        };
};

&mmc0 {
        pinctrl-0 = <&mmc0_pins_a>;
        pinctrl-names = "default";
        broken-cd;
        bus-width = <4>;
        vmmc-supply = <&reg_vcc3v3>;
        status = "okay";
};
&i2c0 {
        status = "okay";

        ns2009: ns2009@48 {
                compatible = "nsiway,ns2009";
                reg = <0x48>;
        };
};

&uart0 {
        pinctrl-0 = <&uart0_pins_a>;
        pinctrl-names = "default";
        status = "okay";
};

&usb_otg {
        dr_mode = "otg";
        status = "okay";
};

&usbphy {
        usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
        status = "okay";
};


                                   

上电信息:

U-Boot SPL 2017.01-rc2 (Feb 19 2022 - 09:51:46)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Feb 19 2022 - 09:51:46 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
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 (Feb 19 2022 - 09:51:46 -0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
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
reading zImage
3802128 bytes read in 201 ms (18 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
8581 bytes read in 26 ms (322.3 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff184 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero (liefyuan@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #1 SMP Sat Feb 19 02:38:26 PST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3dea000 s24768 r8192 d24384 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    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] 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: 53644K/64036K available (6144K kernel code, 199K rwdata, 1392K rodata, 1024K init, 260K bss, 10392K 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 - 0xc0a31ec0   ( 200 kB)
[    0.000000]        .bss : 0xc0a33000 - 0xc0a7405c   ( 261 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected 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.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000352] Console: colour dummy device 80x30
[    0.000783] console [tty0] enabled
[    0.000823] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000862] pid_max: default: 32768 minimum: 301
[    0.001011] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001038] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001759] CPU: Testing write buffer coherency: ok
[    0.002208] /cpus/cpu@0 missing clock-frequency property
[    0.002253] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002635] Setting up static identity map for 0x40100000 - 0x40100058
[    0.003403] smp: Bringing up secondary CPUs ...
[    0.003441] smp: Brought up 1 node, 1 CPU
[    0.003461] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003480] CPU: All CPU(s) started in SVC mode.
[    0.004292] devtmpfs: initialized
[    0.007065] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007450] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007619] pinctrl core: initialized pinctrl subsystem
[    0.008628] NET: Registered protocol family 16
[    0.009145] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010530] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010583] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021744] SCSI subsystem initialized
[    0.022056] usbcore: registered new interface driver usbfs
[    0.022143] usbcore: registered new interface driver hub
[    0.022251] usbcore: registered new device driver usb
[    0.022481] pps_core: LinuxPPS API ver. 1 registered
[    0.022507] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022552] PTP clock support registered
[    0.022781] Advanced Linux Sound Architecture Driver Initialized.
[    0.024635] clocksource: Switched to clocksource arch_sys_counter
[    0.025519] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4080000
[    0.025575] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.032445] Console: switching to colour frame buffer device 100x30
[    0.042280] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    0.056112] NET: Registered protocol family 2
[    0.060537] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.064424] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.068335] TCP: Hash tables configured (established 1024 bind 1024)
[    0.072206] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.076017] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.079942] NET: Registered protocol family 1
[    0.084196] RPC: Registered named UNIX socket transport module.
[    0.087972] RPC: Registered udp transport module.
[    0.091569] RPC: Registered tcp transport module.
[    0.095075] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.100819] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.113466] NFS: Registering the id_resolver key type
[    0.117124] Key type id_resolver registered
[    0.120501] Key type id_legacy registered
[    0.128066] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.131652] io scheduler noop registered
[    0.135302] io scheduler deadline registered
[    0.139037] io scheduler cfq registered (default)
[    0.146958] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.220589] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.227702] console [ttyS0] disabled
[    0.251513] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.849668] console [ttyS0] enabled
[    0.857394] [drm] Initialized
[    0.865700] libphy: Fixed MDIO Bus: probed
[    0.873366] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.883369] ehci-platform: EHCI generic platform driver
[    0.892037] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.901556] ohci-platform: OHCI generic platform driver
[    0.910541] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.923570] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.933861] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.941724] i2c /dev entries driver
[    0.949856] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.962900] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.034676] sunxi-mmc 1c0f000.mmc: base:0xc405d000 irq:23
[    1.044499] usbcore: registered new interface driver usbhid
[    1.053739] usbhid: USB HID core driver
[    1.062946] NET: Registered protocol family 17
[    1.071178] Key type dns_resolver registered
[    1.079113] Registering SWP/SWPB emulation handler
[    1.096170] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.107867] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.117340] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.130128] hub 1-0:1.0: USB hub found
[    1.137753] hub 1-0:1.0: 1 port detected
[    1.146222] using random self ethernet address
[    1.154227] using random host ethernet address
[    1.163251] usb0: HOST MAC 7a:9f:d6:3d:50:50
[    1.171075] usb0: MAC 16:32:ce:d6:cb:bf
[    1.178247] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.189030] g_cdc gadget: g_cdc ready
[    1.196264] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.207940] vcc3v0: disabling
[    1.214341] vcc5v0: disabling
[    1.220652] ALSA device list:
[    1.226865]   No soundcards found.
[    1.237600] Waiting for root device /dev/mmcblk0p2...
[    1.312673] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.326209] mmc0: new high speed SD card at address 0001
[    1.335610] mmcblk0: mmc0:0001 SD 1.83 GiB
[    1.344555]  mmcblk0: p1 p2
[    1.350622] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.395850] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.408590] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.441994] random: fast init done
[    1.529301] EXT4-fs (mmcblk0p2): recovery complete
[    1.542584] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.554155] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.570173] devtmpfs: mounted
[    1.577985] Freeing unused kernel memory: 1024K
[    1.698749] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[    5.395060] random: crng init done

希望大佬指点一下迷津,谢谢了。

#60 Re: 全志 SOC » 求助:V3s芯片Linux系统,如何调节在屏幕(2.0寸240x320RGB)上的上电打印信息的字体大小? » 2021-11-22 16:27:25

树莓学LINUX 说:

同求,我是感觉字太小了,想调整大一些

网络上找不到任何信息,也不知道该怎么改

#62 全志 SOC » 求助:V3s芯片Linux系统,如何调节在屏幕(2.0寸240x320RGB)上的上电打印信息的字体大小? » 2021-09-12 21:13:13

liefyuan
回复: 6

V3s芯片,U-Boot和Kernel、设备树和文件系统都搞好了,但是我屏幕太小了,打印不了太多信息,所以我想把字体调小一些,在网上找了一圈也没有找到这一块的任何信息?

#63 Re: 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-07 23:56:45

这是使用逻辑分析仪采样,两个波形进行对比:

上面的波形是可以启动屏幕的,下面的波形是没有启动屏幕的我自己配置的设备树
360%E6%88%AA%E5%9B%BE17860601485362.png

#64 Re: 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-06 23:47:51

这是可以驱动屏幕的Log打印:

```bash

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
boot0 commit : 84a94703bad64632614d7c383e4ed8fae32e1644

fel flag  = 0x00000000
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
rtc[6] value = 0x00000000
rtc[7] value = 0x00000000
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 360 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
dram size =64
card boot number = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2014-12-10 21:20:39
[mmc]: ***Try SD card 0***
[mmc]: SD/MMC Card: 4bit, capacity: 29566MB
[mmc]: vendor: Man 00275048 Snr 6ca4bf3c
[mmc]: product: SD32G
[mmc]: revision: 6.0
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000ac000.
sum=9b7a6e48
src_sum=9b7a6e48
Succeed in loading uboot from sdmmc flash.
Ready to disable icache.
Jump to secend Boot.
[      0.349]

U-Boot 2011.09-rc1-00000-g84a9470-dirty (Apr 12 2020 - 09:03:08) Allwinner Technology

[      0.358]version: 1.1.0
[      0.361]uboot commit : 84a94703bad64632614d7c383e4ed8fae32e1644

[      0.371]pmbus:   ready
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
http://www.csgsm.com  18144070918 http://cstx.taobao.com
not set main pmu id
axp_probe error
[      0.412]PMU: pll1 408 Mhz,PLL6=600 Mhz
AXI=204 Mhz,AHB=204 Mhz, APB1=102 Mhz
set power on vol to default
dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
ldo3_vol = 3000
axp set ldo3_vol to 3000 failed
find power_sply to end
vbus exist
no battery, limit to dc
no key input
dram_para_set start
dram_para_set end
[      0.543]DRAM:  64 MiB
relocation Offset is: 0309c000
save config for small mem_size
workmode = 0
storage type = 1
MMC:     0
[      0.642][mmc]: mmc driver ver 2015-04-13 14:50:00
[      0.647][mmc]: get sdc_phy_wipe fail.
[      0.651][mmc]: get sdc0 sdc_erase fail.
[      0.655][mmc]: get sdc_f_max fail,use default 50000000Hz
[      0.660][mmc]: get sdc_ex_dly_used fail,use default dly
[      0.665][mmc]: SUNXI SD/MMC: 0
[      0.679][mmc]: *Try SD card 0*
[      0.712][mmc]: CID 0x27504853 0x44333247 0x606ca4bf 0x3c0149cb
[      0.717][mmc]: mmc clk 50000000
[      0.721][mmc]: SD/MMC Card: 4bit, capacity: 29566MB
[      0.726][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB
[      0.731][mmc]: ***SD/MMC 0 init OK!!!***
[      0.757][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte
[      0.762][mmc]: secure_feature 0x0
[      0.766][mmc]: secure_removal_type  0x0
[      0.770]sunxi flash init ok
In:    serial
Out:   serial
Err:   serial
--------fastboot partitions--------
-total partitions:5-
-name-        -start-       -size-
bootloader  : 100000        800000
env         : 900000        80000
boot        : 980000        800000
system      : 1180000       20000000
UDISK       : 21180000      0
-----------------------------------
base bootcmd=run bootcmd_mmc_linux
bootcmd set setargs_mmc
key 0
cant find rcvy value
cant find fstbt value
no misc partition is found
to be run cmd=run bootcmd_mmc_linux
Net:   eth0Warning: failed to set MAC address

WORK_MODE_BOOT
board_status_probe
adver not need show
sunxi_bmp_logo_display

** Unable to read "bootlogo.bmp" from sunxi_flash 0:1 **
sunxi bmp info error : unable to open logo file bootlogo.bmp
[      0.999][mmc]: blkcnt should not be 0
read bootlogo partition fail,start_block=0x0,rblock=0x0 ,ret=0
Not a JPG file ?
parse_header failed

Use decode 2x1 sampling
sunxi_read_bootlogo: jpg convert argb
[      1.017]Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 40007800 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3842576 Bytes = 3.7 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
para err in disp_ioctl, cmd = 0xa,screen id = 1
[      2.666][mmc]: MMC Device 2 not found
[      2.670][mmc]:  mmc  not find,so not exit
reload config to 0x43000000
[      2.674]
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (root@7eb9df119c1c) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #42 Wed Apr 15 03:12:39 UTC 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] ion_reserve_common: ion reserve: [0x42e00000, 0x44000000]!
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c078d928, node_mem_map c07cb000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p7 init=/init loglevel=8 partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:system@mmcblk0p7:UDISK@mmcblk0p1 mac_addr= uid=8882f574-3e53-45 fb_base=0x43e80000
[    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: 64MB = 64MB total
[    0.000000] Memory: 38340k/38340k available, 27196k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06d9000   (6980 kB)
[    0.000000]       .init : 0xc06d9000 - 0xc0705000   ( 176 kB)
[    0.000000]       .data : 0xc0706000 - 0xc078e060   ( 545 kB)
[    0.000000]        .bss : 0xc078e084 - 0xc07ca1c0   ( 241 kB)
[    0.000000] NR_IRQS:544
[    0.000000] 524 ahb1 set parent pll_periph0d2
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000261] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000312] pid_max: default: 32768 minimum: 301
[    0.000580] Mount-cache hash table entries: 512
[    0.001454] CPU: Testing write buffer coherency: ok
[    0.001817] Setting up static identity map for 0x4050a550 - 0x4050a5a8
[    0.002867] devtmpfs: initialized
[    0.006541] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006911] pinctrl core: initialized pinctrl subsystem
[    0.007765] NET: Registered protocol family 16
[    0.008552] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.008645] script_sysfs_init success
[    0.008723] sunxi_dump_init success
[    0.010373] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.012126] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.013510] tsc2003 device registered
[    0.014090] [sunxi-module]: [sunxi-module.0] probe success
[    0.014173] script config pll_isp to 360 Mhz
[    0.014224] Not Found clk pll_video in script
[    0.014254] script config pll_ve to 360 Mhz
[    0.014293] Not Found clk pll_periph0 in script
[    0.014314] Not Found clk pll_de in script
[    0.014329] sunxi_default_clk_init
[    0.014346] try to set pll6ahb1 to 200000000
[    0.014368] Error not get clk pll6ahb1
[    0.014395] Error not get clk pll6ahb1try to set ahb1 to 200000000
[    0.014435] try to set apb1 to 100000000
[    0.015114] ===fe3o4==== sunxi_root_procfs_attach ret:0
[    0.029129] bio: create slab <bio-0> at 0
[    0.029578] pwm module init!
[    0.032643] ion_mem.size = 18874368
[    0.033681] SCSI subsystem initialized
[    0.034137] usbcore: registered new interface driver usbfs
[    0.034303] usbcore: registered new interface driver hub
[    0.034537] usbcore: registered new device driver usb
[    0.034791] twi_chan_cfg()341 - [twi0] has no twi_speed!
[    0.034817] twi_chan_cfg()352 - [twi0] has no twi_regulator.
[    0.034845] twi_chan_cfg()341 - [twi1] has no twi_speed!
[    0.034868] twi_chan_cfg()352 - [twi1] has no twi_regulator.
[    0.035825] Linux video capture interface: v2.00
[    0.036275] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.037894] cfg80211: Calling CRDA to update world regulatory domain
[    0.040109] Switching to clocksource arch_sys_counter
[    0.059397] NET: Registered protocol family 2
[    0.059896] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060856] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.060966] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.061033] TCP: Hash tables configured (established 2048 bind 2048)
[    0.061057] TCP: reno registered
[    0.061082] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.061129] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.061641] NET: Registered protocol family 1
[    0.062207] RPC: Registered named UNIX socket transport module.
[    0.062235] RPC: Registered udp transport module.
[    0.062254] RPC: Registered tcp transport module.
[    0.062273] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.062925] [pm]aw_pm_init!
[    0.062951] standby_mode = 1.
[    0.062969] wakeup src cnt is : 3.
[    0.063070] sunxi_reg_init enter
[    0.065670] VFS: Disk quotas dquot_6.5.2
[    0.065789] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.066575] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.067184] NTFS driver 2.1.30 [Flags: R/W].
[    0.067367] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.067809] msgmni has been set to 74
[    0.070372] io scheduler noop registered
[    0.070400] io scheduler deadline registered
[    0.070554] io scheduler cfq registered (default)
[    0.070733] [DISP]disp_module_init
[    0.071507] cmdline,disp=
[    0.071814] rotation_sw module is config as no used
[    0.071870] [DISP] disp_get_rotation_sw,line:78:disp 0 out of range? g_rot_sw=0
[    0.071902] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.072066] fb_para.width = 0,fb_para.height = 0,fb_para.buffer_num = 2
[    0.072095] [DISP] display_fb_request,line:1142:invalid paras xres(0), yres(0) bpp(32)
[    0.075929] [DISP] lcd_clk_config,line:888:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[    0.075975]      clk real:pll(168000000),clk(42000000),dclk(4200000) dsi_rate(0)
[    0.076273] Division by zero in kernel.
[    0.076290] Backtrace:
[    0.076356] [<c0013490>] (dump_backtrace+0x0/0x110) from [<c0503268>] (dump_stack+0x18/0x1c)
[    0.076388]  r6:c29a2178 r5:c29a2080 r4:00000000 r3:c0718480
[    0.076451] [<c0503250>] (dump_stack+0x0/0x1c) from [<c00135b8>] (__div0+0x18/0x20)
[    0.076502] [<c00135a0>] (__div0+0x0/0x20) from [<c01c7030>] (Ldiv0+0x8/0x10)
[    0.076557] [<c0209748>] (disp_al_lcd_cfg+0x0/0x148) from [<c01fb71c>] (disp_lcd_enable+0x188/0x2bc)
[    0.076586]  r7:00000000 r6:00001630 r5:c2996400 r4:c29a2000
[    0.076651] [<c01fb594>] (disp_lcd_enable+0x0/0x2bc) from [<c01f71fc>] (disp_device_attached_and_enable+0x120/0x20c)
[    0.076682]  r7:00000000 r6:00000000 r5:00000001 r4:c01fb594
[    0.076742] [<c01f70dc>] (disp_device_attached_and_enable+0x0/0x20c) from [<c01f73d8>] (bsp_disp_device_switch+0x28/0x70)
[    0.076798] [<c01f73b0>] (bsp_disp_device_switch+0x0/0x70) from [<c01eeeb4>] (start_work+0x16c/0x1f4)
[    0.076854] [<c01eed48>] (start_work+0x0/0x1f4) from [<c0042264>] (process_one_work+0x1e0/0x338)
[    0.076907] [<c0042084>] (process_one_work+0x0/0x338) from [<c0043044>] (worker_thread+0x1c0/0x2c8)
[    0.076958] [<c0042e84>] (worker_thread+0x0/0x2c8) from [<c00468f4>] (kthread+0x94/0xa0)
[    0.077005] [<c0046860>] (kthread+0x0/0xa0) from [<c0031bf8>] (do_exit+0x0/0x660)
[    0.077031]  r6:c0031bf8 r5:c0046860 r4:c2831ed8
[    0.077061] Division by zero in kernel.
[    0.077075] Backtrace:
[    0.077118] [<c0013490>] (dump_backtrace+0x0/0x110) from [<c0503268>] (dump_stack+0x18/0x1c)
[    0.077146]  r6:c29a2178 r5:c29a2080 r4:00000000 r3:c0718480
[    0.077207] [<c0503250>] (dump_stack+0x0/0x1c) from [<c00135b8>] (__div0+0x18/0x20)
[    0.077255] [<c00135a0>] (__div0+0x0/0x20) from [<c01c7030>] (Ldiv0+0x8/0x10)
[    0.077305] [<c0209748>] (disp_al_lcd_cfg+0x0/0x148) from [<c01fb71c>] (disp_lcd_enable+0x188/0x2bc)
[    0.077333]  r7:00000000 r6:00001630 r5:c2996400 r4:c29a2000
[    0.077396] [<c01fb594>] (disp_lcd_enable+0x0/0x2bc) from [<c01f71fc>] (disp_device_attached_and_enable+0x120/0x20c)
[    0.077427]  r7:00000000 r6:00000000 r5:00000001 r4:c01fb594
[    0.077487] [<c01f70dc>] (disp_device_attached_and_enable+0x0/0x20c) from [<c01f73d8>] (bsp_disp_device_switch+0x28/0x70)
[    0.077541] [<c01f73b0>] (bsp_disp_device_switch+0x0/0x70) from [<c01eeeb4>] (start_work+0x16c/0x1f4)
[    0.077593] [<c01eed48>] (start_work+0x0/0x1f4) from [<c0042264>] (process_one_work+0x1e0/0x338)
[    0.077645] [<c0042084>] (process_one_work+0x0/0x338) from [<c0043044>] (worker_thread+0x1c0/0x2c8)
[    0.077694] [<c0042e84>] (worker_thread+0x0/0x2c8) from [<c00468f4>] (kthread+0x94/0xa0)
[    0.077739] [<c0046860>] (kthread+0x0/0xa0) from [<c0031bf8>] (do_exit+0x0/0x660)
[    0.077765]  r6:c0031bf8 r5:c0046860 r4:c2831ed8
[    0.077829] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[    0.078100] [DISP]disp_module_init finish
[    0.078887] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.078931] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    0.079667] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.079700] sw_uart_pm()890 - uart0 clk is already enable
[    0.079739] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.176774] console [ttyS0] enabled
[    1.115256] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    1.124556] [NAND]nand init start, spinand_used_flag is 0
[    1.130726] spinand_cache_level err! 0spinand_capacity_level err! 0
[    1.137764] [NAND]spinand driver is disabled
[    1.143139] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    1.151337] spi spi0: master is unqueued, this is deprecated
[    1.159332] usbcore: registered new interface driver rtl8192cu
[    1.166122] usbcore: registered new interface driver rndis_wlan
[    1.172941] usbcore: registered new interface driver rt2500usb
[    1.179616] usbcore: registered new interface driver rt73usb
[    1.186152] usbcore: registered new interface driver rt2800usb
[    1.192857] usbcore: registered new interface driver asix
[    1.199055] usbcore: registered new interface driver qf9700
[    1.205422] usbcore: registered new interface driver cdc_ether
[    1.212062] [DISP] disp_lcd_pwm_enable,line:1023:pwm device hdl is NULL
[    1.219620] usbcore: registered new interface driver net1080
[    1.226131] usbcore: registered new interface driver rndis_host
[    1.232909] usbcore: registered new interface driver cdc_subset
[    1.239628] usbcore: registered new interface driver zaurus
[    1.246074] usbcore: registered new interface driver cdc_ncm
[    1.252482] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.279960] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.289000] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    1.297683] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    1.320070] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    1.328015] hub 1-0:1.0: USB hub found
[    1.332312] hub 1-0:1.0: 1 port detected
[    1.337539] sunxi-ehci sunxi-ehci.1: remove, state 1
[    1.343179] usb usb1: USB disconnect, device number 1
[    1.350495] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.366885] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.393966] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.402610] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.411183] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.475220] hub 1-0:1.0: USB hub found
[    1.479460] hub 1-0:1.0: 1 port detected
[    1.484644] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.490280] usb usb1: USB disconnect, device number 1
[    1.497040] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.513501] Initializing USB Mass Storage driver...
[    1.519131] usbcore: registered new interface driver usb-storage
[    1.525927] USB Mass Storage support registered.
[    1.531223] usbcore: registered new interface driver ums-cypress
[    1.538033] usbcore: registered new interface driver ums_eneub6250
[    1.545071] usbcore: registered new interface driver ums-freecom
[    1.551931] usbcore: registered new interface driver ums-isd200
[    1.558639] usbcore: registered new interface driver ums-jumpshot
[    1.565625] usbcore: registered new interface driver ums-realtek
[    1.572487] usbcore: registered new interface driver ums-sddr09
[    1.579230] usbcore: registered new interface driver ums-sddr55
[    1.585997] usbcore: registered new interface driver ums-usbat
[    1.593228] file system registered
[    1.600174] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.607899] android_usb gadget: Number of LUNs=1
[    1.613116]  lun0: LUN: removable file: (no medium)
[    1.619524] android_usb gadget: android_usb ready
[    1.625477] mousedev: PS/2 mouse device common for all mice
[    1.631972] sunxikbd_script_init: key para not found, used default para.
[    1.641391] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.649159] uvcvideo: Adding mapping Brightness to control 00000000-0000-0000-0000-000000000101/2.
[    1.659278] uvcvideo: Adding mapping Contrast to control 00000000-0000-0000-0000-000000000101/3.
[    1.669157] uvcvideo: Adding mapping Hue to control 00000000-0000-0000-0000-000000000101/6.
[    1.678545] uvcvideo: Adding mapping Saturation to control 00000000-0000-0000-0000-000000000101/7.
[    1.688615] uvcvideo: Adding mapping Sharpness to control 00000000-0000-0000-0000-000000000101/8.
[    1.698587] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[    1.708172] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[    1.719412] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[    1.728899] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[    1.739945] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[    1.750033] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[    1.760498] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[    1.771841] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[    1.782791] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[    1.795008] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[    1.806639] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[    1.818659] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[    1.830586] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[    1.842417] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[    1.853082] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[    1.863258] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[    1.873824] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[    1.884587] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[    1.894625] usbcore: registered new interface driver uvcvideo
[    1.901099] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[    1.907685] sunxi cedar version 0.1
[    1.911829] [cedar]: install start!!!
[    1.916356] [cedar]: install end!!!
[    1.920379] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.927717] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.939192] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.946755] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.953032] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.962502] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Mar 18 2020 at 19:15:10
[    1.973987] [mmc]: get mmc0's sdc_power failed
[    1.979011] [mmc]: get mmc1's sdc_power failed
[    1.984033] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[    1.992627] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.003790] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.014560] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.024490] [mmc]: sdc0 power_supply is null
[    2.033863] sunxi_leds_fetch_sysconfig_para leds is not used in config
[    2.041225] =========script_get_err============
[    2.046703] usbcore: registered new interface driver usbhid
[    2.053003] usbhid: USB HID core driver
[    2.057331] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.068241] usbcore: registered new interface driver snd-usb-audio
[    2.076954] [audiocodec] mic1_mic3_used type err!
[    2.082437] script_get_item return audio_pa_ctrl type err
[    2.090347] asoc: sndcodec <-> sunxi-codec mapping ok
[    2.097523] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    2.108555] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    2.118490] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.126741] [DAUDIO0] driver not init,just return.
[    2.132387] Netfilter messages via NETLINK v0.30.
[    2.137711] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52,  RTO !!
[    2.145996] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.156292] nfnl_acct: registering with nfnetlink.
[    2.161802] nf_conntrack version 0.5.0 (599 buckets, 2396 max)
[    2.169133] ctnetlink v0.93: registering with nfnetlink.
[    2.176544] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[    2.184431] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[    2.192018] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.202819] xt_time: kernel timezone is -0000
[    2.207729] ip_set: protocol 6
[    2.212164] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.218558] arp_tables: (C) 2002 David S. Miller
[    2.225230] TCP: cubic registered
[    2.229017] *******************Try sdio*******************
[    2.235550] NET: Registered protocol family 10
[    2.240588] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.249545] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.258576] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.267021] IPv6 over IPv4 tunneling driver
[    2.271765] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5,  RTO !!
[    2.279903] *******************Try sd *******************
[    2.287295] NET: Registered protocol family 17
[    2.293009] ThumbEE CPU extension supported.
[    2.297851] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.308156] Registering SWP/SWPB emulation handler
[    2.315777] =====ctp_fetch_sysconfig_para=====.
[    2.321053] ctp_fetch_sysconfig_para: ctp_unused.
[    2.326426] =========script_get_item_err============
[    2.332014] goodix_ts_init: ctp_fetch_sysconfig_para err.
[    2.338369] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.349931] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 01:39:43 UTC (5983)
[    2.359992] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.372879] [rf_pm]: Did not config module_power0 in sys_config
[    2.379539] [rf_pm]: Did not config module_power1 in sys_config
[    2.386254] [rf_pm]: Did not config module_power2 in sys_config
[    2.392915] [rf_pm]: Did not config module_power3 in sys_config
[    2.399553] [rf_pm]: mod has no chip_en gpio
[    2.404356] [rf_pm]: failed to fetch lpo_use_apclk
[    2.409726] [rf_pm]: regulator on.
[    2.413562] [wifi_pm]: no wifi used in configuration
[    2.419136]
[    2.419143] *****Mar 18 2020 19:15:26 EAGLE DRIVER VER:75be56bfbaf7*****
[    2.419158]
[    2.431543] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ctrl pin
[    2.437589] struct PIO_Struct size : 36[mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    2.471847] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.482430] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    2.493046] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    2.503608] mmc0: new high speed SDHC card at address 5048
[    2.510459] mmcblk0: mmc0:5048 SD32G 28.8 GiB
[    2.539984]  mmcblk0: p1 p2 p3 < p5 p6 p7 >
[    2.547403] mmcblk mmc0:5048: Card claimed for testing.
[    2.553347] mmc0:5048: SD32G 28.8 GiB
[    2.557639] *******************sd init ok*******************
[    3.960065] ########################################
[    3.965640] =======================================================
[    3.972687] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[    3.979713] =======================================================
[    3.986757] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[    3.997513] [wifi_pm]: set wl_reg_on 1 !
[    4.102020] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.113346] [mmc]: sdc1 power_supply is null
[    4.130068] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.162249] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.175145] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.187442] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    4.195582] *******************Try sdio*******************
[    4.202081] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.234827] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    4.248359] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    4.257728] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    4.264881] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.275286] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.285988] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    4.297652] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    4.303897] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    4.310130] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    4.316322] mmc1: new high speed SDIO card at address 0001
[    4.323122] esp_sdio_dummy_probe enter
[    4.327390] *******************sdio init ok*******************
[    4.530051] esp_sdio_init power up OK
[    4.967299] esp_host:75be56bfbaf7
[    4.967314] esp_target: 2cefb7b78636 77 18204
[    4.967326]
[    4.977774] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[    4.986670] first normal exit
[    4.990183] esp_sdio_remove enter
[    4.994073] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    5.002354] sif_disable_irq release irq failed
[    5.007638] mmc1: card 0001 removed
[    5.011736] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.021989] [mmc]: sdc1 power_supply is null
[    5.110216] ALSA device list:
[    5.113567]   #0: audiocodec
[    5.117096] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.128476] [mmc]: sdc1 power_supply is null
[    5.149849] EXT4-fs (mmcblk0p7): couldn't mount as ext3 due to feature incompatibilities
[    5.159046] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.191688] EXT4-fs (mmcblk0p7): couldn't mount as ext2 due to feature incompatibilities
[    5.201681] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    5.210741] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52,  RTO !!
[    5.218987] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.232214] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.244525] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8,  RTO !!
[    5.252954] *******************Try sdio*******************
[    5.259462] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    5.294883] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    5.308832] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    5.318232] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    5.325968] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    5.336434] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    5.347164] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    5.359857] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    5.366136] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    5.372374] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    5.378568] mmc1: new high speed SDIO card at address 0001
[    6.129239] EXT4-fs (mmcblk0p7): recovery complete
[    6.227959] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    6.239284] VFS: Mounted root (ext4 filesystem) on device 179:7.
[    6.269825] devtmpfs: mounted
[    6.273774] Freeing init memory: 176K
[    6.277959] Failed to execute /init.  Attempting defaults...
[    6.567738] Wifi Efuse Mac => ac:d0:74:04:19:9e
[    6.573026] esp_host:75be56bfbaf7
[    6.573038] esp_target: 2cefb7b78636 77 18204
[    6.573049]
[    6.588881] esp_sdio: initializing netlink
[    6.593743] *******************sdio init ok*******************
[    7.035113] EXT4-fs (mmcblk0p7): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting sshd: OK
[    8.250792] [VFE]cci probe start cci_sel = 0!
[    8.255751] [VFE]cci probe end cci_sel = 0!
[    8.281074] [VFE]cci_init end
[    8.484025] [VFE]Welcome to Video Front End driver
[    8.511486] [VFE]pdev->id = 0
[    8.514828] [VFE]dev->mipi_sel = 0
[    8.518640] [VFE]dev->vip_sel = 0
[    8.522434] [VFE]dev->isp_sel = 0
[    8.556364] [VFE_WARN]vfe vpu clock is null
[    8.570245] [ISP] isp platform_id = 6!
[    8.580397] [VFE]probe_work_handle start!
[    8.584920] [VFE]..........................vfe clk open!.......................
[    8.593929] [VFE]pdev->id = 1
[    8.597267] [VFE]dev->mipi_sel = 1
[    8.601151] [VFE]dev->vip_sel = 1
[    8.604866] [VFE]dev->isp_sel = 0
[    8.620167] [VFE]v4l2 subdev register input_num = 0
[    8.625655] [VFE]vfe sensor detect start! input_num = 0
[    8.631546] [VFE_WARN]NOT found this item:  ar0330_mipi, you can add this sensor in the sensor_list_t!
[    8.642006] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[    8.649628] [VFE]v4l2_device_register_subdev return 0
[    8.655307] [VFE]registered sensor subdev is OK!
[    8.660497] [VFE]Check sensor!
[    8.663920] [VFE]Sub device register "ar0330_mipi" is OK!
[    8.672318] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[    8.672346] Match isp cfg  start!
[    8.685175] [VFE]Match isp cfg ok
[    8.688922] [VFE_WARN]vfe vpu clock is null
[    8.695400] [VFE]V4L2 device registered as video0
[    8.710276] [VFE]..........................vfe clk close!.......................
[    8.718618] [VFE]probe_work_handle end!
[    8.730227] [ISP] isp platform_id = 6!
[    8.735494] [VFE]vfe_init end
[    8.741807] [VFE]probe_work_handle start!
[    8.746328] [VFE]..........................vfe clk open!.......................
[    8.784971] [VFE]v4l2 subdev register input_num = 0
[    8.790581] [VFE]vfe sensor detect start! input_num = 0
[    8.796453] [VFE]Find sensor name is "gc0308", i2c address is 42, type is "YUV" !
[    8.804873] [VFE]Sub device register "gc0308" i2c_addr = 0x42 start!
[    8.812024] [VFE]v4l2_device_register_subdev return 0
[    8.817688] [VFE]registered sensor subdev is OK!
[    8.822877] [VFE]Check sensor!
[    8.826300] [VFE]Sub device register "gc0308" is OK!
[    8.834358] [VFE]V4L2 device registered as video1
[    8.850681] fbtft_device:  SPI devices registered:
[    8.856083] fbtft_device:  'fb' Platform devices registered:
[    8.870243] [VFE]..........................vfe clk close!.......................
[    8.878584] [VFE]probe_work_handle end!
[    9.202070] graphics fb8: fb_ili9340 frame buffer, 240x320, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz
[    9.230105] fbtft_device:  GPIOS used by 'adafruit22a':
[    9.235985] fbtft_device:    'reset' = GPIO145
[    9.241002] fbtft_device:    'dc' = GPIO144
[    9.245691] fbtft_device:  SPI devices registered:
[    9.251090] fbtft_device:      fb_ili9340 spi0.0 32000kHz 8 bits mode=0x00
========= Run hwtest =========[    9.946166] [VFE]vfe_open

LCD : Yes
ACM : No
[    9.950974] [VFE]..........................vfe clk open!.......................



fb res 240x320 virtual 240x[    9.962230] [VFE]vfe_open ok
320, line_len 480, bpp 16
ptr =[    9.968449] [VFE_WARN]NOT found this item:  ar0330_mipi, you can add this sensor in the sensor_list_t!
b6b42000, bgptr = b6b1c008

P[    9.981279] [VFE_WARN]Not find this sensor info, Set vfe core clk = 500000000, after Set vfe core clk = 360000000
IXFMT = '422P', 'planar YUV 422'

PIXFMT = 'YU12', 'planar YUV 420'

PIXFMT = 'YV12', 'planar YVU 420'

[   10.007186] [ar0330_mipi Raw]CSI_SUBDEV_PWR_ON!


PIXFMT = 'NV12', 'planar YUV [   10.014702] [VFE_WARN]os_gpio_set_status, hdl is NULL
420 UV combined'

PIXFMT = 'N[   10.025128] [VFE]mclk on
V61', 'planar YUV 422 VU combined'

PIXFMT = 'NV21', 'planar YUV 420 VU combined'

PIXFMT = 'HM12', 'MB YUV420'

PIXFMT = 'YUYV', 'YUV422 YUYV'

PIXFMT = 'YVYU', 'YUV422 YVYU'

PIXFMT = 'UYVY', 'YUV422 UYVY'

PIXFMT = 'VYUY', 'YUV422 VYUY'

PIXFMT = 'BA81', 'RAW Bayer BGGR 8bit'

PIXFMT = 'GBRG', 'RAW Bayer GBRG 8bit'

PIXFMT = 'GRBG', 'RAW Bayer GRBG 8bit'

PIXFMT = 'GRBG', 'RAW Bayer RGGB 8bit'

PIXFMT = 'BG10', 'RAW Bayer BGGR 10bit'

PIXFMT = 'GB10', 'RAW Bayer GBRG 10bit'

PIXFMT = 'BA10', 'RAW Bayer GRBG 10bit'

PIXFMT = 'BA10', 'RAW Bayer RGGB 10bit'

PIXFMT = 'BG12', 'RAW Bayer BGGR 12bit'

PIXFMT = 'GB12', 'RAW Bayer GBRG 12bit'

PIXFMT[   10.086520] [ar0330_mipi Raw]CSI_SUBDEV_STBY_OFF!
= 'BA12', 'RAW Bayer GRBG 12bit[   10.094523] [ar0330_mipi Raw]sensor_init
'

PIXFMT = 'BA12', 'RAW Baye[   10.103137] [ar0330_mipi Raw]sensor read retry=3
r RGGB 12bit'

capabilities= [   10.109635] [ar0330_mipi Raw]error at sensor_detect
0x05000001
[   10.117908] [ar0330_mipi Raw]chip found is not an target chip.
[   10.125488] [VFE_ERR]sensor initial error when selecting target device!
v4l2_s_fmt : [   10.133907] [VFE]V4L2_MBUS_CSI2,2 lane,bus1 channel,rx 1 channel

[   10.155850] [ar0330_mipi Raw]sensor_s_fmt
[   10.161451] [ar0330_mipi Raw]sensor write retry=2
[   10.270832] [ar0330_mipi Raw]sensor write retry=2
[   10.276871] [ar0330_mipi Raw]sensor write retry=2
[   10.340853] [ar0330_mipi Raw]sensor write retry=2
[   10.346892] [ar0330_mipi Raw]sensor write retry=2
[   10.353325] [ar0330_mipi Raw]sensor write retry=2
[   10.359362] [ar0330_mipi Raw]sensor write retry=2
[   10.365799] [ar0330_mipi Raw]sensor write retry=2
[   10.372121] [ar0330_mipi Raw]sensor write retry=2
[   10.378166] [ar0330_mipi Raw]sensor write retry=2
[   10.384594] [ar0330_mipi Raw]sensor write retry=2
[   10.390902] [ar0330_mipi Raw]sensor write retry=2
[   10.396939] [ar0330_mipi Raw]sensor write retry=2
[   10.403364] [ar0330_mipi Raw]sensor write retry=2
[   10.409403] [ar0330_mipi Raw]sensor write retry=2
[   10.415831] [ar0330_mipi Raw]sensor write retry=2
[   10.422146] [ar0330_mipi Raw]sensor write retry=2
[   10.428181] [ar0330_mipi Raw]sensor write retry=2
[   10.434596] [ar0330_mipi Raw]sensor write retry=2
[   10.440943] [ar0330_mipi Raw]sensor write retry=2
[   10.446980] [ar0330_mipi Raw]sensor write retry=2
[   10.453433] [ar0330_mipi Raw]sensor write retry=2
[   10.459472] [ar0330_mipi Raw]sensor write retry=2
[   10.465904] [ar0330_mipi Raw]sensor write retry=2
[   10.472223] [ar0330_mipi Raw]sensor write retry=2
[   10.478261] [ar0330_mipi Raw]sensor write retry=2
[   10.484695] [ar0330_mipi Raw]sensor write retry=2
[   10.490992] [ar0330_mipi Raw]sensor write retry=2
[   10.497028] [ar0330_mipi Raw]sensor write retry=2
[   10.503449] [ar0330_mipi Raw]sensor write retry=2
[   10.509497] [ar0330_mipi Raw]sensor write retry=2
[   10.515931] [ar0330_mipi Raw]sensor write retry=2
[   10.522254] [ar0330_mipi Raw]sensor write retry=2
[   10.528290] [ar0330_mipi Raw]sensor write retry=2
[   10.534711] [ar0330_mipi Raw]sensor write retry=2
[   10.540991] [ar0330_mipi Raw]sensor write retry=2
[   10.547027] [ar0330_mipi Raw]sensor write retry=2
[   10.553449] [ar0330_mipi Raw]sensor write retry=2
[   10.559487] [ar0330_mipi Raw]sensor write retry=2
[   10.565912] [ar0330_mipi Raw]sensor write retry=2
[   10.572228] [ar0330_mipi Raw]sensor write retry=2
[   10.578266] [ar0330_mipi Raw]sensor write retry=2
[   10.584680] [ar0330_mipi Raw]sensor write retry=2
[   10.590978] [ar0330_mipi Raw]sensor write retry=2
[   10.597014] [ar0330_mipi Raw]sensor write retry=2
[   10.603435] [ar0330_mipi Raw]sensor write retry=2
[   10.609472] [ar0330_mipi Raw]sensor write retry=2
[   10.615894] [ar0330_mipi Raw]sensor write retry=2
[   10.622207] [ar0330_mipi Raw]sensor write retry=2
[   10.628244] [ar0330_mipi Raw]sensor write retry=2
[   10.634670] [ar0330_mipi Raw]sensor write retry=2
[   10.640982] [ar0330_mipi Raw]sensor write retry=2
[   10.647020] [ar0330_mipi Raw]sensor write retry=2
[   10.653445] [ar0330_mipi Raw]sensor write retry=2
[   10.659482] [ar0330_mipi Raw]sensor write retry=2
[   10.665901] [ar0330_mipi Raw]sensor write retry=2
[   10.672216] [ar0330_mipi Raw]sensor write retry=2
[   10.678252] [ar0330_mipi Raw]sensor write retry=2
[   10.684665] [ar0330_mipi Raw]sensor write retry=2
[   10.690968] [ar0330_mipi Raw]sensor write retry=2
[   10.697006] [ar0330_mipi Raw]sensor write retry=2
[   10.702319] [ar0330_mipi Raw]s_fmt set width = 1280, height = 720
[   10.709212] [VFE]width_input = 2304, height_input = 1296, width = 1280, height = 720
[   10.717922] [ISP] full_size width = 1280, height = 720, ob_valid = 2304, 1296
[   10.725954] [VFE]dev->buf_byte_size = 1384448, double_ch_flag = 0
[   10.732869] [ISP] ISP_FEATURES_DISC enable!
[   10.738909] [ISP] PREVIEW_MODE!
[   10.744141] [ar0330_mipi Raw]sensor write retry=2
[   10.751663] [ar0330_mipi Raw]sensor write retry=2
[   10.757708] [ar0330_mipi Raw]sensor write retry=2
        OK![   10.823337] [VFE]buffer_setup, buffer count=4, size=1384448


S_FMT : PIXFMT = 'NV12'
S_FMT : 1280 x 720

PIXFMT = '0'
v4l2_reqbufs
req.count = 4
        OK!
Buf[0] S:b69ca000, L:1384448, O:00000000
Buf[1] S:b6878000, L:1384448, O:00152000
Buf[2] S:b6726000, L:1384448, O:002a4000
Buf[3] S:b65d4000, L:1384448, O:003f6000
[   10.854498] [VFE]vfe_close
[   10.857557] [ar0330_mipi Raw]CSI_SUBDEV_PWR_OFF!
[   10.862809] [VFE]mclk off
[   10.942567] [VFE]..........................vfe clk close!.......................
[   10.951297] [VFE]vfe_close end
****************************************************
*                                                  *
*    www.csgsm.com  cstx.taobao.com     *
*                                                  *
****************************************************
udhcpc: started, v1.27.2

[   11.099257] gmac0: probed
[   11.103027] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
Support By cstx 2357481431@qq.com
V3S login: udhcpc: sending discover
PageSize:4096,PageMask:0xFFFFF000
addr_start:01C20000,addr_offset:0x00000800
gpio_map:B6F34000
PIO:0xB6F34800
udhcpc: sending discover
udhcpc: sending discover

Support By cstx 2357481431@qq.com
V3S login: [   21.610056] eth0: no IPv6 routers present
root
# ls
appstart.sh            sdcard                 usb-set-hostmode.sh
bin                    tmp-start.sh           wifi-sta-dhcp.sh
qt-env.sh              usb-set-devicemode.sh
# udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover


```

#65 Re: 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-06 21:36:37

这是上电信息:

U-Boot SPL 2017.01-rc2-00073-gdd6e874-dirty (Sep 01 2021 - 00:26:52)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Sep 01 2021 - 00:26:52 +0800) Allwinner Technology

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

Setting up a 240x240 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-gdd6e874-dirty (Sep 01 2021 - 00:26:52 +0800) Allwinner Technology

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

Setting up a 240x240 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
reading zImage
3817312 bytes read in 198 ms (18.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
9407 bytes read in 25 ms (367.2 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff4be ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero (liefyuan@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #11 SMP Sun Sep 5 19:43:53 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 14 pages/cpu @c3f63000 s24768 r8192 d24384 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    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] 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: 55144K/65536K available (6144K kernel code, 201K rwdata, 1400K rodata, 1024K init, 261K bss, 10392K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a327c0   ( 202 kB)
[    0.000000]        .bss : 0xc0a34000 - 0xc0a756dc   ( 262 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected 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.000140] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000353] Console: colour dummy device 80x30
[    0.000797] console [tty0] enabled
[    0.000840] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000879] pid_max: default: 32768 minimum: 301
[    0.001029] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001058] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001781] CPU: Testing write buffer coherency: ok
[    0.002216] /cpus/cpu@0 missing clock-frequency property
[    0.002260] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002643] Setting up static identity map for 0x40100000 - 0x40100058
[    0.003426] smp: Bringing up secondary CPUs ...
[    0.003464] smp: Brought up 1 node, 1 CPU
[    0.003484] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003503] CPU: All CPU(s) started in SVC mode.
[    0.004312] devtmpfs: initialized
[    0.007265] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007587] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007649] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007823] pinctrl core: initialized pinctrl subsystem
[    0.008863] NET: Registered protocol family 16
[    0.009370] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010767] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010819] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022634] SCSI subsystem initialized
[    0.022951] usbcore: registered new interface driver usbfs
[    0.023033] usbcore: registered new interface driver hub
[    0.023159] usbcore: registered new device driver usb
[    0.023395] pps_core: LinuxPPS API ver. 1 registered
[    0.023421] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023466] PTP clock support registered
[    0.023709] Advanced Linux Sound Architecture Driver Initialized.
[    0.025547] clocksource: Switched to clocksource arch_sys_counter
[    0.036329] NET: Registered protocol family 2
[    0.036980] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037034] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037070] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037173] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037235] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037483] NET: Registered protocol family 1
[    0.038120] RPC: Registered named UNIX socket transport module.
[    0.038163] RPC: Registered udp transport module.
[    0.038180] RPC: Registered tcp transport module.
[    0.038197] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040471] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049672] NFS: Registering the id_resolver key type
[    0.049749] Key type id_resolver registered
[    0.049769] Key type id_legacy registered
[    0.053907] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053965] io scheduler noop registered
[    0.053983] io scheduler deadline registered
[    0.054196] io scheduler cfq registered (default)
[    0.058597] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129062] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.132374] console [ttyS0] disabled
[    0.152687] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.711366] console [ttyS0] enabled
[    0.715684] [drm] Initialized
[    0.721700] libphy: Fixed MDIO Bus: probed
[    0.726211] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.732759] ehci-platform: EHCI generic platform driver
[    0.738150] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.744364] ohci-platform: OHCI generic platform driver
[    0.750127] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.759674] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.768703] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.775639] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.780197] i2c /dev entries driver
[    0.784520] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.845587] sunxi-mmc 1c0f000.mmc: base:0xc485f000 irq:23
[    0.893787] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.904997] mmc0: new high speed SDHC card at address aaaa
[    0.911049] sunxi-mmc 1c10000.mmc: base:0xc4863000 irq:24
[    0.917497] usbcore: registered new interface driver usbhid
[    0.923095] usbhid: USB HID core driver
[    0.927111] fbtft_of_value: width = 240
[    0.930962] fbtft_of_value: height = 320
[    0.934892] fbtft_of_value: buswidth = 8
[    0.938865] fbtft_of_value: debug = 0
[    0.942532] fbtft_of_value: rotate = 0
[    0.946308] fbtft_of_value: fps = 10
[    0.950490] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    0.959449]  mmcblk0: p1 p2
[    1.213483] random: fast init done
[    1.219905] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[    1.233542] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[    1.242850] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[    1.251909] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[    1.257737] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[    1.263378] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[    1.269118] mmc1: new high speed SDIO card at address 0001
[    1.330417] Console: switching to colour frame buffer device 30x40
[    1.337589] graphics fb0: fb_ili9341 frame buffer, 240x320, 150 KiB video memory, 16 KiB DMA buffer memory, fps=10, spi32766.0 at 18 MHz
[    1.351702] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.360404] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.369145] NET: Registered protocol family 17
[    1.374804] Key type dns_resolver registered
[    1.380413] Registering SWP/SWPB emulation handler
[    1.391367] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.401108] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.408652] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.419662] hub 1-0:1.0: USB hub found
[    1.424858] hub 1-0:1.0: 1 port detected
[    1.431064] using random self ethernet address
[    1.437010] using random host ethernet address
[    1.443961] usb0: HOST MAC fe:1d:5a:3c:58:0b
[    1.449938] usb0: MAC 6e:58:bb:ae:46:e6
[    1.455268] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.464892] g_cdc gadget: g_cdc ready
[    1.472667] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.483749] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:36 UTC (96)
[    1.494270] vcc5v0: disabling
[    1.498731] ALSA device list:
[    1.503042]   #0: V3s Audio Codec
[    1.513012] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.527937] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.577329] random: crng init done
[    1.589722] EXT4-fs (mmcblk0p2): recovery complete
[    1.598152] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.609485] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.621789] devtmpfs: mounted
[    1.626319] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.642595] Freeing unused kernel memory: 1024K
[    1.796322] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

这是屏幕的现况--上电以后就是白色的:
FluxBB bbcode 测试

这是屏幕插座的原理图--这里就没有把CS画出来:
FluxBB bbcode 测试

这是共用spi0的flash原理图目前没有使用但是这里是使用了CS引脚的:
FluxBB bbcode 测试


另外:

这是一个开发板,某宝上买的,它配套的Demo是支持这块屏幕的,但是这个开发板的技术支持说他没有使用过设备树,他用的是老版的Linux。
O1CN011H2UnF1dhKZmj7cU6_!!2997603767.jpg

#66 Re: 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-06 19:33:46

哇酷小二 说:

compBttble = "ilttek,1119341";


好像错了几个单词?

屏幕的手册有吗?

FluxBB bbcode 测试

FluxBB bbcode 测试

#67 Re: 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-06 18:52:31

哇酷小二 说:

compBttble = "ilttek,1119341";


好像错了几个单词?

屏幕的手册有吗?

抱歉,我是截图,但是我还不会上传图片,所以我是用OCR软件转的文字的,这里是没有拼写错误错误的,你放心,不然也不会显示fb0了

#68 Re: 全志 SOC » 5.2内核,启动SPI屏幕(ili9341)失败 » 2021-09-06 18:37:12

大佬们,某宝上买了一款ili9341的屏幕240x320没有CS引脚,shell里面可以显示fb0但是屏幕是一片白色的?测试也没有反应,上电也没有打印信息,该怎么办?

#69 Re: 全志 SOC » linux5.2内核,配置SPI屏幕(ili9341)步骤 » 2021-09-06 18:33:23

大佬,如果ili9341屏幕没有CS引脚该怎么办呢?

#70 全志 SOC » 在V3S上面使用ili9341没有CS引脚的spi 2.4寸屏 求助 » 2021-09-06 18:29:20

liefyuan
回复: 17

某宝上面购买的,引脚顺序为:GND VCC CLK MOSI RES DC BLK MISO,驱动为ili9341,该屏缺少CS引脚,我的目标是在全志的V3S上使用SPI0来驱动,之前类似的配置已经在ST7789v驱动的屏上面(带CS引脚)成功打印log和运行Qt例程(写这个的目的是为了证明其他的一些配置应该是正确的)。


某宝中景园屏幕: O1CN01yJkcLG1QLiyRYN0I6_!!3823701960.jpg 老版

能正常显示fb0,但是屏幕没有打印信息(uboot里面已经设置好屏幕打印log),屏幕一片空白


[ 1.268959]mmc1: new high speed SDIO card at address 0001
[ 1.330293]Console: switching to colour frame buffer device 30x40
[ 1.337462]graphics fb0: fb_ili9341 frame buffer, 240x320, 150 KiB video memory, 16 KiB DMA buffer memory, fps=10, spi32766 .0 at 18 MHz
[ 1.351570]sun4i-codec Ic22c00.codec: ASoC: /soc/codec-analog001c23O0O not registered 
[ 1.360271]sun4i-codec Ic22c00.codec: Failed to register our card

设备树

ili9341@0 {
    compatible = "ilitek,ili9341";
    reg = <0>;
    status = "okay";
    spi-max-frequency = <18000000>;
    spi-cpol;
    spi-cpha;
//  spi-cs-high;
//  spi-3wire;
    spi-no-cs;
    rotate = <0>;
    bgr;
    fps = <10>;
    buswidth = <8>;
    dc-gptos     =  <&pto  4  16  GPIO_ACTIVE_HIGH>;  //  PE16 
    reset-gpios  =  <&pio  5  17  GPIO_ACTIVE_LOW>;   //  PE17 
    width = <240>;
    height= <320>;
    debug =0;
}

页脚

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

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