[uClinux-dev] The fatal errors about ucLinux-2.6.22
=?gb2312?B?s8LOwM7E?=
pstudio at 163.com
Wed Aug 1 13:47:20 EDT 2007
Thanks very much, Greg and Advan,=20
I have found the bug, this bug is from my serial driver. The serial =
drivers
doesn't support IOMEM type, so I changed the iotype to IO_PORT, It's OK,
there is no bugs about decompressed. But there is a new bug from
get_irqnr_and_base.
I don't know the details about get_irqnr_and_base, so I code the macro =
as my
thinking, but it has some bugs. Please see my new mail.
Darwin Chen.
-----=D3=CA=BC=FE=D4=AD=BC=FE-----
=B7=A2=BC=FE=C8=CB: Greg Ungerer [mailto:gerg at snapgear.com]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2007=C4=EA8=D4=C21=C8=D5 15:04
=CA=D5=BC=FE=C8=CB: uClinux development list
=B3=AD=CB=CD: 'Darwin Chen'
=D6=F7=CC=E2: [!! SPAM] Re: [uClinux-dev] The fatal errors about =
ucLinux-2.6.22
Hi Darwin,
Darwin Chen wrote:
> I=A1=AFm porting uclinux-2.6.22 to Winbond W90N740, this is an =
ARM7TDMI-based=20
> CPU. This time , the following error occurred, I don=A1=AFt know how =
to find=20
> the bug.
>=20
> Is there anyone can help me?
See below.
> This board has 32MB SDRAM(0x00000000 ~ 0x02000000) and 2MB=20
> Flash(0x7F000000 ~ 0x7F1FFFFF) after remapping the SDRAM and Flash,
>=20
>=20
> The total message is listed:
>=20
> When power on, the message is listed as following:
>=20
> Uncompressing Linux......................................... done,=20
> booting the kernel.
>=20
> Linux version 2.6.22-uc0 (root at DownloaderDevelopment) (gcc version=20
> 3.4.3) #25 Wed Aug 1 13:37:38 CST 2007
>=20
> CPU: Winbond-W90N740 [32103201] revision 1 (ARMvundefined/unknown),=20
> cr=3D00000000
>=20
> Machine: W90N740
>=20
> Built 1 zonelists. Total pages: 8128
>=20
> Kernel command line: init=3D/linuxrc console=3DttySA0,115200 =
mem=3D32MB=20
> root=3D/dev/mtdblock2
>=20
> PID hash table entries: 128 (order: 7, 512 bytes)
>=20
> start_kernel(): bug: interrupts were enabled early
>=20
> W90N740 console initialized.
>=20
> Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
>=20
> Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
>=20
> Memory: 32MB =3D 32MB total
>=20
> Memory: 31180KB available (1020K code, 225K data, 44K init)
>=20
> Mount-cache hash table entries: 512
>=20
> w90n740 machine initialized.
>=20
> NetWinder Floating Point Emulator V0.97 (double precision)
>=20
> NTFS driver 2.1.28 [Flags: R/W].
>=20
> io scheduler noop registered
>=20
> io scheduler cfq registered (default)
>=20
> Serial: W90N740 driver $Revision: 1.50 $
>=20
> loop: module loaded
>=20
> uclinux[mtd]: RAM probe address=3D0x7f000000 size=3D0x200000
>=20
> Creating 5 MTD partitions on "cramfs":
>=20
> 0x00000000-0x00010000 : "uBoot"
>=20
> 0x00010000-0x000d0000 : "Kernel"
>=20
> 0x000e0000-0x001e0000 : "Cramfs"
>=20
> 0x001e0000-0x001f0000 : "ParamA"
>=20
> 0x001f0000-0x00200000 : "ParamB"
>=20
> uclinux[mtd]: set Cramfs to be root filesystem
>=20
> VFS: Mounted root (cramfs filesystem) readonly.
>=20
> Freeing init memory: 44K
>=20
> Warning: unable to open an initial console.
>=20
> Try to execute /linuxrc
>=20
> Error -3 while decompressing!
Looks like your cramfs is corrupted in RAM.
Are you sure it is being loaded into RAM properly and
completely?
Regards
Greg
>=20
> 00141758(2597)->00008000(4096) ?this is a surprised address, =
it=20
> is a kernel start address in RAM.
>=20
> Error -3 while decompressing!
>=20
> 00142b56(2334)->0000a000(4096)
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> Failed to execute /linuxrc. Attempting defaults...
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> BINFMT_FLAT: bad header magic
>=20
> Kernel panic - not syncing: No init found. Try passing init=3D option =
to=20
> kernel.
>=20
> =20
>=20
> When the board is reset by H-JTAG, the message is listed as following:
>=20
> Uncompressing Linux......................................... done,=20
> booting the kernel.
>=20
> Linux version 2.6.22-uc0 (root at DownloaderDevelopment) (gcc version=20
> 3.4.3) #25 Wed Aug 1 13:37:38 CST 2007
>=20
> CPU: Winbond-W90N740 [32103201] revision 1 (ARMvundefined/unknown),=20
> cr=3D00000000
>=20
> Machine: W90N740
>=20
> Built 1 zonelists. Total pages: 8128
>=20
> Kernel command line: init=3D/linuxrc console=3DttySA0,115200 =
mem=3D32MB=20
> root=3D/dev/mtdblock2
>=20
> PID hash table entries: 128 (order: 7, 512 bytes)
>=20
> start_kernel(): bug: interrupts were enabled early
>=20
> W90N740 console initialized.
>=20
> Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
>=20
> Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
>=20
> Memory: 32MB =3D 32MB total
>=20
> Memory: 31180KB available (1020K code, 225K data, 44K init)
>=20
> Mount-cache hash table entries: 512
>=20
> w90n740 machine initialized.
>=20
> NetWinder Floating Point Emulator V0.97 (double precision)
>=20
> NTFS driver 2.1.28 [Flags: R/W].
>=20
> io scheduler noop registered
>=20
> io scheduler cfq registered (default)
>=20
> Serial: W90N740 driver $Revision: 1.50 $
>=20
> loop: module loaded
>=20
> uclinux[mtd]: RAM probe address=3D0x7f000000 size=3D0x200000
>=20
> Creating 5 MTD partitions on "cramfs":
>=20
> 0x00000000-0x00010000 : "uBoot"
>=20
> 0x00010000-0x000d0000 : "Kernel"
>=20
> 0x000e0000-0x001e0000 : "Cramfs"
>=20
> 0x001e0000-0x001f0000 : "ParamA"
>=20
> 0x001f0000-0x00200000 : "ParamB"
>=20
> uclinux[mtd]: set Cramfs to be root filesystem
>=20
> VFS: Mounted root (cramfs filesystem) readonly.
>=20
> Freeing init memory: 44K
>=20
> Warning: unable to open an initial console.
>=20
> Try to execute /linuxrc
>=20
> Error -3 while decompressing!
>=20
> 00143e55(2556)->007a0000(4096) ? the address is different =
with=20
> power on booting(0x00008000).
>=20
> Error -3 while decompressing!
>=20
> 00145851(1990)->007a1000(4096)
>=20
> Unhandled fault: vector exception (0x800) at 0x00000000
>=20
> < repeated much times with previous text line.>
>=20
> ............................................
>=20
> Internal error: : 800 [#1]
>=20
> CPU: 0 Not tainted (2.6.22-uc0 #25)
>=20
> PC is at __irq_svc+0x58/0x80
>=20
> LR is at __init_begin+0xffff8000/0x2c
>=20
> pc : [<00013a58>] lr : [<00000000>] psr: 60000093
>=20
> sp : 00757f68 ip : 00757f48 fp : 0079ffa0
>=20
> r10: 00000000 r9 : 00000000 r8 : 77206c6f
>=20
> r7 : fff1a000 r6 : 7960f000 r5 : 00757f9c r4 : ffffffff
>=20
> r3 : 00000000 r2 : 00000001 r1 : 00757ef0 r0 : 00000000
>=20
> Flags: nZCv IRQs off FIQs on Mode SVC_32 Segment kernel
>=20
> Process linuxrc (pid: 1, stack limit =3D 0x00756258)
>=20
> Stack: (0x00757f68 to 0x00758000)
>=20
> 7f60: 00000000 00000800 00757fb0 a0000010 ffffffff=20
> 00000000
>=20
> 7f80: 7960f000 fff1a000 77206c6f 00000000 007954c4 0079ffa0 ffffffe0=20
> 00757fb0
>=20
> 7fa0: 00013b84 00013b8c 40000013 ffffffff fff1a000 0079ebf5 00795340=20
> 007960de
>=20
> 7fc0: 007954ac 0079ffb8 00000000 ff8600b7 00000000 00000000 007954c4=20
> 0079ffa0
>=20
> 7fe0: ffffffe0 0079ff94 0075072c 007960f0 a0000010 ffffffff 0f000981=20
> 42200300
>=20
> Backtrace:
>=20
> Code: e1a0000e 11a0100d 124fe034 1afffd69 (e5878000)
>=20
> Kernel panic - not syncing: Attempted to kill init!
>=20
> =20
>=20
>=20
> =
------------------------------------------------------------------------
>=20
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
--=20
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg at snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
More information about the uClinux-dev
mailing list