Seung-ho Lee - 2002-04-03

Hi all..

I've compiled pcmcia-3.1.33 on HHL 2.2.13 with no patches. I've just added below codes on m8xx_pcmcia.c because the Montavista shuted down available ftp site and I can find patches nowhere.

added code :

extern bd_t * mpc8xx_bdinfo;


#define BCSR1_PCVCTL4 ((uint)0x00080000)
#define BCSR1_PCVCTL5 ((uint)0x00040000)
#define BCSR1_PCVCTL6 ((uint)0x00020000)
#define BCSR1_PCVCTL7 ((uint)0x00010000)

and compile finished with no problems.
However, after uploading pcmcia_core.o module, m8xx_pcmcia.o module invokes kernel panic.

sh-2.03# /etc/rc.d/init.d/pcmcia start
Starting PCMCIA services: modulesLinux PCMCIA Card Services 3.1.33
kernel build: 2.2.14 # 6 Mon Mar 25 15:41:02 KST 2002
options: none
m8xx_ pcmcia: Version 0.03, 14-Feb-2000, Magnus Damm
m8xx_ pcmcia: RPX CLASSIC or RPX LITE using SLOT\_ B with IRQ 13.
NIP: C400B55C XER: 8000287F LR: C400BD08 REGS: c0d43c10 TRAP: 0300
MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0d42000[35] 'insmod' mm-textgreater pgd c0d53000 Last syscall: 128
last math 00000000
GPR00: 00000000 C0D43CC0 C0D42000 00000064 00000000 C0D43D08 C0D43D14 01000000
GPR08: 00000001 C4010000 00000000 0A7C0000 33F35B99 1001F0E0 100B1770 00000000
GPR16: 100AFA50 02108040 01341024 C40006A0 C40005B0 C4009190 C4010000 C4010000
GPR24: 00000001 C400BE34 00000001 C400C10C 00000000 FA200080 C0D43D08 00000017
Call backtrace:
C00EAA31 C400BD08 C400BE70 C4000128 C40002AC C400B358 C400BE90
C0010D74 C00022D0 10010000 10003344 100039D8 0FF094F8 00000000
Kernel panic: kernel access of bad area pc c400b55c lr c400bd08 address C tsk insmod/35
Rebooting in 180 seconds..

How can I operate my pcmcia card( Samsung magic lan, 11Mbps). And are there any patches available for my HHL?

Appreciate for any reply.