免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2076 | 回复: 2

[操作系统] arm 启动jffs2文件系统不成功 [复制链接]

论坛徽章:
0
发表于 2016-05-14 15:27 |显示全部楼层
NFS挂载正常,启动busybox ok,把测试OK的文件夹压制成jffs2文件系统,烧录到flash中,启动GG

求好心人帮忙分析分析!

挂载NFS msg

Starting kernel ...                                                            
                                                                                
Uncompressing Linux... done, booting the kernel.                                
Booting Linux on physical CPU 0x0                                               
Linux version 3.10.46 (panda@panda-K43SD) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #
35 PREEMPT Sat May 14 02:45:47 CST 2016                                         
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d                 
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache        
Machine: SMDKV210                                                               
Memory policy: ECC disabled, Data cache writeback                              
CPU S5PV210/S5PC110 (id 0x43110220)                                             
S3C24XX Clocks, Copyright 2004 Simtec Electronics                              
S5PV210: PLL settings, A=1000000000, M=667000000, E=96000000 V=54000000         
S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000                    
HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000               
sclk_dmc: source is sclk_a2m (0), rate is 200000000                             
sclk_onenand: source is hclk_psys (0), rate is 66700000                        
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_cam0: source is ext_xtal (0), rate is 24000000                             
sclk_cam1: source is ext_xtal (0), rate is 24000000                             
sclk_fimd: source is ext_xtal (0), rate is 24000000                             
sclk_mfc: source is sclk_a2m (0), rate is 200000000                             
sclk_g2d: source is sclk_a2m (0), rate is 200000000                             
sclk_g3d: source is sclk_a2m (0), rate is 200000000                             
sclk_csis: source is ext_xtal (0), rate is 24000000                             
sclk_pwi: source is ext_xtal (0), rate is 24000000                              
sclk_pwm: source is ext_xtal (0), rate is 24000000                              
CPU: All CPU(s) started in SVC mode.                                            
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048     
Kernel command line: root=/dev/nfs rw nfsroot=192.168.1.101:/home/work/rootfs ip
=192.168.1.120:192.168.1.121:192.168.1.122::eht0:ff console=ttySAC0,115200 ini
t=/linuxrc                                                                     
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: 515548k/515548k available, 8740k reserved, 0K highmem                  
Virtual kernel memory layout:                                                   
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)                              
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                              
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)                              
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)                              
    modules : 0x7f000000 - 0x80000000   (  16 MB)                              
      .text : 0x80008000 - 0x8037851c   (3522 kB)                              
      .init : 0x80379000 - 0x8039b6fc   ( 138 kB)                              
      .data : 0x8039c000 - 0x803d19c0   ( 215 kB)                              
       .bss : 0x803d19c0 - 0x8040d468   ( 239 kB)                              
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                     
Preemptible hierarchical RCU implementation.                                    
NR_IRQS:208                                                                     
VIC @f6000000: id 0x00041192, vendor 0x41                                       
VIC @f6010000: id 0x00041192, vendor 0x41                                       
VIC @f6020000: id 0x00041192, vendor 0x41                                       
VIC @f6030000: id 0x00041192, vendor 0x41                                       
sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 128784ms            
Console: colour dummy device 80x30                                             
Calibrating delay loop... 663.55 BogoMIPS (lpj=1658880)                        
pid_max: default: 32768 minimum: 301                                            
Mount-cache hash table entries: 512                                             
CPU: Testing write buffer coherency: ok                                         
Setting up static identity map for 0x80299008 - 0x80299060                     
NET: Registered protocol family 16                                             
DMA: preallocated 256 KiB pool for atomic coherent allocations                  
S3C Power Management, Copyright 2004 Simtec Electronics                        
S5PV210: Initializing architecture                                             
bio: create slab <bio-0> at 0                                                   
SCSI subsystem initialized                                                      
Switching to clocksource samsung_clocksource_timer                              
NET: Registered protocol family 2                                               
TCP established hash table entries: 4096 (order: 3, 32768 bytes)               
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)                       
TCP: Hash tables configured (established 4096 bind 4096)                        
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.                       
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                           
ROMFS MTD (C) 2007 Red Hat, Inc.                                                
io scheduler noop registered                                                   
io scheduler deadline registered                                                
io scheduler cfq registered (default)                                          
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056                     
dma-pl330 dma-pl330.0:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32   
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056                     
dma-pl330 dma-pl330.1:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32   
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled                        
s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10           
console [ttySAC0] enabled                                                      
s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10           
s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10           
s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10           
brd: module loaded                                                              
loop: module loaded                                                            
s3c24xx-nand s5pv210-nand: Tacls=2, 14ns Twrph0=2 14ns, Twrph1=1 7ns            
s3c24xx-nand s5pv210-nand: NAND ECC disabled                                    
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bi
t), 512MiB, page size: 2048, OOB size: 64                                       
NAND_ECC_NONE selected by board driver. This is not recommended!               
Scanning device for bad blocks                                                  
Creating 5 MTD partitions on "NAND":                                            
0x000000000000-0x000000800000 : "bootloader"                                    
0x000000800000-0x000000820000 : "params"                                       
0x000000820000-0x000000a20000 : "log"                                          
0x000000a20000-0x000000d20000 : "kernel"                                       
0x000000d20000-0x000020000000 : "rootfs"                                       
dm9000 dm9000: read wrong id 0x01010101                                         
eth0: dm9000a at a08a8000,a08aa004 IRQ 39 MAC: 00:09:c0:ff:ec:48 (platform data)
mousedev: PS/2 mouse device common for all mice                                 
TCP: cubic registered                                                           
NET: Registered protocol family 17                                             
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2         
dm9000 dm9000 eth0: link down                                                   
dm9000 dm9000 eth0: link down                                                   
dm9000 dm9000 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1                  
IP-Config: Guessing netmask 255.255.255.0                                       
IP-Config: Complete:                                                            
     device=eth0, hwaddr=00:09:c0:ff:ec:48, ipaddr=192.168.1.120, mask=255.255.2
