您尚未登录。

楼主 #1 2020-05-15 14:47:20

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

# Dÿ@ÿ`ÿ@ÿ@ÿFÿ`ÿ@ÿ@ÿ`ÿ@ÿ@ÿ`ÿ`ÿbÿ
类似这样的


U-Boot SPL 2017.01-rc2 (May 15 2020 - 14:15:23)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +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@01c28800
Out:   serial@01c28800
Err:   serial@01c28800


U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +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@01c28800
Out:   serial@01c28800
Err:   serial@01c28800
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3952184 bytes read in 399 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 27 ms (438.5 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #13 SMP Thu May 14 19:18:14 CST 2020
[    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=ttyS2,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: 53576K/64036K available (6144K kernel code, 220K rwdata, 1444K rodata, 1024K init, 262K bss, 10460K 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 - 0xc0a370c0   ( 221 kB)
[    0.000000]        .bss : 0xc0a3e8bc - 0xc0a8023c   ( 263 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.000188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000427] Console: colour dummy device 80x30
[    0.000467] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000484] pid_max: default: 32768 minimum: 301
[    0.000611] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000626] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001237] CPU: Testing write buffer coherency: ok
[    0.001618] /cpus/cpu@0 missing clock-frequency property
[    0.001638] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002073] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002249] Hierarchical SRCU implementation.
[    0.002735] smp: Bringing up secondary CPUs ...
[    0.002750] smp: Brought up 1 node, 1 CPU
[    0.002759] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002766] CPU: All CPU(s) started in SVC mode.
[    0.003530] devtmpfs: initialized
[    0.006754] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007035] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007064] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007233] pinctrl core: initialized pinctrl subsystem
[    0.008100] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008241] NET: Registered protocol family 16
[    0.008705] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009824] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009842] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023286] SCSI subsystem initialized
[    0.023596] usbcore: registered new interface driver usbfs
[    0.023666] usbcore: registered new interface driver hub
[    0.023769] usbcore: registered new device driver usb
[    0.024036] pps_core: LinuxPPS API ver. 1 registered
[    0.024045] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024068] PTP clock support registered
[    0.024288] Advanced Linux Sound Architecture Driver Initialized.
[    0.026139] clocksource: Switched to clocksource arch_sys_counter
[    0.037206] NET: Registered protocol family 2
[    0.037797] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037830] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037853] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037987] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038035] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038252] NET: Registered protocol family 1
[    0.038852] RPC: Registered named UNIX socket transport module.
[    0.038874] RPC: Registered udp transport module.
[    0.038880] RPC: Registered tcp transport module.
[    0.038886] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040952] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050054] NFS: Registering the id_resolver key type
[    0.050110] Key type id_resolver registered
[    0.050118] Key type id_legacy registered
[    0.051088] random: fast init done
[    0.053847] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053867] io scheduler noop registered
[    0.053875] io scheduler deadline registered
[    0.054111] io scheduler cfq registered (default)
[    0.054122] io scheduler mq-deadline registered
[    0.054128] io scheduler kyber registered
[    0.058593] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129914] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.153517] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.175159] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.196871] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.791914] console [ttyS2] enabled
[    0.799065] libphy: Fixed MDIO Bus: probed
[    0.803623] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.809519] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.815228] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.821421] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.827116] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.834332] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.840002] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.847228] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.852188] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.859154] libphy: stmmac: probed
[    0.864405] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.871065] ehci-platform: EHCI generic platform driver
[    0.876643] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.882262] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.890236] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.926158] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.933387] hub 1-0:1.0: USB hub found
[    0.937344] hub 1-0:1.0: 1 port detected
[    0.941836] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.948139] ohci-platform: OHCI generic platform driver
[    0.953683] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.960410] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.968381] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.041284] hub 2-0:1.0: USB hub found
[    1.045110] hub 2-0:1.0: 1 port detected
[    1.053487] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.062557] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.069467] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.074026] i2c /dev entries driver
[    1.079053] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.088585] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.156362] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.213735] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.221842] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.228360] usbcore: registered new interface driver usbhid
[    1.233937] usbhid: USB HID core driver
[    1.238581] mmc0: new high speed SD card at address b368
[    1.244558] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.251119] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.259161] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.265630]  mmcblk0: p1 p2
[    1.271712] NET: Registered protocol family 17
[    1.276427] Key type dns_resolver registered
[    1.280826] Registering SWP/SWPB emulation handler
[    1.292128] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.302837] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.319124] Console: switching to colour frame buffer device 100x30
[    1.331521] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.340100] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.351499] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.357342] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.366542] hub 3-0:1.0: USB hub found
[    1.370421] hub 3-0:1.0: 1 port detected
[    1.378092] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.387840] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.396017] vcc5v0: disabling
[    1.399073] ALSA device list:
[    1.402043]   #0: V3s Audio Codec
[    1.407418] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.416500] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.778316] EXT4-fs (mmcblk0p2): recovery complete
[    1.785737] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.793969] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.801165] devtmpfs: mounted
[    1.805375] Freeing unused kernel memory: 1024K
[    2.018532] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK
Initializing postgresql data base...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... FATAL:  could not create shared memory segment: Function not implemented
DETAIL:  Failed system call was shmget(key=1, size=40, 03600).
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK
[    5.306893] g_serial gadget: Gadget Serial v2.4
[    5.311440] g_serial gadget: g_serial ready
# HÄÿHÿ[  183.906970] random: crng init done
Fÿ@ÿ@ÿ@ÿ`ÿ@ÿ@ÿ`ÿ@ÿFÿ@ÿDÿFÿÿ
U-Boot SPL 2017.01-rc2 (May 15 2020 - 14:15:23)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +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@01c28800
Out:   serial@01c28800
Err:   serial@01c28800


U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +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@01c28800
Out:   serial@01c28800
Err:   serial@01c28800
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3952184 bytes read in 399 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 26 ms (455.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #13 SMP Thu May 14 19:18:14 CST 2020
[    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=ttyS2,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: 53576K/64036K available (6144K kernel code, 220K rwdata, 1444K rodata, 1024K init, 262K bss, 10460K 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 - 0xc0a370c0   ( 221 kB)
[    0.000000]        .bss : 0xc0a3e8bc - 0xc0a8023c   ( 263 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.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000419] Console: colour dummy device 80x30
[    0.000458] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000473] pid_max: default: 32768 minimum: 301
[    0.000591] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000607] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001213] CPU: Testing write buffer coherency: ok
[    0.001597] /cpus/cpu@0 missing clock-frequency property
[    0.001619] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002058] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002227] Hierarchical SRCU implementation.
[    0.002727] smp: Bringing up secondary CPUs ...
[    0.002741] smp: Brought up 1 node, 1 CPU
[    0.002751] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002758] CPU: All CPU(s) started in SVC mode.
[    0.003534] devtmpfs: initialized
[    0.006748] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007032] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007062] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007229] pinctrl core: initialized pinctrl subsystem
[    0.008077] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008215] NET: Registered protocol family 16
[    0.008674] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009794] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009810] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023223] SCSI subsystem initialized
[    0.023525] usbcore: registered new interface driver usbfs
[    0.023593] usbcore: registered new interface driver hub
[    0.023697] usbcore: registered new device driver usb
[    0.023967] pps_core: LinuxPPS API ver. 1 registered
[    0.023976] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023997] PTP clock support registered
[    0.024213] Advanced Linux Sound Architecture Driver Initialized.
[    0.026048] clocksource: Switched to clocksource arch_sys_counter
[    0.037121] NET: Registered protocol family 2
[    0.037717] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037751] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037775] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037907] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037955] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038170] NET: Registered protocol family 1
[    0.038780] RPC: Registered named UNIX socket transport module.
[    0.038800] RPC: Registered udp transport module.
[    0.038807] RPC: Registered tcp transport module.
[    0.038812] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040893] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049999] NFS: Registering the id_resolver key type
[    0.050051] Key type id_resolver registered
[    0.050060] Key type id_legacy registered
[    0.051051] random: fast init done
[    0.053814] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053833] io scheduler noop registered
[    0.053840] io scheduler deadline registered
[    0.054074] io scheduler cfq registered (default)
[    0.054085] io scheduler mq-deadline registered
[    0.054092] io scheduler kyber registered
[    0.058551] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129607] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.153191] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.174830] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.196520] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.791541] console [ttyS2] enabled
[    0.798708] libphy: Fixed MDIO Bus: probed
[    0.803257] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.809153] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.814860] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.821047] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.826744] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.833960] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.839628] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.846856] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.851816] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.858783] libphy: stmmac: probed
[    0.864029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.870692] ehci-platform: EHCI generic platform driver
[    0.876287] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.881908] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.889883] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.916069] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.923287] hub 1-0:1.0: USB hub found
[    0.927245] hub 1-0:1.0: 1 port detected
[    0.931745] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.938048] ohci-platform: OHCI generic platform driver
[    0.943598] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.950322] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.958294] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.031190] hub 2-0:1.0: USB hub found
[    1.035013] hub 2-0:1.0: 1 port detected
[    1.043410] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.052453] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.059353] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.063908] i2c /dev entries driver
[    1.068933] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.078473] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.146262] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.203638] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.211740] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.218252] usbcore: registered new interface driver usbhid
[    1.223826] usbhid: USB HID core driver
[    1.228464] mmc0: new high speed SD card at address b368
[    1.234439] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.240996] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.249046] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.255520]  mmcblk0: p1 p2
[    1.261559] NET: Registered protocol family 17
[    1.266264] Key type dns_resolver registered
[    1.270661] Registering SWP/SWPB emulation handler
[    1.281973] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.292682] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.308981] Console: switching to colour frame buffer device 100x30
[    1.321384] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.329978] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.341366] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.347206] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.356431] hub 3-0:1.0: USB hub found
[    1.360302] hub 3-0:1.0: 1 port detected
[    1.368098] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.377830] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.386007] vcc5v0: disabling
[    1.389054] ALSA device list:
[    1.392019]   #0: V3s Audio Codec
[    1.397427] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.406511] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.542687] EXT4-fs (mmcblk0p2): recovery complete
[    2.550198] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.558437] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.565619] devtmpfs: mounted
[    2.569952] Freeing unused kernel memory: 1024K
[    2.768971] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK
Initializing postgresql data base...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... FATAL:  could not create shared memory segment: Function not implemented
DETAIL:  Failed system call was shmget(key=1, size=40, 03600).
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK
[    6.059748] g_serial gadget: Gadget Serial v2.4
[    6.064295] g_serial gadget: g_serial ready

