rainshine222 发表于 2017-5-31 12:43:31

内核启动失败紧急求助!!!

U-Boot 2013.04-rc1 (May 26 2017 - 13:16:46) 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
In:    serial                  
Out:   serial
Err:   serial
Net:   dm9000
Hit any key to stop autoboot:0
                                 
NAND read: device 0 offset 0x100000, size 0x500000
5242880 bytes read: OK                           
## Booting kernel from Legacy Image at 50008000 ...
   Image Name:   Linux-3.8.3                     
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2311488 Bytes = 2.2 MiB            
   Load Address: 50008000               
   Entry Point:50008040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK                        

Starting kernel ...
                  
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.8.3 (root@forlinx-virtual-machine) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #60 Thu May 25 18:52:27 CST 2017
CPU: ARMv6-compatible processor revision 6 (ARMv7), cr=00c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OK6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C64XX: PLL settings, A=533000000, M=533000000, E=24000000
S3C64XX: HCLK2=266500000, HCLK=133250000, PCLK=66625000
mout_apll: source is fout_apll (1), rate is 533000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 533000000
usb-bus-host: source is clk_48m (0), rate is 48000000
irda-bus: source is mout_epll (0), rate is 24000000
CPU: found DTCM0 8k @ 00000000, not enabled
CPU: moved DTCM0 8k to fffe8000, enabled
CPU: found DTCM1 8k @ 00000000, not enabled
CPU: moved DTCM1 8k to fffea000, enabled
CPU: found ITCM0 8k @ 00000000, not enabled
CPU: moved ITCM0 8k to fffe0000, enabled
CPU: found ITCM1 8k @ 00000000, not enabled
CPU: moved ITCM1 8k to fffe2000, enabled
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 65024
Kernel command line: noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
__ex_table already sorted, skipping sort
Memory: 256MB = 256MB total
Memory: 255332k/255332k available, 6812k reserved, 0K highmem
Virtual kernel memory layout:
    vector: 0xffff0000 - 0xffff1000   (   4 kB)
    DTCM    : 0xfffe8000 - 0xfffec000   (16 kB)
    ITCM    : 0xfffe0000 - 0xfffe4000   (16 kB)
    fixmap: 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem: 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (16 MB)
      .text : 0xc0008000 - 0xc03d2b1c   (3883 kB)
      .init : 0xc03d3000 - 0xc03f53c4   ( 137 kB)
      .data : 0xc03f6000 - 0xc042aee0   ( 212 kB)
       .bss : 0xc042b000 - 0xc0464998   ( 231 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:246
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop... 353.89 BogoMIPS (lpj=1769472)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x502e84e0 - 0x502e853c
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
OK6410: Option string ok6410=0
OK6410: selected LCD display is 480x272
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0846000, channels 0..8
PL080: IRQ 74, at d0848000, channels 8..16
S3C6410: Initialising architecture
bio: create slab <bio-0> at 0
usbcore: registered new inte**ce driver usbfs
usbcore: registered new inte**ce driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 3, 40960 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 12288 bytes)
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ROMFS MTD (C) 2007 Red Hat, Inc.
BeFS version: 0.9.3
msgmni has been set to 498
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
S3C_LCD clock got enabled :: 133.250 Mhz
LCD TYPE :: LTE480WV will be initialized
failed to request GPE for lcd reset control
Window - FB1: map_video_memory: clear d0856000:0007f800
            FB1: map_video_memory: dma=5f980000 cpu=d0856000 size=0007f800
Window - FB2: map_video_memory: clear d0895c00:0003fc00
            FB2: map_video_memory: dma=5f9bfc00 cpu=d0895c00 size=0003fc00
Console: switching to colour frame buffer device 60x34
fb0: s3cfb frame buffer device
Window - FB1: map_video_memory: clear d08d7000:0007f800
            FB1: map_video_memory: dma=5fa00000 cpu=d08d7000 size=0007f800
Window - FB2: map_video_memory: clear d0916c00:0003fc00
            FB2: map_video_memory: dma=5fa3fc00 cpu=d0916c00 size=0003fc00
fb1: s3cfb frame buffer device
Window - FB1: map_video_memory: clear d0958000:0003fc00
            FB1: map_video_memory: dma=5fa80000 cpu=d0958000 size=0003fc00
fb2: s3cfb frame buffer device
Window - FB1: map_video_memory: clear d0999000:0003fc00
            FB1: map_video_memory: dma=5fac0000 cpu=d0999000 size=0003fc00
