
On Tuesday 07 February 2006 22:56, Stefan Roese wrote:
Hmmm, I am pretty sure Ocotea linuxppc_2_4_devel worked a few month's ago (with U-Boot of course). I will give it a try tomorrow and let you know.
As it seems the current version doesn't compile for ocotea:
make[4]: Entering directory `/chroot/server/home/stefan/git/linuxppc_2_4_devel/drivers/net/ibm_emac' ppc_4xx-gcc -D__KERNEL__ -I/chroot/server/home/stefan/git/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/chroot/server/home/stefan/git/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405 -nostdinc -I /opt/eldk-3.1.1/usr/lib/gcc-lib/ppc-linux/3.3.3/include -DKBUILD_BASENAME=ibm_ocp_enet -c -o ibm_ocp_enet.o ibm_ocp_enet.c ibm_ocp_enet.c:158: error: parse error before "__res" ibm_ocp_enet.c:158: warning: type defaults to `int' in declaration of `__res' ibm_ocp_enet.c:158: warning: data definition has no type or storage class ibm_ocp_enet.c: In function `emac_init': ibm_ocp_enet.c:1981: error: `bd_t' undeclared (first use in this function) ibm_ocp_enet.c:1981: error: (Each undeclared identifier is reported only once ibm_ocp_enet.c:1981: error: for each function it appears in.) ibm_ocp_enet.c:1981: error: `bd' undeclared (first use in this function) make[4]: *** [ibm_ocp_enet.o] Error 1
If you don't get this error, your linuxppc_2_4_devel version is outdated. With this small patch below this is fixed and the ocotea boots again:
71a72
#include "asm/ppcboot.h" /* test-only: ocotea build */
## Booting image at 00200000 ... Image Name: Linux-2.4.25 Created: 2006-02-08 5:44:06 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 649445 Bytes = 634.2 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Linux version 2.4.25 (stefan@ubuntu) (gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)) #1 Wed Feb 8 06:41:37 CET 2006 IBM Ocotea port (MontaVista Software, Inc. source@mvista.com) On node 0 totalpages: 65536 zone(0): 65536 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/nfs rw nfsroot=192.168.1.1:/opt/eldk/ppc_4xx ip=192.168.80.2:192.168.1.1::255.255.0.0:ocotea:eth0:off panic=1 console=ttyS0,115200 Calibrating delay loop... 799.53 BogoMIPS Memory: 257000k available (976k kernel code, 320k data, 232k init, 0k highmem) Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode cache hash table entries: 16384 (order: 5, 131072 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 16384 (order: 4, 65536 bytes) Page-cache hash table entries: 65536 (order: 6, 262144 bytes) POSIX conformance testing by UNIFIX PCI: Probing PCI hardware Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0xfdfea200 (irq = 0) is a 16550A ttyS01 at 0xfdfe9300 (irq = 1) is a 16550A Generic RTC Driver v1.07 emac: IBM OCP EMAC Ethernet driver, version 2.1 Maintained by Benjamin Herrenschmidt benh@kernel.crashing.org mal0: Initialized, 8 tx channels, 4 rx channels zmii0: input 0 in SMII mode eth0: IBM emac, MAC 00:01:73:01:dd:ac eth0: Found Generic MII PHY (0x01) zmii0: input 1 in SMII mode eth1: IBM emac, MAC 00:01:73:01:dd:ad eth1: Found Generic MII PHY (0x02) zmii0: input 2 in SMII mode rgmii0: input 0 in RGMII mode eth2: IBM emac, MAC 00:01:73:01:dd:ae eth2: Found CIS8201 Gigabit Ethernet PHY (0x10) zmii0: input 3 in SMII mode rgmii0: input 1 in RGMII mode eth3: IBM emac, MAC 00:01:73:01:dd:af eth3: Found CIS8201 Gigabit Ethernet PHY (0x18) NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 2048 buckets, 16Kbytes TCP: Hash tables configured (established 16384 bind 32768) IP-Config: Complete: device=eth0, addr=192.168.80.2, mask=255.255.0.0, gw=255.255.255.255, host=ocotea, domain=, nis-domain=(none), bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath= NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 100003/2 on 192.168.1.1 eth0: Link is Up eth0: Speed: 100, Full duplex. Looking up port of RPC 100005/1 on 192.168.1.1 VFS: Mounted root (nfs filesystem). Freeing unused kernel memory: 232k init modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.25/modules.dep (No such file or directory) INIT: version 2.84 booting Welcome to DENX Embedded Linux Environment Press 'I' to enter interactive startup. Building the cache [ OK ] Mounting proc filesystem: [ OK ] Configuring kernel parameters: [ OK ] Setting clock : Wed Feb 8 08:38:58 MET 2006 [ OK ] Setting hostname ocotea: [ OK ] modprobe: Can't open dependencies file /lib/modules/2.4.25/modules.dep (No such file or directory) Activating swap partitions: [ OK ] Finding module dependencies: depmod: Can't open /lib/modules/2.4.25/modules.dep for writing [FAILED] Checking filesystems [ OK ] Mounting local filesystems: [ OK ] Enabling swap space: [ OK ] modprobe: Can't open dependencies file /lib/modules/2.4.25/modules.dep (No such file or directory) INIT: Entering runlevel: 3 Entering non-interactive startup Setting network parameters: [ OK ] Bringing up loopback interface: [ OK ] Starting system logger: [ OK ] Starting kernel logger: [ OK ] Initializing random number generator: [ OK ] Starting portmapper: [ OK ] Mounting NFS filesystems: [ OK ] Mounting other filesystems: [ OK ] Starting xinetd: [ OK ]
ocotea login:
Best regards, Stefan