页次: 1
U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL
U-Boot 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot: 0
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 9755733 Bytes = 9.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Ramdisk to 424b2000, end 42dffc55 ... OK
Loading Device Tree to 424ac000, end 424b1e4f ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.13.16-licheepi-zero+ (root@test4) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #19 SMP Fri Apr 26 04:06:18 EDT 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] 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 @c3fdf000 s33868 r8192 d23476 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc earlyprintk rw
[ 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: 45544K/65536K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 261K bss, 19992K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff800000 ( 944 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a366c0 ( 218 kB)
[ 0.000000] .bss : 0xc0a3d7f0 - 0xc0a7efec ( 262 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 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.000018] Switching to timer-based delay loop, resolution 41ns
[ 0.000197] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000412] Console: colour dummy device 80x30
[ 0.000446] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000461] pid_max: default: 32768 minimum: 301
[ 0.000588] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000602] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001193] CPU: Testing write buffer coherency: ok
[ 0.001571] /cpus/cpu@0 missing clock-frequency property
[ 0.001593] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002028] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002201] Hierarchical SRCU implementation.
[ 0.002708] smp: Bringing up secondary CPUs ...
[ 0.002721] smp: Brought up 1 node, 1 CPU
[ 0.002730] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002737] CPU: All CPU(s) started in HYP mode.
[ 0.002742] CPU: Virtualization extensions available.
[ 0.003510] devtmpfs: initialized
[ 0.006619] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.006903] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006930] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007091] pinctrl core: initialized pinctrl subsystem
[ 0.007949] random: get_random_u32 called from bucket_table_alloc+0xfc/0x224 with crng_init=0
[ 0.008084] NET: Registered protocol family 16
[ 0.008511] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009609] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.009627] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.022776] SCSI subsystem initialized
[ 0.023072] usbcore: registered new interface driver usbfs
[ 0.023142] usbcore: registered new interface driver hub
[ 0.023233] usbcore: registered new device driver usb
[ 0.023485] pps_core: LinuxPPS API ver. 1 registered
[ 0.023492] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.023513] PTP clock support registered
[ 0.023735] Advanced Linux Sound Architecture Driver Initialized.
[ 0.025540] clocksource: Switched to clocksource arch_sys_counter
[ 0.035810] NET: Registered protocol family 2
[ 0.036388] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.036422] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.036444] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.036570] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.036615] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.036825] NET: Registered protocol family 1
[ 0.037395] RPC: Registered named UNIX socket transport module.
[ 0.037414] RPC: Registered udp transport module.
[ 0.037419] RPC: Registered tcp transport module.
[ 0.037425] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.037684] Unpacking initramfs...
[ 0.708391] Freeing initrd memory: 9528K
[ 0.710240] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.719227] NFS: Registering the id_resolver key type
[ 0.719275] Key type id_resolver registered
[ 0.719281] Key type id_legacy registered
[ 0.720262] random: fast init done
[ 0.723058] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.723079] io scheduler noop registered
[ 0.723086] io scheduler deadline registered
[ 0.723322] io scheduler cfq registered (default)
[ 0.723332] io scheduler mq-deadline registered
[ 0.723339] io scheduler kyber registered
[ 0.727711] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.795842] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.799073] console [ttyS0] disabled
[ 0.819340] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 1.425386] console [ttyS0] enabled
[ 1.432222] libphy: Fixed MDIO Bus: probed
[ 1.436875] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.442673] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.448442] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 1.454590] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.460289] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.467519] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.473171] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.480395] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.485352] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.492318] libphy: stmmac: probed
[ 1.501878] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.508547] ehci-platform: EHCI generic platform driver
[ 1.514056] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.519741] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.527707] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 1.555564] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.562748] hub 1-0:1.0: USB hub found
[ 1.566714] hub 1-0:1.0: 1 port detected
[ 1.571180] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.577473] ohci-platform: OHCI generic platform driver
[ 1.583013] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.589735] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.597676] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.670636] hub 2-0:1.0: USB hub found
[ 1.674449] hub 2-0:1.0: 1 port detected
[ 1.679777] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[ 1.689341] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.698277] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.705071] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.709702] i2c /dev entries driver
[ 1.714621] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.724136] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.785779] sunxi-mmc 1c0f000.mmc: base:0xc4981000 irq:23
[ 1.845570] sunxi-mmc 1c10000.mmc: base:0xc4985000 irq:24
[ 1.852022] usbcore: registered new interface driver usbhid
[ 1.857669] usbhid: USB HID core driver
[ 1.863101] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.871140] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.878621] NET: Registered protocol family 17
[ 1.883180] Key type dns_resolver registered
[ 1.887695] Registering SWP/SWPB emulation handler
[ 1.901224] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.912654] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.918502] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.927566] hub 3-0:1.0: USB hub found
[ 1.931423] hub 3-0:1.0: 1 port detected
[ 1.936609] using random self ethernet address
[ 1.941093] using random host ethernet address
[ 1.946679] usb0: HOST MAC de:52:42:39:89:6b
[ 1.950996] usb0: MAC e6:84:d6:a8:9a:fe
[ 1.954886] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 1.962462] g_cdc gadget: g_cdc ready
[ 1.968623] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.977260] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:36 UTC (36)
[ 1.985605] vcc5v0: disabling
[ 1.988579] ALSA device list:
[ 1.991542] #0: V3s Audio Codec
[ 1.997723] Freeing unused kernel memory: 1024K
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '/lib/modules': No such file or directory
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
buildroot login: root
# whycan.cn
-sh: whycan.cn: not found
#
#
#
#
#
# [ 229.346370] random: crng init done
[ 278.573094] mmc0: host does not support reading read-only switch, assuming write-enable
[ 278.583094] mmc0: Problem switching card into high-speed mode!
[ 278.589667] mmc0: new SDHC card at address 0001
[ 278.596220] mmcblk0: mmc0:0001 SD16G 14.5 GiB
[ 278.618229] mmcblk0: p1 p2
我这边启动了,然后插入tf卡,好像也是识别到了,但是电脑这边没有识别出u盘。是什么问题?
现在想通过usb连接pc,将tf卡识别为u盘,然后通过win32disk……烧入。
看了晕哥的帖子 https://whycan.cn/t_2449.html 帖子中的
本站下载:v3s_s3_fel_autorun_linux_uart0_pb8_pb9_20190501.7z 资源下不了,没有速度。有大神有别的链接 不?
还有一个问题,我看了 http://nano.lichee.pro/build_sys/onekey.html中
--------------------------------------------------------------------------------------------------------------
一键烧录镜像(Linux环境—16M spi-flash 启动)
在flash内容为空的情况下(fel模式下的一种情况)进行烧录时,通过micro-usb数据线将Nano与电脑连接,执行
sudo sunxi-fel -p spiflash-write 0 Your-Flash-BIN
若flash中已有系统,可通过:
短接flash的 1、4 两脚,重新上电,上电后松开短接,即可重新进入fel模式,进行再次下载
在启动到内核前,回车进入uboot,执行 sf probe 0;sf erase 0 0x100000;reset即可重新进入fel模式
一键烧录镜像(win环境—TF卡启动)
使用软件 win32disk 进行一键烧录
---------------------------------------------------------------------------------------------------------------
我看了下原理图flash的1和4脚是荔枝派zero 的spi cs 和GND。短接后通过usb链接电脑,好像进不去fel模式........
插入U盘。打印出[ 1868.944842] usb 1-1: new high-speed USB device number 3 using ehci-platform
拔出U盘。打印出# [ 1866.554315] usb 1-1: USB disconnect, device number 2
敲命令fdisk -l 插不插U盘都一样。没有出现设备sd*
# fdisk -l
Disk /dev/mmcblk0: 7600 MB, 7969177600 bytes, 15564800 sectors
243200 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 0,32,33 4,52,48 2048 67583 65536 32.0M 6 FAT16
/dev/mmcblk0p2 4,52,49 968,220,20 67584 15564799 15497216 7567M 83 Linux
请问下有大神知道是什么问题吗?会不会是linux内核配置哪里不对?内核配置用的荔枝派的默认配置(>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- licheepi_zero_defconfig)。
只另外配置了General setup ---> System V IPC。
不需要改写什么函数
除非你想对鼠标或者触摸事件做你自己的业务逻辑处理export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_CONFFILE=/opt/tslib/etc/ts.conf export TSLIB_PLUGINDIR=/opt/tslib/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export LD_LIBRARY_PATH=/lib:/usr/lib:/opt/tslib/lib:/opt/qt-4.8/lib export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/opt/tslib/bin export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt-4.8/plugins export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0 export QT_QPA_FONTDIR=/opt/qt-4.8/lib/fonts export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE export QWS_MOUSE_PROTO=Tslib:/dev/input/event1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/tslib/lib:/opt/qt-4.8/lib:/usr/lib/arm-linux-gnueabihf/lib
以上是我的配置
你看一下区别或者直接拷贝我的,然后把我的和你不一样目录的部分,修改成你的
还有一点很重要,我看你这个可能是在脚本里面做的?还是自启动文件?
有可能是添加的环境变量和你的qt程序是分开的,
比如你的环境变量是脚本添加的的,qt程序是手动执行了的,那么环境变量就没有生效
你可以先手动添加环境变量和执行qt程序试试
我是直接加在/etc/profile文件内的。
tslib测试程序运行正常,也已经校准过了,能输出坐标点。qt程序点击触摸无反应。环境变量是这样设置的。
#tslibPath
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/tslib/bin
#qtPath
#export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
export QTDIR=/usr/local/Qt-Embedded-4.8.6
export QT_PLUGIN_PATH=$QTDIR/plugins
export QT_QWS_FONTDIR=$QTDIR/lib/fonts
#export QWS_DISPLAY=LinuxFb:mmWidth220:mmHeight165:1
export QWS_SIZE=800x600
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/optslib/lib:/usr/local/Qt-Embedded-4.8.6/lib:/usr/lib/arm-linux-gnueabi/
if [! -e /etc/pointercal ]; then
/usr/local/tslib/bin/ts_calibrate
sync
fi
页次: 1