您尚未登录。

#1 全志 SOC » 新手报道,请问荔枝派如何使用定时器和GPIO呢? » 2019-05-14 14:21:13

jackghl
回复: 1

Linux新手,按照教程荔枝派是跑起来了,但不会其他的控制;
只会单片机,Linux控制GPIO 无从下手;
请问有没有,GPIO方波的例子。

#2 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-05-07 17:06:35

原来是步骤错了,先分区,再运行dd。
后面重新再做一次,先dd 再分区,可以启动。

#3 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-05-07 14:43:34

各位达人,我Linux新手,下载了V3s_TFCard,按照步骤写好TF卡,但好像启动不了。

提示信息如下:

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.000007] 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.000431] Console: colour dummy device 80x30
[    0.000468] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000485] pid_max: default: 32768 minimum: 301
[    0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000625] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001233] CPU: Testing write buffer coherency: ok
[    0.001608] /cpus/cpu@0 missing clock-frequency property
[    0.001633] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002074] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002255] Hierarchical SRCU implementation.
[    0.002749] smp: Bringing up secondary CPUs ...
[    0.002764] smp: Brought up 1 node, 1 CPU
[    0.002774] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002781] CPU: All CPU(s) started in SVC mode.
[    0.003551] devtmpfs: initialized
[    0.006692] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006994] clocksource: jiffies: mask: 0xffffffff max_cyc[    0.896270] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.0[    1.011370] hub 2-0:1.0: USB hub found
[    1.015211] hub 2-0:1.0: 1 port detected
[    1.022872] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.032488] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.041516] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.048423] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.052977] i2c /dev entries driver
[    1.058015] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.067528] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.136300] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:23
[    1.184441] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.194788] mmc0: new high speed SD card at address b368
[    1.200626] sunxi-mmc 1c10000.mmc: base:0xc423b000 irq:24
[    1.207096] usbcore: registered new interface driver usbhid
[    1.212673] usbhid: USB HID core driver
[    1.217474] mmcblk0: mmc0:b368 NCard 948 MiB 
[    1.223956] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.232014] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.238509]  mmcblk0: p1 p2
[    1.246742] NET: Registered protocol family 17
[    1.251321] Key type dns_resolver registered
[    1.255737] Registering SWP/SWPB emulation handler
[    1.265108] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.275821] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.292132] Console: switching to colour frame buffer device 100x30
[    1.304579] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.313166] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.324610] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.330462] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.339570] hub 3-0:1.0: USB hub found
[    1.343436] hub 3-0:1.0: 1 port detected
[    1.348767] using random self ethernet address
[    1.353260] using random host ethernet address
[    1.359873] usb0: HOST MAC 16:b7:19:bf:dd:37
[    1.364189] usb0: MAC be:20:76:d4:fc:ad
[    1.368196] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.375673] g_cdc gadget: g_cdc ready
[    1.382070] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.390587] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:10 UTC (10)
[    1.398919] vcc5v0: disabling
[    1.401897] ALSA device list:
[    1.404860]   #0: V3s Audio Codec
[    1.410433] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.419934] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.751275] random: crng init done
[    2.069362] EXT4-fs (mmcblk0p2): recovery complete
[    2.077323] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.085489] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.092928] devtmpfs: mounted
[    2.097258] Freeing unused kernel memory: 1024K
mount: you must be root
mount: you must be root
mkdir: can't create directory '/dev/pts': Permission denied
mkdir: can't create directory '/dev/shm': Permission denied
mount: you must be root
hostname: sethostname: Operation not permitted
Starting logging: OK
Initializing random number generator... done.
Starting network: ip: RTNETLINK answers: Operation not permitted
ip: SIOCSIFFLAGS: Operation not permitted
FAIL

can't open /dev/console: Permission denied

can't open /dev/console: Permission denied

页脚

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

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