社区导航

 
快捷导航
  • 首页
  • 论坛
  • 查看新帖
  • 最新回复
  • 社区活动
  • 联系管理员
  • 消灭零回复
  • E金币兑换
  • 干货
搜索
查看: 3280|回复: 0

[求助] uboot加载Linux内核在Image进入run_init_process()后串口输出“乱码”问题?

[复制链接]

3360

TA的帖子

421

TA的资源

五彩晶圆(中级)

Rank: 8Rank: 8

荣誉会员勋章

发表于 2014-12-2 22:08:39 | 显示全部楼层 |阅读模式
U-Boot 2014.07 (Dec 02 2014 - 11:13:37)
Serial Clock 60MHz,115200bps,Async Mode.
DRAM:  512 MiB
WARNING: Caches not enabled
Using default environment
In:    serial
Out:   serial
Err:   serial
Net:   Net Initialization Skipped
No ethernet found.
mini2440> setenv bootargs noinitrd root=/dev/ram0 rw init=/init console=ttyS0,115200n8 mem=512M
mini2440> printenv
baudrate=115200
bootargs=noinitrd root=/dev/ram0 rw init=/init console=ttyS0,115200n8 mem=512M
bootdelay=5
stderr=serial
stdin=serial
stdout=serial
Environment size: 161/131068 bytes
mini2440> bootz
Kernel image @ 0x008000 [ 0x000000 - 0x32de60 ]
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.39 (qinkai@ubuntu) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #82 PREEMPT Tue Dec 2 18:47:21 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Conxeant mini2440
Memory policy: ECC disabled, Data cache writeback
mini2440_map_io_Init...
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: noinitrd root=/dev/ram0 rw init=/init console=ttyS0,115200n8 mem=512M
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 513104k/513104k available, 11184k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc03f0000   (4000 kB)
      .text : 0xc03f0000 - 0xc0634000   (2320 kB)
      .data : 0xc0634000 - 0xc064baa8   (  95 kB)
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:64
mini2440_init_irq...
mini2440_timer_init...
tv.tv_sec = 0004201f
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 176.53 BogoMIPS (lpj=882688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
ftrace: allocating 7215 entries in 22 pages
bio: create slab <bio-0> at 0
FS-Cache: Loaded
CacheFiles: Loaded
NetWinder Floating Point Emulator V0.97 (extended precision)
msgmni has been set to 1002
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ttyS0 at MMIO 0x0 (irq = 46) is a mini2440


Serial: mini2440 serial driver
brd: module loaded
oprofile: hardware counters not available
oprofile: using timer interrupt.
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 2
Freeing init memory: 4000K
init_post..
ramdisk_execute_command..
run_init_process..

m opeucov50cotcov50cotcov50cotcov50cotcov50cotcov50cotcov50cotcov50cotcov50cotcov50cot....



上面就是串口打印的信息,准备启动shell脚本时,串口不正常了。
查看vmlinux的反汇编,已进入cpu_arm926_do_idle函数。请问这是什么原因造成的?
已知制作的文件系统为Initramfs没有问题。

此帖出自ARM技术论坛


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 论坛活动 E手掌握

    扫码关注
    EEWORLD 官方微信

  • EE福利  唾手可得

    扫码关注
    EE福利 唾手可得

小黑屋|手机版|Archiver|电子工程世界 ( 京ICP证 060456

GMT+8, 2018-7-23 14:07 , Processed in 0.052657 second(s), 18 queries , Gzip On, Redis On.

快速回复 返回顶部 返回列表