55.0, gw=192.168.1.122                                                         
     host=eht0, domain=, nis-domain=(none)                                      
     bootserver=192.168.1.121, rootserver=192.168.1.101, rootpath=              
VFS: Mounted root (nfs filesystem) on device 0:9.                              
Freeing unused kernel memory: 136K (80379000 - 8039b000)                        
init started: BusyBox v1.21.1 (2016-05-02 16:24:55 CST)                        
Segmentation fault                                                              
                                                                                
Please press Enter to activate this console.                                    
Processing /etc/profile...                                                      
Done                                                                           
[root@S5PV210]# ls                                                              
bin      etc      lib      mnt      root     sys      usr                       
dev      jffs2    linuxrc  proc     sbin     tmp      var

jffs2 fail msg:

Starting kernel ...                                                            
                                                                                
Uncompressing Linux... done, booting the kernel.                                
Booting Linux on physical CPU 0x0                                               
Linux version 3.10.46 (panda@panda-K43SD) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #
35 PREEMPT Sat May 14 02:45:47 CST 2016                                         
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d                 
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache        
Machine: SMDKV210                                                               
Memory policy: ECC disabled, Data cache writeback                              
CPU S5PV210/S5PC110 (id 0x43110220)                                             
S3C24XX Clocks, Copyright 2004 Simtec Electronics                              
S5PV210: PLL settings, A=1000000000, M=667000000, E=96000000 V=54000000         
S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000                    
HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000               
sclk_dmc: source is sclk_a2m (0), rate is 200000000                             
sclk_onenand: source is hclk_psys (0), rate is 66700000                        
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_fimc: source is ext_xtal (0), rate is 24000000                             
sclk_cam0: source is ext_xtal (0), rate is 24000000                             
sclk_cam1: source is ext_xtal (0), rate is 24000000                             
sclk_fimd: source is ext_xtal (0), rate is 24000000                             
sclk_mfc: source is sclk_a2m (0), rate is 200000000                             
sclk_g2d: source is sclk_a2m (0), rate is 200000000                             
sclk_g3d: source is sclk_a2m (0), rate is 200000000                             
sclk_csis: source is ext_xtal (0), rate is 24000000                             
sclk_pwi: source is ext_xtal (0), rate is 24000000                              
sclk_pwm: source is ext_xtal (0), rate is 24000000                              
CPU: All CPU(s) started in SVC mode.                                            
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048     
Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 console=ttySAC0,115200
rw                                                                             
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: 515548k/515548k available, 8740k reserved, 0K highmem                  
Virtual kernel memory layout:                                                   
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)                              
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                              
    vmalloc : 0xa0800000 - 0xff000000   (1512 MB)                              
    lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)                              
    modules : 0x7f000000 - 0x80000000   (  16 MB)                              
      .text : 0x80008000 - 0x8037851c   (3522 kB)                              
      .init : 0x80379000 - 0x8039b6fc   ( 138 kB)                              
      .data : 0x8039c000 - 0x803d19c0   ( 215 kB)                              
       .bss : 0x803d19c0 - 0x8040d468   ( 239 kB)                              
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                     
Preemptible hierarchical RCU implementation.                                    
NR_IRQS:208                                                                     
VIC @f6000000: id 0x00041192, vendor 0x41                                       
VIC @f6010000: id 0x00041192, vendor 0x41                                       
VIC @f6020000: id 0x00041192, vendor 0x41                                       
VIC @f6030000: id 0x00041192, vendor 0x41                                       
sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 128784ms            
Console: colour dummy device 80x30                                             
Calibrating delay loop... 663.55 BogoMIPS (lpj=1658880)                        
pid_max: default: 32768 minimum: 301                                            
Mount-cache hash table entries: 512                                             
CPU: Testing write buffer coherency: ok                                         
Setting up static identity map for 0x80299008 - 0x80299060                     
NET: Registered protocol family 16                                             
DMA: preallocated 256 KiB pool for atomic coherent allocations                  
S3C Power Management, Copyright 2004 Simtec Electronics                        
S5PV210: Initializing architecture                                             
bio: create slab <bio-0> at 0                                                   
SCSI subsystem initialized                                                      
Switching to clocksource samsung_clocksource_timer                              
NET: Registered protocol family 2                                               
TCP established hash table entries: 4096 (order: 3, 32768 bytes)               
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)                       
TCP: Hash tables configured (established 4096 bind 4096)                        
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.                       
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                           
ROMFS MTD (C) 2007 Red Hat, Inc.                                                
io scheduler noop registered                                                   
io scheduler deadline registered                                                
io scheduler cfq registered (default)                                          
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056                     
dma-pl330 dma-pl330.0:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32   
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056                     
dma-pl330 dma-pl330.1:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32   
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled                        
s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10           
console [ttySAC0] enabled                                                      
s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10           
s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10           
s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10           
brd: module loaded                                                              
loop: module loaded                                                            
s3c24xx-nand s5pv210-nand: Tacls=2, 14ns Twrph0=2 14ns, Twrph1=1 7ns            
s3c24xx-nand s5pv210-nand: NAND ECC disabled                                    
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bi
t), 512MiB, page size: 2048, OOB size: 64                                       
NAND_ECC_NONE selected by board driver. This is not recommended!               
Scanning device for bad blocks                                                  
Creating 5 MTD partitions on "NAND":                                            
0x000000000000-0x000000800000 : "bootloader"                                    
0x000000800000-0x000000820000 : "params"                                       
0x000000820000-0x000000a20000 : "log"                                          
0x000000a20000-0x000000d20000 : "kernel"                                       
0x000000d20000-0x000020000000 : "rootfs"                                       
dm9000 dm9000: read wrong id 0x01010101                                         
eth0: dm9000a at a08a8000,a08aa004 IRQ 39 MAC: 00:09:c0:ff:ec:48 (platform data)
mousedev: PS/2 mouse device common for all mice                                 
TCP: cubic registered                                                           
NET: Registered protocol family 17                                             
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2         
VFS: Mounted root (jffs2 filesystem) on device 31:4.                           
Freeing unused kernel memory: 136K (80379000 - 8039b000)                        
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
See Linux Documentation/init.txt for guidance.                                 
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.46 #35                             
[<800138b4>] (unwind_backtrace+0x0/0xf0) from [<8001176c>] (show_stack+0x10/0x14
)                                                                              
[<8001176c>] (show_stack+0x10/0x14) from [<80295b34>] (panic+0x8c/0x1e        
[<80295b34>] (panic+0x8c/0x1e from [<80295678>] (kernel_init+0xc0/0xe4)      
[<80295678>] (kernel_init+0xc0/0xe4) from [<8000e458>] (ret_from_fork+0x14/0x3c)
                                                                                

有人遇到这种问题吗?是如何解决的?busybox尝试使用静态库编译也起不来!
另外有测试可以正常启动的busybox jffs2文件系统的话,麻烦发给我,我看看是不是我没压制好!

论坛徽章:
0
发表于 2016-05-14 15:29 |显示全部楼层
咦,我贴出的部分信息竟然被论坛识别为表情~

论坛徽章:
0
发表于 2016-08-01 14:29 |显示全部楼层
忘记结贴了,最后找到原因了,自己kernel的mtd分区和uboot设置的分区参数不符合,所以无法启动busybox。最后从新设置了下,就可以了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP