免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2685 | 回复: 4
打印 上一主题 下一主题

linux2.6.31 arm9200求教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-08 11:39 |只看该作者 |倒序浏览
下载了linux2.6.31,并且给其打上9200的补丁.然后用uboot的编译工具编译出来uImage。内核。下载到目标板结果出现下面的问题。
Hit any key to stop autoboot:  0
## Booting image at 21000000 ...
   Image Name:   Linux-2.6.31
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1022596 Bytes = 998.6 kB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
.... done, booting the kernel.

好想刚解压完内核,启动不起来。我原来用的是linux2.6.19也是这样做的,就能正常启动,2.6.31就不行。请问这怎莫查啊。

论坛徽章:
0
2 [报告]
发表于 2010-02-08 13:40 |只看该作者
mach-type设置得一致吗?

论坛徽章:
0
3 [报告]
发表于 2010-02-08 16:54 |只看该作者
是哪的问题。uboot传的设备id是AT91RM9200,但是内核认定为AT91RM9200DK,不匹配。现在能启动到挂载根文件系统了,完后就不走了。我用的是ramdisk,uboot启动后,内核在21000000 ,ramdisk在21100000 。
ncompressing Linux.............................................................
.... done, booting the kernel.
Linux version 2.6.31 (root@localhost.localdomain) (gcc version 3.4.1) #5 Sun Dec
29 16:05:24 CST 2024
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 initrd=0x21100000,20000 root=/   这里的命令行有问题吗?
dev/ram0 rw
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30360KB available (1796K code, 176K data, 92K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 89.53 BogoMIPS (lpj=349184)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 16K
NetWinder Floating Point Emulator V0.97 (double precision)
msgmni has been set to 59
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
at91_spi: Baud rate set to 5990400
AT91 SPI driver loaded
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
at91_dataflash: AT45DB642 detected [spi0] (8650752 bytes)
Creating 3 MTD partitions on "AT45DB642.spi0":
0x000000000000-0x000000042000 : "bootloader"
0x000000042000-0x00000018c000 : "kernel"
0x00000018c000-0x000000840000 : "filesystem"
No SmartMedia card inserted.
atmel_nand: probe of atmel_nand failed with error 6
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 23, io mem 0x00300000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.31 ohci_hcd
usb usb1: SerialNumber: at91
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
IRQ 1/at91_rtc: IRQF_DISABLED is not guaranteed on shared IRQs
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
AT91 Watchdog Timer enabled (5 seconds, nowayout)
at91_rtc at91_rtc: setting system clock to 1998-01-01 00:00:12 UTC (883612812)
RAMDISK: gzip image found at block 0
VFS: Cannot open root device "ram0" or unknown-block(1,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             264 mtdblock0 (driver?)
1f01            1320 mtdblock1 (driver?)
1f02            6864 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
Backtrace:
[<c0023594>] (dump_backtrace+0x0/0x104) from [<c00236b0>] (dump_stack+0x18/0x1c)

r7:c1c12000 r6:c01f7590 r5:ffffff8c r4:c1c23f60
[<c0023698>] (dump_stack+0x0/0x1c) from [<c0034758>] (panic+0x40/0x10c)
[<c0034718>] (panic+0x0/0x10c) from [<c0008e74>] (mount_block_root+0x260/0x2b4)
r3:00000000 r2:20000013 r1:c1c23f60 r0:c01b717c
[<c0008c14>] (mount_block_root+0x0/0x2b4) from [<c0009018>] (mount_root+0x54/0x6
c)
[<c0008fc4>] (mount_root+0x0/0x6c) from [<c00091a0>] (prepare_namespace+0x170/0x
1d0)
r5:c001c80c r4:c01f72d4
[<c0009030>] (prepare_namespace+0x0/0x1d0) from [<c0008a84>] (kernel_init+0xd4/0
x10
r5:c001b49c r4:c01f70b8
[<c00089b0>] (kernel_init+0x0/0x10 from [<c0036c64>] (do_exit+0x0/0x58
r5:00000000 r4:00000000

论坛徽章:
0
4 [报告]
发表于 2010-02-09 16:30 |只看该作者
现在能启动到下面了
Uncompressing Linux.............................................................
.... done, booting the kernel.
Linux version 2.6.31 (root@localhost.localdomain) (gcc version 3.4.1) #13 Mon De
c 30 01:49:57 CST 2024
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 initrd=0x21100000,6M root=/dev
/ram rw init=/linuxrc
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 24244KB available (1788K code, 176K data, 92K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 89.53 BogoMIPS (lpj=349184)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6144K
NetWinder Floating Point Emulator V0.97 (double precision)
msgmni has been set to 59
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
at91_spi: Baud rate set to 5990400
AT91 SPI driver loaded
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
at91_dataflash: AT45DB642 detected [spi0] (8650752 bytes)
Creating 3 MTD partitions on "AT45DB642.spi0":
0x000000000000-0x000000042000 : "bootloader"
0x000000042000-0x00000018c000 : "kernel"
0x00000018c000-0x000000840000 : "filesystem"
No SmartMedia card inserted.
atmel_nand: probe of atmel_nand failed with error 6
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 23, io mem 0x00300000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.31 ohci_hcd
usb usb1: SerialNumber: at91
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
IRQ 1/at91_rtc: IRQF_DISABLED is not guaranteed on shared IRQs
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
AT91 Watchdog Timer enabled (5 seconds, nowayout)
at91_rtc at91_rtc: setting system clock to 1998-01-01 00:00:12 UTC (883612812)
RAMDISK: gzip image found at block 0
usb 1-2: new low speed USB device using at91_ohci and address 2
usb 1-2: device descriptor read/64, error -62
err=0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 92K
execute_command=/linuxrc
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Backtrace:
[<c0023594>] (dump_backtrace+0x0/0x104) from [<c00236b0>] (dump_stack+0x18/0x1c)

r7:00000000 r6:c01f5590 r5:c001b4bc r4:c01f50b4
[<c0023698>] (dump_stack+0x0/0x1c) from [<c0034758>] (panic+0x40/0x10c)
[<c0034718>] (panic+0x0/0x10c) from [<c001f518>] (init_post+0xdc/0x110)
r3:c1c23eec r2:00000000 r1:c02443e0 r0:c01b5804
[<c001f43c>] (init_post+0x0/0x110) from [<c0008a88>] (kernel_init+0xd8/0x10
r4:c01f50b8
[<c00089b0>] (kernel_init+0x0/0x10 from [<c0036c64>] (do_exit+0x0/0x58
r5:00000000 r4:00000000

不能进入busybox,命令行参数该老好几次。都不行。busybox也编译了好几次,linuxrc是自己写的。
没有被覆盖。求教各位,还有什么办法。

论坛徽章:
0
5 [报告]
发表于 2010-02-09 23:51 |只看该作者
会不会是maneconfig里对应内核的选项选择的CPU类型没有匹配呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP