About bad pte error

Wentao Xu xuwentao at yahoo.com
Wed Jun 21 18:09:00 EST 2000

I am trying to port linux for IBM405GP to my board(
IBM PPC401, 24M memory, no
PCI), I map the kernel to 0xB0000000, and it seems ok
until a bad pte error
occurs during starting the
shell(execve("/sbin/sash",..))from ramdisk. After
that,sometime CPU entered machine check exception,
sometime print a long train
of messages. And the value following "bad pte" varies
from 0x2xxxxxxx to 0xf3xxxxxxx.
I dont know what causes bad pte error. Which friends
can tell me ? Thanks.

Xu Wentao

Here is the output during boot:

Entry point at 0x250000 ...

-----  treeboot  VUFX  ftr.04.30.00.a  -----

imageSect_start   = 0x002578e4
imageSect_size    = 0x000b8ba8
initrdSect_start  = 0x0031048c
initrdSect_size   = 0x00200000
---  010  ---
Initial RAM disk loading at physaddr 0x00e00000
(2097152 bytes)
dst = 0x00000000, im = 0x002578e4, len = 0x000b8ba8
---  040  ---

first instructions of linux unpacked into RAM:

---  050  ---
----------  progress:  0x200 id mach(): done
Linux version 2.3.39 (xwt at stb_dev) (gcc version 2.95.2
19991024 (release)) #258
Wed Jun 21 15:43:17 CST 2000
----------  progress:  0x3eab arch: exit
On node 0 totalpages: 00001800
zone(0): 6144 pages.
zone(1): 0 pages.
zone(2): 0 pages.
ERROR: ppc4xx_pic_init() detected wrong PVR_VER

-----  in walnut_calibrate_decr()


    bi_s_version      1.3
    bi_r_version      1.13
    bi_memsize        0x1800000
    bi_enetaddr       123456-7890ab
    bi_pci_enetaddr   000002-f34f60
    bi_procfreq       0x2f34f60
    bi_plb_busfreq    0x4e800021
    bi_pci_busfreq    0x0

FTR_CPU_FREQ_HACK - walnut_calibrate_decr(), fixing up

    bi_procfreq       0xbebc200
    bi_plb_busfreq    0x3ef1480
    bi_pci_busfreq    0x1f78a40

Calibrating delay loop... 8.19 BogoMIPS
Memory: 21000k available (548k kernel code, 508k data,
28k init) [b0000000,b1800
Buffer-cache hash table entries: 1024 (order: 0, 4096
Page-cache hash table entries: 8192 (order: 3, 32768
POSIX conformance testing by UNIFIX
----------  progress:  0xffff
Linux NET4.0 for Linux 2.3
Based upon Swansea University Computer Society
Starting kswapd v1.6
usb.c: registered new driver hub
usb.c: registered new driver usb_mouse
usb.c: registered new driver keyboard
tty_init() -- calling rs_init()
Serial driver version 4.91 (1999-11-17) with no serial
options enabled
ttyS00 at 0x0000 (irq = 0) is a 16550A
tty_init() -- returned from rs_init()
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
loop: registered device at major 7
loop: enabling 8 loop devices
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048 blocks [1 disk] into ram disk...
Freeing initrd memory: 0k freed
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 28k init
exec.c:291: bad pte 8069ead4.
do_wp_page: bogus page at address 7fffffb0 (nr 525982)
do_wp_page: bogus page at address 7fffffb0 (nr 525982)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list