fb3: s3cfb frame buffer device
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
console enabled
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
brd: module loaded
loop: module loaded
S3C NAND Driver, (c) 2008 Samsung Electronics
S3C NAND Driver is using software ECC.
ONFI param page 0 valid
ONFI flash detected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP), 1024MiB, page size: 4096, OOB size: 224
NAND_ECC_NONE selected by board driver. This is not recommended!
Creating 4 MTD partitions on "MT29F8G08ABABAWP":
0x000000000000-0x000000100000 : "Bootloader"
0x000000100000-0x000000600000 : "Kernel"
0x000000600000-0x00000ce00000 : "File System"
0x00000ce00000-0x000040000000 : "User"
dm9000 Ethernet Driver, V1.31
dm9000 dm9000: eth%d: Invalid ethernet MAC address. Please set using ifconfig
eth0: dm9000a at d09da000,d09dc004 IRQ 108 MAC: 2e:70:d6:36:69:bc (random)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x74300000
s3c2410-ohci s3c2410-ohci: init err (00000000 0000)
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
S3C Touchscreen driver, (c) 2008 Samsung Electronics
S3C TouchScreen got loaded successfully : 12 bits
input: S3C TouchScreen as /devices/virtual/input/input0
i2c /dev entries driver
sdhci: Secure Digital Host Controller Inte**ce 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 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 using ADMA
mmc0: mmc_rescan_try_freq: trying to init card at 200000 Hz
usbcore: registered new inte**ce driver usbhid
usbhid: USB HID core driver
LED init......
ok!......
TCP: cubic registered
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
mmc0: mmc_rescan_try_freq: trying to init card at 100000 Hz
mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc1: mmc_rescan_try_freq: trying to init card at 300000 Hz
mmc1: mmc_rescan_try_freq: trying to init card at 200000 Hz
mmc1: mmc_rescan_try_freq: trying to init card at 100000 Hz
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
devtmpfs: error mounting -2
Freeing init memory: 136K
Failed to execute /linuxrc.Attempting defaults...
Kernel panic - not syncing: No init found.Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c0014960>] (unwind_backtrace+0x0/0xf4) from [<c02e5c20>] (panic+0x8c/0x1dc)
[<c02e5c20>] (panic+0x8c/0x1dc) from [<c02e56a0>] (kernel_init+0xc0/0xe4)
[<c02e56a0>] (kernel_init+0xc0/0xe4) from [<c000ea18>] (ret_from_fork+0x14/0x3c)

rainshine222 发表于 2017-5-31 12:53:55

NFS挂载文件系统可以正常 启动,但是 烧写到flash里就出现上面的问题,flash型号是:MT29F8G08ABABAWP

rainshine222 发表于 2017-5-31 13:09:29

开发板:OK6410-A

飞凌-unix 发表于 2017-5-31 13:47:46

您好:看您这Uboot和内核是自己移植的,看您的打印信息是文件系统那启动失败;您可以检查检查boot中启动参数是否正确,还有就是文件系统的镜像制作时,需要符合您的nand大小等自身参数;您可以往这两个方向检查看看。

rainshine222 发表于 2017-5-31 14:08:31

NFS挂载能正常启动;
//NFS启动参数设置
set bootargs root=/dev/nfs console=ttySAC0,115200 nfsroot=192.168.1.250:/forlinx/busybox-1.20.2/_install ip=192.168.1.249:192.168.1.250:192.168.1.1:255.255.255.0::eth0:off
set bootcmd'nand read 50008000 100000 500000; bootm 0x50008000'

从flash启动失败:
//flash启动参数设置
set bootargs noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200
set bootcmd'nand read 50008000 100000 500000; bootm 0x50008000'

rainshine222 发表于 2017-5-31 14:11:59

文件系统烧写命令地址:fatload mmc 0 0x50008000 rootfs.yaffs2 ;nand write.yaffs 0x500080000x60000000xc7ff800;

rainshine222 发表于 2017-5-31 14:17:24

flash型号是:MT29F8G08ABABAWP对应
制作mkyaffs2image工具
root@forlinx-virtual-machine:/forlinx/linux-3.8.3# cd yaffs2/utils/
root@forlinx-virtual-machine:/forlinx/linux-3.8.3/yaffs2/utils# gedit mkyaffs2image.c

#define chunkSize 4096          //page size
#define spareSize 224         //oob_size
#define pagesPerBlock 128       //page per block

rainshine222 发表于 2017-5-31 14:19:48

我确认过,文件系统烧写地址 能够文件系统分区对上,   制作工具参数修改参照了flash 参数,没看出问题在哪里

飞凌-unix 发表于 2017-5-31 14:22:28

您好:那您自己在看看吧,再调试看看吧;实在不行您直接用我们的内核,我们的都是调试好的;或者您再从百度或者是其他网络上找找看有什么好的方法。

rainshine222 发表于 2017-5-31 14:32:46

您说的这些方法我都试过,1.光盘提供的资料有问题,uboot从sd卡启动不了, 2.网上的说法也试过,还是不正常; 我只能求助您啦帮我看看,您可以给我发个测试通过的sd卡u-boot.bin,flash启动的u-boot-nand.bin,uImage,rootfs.yaffs2;我邮箱253771158@qq.com

飞凌-unix 发表于 2017-5-31 14:44:23

您调试的这个Uboot以及内核都不是我们的,这个只能靠您自己调试;我们能做的也只是给您提供一些我们觉得可能的意见;别的帮不了您;如果您使用的是我们的开发板,您可以直接从我们论坛上6410资料下载那,下载相应的用户资料,里边有镜像。
页: [1]
查看完整版本: 内核启动失败紧急求助!!!