Problem of linux's kernel booting
Hello, I encounter a problem when booting linux 2.2.4 kernel on FADS860T board by ppcboot-2.0. After mounting NFS filesystem on my host, the follow message was printed in console: ## Booting image at ffe8 ... Image Name: Linux-2.4.4 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:457580 Bytes = 446.9 kB Load Address: Entry Point: Verifying Checksum ... OK Uncompressing Kernel Image ... OK Linux version 2.4.4 (yang at vlinux) (gcc version 2.95.3 20010315 (release/MontaVis ta)) #12 Tue Feb 3 19:37:20 CST 2004 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/nfs rw nfsroot=172.18.19.254:/opt/nfsfilesystem/ ip=172.18.19.253:172.18.19.254:172.18.19.1:255.255.255.0:vmlinux::off Decrementer Frequency: 3125000 Warning: real time clock seems stuck! Calibrating delay loop... 49.86 BogoMIPS Memory: 30868k available (920k kernel code, 336k data, 44k init, 0k highmem) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 CPM UART driver version 0.03 ttyS0 on SMC1 at 0x0280, BRG1 ttyS1 on SMC2 at 0x0380, BRG2 pty: 256 Unix98 ptys configured block: queued sectors max/low 20440kB/6813kB, 64 slots per queue eth0: CPM ENET Version 0.2 on SCC1, 44:00:00:00:00:00 CFI: Found no TQM8xxL Bank 0 device at location zero CFI: Found no TQM8xxL Bank 1 device at location zero CFI: Found no TQM8xxL Bank 2 device at location zero CFI: Found no TQM8xxL Bank 3 device at location zero TQM8xxL: No support flash chips found! NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 2048) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 13/2 on 172.18.19.254 Looking up port of RPC 15/2 on 172.18.19.254 VFS: Mounted root (nfs filesystem). Freeing unused kernel memory: 44k init Kernel panic: No init found. Try passing init= option to kernel. Rebooting in 180 seconds.. Would you like to tell me how to make NFS filesystem on my host, especialy how to config the init options of kenel? Thank you very much! Best regards, yang ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Error encountered when make of gcc-3.3.2
hi all, i am currently building my toolchain for powerpc i encountered the following error during MAKE could anyone help me out in this regard Thanks in advance ERROR if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /root/Thamarai/gcc-3.3.2/gcc/xgcc -B/root/Thamarai/gcc-3.3.2/gcc/ -B/usr/local/powerpc-linux/bin/ -B /usr/local/powerpc-linux/lib/ -isystem /usr/local/powerpc-linux/include -O2 -DIN_GCC -DCROSS_COMPIL E -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config -I./../include -f PIC -mstrict-align -DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o In file included from tconfig.h:22, from libgcc2.c:36: config/rs6000/linux.h:89:20: signal.h: No such file or directory In file included from tconfig.h:22, from libgcc2.c:36: config/rs6000/linux.h:98: error: parse error before stack_t config/rs6000/linux.h:98: warning: no semicolon at end of struct or union config/rs6000/linux.h:100: error: parse error before uc_sigmask config/rs6000/linux.h:100: warning: type defaults to `int' in declaration of `uc_sigmask' config/rs6000/linux.h:100: warning: data definition has no type or storage class config/rs6000/linux.h:99: error: storage size of `uc_mcontext' isn't known make[2]: *** [libgcc/./_muldi3.o] Error 1 make[2]: Leaving directory `/root/Thamarai/gcc-3.3.2/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/root/Thamarai/gcc-3.3.2/gcc' make: *** [all-gcc] Error 2 With Regards, Thamarai Selvan.G (: 91-22-27612571, 27621100 X 4115 Life - endless river of dreams, smiles in the portray of an artist - Thams ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
Where I can download the Linux kernel and u-boot patch for mpc8540 ? Thanks Michele ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
Where I can download the Linux kernel and u-boot patch for mpc8540 ? We have got a linux port from Motorola (for 8560ADS board), but I'm not sure if I'm allowed to give it away... We haven't yet tried to run it on the eval board. Anybody out there who has done this? Klaus Popp MEN Mikro Elektronik GmbH www.men.de -Original Message- From: owner-linuxppc-embedded at lists.linuxppc.org [mailto:owner-linuxppc-embedded at lists.linuxppc.org]On Behalf Of Michele.Pallaro at alcatel.it Sent: Thursday, February 05, 2004 8:45 AM To: linuxppc-embedded Subject: Linux kernel and u-boot for mpc8540 Where I can download the Linux kernel and u-boot patch for mpc8540 ? Thanks Michele ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
826x ATM
U?ytkownik Rune Torgersen napisa?: Has anybody got working code for using ATM on FCC1 on a 826x CPU? Our board has the same ATM impementation as the MPC826xADS boards, and I need a way to test if it actually works. we have one, but it's hardware dependend you'll have to make some modification specific to your phy,clocking,using of local bus etc... -- * * * * * * * * * * * * * per pedes ad astra! * * * * * * * * * * * * *mailto:krom at dgt-lab.com.pl ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
In message 9367F79C9DBB8147AD58A96C933F00869D5494 at men-exch.intra.men.de you wrote: We have got a linux port from Motorola (for 8560ADS board), but I'm not sure if I'm allowed to give it away... Please re-read the GPL. Of course you are allowed to give the Linux kernel sources away. This is free software. Best regards, Wolfgang Denk -- See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440 Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there.- Indira Gandhi ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
We have got a linux port from Motorola (for 8560ADS board), but I'm not sure if I'm allowed to give it away... Please re-read the GPL. Of course you are allowed to give the Linux kernel sources away. This is free software. Right. But I would prefer that the kernel sources can be downloaded from motorola directly, to avoid to many versions of the same thing... Klaus ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Error encountered when make of gcc-3.3.2
Thamarai, you need some patches to cross build gcc 3.x, but better use crosstool, it includes the patches needed, both for the compiler and glibc, and a script to build and install everything. http://www.kegel.com/crosstool/ Jaap-Jan On Thu, 2004-02-05 at 07:46, Thamarai Selvan wrote: hi all, i am currently building my toolchain for powerpc i encountered the following error during MAKE could anyone help me out in this regard Thanks in advance ERROR if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /root/Thamarai/gcc-3.3.2/gcc/xgcc -B/root/Thamarai/gcc-3.3.2/gcc/ -B/usr/local/powerpc-linux/bin/ -B /usr/local/powerpc-linux/lib/ -isystem /usr/local/powerpc-linux/include -O2 -DIN_GCC -DCROSS_COMPIL E -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./config -I./../include -f PIC -mstrict-align -DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o In file included from tconfig.h:22, from libgcc2.c:36: config/rs6000/linux.h:89:20: signal.h: No such file or directory In file included from tconfig.h:22, from libgcc2.c:36: config/rs6000/linux.h:98: error: parse error before stack_t config/rs6000/linux.h:98: warning: no semicolon at end of struct or union config/rs6000/linux.h:100: error: parse error before uc_sigmask config/rs6000/linux.h:100: warning: type defaults to `int' in declaration of `uc_sigmask' config/rs6000/linux.h:100: warning: data definition has no type or storage class config/rs6000/linux.h:99: error: storage size of `uc_mcontext' isn't known make[2]: *** [libgcc/./_muldi3.o] Error 1 make[2]: Leaving directory `/root/Thamarai/gcc-3.3.2/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/root/Thamarai/gcc-3.3.2/gcc' make: *** [all-gcc] Error 2 With Regards, Thamarai Selvan.G (: 91-22-27612571, 27621100 X 4115 Life - endless river of dreams, smiles in the portray of an artist - Thams -- next part -- --- gcc-3.3.1/gcc/config/rs6000/linux.h.orig2003-08-26 10:14:17.0 -0500 +++ gcc-3.3.1/gcc/config/rs6000/linux.h 2003-08-26 10:22:25.0 -0500 @@ -83,82 +83,7 @@ state data appropriately. See unwind-dw2.c for the structs. */ #ifdef IN_LIBGCC2 -#include signal.h - -/* During the 2.5 kernel series the kernel ucontext was changed, but - the new layout is compatible with the old one, so we just define - and use the old one here for simplicity and compatibility. */ - -struct kernel_old_ucontext { - unsigned long uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - struct sigcontext_struct uc_mcontext; - sigset_t uc_sigmask; -}; enum { SIGNAL_FRAMESIZE = 64 }; #endif -#define MD_FALLBACK_FRAME_STATE_FOR(CONTEXT, FS, SUCCESS) \ - do { \ -unsigned char *pc_ = (CONTEXT)-ra; \ -struct sigcontext *sc_;\ -long new_cfa_; \ -int i_;\ - \ -/* li r0, 0x; sc (sigreturn old) */ \ -/* li r0, 0x0077; sc (sigreturn new) */ \ -/* li r0, 0x; sc (rt_sigreturn old) */ \ -/* li r0, 0x00AC; sc (rt_sigreturn new) */ \ -if (*(unsigned int *) (pc_+4) != 0x4402) \ - break; \ -if (*(unsigned int *) (pc_+0) == 0x3800 \ - || *(unsigned int *) (pc_+0) == 0x3877) \ - { \ - struct sigframe { \ - char gap[SIGNAL_FRAMESIZE]; \ - struct sigcontext sigctx; \ - } *rt_ = (CONTEXT)-cfa;\ - sc_ = rt_-sigctx; \ - } \ -else if (*(unsigned int *) (pc_+0) == 0x3800 \ -|| *(unsigned int *) (pc_+0) == 0x38AC)\ - { \ - struct rt_sigframe {\ - char gap[SIGNAL_FRAMESIZE]; \ - unsigned long _unused[2];
gcc for ppc/predefined macros
I belive the problem is that you did not compile your cross-compiler correctly: $ ppc_7xx-cpp -dM /tmp/foo.h | grep pc #define __powerpc__ 1 #define __powerpc 1 #define powerpc 1 Make sure you do --target=powerpc-foo-linux when configuring gcc. Well, I have --target=powerpc-unknown-eabi, because I thought -linux is only needed for a full compiler with libc and all that. But you are probably right, the process for a cross-compiler described on penguinppc.org also has --target=powerpc-linux. Anyhow, except for this #define, the kernel compiled with the --target=powerpc-unknown-eabi gcc seems to work fine... -- Stefan Nickl Project Engineering Kontron Modular Computers Sudetenstr. 7 D-87600 Kaufbeuren Phone ++49/8341/803-294 ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
Michele, Support for mpc8540 is already in linuxppc-2.4 tree. see ppc.bkbits.net For uboot, go to sourceforge project. u-boot 1.0.0 supports 85xx processors. see http://sourceforge.net/projects/u-boot Eric. Michele.Pallaro at alcatel.it wrote: Where I can download the Linux kernel and u-boot patch for mpc8540 ? Thanks Michele ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Problem of linux's kernel booting
Have you tried running ELDK_FIXOWNER as root? Regards, James -Original Message- From: yang Sent: 05 February 2004 01:32 Subject: Problem of linux's kernel booting I encounter a problem when booting linux 2.2.4 kernel on FADS860T board by ppcboot-2.0. After mounting NFS filesystem on my host, the follow message was printed in console: ## Booting image at ffe8 ... Image Name: Linux-2.4.4 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:457580 Bytes = 446.9 kB Load Address: Entry Point: Verifying Checksum ... OK Uncompressing Kernel Image ... OK Linux version 2.4.4 (yang at vlinux) (gcc version 2.95.3 20010315 (release/MontaVis ta)) #12 Tue Feb 3 19:37:20 CST 2004 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/nfs rw nfsroot=172.18.19.254:/opt/nfsfilesystem/ ip=172.18.19.253:172.18.19.254:172.18.19.1:255.255.255.0:vmlinux::off Decrementer Frequency: 3125000 Warning: real time clock seems stuck! Calibrating delay loop... 49.86 BogoMIPS Memory: 30868k available (920k kernel code, 336k data, 44k init, 0k highmem) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 CPM UART driver version 0.03 ttyS0 on SMC1 at 0x0280, BRG1 ttyS1 on SMC2 at 0x0380, BRG2 pty: 256 Unix98 ptys configured block: queued sectors max/low 20440kB/6813kB, 64 slots per queue eth0: CPM ENET Version 0.2 on SCC1, 44:00:00:00:00:00 CFI: Found no TQM8xxL Bank 0 device at location zero CFI: Found no TQM8xxL Bank 1 device at location zero CFI: Found no TQM8xxL Bank 2 device at location zero CFI: Found no TQM8xxL Bank 3 device at location zero TQM8xxL: No support flash chips found! NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 2048) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 13/2 on 172.18.19.254 Looking up port of RPC 15/2 on 172.18.19.254 VFS: Mounted root (nfs filesystem). Freeing unused kernel memory: 44k init Kernel panic: No init found. Try passing init= option to kernel. Rebooting in 180 seconds.. Would you like to tell me how to make NFS filesystem on my host, especialy how to config the init options of kenel? Thank you very much! ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
[Linux-ATM-General] Announcement: MPHY now supported inmpc860sar
Quick question to you all... I walked through Pete's 8260 ATM driver, and I saw (as far as I can understand) that Pete's driver is set to support single PHY mode. So, the question here is: do we need Rodolfo Giometti's patch to be applied to mpc8260 ATM driver? It is obvious that different set-up should be applied for mpc8260 ATM driver MPHY mode anyway... Thank you for answers in advance. Regards, Zoran Stojsavljevic DKTS Pupin Telecom - Original Message - From: Gilad Rom [EMAIL PROTECTED] Sent: Monday, January 26, 2004 3:03 PM Subject: Re: [Linux-ATM-General] Announcement: MPHY now supported in mpc860sar And now for my next question - Do you think the driver should run on the 82xx family of chips? (e.g. 8260 and the likes) these guys have 2 Utopia-II ports with support for up to 31 devices per port. Coupled with this software, it could make for a highly efficient DSLAM. - Original Message - From: Alex Zeffertt ajz at cambridgebroadband.com Sent: Monday, January 26, 2004 3:59 PM Subject: Re: [Linux-ATM-General] Announcement: MPHY now supported in mpc860sar It is currently only supported in SAR mode, and in that mode there is an upper limit of 4 UTOPIA phys. However, there's no reason that support can't be added for MPHY in ESAR mode - in which the limit is 31 phys. I suspect that adding such support would be easier now that Rodolfo has done most of the work. PS I'm not the expert on this. Rodolfo's sourceforge username is zaigor. On Mon, 2004-01-26 at 13:51, Gilad Rom wrote: This is very exciting news! (well, for me it is) How many PHY's in parallel are we talking about here? - Original Message - From: Alex Zeffertt ajz at cambridgebroadband.com Sent: Monday, January 26, 2004 1:41 PM Subject: [Linux-ATM-General] Announcement: MPHY now supported in mpc860sar Just a quick note to say that multi-phy is now supported by the mpc860sar ATM driver, thanks to a patch by Rodolfo Giometti. Page: http://sourceforge.net/projects/mpc860sar/ ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
[Linux-ATM-General] Announcement: MPHY now supported inmpc860sar
Zoran I wouldn't imagine that the patch would apply to the mpc8260 driver and work. However, it would probably be useful to look at it for pointers if you were thinking of porting MPHY support to the mpc8260. BTW, to get the patch try cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/mpc860sar checkout -A atm # Top of tree is now MPHY cd atm cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/mpc860sar diff -u -r single-utopia-phy # compare with SPHY branch Alex On Thu, 2004-02-05 at 12:54, Zoran Stojsavljevic wrote: Quick question to you all... I walked through Pete's 8260 ATM driver, and I saw (as far as I can understand) that Pete's driver is set to support single PHY mode. So, the question here is: do we need Rodolfo Giometti's patch to be applied to mpc8260 ATM driver? It is obvious that different set-up should be applied for mpc8260 ATM driver MPHY mode anyway... Thank you for answers in advance. Regards, Zoran Stojsavljevic DKTS Pupin Telecom - Original Message - From: Gilad Rom gilad at romat.com To: Alex Zeffertt ajz at cambridgebroadband.com Cc: linux-atm-general at lists.sourceforge.net; linuxppc-embedded at lists.linuxppc.org Sent: Monday, January 26, 2004 3:03 PM Subject: Re: [Linux-ATM-General] Announcement: MPHY now supported inmpc860sar Okay. Thanks. And now for my next question - Do you think the driver should run on the 82xx family of chips? (e.g. 8260 and the likes) these guys have 2 Utopia-II ports with support for up to 31 devices per port. Coupled with this software, it could make for a highly efficient DSLAM. Gilad. - Original Message - From: Alex Zeffertt ajz at cambridgebroadband.com To: Gilad Rom gilad at romat.com Cc: linux-atm-general at lists.sourceforge.net; linuxppc-embedded at lists.linuxppc.org Sent: Monday, January 26, 2004 3:59 PM Subject: Re: [Linux-ATM-General] Announcement: MPHY now supported inmpc860sar It is currently only supported in SAR mode, and in that mode there is an upper limit of 4 UTOPIA phys. However, there's no reason that support can't be added for MPHY in ESAR mode - in which the limit is 31 phys. I suspect that adding such support would be easier now that Rodolfo has done most of the work. Alex PS I'm not the expert on this. Rodolfo's sourceforge username is zaigor. On Mon, 2004-01-26 at 13:51, Gilad Rom wrote: This is very exciting news! (well, for me it is) How many PHY's in parallel are we talking about here? Thanks, Gilad. - Original Message - From: Alex Zeffertt ajz at cambridgebroadband.com To: linux-atm-general at lists.sourceforge.net; linuxppc-embedded at lists.linuxppc.org Sent: Monday, January 26, 2004 1:41 PM Subject: [Linux-ATM-General] Announcement: MPHY now supported in mpc860sar Just a quick note to say that multi-phy is now supported by the mpc860sar ATM driver, thanks to a patch by Rodolfo Giometti. Page: http://sourceforge.net/projects/mpc860sar/ Alex ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Error encountered when make of gcc-3.3.2
Jaap-Jan Boor wrote: Thamarai, you need some patches to cross build gcc 3.x, but better use crosstool, it includes the patches needed, both for the compiler and glibc, and a script to build and install everything. http://www.kegel.com/crosstool/ Aw, shucks, thanks for the plug! (For the curious, the patch Jaap-Jan attached is documented at http://penguinppc.org/embedded/cross-compiling/ and isn't included in crosstool simply because crosstool includes glibc headers.) - Dan ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Problem in Cross compiling Pwlib for LINUX
Hi all, I work on embedded system based on MPC860L. I cross compiled PWLIB 1.5.2 in the following way: 1) Edit file ~/pwlib/configure, commenting the sentences = cannot check 2) $ ./configure --host=ppc-linux --target=ppc-linux 3) Edit file ~/pwlib/include/ptbuildopts.h and undefine: #undefine P_LDAP #undefine P_EXPAT //#define P_SSL 1 //#define USE_SYSTEM_SWAB 1 4) Edit file ~/pwlib/ptbuildopts.mak: CC=ppc-linux-gcc CPLUS=ppc-linux-g++ change ENDLIBS flag in this way: ENDLIBS += -lpthread -lcrypto -lresolv and setting flag as following: HAS_OPENSSL = HAS_OPENLDAP = HAS_EXPAT = HAS_SDL = TRY_1394AVC = TRY_1394DC = 5) Alter ~/pwlib/src/ptlib/unix/Makefile this: repalce: VIDEO_CAPTURE_SOURCE = video4linux.cxx with: VIDEO_CAPTURE_SOURCE = dummyvideo.cxx 6) $ make optnoshared I then compiled OpenH323 in the following way: 1) Edit file ~/pwlib/configure, commenting the sentences = cannot check 2) copy file for asnparser for x86 patform in PWLIB directory 3) add LDFLAGS += -L/opt/eldk/ppc_8xx/usr/lib/gcc-lib/ppc-linux/2.95.4/ to file ~/opnh323/openh323u.mak 3) make optnoshared The problem is that when I lanch example application ~/opnh323/samples/simple/obj_linux_ppc_r/simph323 a segnemtation fault verified. Do we have any suggestion? Do we have cross compiled in correct way? (I'am using eldk from denx) Could anyone explain me how I have to cross compile? Thanks ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Linux kernel and u-boot for mpc8540
On Thu, Feb 05, 2004 at 10:32:48AM +0100, eric lescouet wrote: Michele, Support for mpc8540 is already in linuxppc-2.4 tree. see ppc.bkbits.net Actually, the linuxppc-2.4 support is incomplete, there's no TSEC/FEC driver or other on-chip peripheral drivers in that tree to make it really useful. You could just use a PCI network card to nfsroot a filesystem and get started, though. http://www.metrowerks.com/MW/Develop/Embedded/Linux/BSP.htm has an 8560ADS BSP for download...it probably has some drivers for on-chip peripherals included. BTW, you'll need the following patch to linuxppc-2.4 to fix outbound PCI mem cycles: = arch/ppc/platforms/mpc85xx_ads_common.c 1.3 vs edited = --- 1.3/arch/ppc/platforms/mpc85xx_ads_common.c Thu Jan 22 12:58:25 2004 +++ edited/arch/ppc/platforms/mpc85xx_ads_common.c Thu Feb 5 09:10:34 2004@@ -316,8 +316,8 @@ pci-piwar2 = 0; pci-piwar3 = 0; - /* Setup 128M outbound mem window @ 0xe000 */ - pci-potar1 = 0x; + /* Setup 128M Phys:PCI 1:1 outbound mem window @ 0xe000 */ + pci-potar1 = (MPC85XX_ADS_PCI_LOWER_MEM 12) 0x000f; pci-potear1 = 0x; pci-powbar1 = (MPC85XX_ADS_PCI_LOWER_MEM 12) 0x000f; pci-powar1 = 0x8004401a; /* Enable, Mem R/W, 128M */ -Matt ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Interrupts on PPC 405Gr
On Fri, Feb 06, 2004 at 05:45:17PM +1100, MERRITT Nigel wrote: When calling request_irq, the irq number had to be 30, which is the bit in the UIC0_ER register that needs setting. I was passing it 5, which is the IRQ I wanted setting. When I changed the IRQ number to 30 it worked! I'm not sure if this is a screw up on my part for not passing the correct value in the first place, or an error in the Timesys kernel (surely the number passed in should be the IRQ required, not the bit position in the UIC registers). It's your error, just think what you have to pass to request_irq if you want to hook UART0 interrupt... IRQ5 - is _external_ (to the chip) interrupt line and NOT an interrupt number. _All_ UIC interrupts are external to the core (but not all of them are IRQx lines). Eugene. ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/