天嵌 ARM开发社区

 找回密码
 注册
查看: 2664|回复: 5

linux 移植的问题

[复制链接]
zhuchunlin2 发表于 2010-1-26 13:08:13 | 显示全部楼层 |阅读模式
我把自己做的内核和天嵌提供的文件系统加载进TQ2440后出现以下错误
RPC: Registered udp transport module.
[5] Download CRAMFS image to Nand Fl
RPC: Registered tcp transport module.   
[6] Download YAFFS image to Na  
[6] Download YAFFS image to Na  
yaffs: auto selecting yaffs2
block 1336 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 132K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c002d9f8>] (dump_backtrace+0x0/0x114) from [<c02cb720>] (dump_stack+0x18/0x1c)

r7:c3817f54 r6:c3812c40 r5:c3812c40 r4:c03bef34
[<c02cb708>] (dump_stack+0x0/0x1c) from [<c02cb770>] (panic+0x4c/0x11c)
[<c02cb724>] (panic+0x0/0x11c) from [<c004cddc>] (do_exit+0x70/0x58c)
r3:c03a3ce0 r2:c3812c40 r1:c3817d1c r0:c0346ae6
[<c004cd6c>] (do_exit+0x0/0x58c) from [<c004d388>] (do_group_exit+0x90/0xc4)
[<c004d2f8>] (do_group_exit+0x0/0xc4) from [<c0056df0>] (get_signal_to_deliver+0
x2f4/0x32c)
r4:00000004
[<c0056afc>] (get_signal_to_deliver+0x0/0x32c) from [<c002c088>] (do_signal+0x70
/0x4f4)
[<c002c018>] (do_signal+0x0/0x4f4) from [<c002c53c>] (do_notify_resume+0x30/0x34
)
[<c002c50c>] (do_notify_resume+0x0/0x34) from [<c0029e2c>] (work_pending+0x1c/0x
20)

希望大家可以帮我解决下,谢谢!
亚瑟王 发表于 2010-1-26 14:13:07 | 显示全部楼层
烧写的文件系统镜像名称是什么?你用的Nand Flash是64MB的?还是256MB的?在内核中配置Nand Flash时是怎么配置的?
回复

使用道具 举报

 楼主| zhuchunlin2 发表于 2010-1-27 11:28:37 | 显示全部楼层
文件系统是root_qtopia_2.2.0_2.6.30.4_256MB.bin,镜像是自己做的,用的是256MB的。内核Nand Flash原先配置丢了,我从新弄了个,配置是D:\Backup\我的文档\My Pictures\12.bmpD:\Backup\我的文档\My Pictures\123.bmp
错误信息是NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2010-01-27 11:13:11 UTC (126459
0791)
s3c2440-sdi s3c2440-sdi: powered down.
end_request: I/O error, dev mtdblock2, sector 256
isofs_fill_super: bread failed, dev=mtdblock2, iso_blknum=64, block=128
List of all partitions:
1f00             256 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02          257536 mtdblock2 (driver?)
No filesystem could mount root, tried:  cramfs vfat msdos iso9660 romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
Backtrace:
[<c002b9dc>] (dump_backtrace+0x0/0x114) from [<c02a3468>] (dump_stack+0x18/0x1c)

r7:00008000 r6:c3858000 r5:c002383c r4:c0387fd4
[<c02a3450>] (dump_stack+0x0/0x1c) from [<c02a34b8>] (panic+0x4c/0x11c)
[<c02a346c>] (panic+0x0/0x11c) from [<c00090d0>] (mount_block_root+0x1e0/0x220)
r3:00000002 r2:80000000 r1:c3817f6c r0:c031533d
[<c0008ef0>] (mount_block_root+0x0/0x220) from [<c00091d4>] (mount_root+0xc4/0xf
c)
r8:00000000 r7:00000000 r6:00000000 r5:c002383c r4:01f00002
[<c0009110>] (mount_root+0x0/0xfc) from [<c000937c>] (prepare_namespace+0x170/0x
1c4)

r5:c002383c r4:c0387924
[<c000920c>] (prepare_namespace+0x0/0x1c4) from [<c000860c>] (kernel_init+0xbc/0
xe8)
r5:00000000 r4:c0387900
[<c0008550>] (kernel_init+0x0/0xe8) from [<c004930c>] (do_exit+0x0/0x58c)
r4:00000000
回复

使用道具 举报

 楼主| zhuchunlin2 发表于 2010-1-27 13:41:42 | 显示全部楼层
本帖最后由 zhuchunlin2 于 2010-1-27 13:42 编辑

配置单
--- Memory Technology Device (MTD) support  
  [ ]   Debugging     
  < >   MTD concatenating support   
  
  •    MTD partitioning support                                                         
      < >   MTD tests support      
      < >   RedBoot partition table parsing
      [ ]   Command line partition table parsing                                          
      < >   ARM Firmware Suite partition parsing                                                
      < >   TI AR7 partitioning support                                                         
      *** User Modules And Translation Layers ***   
      <*>   Direct char device access to MTD devices                                             
      -*-   Common interface to block layer for MTD 'translation layers'                        
    <*>   Caching block device access to MTD devices                                          
    < >   FTL (Flash Translation Layer) support                                                
    < >   NFTL (NAND Flash Translation Layer) support                                       
    < >   INFTL (Inverse NAND Flash Translation Layer) support                                 
    < >   Resident Flash Disk (Flash Translation Layer) support                                
    < >   NAND SSFDC (SmartMedia) read only translation layer                                 
    < >   Log panic/oops to an MTD buffer                                                      
          RAM/ROM/Flash chip drivers  --->                                                   
          Mapping drivers for chip access  --->                                               
          Self-contained MTD device drivers  --->                                             
    <*>   NAND Device Support  --->   
           --- NAND Device Support                                                                    
             [ ]   Verify NAND page writes                                                            
             [ ]   NAND ECC Smart Media byte order                                                      
             [ ]   Enable chip ids for obsolete ancient NAND devices                                              < >   GPIO NAND Flash driver                                                               
              <*>   NAND Flash support for S3C2410/S3C2440 SoC                                     [ ]     S3C2410 NAND driver debug                                                         
             
  •      S3C2410 NAND Hardware ECC                                                         
               Nand Flash Capacity select (256MB~1GB Nand for EmbedSky Board)  --->                 
             [ ]   S3C2410 NAND IDLE clock stop                                                         
             < > DiskOnChip 2000, Millennium and Millennium Plus (NAND                  reimplementation) (EXPERIMENTAL
             < >   Support for NAND Flash Simulator                                                     
             < >   Support for generic platform NAND driver                                             
             < >   MTD driver for Olympus MAUSB-10 and Fujifilm DPC-R1
       < >   OneNAND Device Support  --->
       LPDDR flash memory drivers  --->   
       UBI - Unsorted block images  --->
  • 回复

    使用道具 举报

    dsgh2440 发表于 2010-1-28 17:31:35 | 显示全部楼层
    和我的问题一样,目前我也不知道怎么回事,呵呵
    回复

    使用道具 举报

    亚瑟王 发表于 2010-1-28 21:09:46 | 显示全部楼层
    你使用我们的配置单试试。
    回复

    使用道具 举报

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

    本版积分规则

    关闭

    i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

    Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

    GMT+8, 2025-8-3 16:18 , Processed in 2.053125 second(s), 21 queries .

    Powered by Discuz! X3.5 Licensed

    © 2001-2024 Discuz! Team.

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