From: "colin" <colin@realtek.com.tw>
To: <linux-mips@linux-mips.org>
Subject: Linux 2.6.12 cannot run on 24K. Please give me some clues.
Date: Tue, 24 Jul 2007 15:09:37 +0800 [thread overview]
Message-ID: <014201c7cdc1$984e50c0$106215ac@realtek.com.tw> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="big5", Size: 1846 bytes --]
Hi all,
Could you help me on porting MIPS Linux?
Our first embedded system using 4Kec is running very well on Linux 2.6.12.
Now the second chip using 24K has problems. I found that mtf0 and mtc0 have
hazard problem and I have solved it.
static inline void unmask_mips_irq(unsigned int irq)
{
set_c0_status(0x100 << (irq - mips_cpu_irq_base));
irq_enable_hazard();
}
Now Linux can continue running and then it will encounter problems when
running the first application, init. I will appreciate your clues for
helping me on this probem. :D
Colin
ÿttyS0 at MMIO 0x0 (irq = 3) is a 16550A
ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
Freeing prom memory: 0kb freed
Reclaim bootloader memory from 80010000 to 800f0000
Freeing unused kernel memory: 252k freed
CPU 0 Unable to handle kernel paging request at virtual address ffffff88,
epc == 00440f10, ra == 004000e4
Oops in arch/mips/mm/fault.c::do_page_fault, line 167[#1]:
Cpu 0
$ 0 : 00000000 10000990 00400090 00000000
$ 4 : 7fdd5ed0 7fdd5f94 00000000 7fdd5f94
$ 8 : 00000000 00000000 80001cb2 00000b3b
$12 : 7f1c0300 0001ffff 0001ffff 00000115
$16 : 801f5e04 00000000 00000000 00000000
$20 : 00000000 00000000 00000000 00000000
$24 : 00000000 00440f00
$28 : 10008c70 7fdd5e18 7fdd5e38 004000e4
Hi : 00000000
Lo : 00000000
epc : 00440f10 Not tainted
ra : 004000e4 Status: 00006802 KERNEL EXL
Cause : 0880400c
BadVA : ffffff88
PrId : 00019378
Process init (pid: 1, threadinfo=80848000, task=80854bd8)
Stack : 00000000 00000000 10008c70 00000000 10008c70 7fdd5e38 10008c70
004276e4
00000000 00000000 00000000 00000000 10008c70 00000000 7fdd5f9c
00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000003
00400034
00000004 00000020 00000005 00000002 00000006 00001000 00000007
000000
WARNING: multiple messages have this Message-ID (diff)
From: "colin" <colin@realtek.com.tw>
To: linux-mips@linux-mips.org
Subject: Linux 2.6.12 cannot run on 24K. Please give me some clues.
Date: Tue, 24 Jul 2007 15:09:37 +0800 [thread overview]
Message-ID: <014201c7cdc1$984e50c0$106215ac@realtek.com.tw> (raw)
Message-ID: <20070724070937.gLyUIbmkfAHZgLhFWK8gY42gHpyWzNtym0XPfninmsw@z> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="big5", Size: 1846 bytes --]
Hi all,
Could you help me on porting MIPS Linux?
Our first embedded system using 4Kec is running very well on Linux 2.6.12.
Now the second chip using 24K has problems. I found that mtf0 and mtc0 have
hazard problem and I have solved it.
static inline void unmask_mips_irq(unsigned int irq)
{
set_c0_status(0x100 << (irq - mips_cpu_irq_base));
irq_enable_hazard();
}
Now Linux can continue running and then it will encounter problems when
running the first application, init. I will appreciate your clues for
helping me on this probem. :D
Colin
ÿttyS0 at MMIO 0x0 (irq = 3) is a 16550A
ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
Freeing prom memory: 0kb freed
Reclaim bootloader memory from 80010000 to 800f0000
Freeing unused kernel memory: 252k freed
CPU 0 Unable to handle kernel paging request at virtual address ffffff88,
epc == 00440f10, ra == 004000e4
Oops in arch/mips/mm/fault.c::do_page_fault, line 167[#1]:
Cpu 0
$ 0 : 00000000 10000990 00400090 00000000
$ 4 : 7fdd5ed0 7fdd5f94 00000000 7fdd5f94
$ 8 : 00000000 00000000 80001cb2 00000b3b
$12 : 7f1c0300 0001ffff 0001ffff 00000115
$16 : 801f5e04 00000000 00000000 00000000
$20 : 00000000 00000000 00000000 00000000
$24 : 00000000 00440f00
$28 : 10008c70 7fdd5e18 7fdd5e38 004000e4
Hi : 00000000
Lo : 00000000
epc : 00440f10 Not tainted
ra : 004000e4 Status: 00006802 KERNEL EXL
Cause : 0880400c
BadVA : ffffff88
PrId : 00019378
Process init (pid: 1, threadinfo=80848000, task=80854bd8)
Stack : 00000000 00000000 10008c70 00000000 10008c70 7fdd5e38 10008c70
004276e4
00000000 00000000 00000000 00000000 10008c70 00000000 7fdd5f9c
00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000003
00400034
00000004 00000020 00000005 00000002 00000006 00001000 00000007
000000
next reply other threads:[~2007-07-24 7:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 7:09 colin [this message]
2007-07-24 7:09 ` Linux 2.6.12 cannot run on 24K. Please give me some clues colin
2007-07-24 12:20 ` Maciej W. Rozycki
2007-07-26 7:03 ` [SPAM] " Markus Gothe
2007-07-26 7:03 ` Markus Gothe
2007-07-26 10:57 ` Maciej W. Rozycki
2007-07-29 15:13 ` Sergei Shtylyov
2007-07-30 3:45 ` colin
2007-07-30 3:45 ` colin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='014201c7cdc1$984e50c0$106215ac@realtek.com.tw' \
--to=colin@realtek.com.tw \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox