Chinaunix首页 | 论坛 | 博客
  • 博客访问: 95034
  • 博文数量: 38
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 384
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-06 16:52
文章分类

全部博文(38)

文章存档

2014年(38)

我的朋友

分类: 嵌入式

2014-04-06 19:41:45

进入scripts/目录,修改Makefile.lib文件,把

点击(此处)折叠或打开

  1. UIMAGE_LOADADDR ?= arch_must_set_this
  2. UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR)
修改成

点击(此处)折叠或打开

  1. UIMAGE_LOADADDR ?= arch_must_set_this
  2. #UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR)
  3. UIMAGE_ENTRYADDR ?= $(shell echo $(UIMAGE_LOADADDR) | sed -e "s/..$$/40/")
重新编译make uImage
nand erase 100000 500000后
把uImage重新拷贝到nandflash中,重启后显示

点击(此处)折叠或打开

  1. U-Boot 2013.04-rc1 (Apr 06 2014 - 16:44:12) for SMDK6410

    CPU:     S3C6410@533MHz

             Fclk = 533MHz, Hclk = 133MHz, Pclk = 66MHz (ASYNC Mode) 

    Board:   SMDK6410

    DRAM:  256 MiB

    WARNING: Caches not enabled

    Flash: 0 MiB

    NAND:  USE HWECC Default

    ECC Size:4096 ECC Bytes:4

    1024 MiB

    MMC:   Samsung  Host Controller: 0

    *** Warning - bad CRC, using default environment

    In:    serial

    Out:   serial

    Err:   serial

    Net:   dm9000

  2. Hit any key to stop autoboot: 0


  3. NAND read: device 0 offset 0x100000, size 0x500000

  4.  5242880 bytes read: OK

  5. ## Booting kernel from Legacy Image at 50008000 ...

  6.    Image Name: Linux-3.8.3

  7.    Image Type: ARM Linux Kernel Image (uncompressed)

  8.    Data Size: 1664104 Bytes = 1.6 MiB

  9.    Load Address: 50008000

  10.    Entry Point: 50008040

  11.    Verifying Checksum ... OK

  12.    XIP Kernel Image ... OK

  13. OK


  14. Starting kernel ...


  15. Uncompressing Linux... done, booting the kernel.
  16. Booting Linux on physical CPU 0x0
  17. Linux version 3.8.3 (ymseven@ymseven) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #2 Sun Apr 6 19:15:54 CST 2014
  18. CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387d
  19. CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
  20. Machine: OK6410
  21. Memory policy: ECC disabled, Data cache writeback
  22. CPU S3C6410 (id 0x36410101)
  23. S3C24XX Clocks, Copyright 2004 Simtec Electronics
  24. S3C64XX: PLL settings, A=533000000, M=533000000, E=24000000
  25. S3C64XX: HCLK2=266500000, HCLK=133250000, PCLK=66625000
  26. mout_apll: source is fout_apll (1), rate is 533000000
  27. mout_epll: source is epll (1), rate is 24000000
  28. mout_mpll: source is mpll (1), rate is 533000000
  29. usb-bus-host: source is clk_48m (0), rate is 48000000
  30. irda-bus: source is mout_epll (0), rate is 24000000
  31. CPU: found DTCM0 8k @ 00000000, not enabled
  32. CPU: moved DTCM0 8k to fffe8000, enabled
  33. CPU: found DTCM1 8k @ 00000000, not enabled
  34. CPU: moved DTCM1 8k to fffea000, enabled
  35. CPU: found ITCM0 8k @ 00000000, not enabled
  36. CPU: moved ITCM0 8k to fffe0000, enabled
  37. CPU: found ITCM1 8k @ 00000000, not enabled
  38. CPU: moved ITCM1 8k to fffe2000, enabled
  39. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
  40. Kernel command line: console=ttySAC,115200
  41. PID hash table entries: 1024 (order: 0, 4096 bytes)
  42. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  43. Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  44. __ex_table already sorted, skipping sort
  45. Memory: 256MB = 256MB total
  46. Memory: 256532k/256532k available, 5612k reserved, 0K highmem
  47. Virtual kernel memory layout:
  48.     vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  49.     DTCM : 0xfffe8000 - 0xfffec000 ( 16 kB)
  50.     ITCM : 0xfffe0000 - 0xfffe4000 ( 16 kB)
  51.     fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  52.     vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
  53.     lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
  54.     modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  55.       .text : 0xc0008000 - 0xc02bed88 (2780 kB)
  56.       .init : 0xc02bf000 - 0xc02da7a4 ( 110 kB)
  57.       .data : 0xc02dc000 - 0xc03076e0 ( 174 kB)
  58.        .bss : 0xc0308000 - 0xc0338ef8 ( 196 kB)
  59. SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  60. NR_IRQS:246
  61. VIC @f6000000: id 0x00041192, vendor 0x41
  62. VIC @f6010000: id 0x00041192, vendor 0x41
  63. sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
  64. Console: colour dummy device 80x30
  65. Calibrating delay loop... 353.89 BogoMIPS (lpj=1769472)
  66. pid_max: default: 32768 minimum: 301
  67. Mount-cache hash table entries: 512
  68. CPU: Testing write buffer coherency: ok
  69. Setting up static identity map for 0x502149a8 - 0x50214a04
  70. DMA: preallocated 256 KiB pool for atomic coherent allocations
  71. OK6410: Option string ok6410=0
  72. OK6410: selected LCD display is 480x272
  73. s3c64xx_dma_init: Registering DMA channels
  74. PL080: IRQ 73, at d0846000, channels 0..8
  75. PL080: IRQ 74, at d0848000, channels 8..16
  76. S3C6410: Initialising architecture
  77. bio: create slab <bio-0> at 0
  78. usbcore: registered new interface driver usbfs
  79. usbcore: registered new interface driver hub
  80. usbcore: registered new device driver usb
  81. ROMFS MTD (C) 2007 Red Hat, Inc.
  82. io scheduler noop registered
  83. io scheduler deadline registered
  84. io scheduler cfq registered (default)
  85. s3c-fb s3c-fb: window 0: fb
  86. Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
  87. s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
  88. console [ttySAC0] enabled
  89. s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
  90. s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
  91. s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
  92. brd: module loaded
  93. loop: module loaded
  94. s3c24xx-nand s3c6400-nand: Tacls=4, 30ns Twrph0=8 60ns, Twrph1=6 45ns
  95. s3c24xx-nand s3c6400-nand: System booted from NAND
  96. s3c24xx-nand s3c6400-nand: NAND soft ECC
  97. NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 1,8V 8-bit), 1024MiB, page size: 4096, OOB size: 128
  98. Scanning device for bad blocks
  99. Creating 4 MTD partitions on "nand":
  100. 0x000000000000-0x000000100000 : "Bootloader"
  101. 0x000000100000-0x000000600000 : "Kernel"
  102. 0x000000600000-0x00000ce00000 : "File System"
  103. 0x00000ce00000-0x000040000000 : "User"
  104. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  105. s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
  106. s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
  107. s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x74300000
  108. s3c2410-ohci s3c2410-ohci: init err (00000000 0000)
  109. s3c2410-ohci s3c2410-ohci: can't start s3c24xx
    s3c2410-ohci s3c2410-ohci: startup error -75
    s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
    s3c2410-ohci: probe of s3c2410-ohci failed with error -75
    mousedev: PS/2 mouse device common for all mice
    i2c /dev entries driver
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    s3c-sdhci s3c-sdhci.0: clock source 0: mmc_busclk.0 (133250000 Hz)
    s3c-sdhci s3c-sdhci.0: clock source 2: mmc_busclk.2 (24000000 Hz)
    mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
    s3c-sdhci s3c-sdhci.1: clock source 0: mmc_busclk.0 (133250000 Hz)
    s3c-sdhci s3c-sdhci.1: clock source 2: mmc_busclk.2 (24000000 Hz)
    mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
    mmc0: mmc_rescan_try_freq: trying to init card at 300000 Hz
    mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
    mmc0: mmc_rescan_try_freq: trying to init card at 200000 Hz
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
    drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
    Please append a correct "root=" boot option; here are the available partitions:
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [] (unwind_backtrace+0x0/0xf4) from [] (panic+0x8c/0x1dc)
    [] (panic+0x8c/0x1dc) from [] (mount_block_root+0x218/0x2e0)
    [] (mount_block_root+0x218/0x2e0) from [] (prepare_namespace+0x160/0x1b8)
    [] (prepare_namespace+0x160/0x1b8) from [] (kernel_init+0x8/0xe4)
    [] (kernel_init+0x8/0xe4) from [] (ret_from_fork+0x14/0x3c)




阅读(1807) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~