您尚未登录。

#1 全志 SOC » 荔枝派zero input event事件读取 » 2020-04-02 00:02:56

carl
回复: 1

下载getevent
使用交叉编译器编译后,执行命令arm-linux-gcc xxx.c
./a.out /dev/input/event1
Usage: evtest /dev/input/eventX
Where X = input device number

#2 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2020-03-31 15:52:59

carl 说:

我换了2张卡都是不可以的。
主要问题就是出现在
1.删除所有的分区
2.烧uboot,sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.创建分区fat16,ext4之后,分别把zimage以及dtb文件拷贝,以及root.tar解压到第二个分区。
4.插入tf卡运行,此时log根本没有。怀疑是分区的时候将uboot弄没了,重新烧uboot到tf卡,此时发现TF卡已经无法挂载到ubuntu主机上。
5.怀疑是dd命令出错?还是TF卡的问题,我用的TF卡一个是16G(闪迪),一个是64G(三星)都是同样的问题,而且uboot会提示
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
是我哪里操作有误吗?

已经解决了,就是因为分区的原因,之前分区的时候将GPT 搞坏了,重新全部分区之后解决的(diskgenius重新格式化)

#3 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2020-03-31 12:10:06

ubuntu 说:

[    1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6



第二个分区有问题, 或者卡坏, 或者文件系统代码没有编译进来.

我换了2张卡都是不可以的。
主要问题就是出现在
1.删除所有的分区
2.烧uboot,sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.创建分区fat16,ext4之后,分别把zimage以及dtb文件拷贝,以及root.tar解压到第二个分区。
4.插入tf卡运行,此时log根本没有。怀疑是分区的时候将uboot弄没了,重新烧uboot到tf卡,此时发现TF卡已经无法挂载到ubuntu主机上。
5.怀疑是dd命令出错?还是TF卡的问题,我用的TF卡一个是16G(闪迪),一个是64G(三星)都是同样的问题,而且uboot会提示
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
是我哪里操作有误吗?

#4 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2020-03-31 00:43:21

按照晕哥的步骤做了,我的主机是Ubuntu16.04,用的是USB 的读卡器,TF卡是sandisk,16G
1.将TF卡分全部删除
2.sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
3.出现问题,GParted分区工具提示GPT 崩溃,继续流程
4.创建2个分区,一个32M,一个是剩下的全部,这个时候还是会提醒GPT崩溃,点击确定之后可以进行分区
5.将zimage和dtb文件拷贝到文件32M,另一个是将root.tar解压到15G的另一个分区。
以上步骤完成后,插入TF卡,没有任何的反应,怀疑是uboot没有烧进去。重复第2个步骤,然后出现找不到mmcblk2的log,VFS无法挂载
log如下:从下面的log看,

[    1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[    1.413788] Please append a correct "root=" boot option; here are the available partitions:
[    1.422164] b300        15159296 mmcblk0
这个分区是mmcblk0,而启动命令参数是root=/dev/mmcblk0p2,难道需要改启动参数。但是我使用的晕哥的这个固件(uboot,zimage,dtb,rootfs)

U-Boot 2017.01-rc2-00075-gec3f3ba-dirty (Dec 15 2017 - 14:00:51 +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 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
GUID Partition Table Entry Array CRC is wrong: 0x9e95e65e != 0xb897ee45
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
reading zImage
4016104 bytes read in 642 ms (6 MiB/s)
GUID Partition Table Entry Array CRC is wrong: 0x9e95e65e != 0xb897ee45
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
reading sun8i-v3s-licheepi-zero-dock.dtb
11803 bytes read in 28 ms (411.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe1a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (hexing@ubuntu) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #46 SMP Fri Dec 15 14:36:43 CST 2017
[    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 @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) 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: 53572K/64036K available (6144K kernel code, 222K rwdata, 1480K rodata, 1024K init, 266K bss, 10464K 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 - 0xc0a37b00   ( 223 kB)
[    0.000000]        .bss : 0xc0a3ebec - 0xc0a8153c   ( 267 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 (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.000194] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000430] Console: colour dummy device 80x30
[    0.000467] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000483] pid_max: default: 32768 minimum: 301
[    0.000611] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001227] CPU: Testing write buffer coherency: ok
[    0.001600] /cpus/cpu@0 missing clock-frequency property
[    0.001626] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002072] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002251] Hierarchical SRCU implementation.
[    0.002744] smp: Bringing up secondary CPUs ...
[    0.002760] smp: Brought up 1 node, 1 CPU
[    0.002769] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002776] CPU: All CPU(s) started in SVC mode.
[    0.003541] devtmpfs: initialized
[    0.006698] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007007] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007033] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007198] pinctrl core: initialized pinctrl subsystem
[    0.008076] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008221] NET: Registered protocol family 16
[    0.008710] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009845] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009864] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023323] SCSI subsystem initialized
[    0.023636] usbcore: registered new interface driver usbfs
[    0.023705] usbcore: registered new interface driver hub
[    0.023807] usbcore: registered new device driver usb
[    0.024055] pps_core: LinuxPPS API ver. 1 registered
[    0.024066] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024089] PTP clock support registered
[    0.024321] Advanced Linux Sound Architecture Driver Initialized.
[    0.026181] clocksource: Switched to clocksource arch_sys_counter
[    0.037007] NET: Registered protocol family 2
[    0.037605] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037640] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037664] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037789] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037840] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038059] NET: Registered protocol family 1
[    0.038654] RPC: Registered named UNIX socket transport module.
[    0.038678] RPC: Registered udp transport module.
[    0.038684] RPC: Registered tcp transport module.
[    0.038689] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040660] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049614] NFS: Registering the id_resolver key type
[    0.049672] Key type id_resolver registered
[    0.049679] Key type id_legacy registered
[    0.049728] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.051209] random: fast init done
[    0.054050] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054076] io scheduler noop registered
[    0.054084] io scheduler deadline registered
[    0.054340] io scheduler cfq registered (default)
[    0.054354] io scheduler mq-deadline registered
[    0.054361] io scheduler kyber registered
[    0.058679] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.127895] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.131119] console [ttyS0] disabled
[    0.151398] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.742095] console [ttyS0] enabled
[    0.750265] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[    0.756919] m25p80: probe of spi32766.0 failed with error -2
[    0.763129] libphy: Fixed MDIO Bus: probed
[    0.767891] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.773685] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.779473] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.785469] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.795050] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.800744] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.807973] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.813625] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.820849] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.825807] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.832777] libphy: stmmac: probed
[    0.838129] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.844666] ehci-platform: EHCI generic platform driver
[    0.850307] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.855929] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.863906] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.896201] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.903457] hub 1-0:1.0: USB hub found
[    0.907404] hub 1-0:1.0: 1 port detected
[    0.911895] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.918195] ohci-platform: OHCI generic platform driver
[    0.923767] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.930496] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.938458] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.011318] hub 2-0:1.0: USB hub found
[    1.015158] hub 2-0:1.0: 1 port detected
[    1.022800] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.032406] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.041447] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.048356] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.052904] i2c /dev entries driver
[    1.057933] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.067453] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.136231] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.183269] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.193289] mmc0: new high speed SDHC card at address 0007
[    1.199310] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.205679] usbcore: registered new interface driver usbhid
[    1.211346] usbhid: USB HID core driver
[    1.216082] mmcblk0: mmc0:0007 SL16G 14.5 GiB
[    1.222782] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.230838] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.238750] NET: Registered protocol family 17
[    1.243320] Key type dns_resolver registered
[    1.247864] Registering SWP/SWPB emulation handler
[    1.261903] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.272623] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.288900] Console: switching to colour frame buffer device 100x30
[    1.301305] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.309914] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.321320] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.327158] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.336384] hub 3-0:1.0: USB hub found
[    1.340276] hub 3-0:1.0: 1 port detected
[    1.345313] using random self ethernet address
[    1.349872] using random host ethernet address
[    1.355458] usb0: HOST MAC aa:79:94:aa:a8:cf
[    1.359890] usb0: MAC 9a:8b:a7:5b:c9:82
[    1.363775] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.371290] g_cdc gadget: g_cdc ready
[    1.377744] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.387235] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:57 UTC (57)
[    1.395493] vcc5v0: disabling
[    1.398554] ALSA device list:
[    1.401524]   #0: V3s Audio Codec
[    1.405767] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[    1.413788] Please append a correct "root=" boot option; here are the available partitions:
[    1.422164] b300        15159296 mmcblk0
[    1.422170]  driver: mmcblk
[    1.428971] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    1.437402] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.0-licheepi-zero+ #46
[    1.444698] Hardware name: Allwinner sun8i Family
[    1.449434] [<c010e22c>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[    1.457180] [<c010af9c>] (show_stack) from [<c0674fd0>] (dump_stack+0x90/0xa4)
[    1.464404] [<c0674fd0>] (dump_stack) from [<c011b05c>] (panic+0xf0/0x268)
[    1.471281] [<c011b05c>] (panic) from [<c090110c>] (mount_block_root+0x19c/0x26c)
[    1.478759] [<c090110c>] (mount_block_root) from [<c09012f8>] (mount_root+0x11c/0x124)
[    1.486669] [<c09012f8>] (mount_root) from [<c090144c>] (prepare_namespace+0x14c/0x194)
[    1.494667] [<c090144c>] (prepare_namespace) from [<c0900dcc>] (kernel_init_freeable+0x1d0/0x1e0)
[    1.503529] [<c0900dcc>] (kernel_init_freeable) from [<c0686fdc>] (kernel_init+0x8/0x110)
[    1.511700] [<c0686fdc>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[    1.519273] Rebooting in 5 seconds..

#5 Re: 全志 SOC » 荔枝派zero TFT屏uboot阶段显示异常,没有启动logo » 2020-03-29 15:58:42

已经好了,屏幕分辨率不对称导致的,5吋的屏是800*480的,4.3吋的是480*272

#6 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2020-03-29 15:51:01

关于分区建立的问题,为什么要创建2个分区,一个是放linux img + dtb,一个是放文件系统。难道是代码中分别找2个分区。

#7 全志 SOC » 荔枝派zero TFT屏uboot阶段显示异常,没有启动logo » 2020-03-29 11:06:56

carl
回复: 2

只有u-boot烧写到TF卡上,uboot启动也是正常的,但是屏幕没有显示出logo,而是花屏,难道是屏坏了,还是uboot有问题,uboot使用的是github上下载来的,也配置了480*272_defconfig.
这个是启动log,能否提供一个uboot,能点亮屏幕的。
U-Boot 2017.01-rc2-00057-g32ab1804cd (Mar 28 2020 - 22:15:25 +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 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 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...
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.

页脚

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

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