以上是我的启动信息

离线

#2 2020-05-15 14:50:15

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

上面看到这些都是 串口2 输出的吗?





离线

楼主 #3 2020-05-15 14:51:27

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

哇酷小二 说:

上面看到这些都是 串口2 输出的吗?

是的  都是串口2输出的

离线

#4 2020-05-15 14:54:25

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

换一条 USB转TTL的线





离线

楼主 #5 2020-05-15 15:37:08

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

哇酷小二 说:

换一条 USB转TTL的线

解决了
串口线的T和R各上拉一个电阻就没有问题了

离线

#6 2020-05-15 15:41:58

有梦的地方
会员
注册时间: 2020-03-17
已发帖子: 284
积分: 284

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

zhang235hai 说:

解决了
串口线的T和R各上拉一个电阻就没有问题了

这是什么原理?

离线

楼主 #7 2020-05-15 15:45:27

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

有梦的地方 说:

这是什么原理?


推挽输出如果不上拉就没有电流
详细的情况可以百度一下上拉电阻电路的原理

离线

#8 2020-05-15 15:50:17

有梦的地方
会员
注册时间: 2020-03-17
已发帖子: 284
积分: 284

Re: 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

zhang235hai 说:

推挽输出如果不上拉就没有电流
详细的情况可以百度一下上拉电阻电路的原理

原来如此,get!

离线

页脚

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

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