Can't "up" my eth0
Hi, I am now succefully to bring up my kernel on my PPC440GP custom board, but I failed to up my eth0, the eth0 is link down after the kernel is booting up. There is no effect, after the command ifconfig eth0 up. Can anyone tell me what may be the root case, and what reason may cause the eth0 unstable, thanks a lot. below is my log: PPC 4xx OCP EMAC driver, version 3.53 mal0: initialized, 4 TX channels, 2 RX channels zmii0: bridge in RMII mode eth0: emac0, MAC 00:01:02:54:12:47 eth0: found Generic MII PHY (0x01) emac1: can't find PHY! mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 4, 65536 bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes) TCP: Hash tables configured (established 16384 bind 16384) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: Compressed image found at block 0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 120k init Starting pid 22, console /dev/teth0: link is down Starting pid 27, console /dev/ttyS1: '/bin/bash' Starting pid 26, console /dev/ttyS1: '/bin/application' ### Application running ... Starting pid 29, console /dev/ttyS1: '/bin/application' Thanks in advance! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060721/512f9975/attachment.htm
PPC440GP board hangs
Hi, After success uncompress the kernel to ram, it hangs, ## Transferring control to Linux (at address 000) Does anyone encounter the symton on PPC440GP? I double checked my external UART clock and system clock both in hareware and software, they are all right. the log buffer is as below: BDI>md 0x01ed5c4 100 001ed5c4 : 0x20322e36540159542 2.6 001ed5c8 : 0x2e313420774976544 .14 001ed5cc : 0x28726f6f678588271 (roo 001ed5d0 : 0x73696f6e 1936289646 sion 001ed5d4 : 0x20322e36540159542 2.6 001ed5d8 : 0x2e313420774976544 .14 001ed5dc : 0x28726f6f678588271 (roo 001ed5e0 : 0x6c646f7d 1818521469 ldo} 001ed5e4 : 0x61696e29 1634299433 ain) 001ed5e8 : 0x20286763539518819 (gc 001ed5ec : 0x63207665 1663071845 c ve 001ed5f0 : 0x6c646f7d 1818521469 ldo} 001ed5f4 : 0x61696e29 1634299433 ain) 001ed5f8 : 0x20286763539518819 (gc 001ed5fc : 0x63207665 1663071845 c ve 001ed600 : 0x5820054c 1478493516 X .L 001ed604 : 0x444b2034 1145774132 DK 4 001ed608 : 0x2f302034791683124 /0 4 001ed60c : 0x2e302e30774909488 .0.0 001ed610 : 0x5820054c 1478493516 X .L 001ed614 : 0x444b2034 1145774132 DK 4 001ed618 : 0x2f302034791683124 /0 4 001ed61c : 0x2e302e30774909488 .0.0 001ed620 : 0x2031383a540096570 18: 001ed624 : 0x31383a33825768499 18:3 001ed628 : 0x34204353874529619 4 CS 001ed62c : 0x54203630 1411397168 T 60 001ed630 : 0x2031383a540096570 18: 001ed634 : 0x31383a33825768499 18:3 001ed638 : 0x34204353874529619 4 CS 001ed63c : 0x54203630 1411397168 T 60 001ed640 : 0x6e652063 1852121187 ne c 001ed644 : 0x6865636b 1751475051 heck 001ed648 : 0x20696e20543780384 in 001ed64c : 0x6b65726e 1801810542 kern 001ed650 : 0x6e652063 1852121187 ne c 001ed654 : 0x6865636b 1751475051 heck 001ed658 : 0x20696e20543780384 in 001ed65c : 0x6b65726e 1801810542 kern 001ed660 : 0x656c206d 1701585005 el m 001ed664 : 0x6f64652e 1868850478 ode. 001ed668 : 0x0a3c343e171717694 .<4> 001ed66c : 0x504c4230 1347174960 PLB0 001ed670 : 0x3a204245975192645 : BE 001ed674 : 0x41523d30 1095908656 AR=0 001ed678 : 0x78303030 2016423984 x000 001ed67c : 0x30303030808464432 001ed680 : 0x32306563842032483 20ec 001ed684 : 0x30303030808464432 001ed688 : 0x36204143908083523 6 AC 001ed68c : 0x523d2020 1379737632 R= 001ed690 : 0x30783962813185378 0x9b 001ed694 : 0x30303030808464432 001ed698 : 0x30302042808460354 00 B 001ed69c : 0x4553523d 1163088445 ESR= 001ed6a0 : 0x20307830540047408 0x0 001ed6a4 : 0x63303030 1664102448 c000 001ed6a8 : 0x3030300a808464394 000. 001ed6ac : 0x3c343e50 1010056784 <4>P 001ed6b0 : 0x4f42303a 1329737786 OB0: 001ed6b4 : 0x20424541541214017 BEA 001ed6b8 : 0x523d3078 1379741816 R=0x 001ed6bc : 0x30303030808464432 001ed6c0 : 0x30303030808464432 001ed6c4 : 0x30303030808464432 001ed6c8 : 0x30303030808464432 001ed6cc : 0x20424553541214035 BES 001ed6d0 : 0x52303d30 1378893104 R0=0 001ed6d4 : 0x78303030 2016423984 x000 001ed6d8 : 0x30303030808464432 001ed6dc : 0x30204245807420485 0 BE 001ed6e0 : 0x5352313d 1397895485 SR1= 001ed6e4 : 0x30783030813183024 0x00 001ed6e8 : 0x30303030808464432 001ed6ec : 0x30300a3c808454716 00.< 001ed6f0 : 0x343e4f50876498768 4>OP 001ed6f4 : 0x42303a20 1110456864 B0: 001ed6f8 : 0x42454152 834962 BEAR 001ed6fc : 0x3d307830 1026586672 =0x0 001ed700 : 0x30303030808464432 001ed704 : 0x30303030808464432 001ed708 : 0x30303030808464432 001ed70c : 0x30303020808464416 000 001ed710 : 0x42535441 1112757313 BSTA 001ed714 : 0x543d3078 1413296248 T=0x 001ed718 : 0x30303030808464432 001ed71c : 0x30303030808464432 001ed720 : 0x0a3c343e171717694 .<4> 001ed724 : 0x4f6f7073 1332703347 Oops 001ed728 : 0x3a206d61975203681 : ma 001ed72c : 0x6368696e 1667787118 chin 001ed730 : 0x65206368 1696621416 e ch 001ed734 : 0x65636b2c 1701014316 eck, 001ed738 : 0x20736967544434535 sig 001ed73c : 0x3a203720975189792 : 7 001ed740 : 0x5b23315d 1529033053 [#1] 001ed744 : 0x0a3c343e171717694 .<4> 001ed748 : 0x4e49503a 1313427514 NIP: 001ed74c : 0x20433030541274160 C00 001ed750 : 0x30443946809777478 0D9F BDI> Any point on this is very appreciated! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060718/e88933da/attachment.htm
Failed to bring up the kernel on PPC440GP
The system hangs, after it print "## Transferring control to Linux (at address ) ..." I dump the log buf, but still can't find the root cause, can anyone give some advice, thanks. dump: BDI>md 0x012c5c4 0012c5c4 : 20322e36 2e313420 08726f6f 73696f6e 2.6.14 .roosion 0012c5d4 : 20322e36 2e313420 08726f6f 74406c6f 2.6.14 .root at lo 0012c5e4 : 63616c68 6f73742e 6c6f6361 6c646f6d calhost.localdom 0012c5f4 : 61696e29 20286763 63207665 5820454c ain) (gcc veX EL 0012c604 : 444b2034 2e302034 2e302e30 5820454c DK 4.0 4.0.0X EL 0012c614 : 444b2034 2e302034 2e302e30 2031b43a DK 4.0 4.0.0 1.: 0012c624 : 35353a32 30200353 54203230 2031b43a 55:20 .ST 20 1.: 0012c634 : 35353a32 30200353 54203230 6e452063 55:20 .ST 20nE c 0012c644 : 6865636b 20696e20 6b65726e 6e452063 heck in kernnE c 0012c654 : 6865636b 20696e20 6b65726e 656c206d heck in kernel m 0012c664 : 6f64652e 0a3c343e 504c4230 3a204245 ode..<4>PLB0: BE 0012c674 : 41523d30 78303030 30303030 32306563 AR=0x00020ec 0012c684 : 30303030 36204143 523d2020 30783962 6 ACR= 0x9b 0012c694 : 30303030 30302042 4553523d 20307830 00 BESR= 0x0 0012c6a4 : 63303030 3030300a 3c343e50 4f42303a c00.<4>POB0: 0012c6b4 : 20424541 523d3078 30303030 30303030 BEAR=0x0000 BDI> Thanks in advance! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060714/79996d24/attachment.htm
Fw: Failed to setup RMII ethernet on PPC4 40GP
Hi, I failed to setup RMII ethernet interface of the UBoot on my custom board -- PPC440GP, It always tell me "time out", and the wrong ethernet speed, why? I defined the MII and RMII macro in my config header, and still does not work. (Anyway, I success to setup a MII ethernet interface on the PPC405GP,should I change the RMII interface to MII on the hardware level?) logs: u-boot => tftp 0x10 tmp.img miiphy_register: non unique device name 'ppc_4xx_eth0' Waiting for PHY auto negotiation to complete. TIMEOUT ! done ENET Speed is 10 Mbps - HALF duplex connection TFTP from server 192.168.65.235; our IP address is 192.168.65.239 Filename 'tmp.img'. Load address: 0x10 Loading: T T Thanks & Regards! - Denny ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3G ? ? ? ?? ? ? ? 280 ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ? ? -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060712/752090b7/attachment.htm
Failed to initialize the ethernet on PPC4 40GP
Hi, A silly question, How can I add myself to the UBoot mailist, thanks! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060712/9eb4c1c0/attachment.htm
Failed to initialize the ethernet on PPC4 40GP
Sorry, It is the UBoot question, I will address this to the UBoot maillist the next time! After I add the environment valiable "ipaddr", this message disappeared,but the ethernet still not work (the MII on my custom board work on RMII mode). u-boot => tftp 0x10 u-boot.bin miiphy_register: non unique device name 'ppc_4xx_eth0' PHY speed read failed, assuming 10bT PHY duplex read failed, assuming half duplex ENET Speed is 10 Mbps - HALF duplex connection TFTP from server 192.168.65.235; our IP address is 192.168.65.239 Filename 'u-boot.bin'. Load address: 0x10 Loading: T T T T T T T T T T Retry count exceeded; starting again - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060710/71110785/attachment.htm
Failed to initialize the ethernet on PPC4 40GP
HI, Does anyone ecounter this failure,it always tell me "No ethernet found", why? - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060710/fa2b8693/attachment.htm
How do you set up a PPC440GX with a P HY on emac2 only?
Also, I failed to setup my PHY on the emac0,can anyone tell me how to setup the PHY on PPC440GP, thanks! Thanks & regards! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060704/e7aa6c76/attachment.htm
Can anyone tell me if it is a bug of the ELDK4.0?
Hi, I failed to compile the uboot on my 440GP platform, I set the compile switch as "-m440 -mcpu=440", But the interest thing is when I change the switch to "-m405 -mcpu=440", I can compile my uboot successfully, why? Also I find all the instructions are existed both in user manual of PPC_405 and PPC440. make[1]: Leaving directory `/opt/glacier_boot/post/cpu' ppc_4xx-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0xFFC4 -I/opt/glacier_boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk4.0/usr/bin/../lib/gcc/powerpc-linux/4.0.0/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m440 -mcpu=440 -msoft-float -c -o cpu/ppc4xx/start.o /opt/glacier_boot/cpu/ppc4xx/start.S /opt/glacier_boot/cpu/ppc4xx/start.S: Assembler messages: /opt/glacier_boot/cpu/ppc4xx/start.S:996: Error: Unrecognized opcode: `mfdccr' /opt/glacier_boot/cpu/ppc4xx/start.S:998: Error: Unrecognized opcode: `mtdccr' /opt/glacier_boot/cpu/ppc4xx/start.S:1016: Error: Unrecognized opcode: `mtdccr' /opt/glacier_boot/cpu/ppc4xx/start.S:1027: Error: Unrecognized opcode: `mticcr' /opt/glacier_boot/cpu/ppc4xx/start.S:1033: Error: Unrecognized opcode: `mticcr' /opt/glacier_boot/cpu/ppc4xx/start.S:1039: Error: Unrecognized opcode: `mficcr' /opt/glacier_boot/cpu/ppc4xx/start.S:1050: Error: Unrecognized opcode: `mtdccr' /opt/glacier_boot/cpu/ppc4xx/start.S:1059: Error: Unrecognized opcode: `mtdccr' /opt/glacier_boot/cpu/ppc4xx/start.S:1064: Error: Unrecognized opcode: `mfdccr' make: *** [cpu/ppc4xx/start.o] Error 1 [root at localhost glacier_boot]# -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060628/36e1b81d/attachment.htm
Need help on ftp and telnet in my Ramdisk
Yes, it is the root cause, thanks Lee! Thanks & Regards! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060627/296ff157/attachment.htm
Need help on ftp and telnet in my Ramdisk
Hi, 1. I copied the ftp and telnet commands to my /bin, and the needed library is also copied to my /lib, but they still don't work so far, can anybody tell me why, thanks! logs: ... RAMDISK: Compressed image found at block 0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 120k init init started: BusyBox v1.1.3 (2006.06.23-09:32+) multi-call binary Bad inittab entry: :reth0: link is up, 100 FDX Starting pid 23, console /dev/ttyS1: '/bin/application' Starting pid 24, console /dev/ttyS1: '/bin/bash' ### Application running ... bash-3.00# ] bash: ]: command not found bash-3.00# bash-3.00# bash-3.00# bash-3.00# bash-3.00# ftp 192.168.65.143 ftp: ftp/tcp: unknown service bash-3.00# telnet 192.168.65.143 telnet: telnet: bad port Starting pid 29, console /dev/ttyS1: '/bin/application' Starting pid 30, console /dev/ttyS1: '/bin/bash' ### Application running ... Starting pid 33, console /dev/ttyS1: '/bin/bash' Starting pid 32, console /dev/ttyS1: '/bin/application' ### Application running ... bash-3.00# Thanks! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060627/0745e7ec/attachment.htm
Need help on adding a command to my ramdi sk
Hi, Since there is no "ldd" command in busybox1.1.3, so I copied it from ELDK4.0 to my bin, but it didn't work, can anybody tell me how to add a new command to my ramdisk ? bash-3.00# ldd /bin/ftp sh: applet not found bash-3.00# - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060627/ccd60608/attachment.htm
Need help on adding a command to my ramdi sk
Hi, Since there is no "ldd" command in busybox1.1.3, so I copied it from ELDK4.0 to my bin, but it didn't work, can anybody tell me how to add a new command to my ramdisk ? bash-3.00# ldd /bin/ftp sh: applet not found bash-3.00# - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060627/04cab4ea/attachment.htm
Need help on ftp and telnet in my Ramdisk
Hi, 1. I copied the ftp and telnet commands to my /bin, and the needed library is also copied to my /lib, but they still don't work so far, can anybody tell me why, thanks! logs: ... RAMDISK: Compressed image found at block 0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 120k init init started: BusyBox v1.1.3 (2006.06.23-09:32+) multi-call binary Bad inittab entry: :reth0: link is up, 100 FDX Starting pid 23, console /dev/ttyS1: '/bin/application' Starting pid 24, console /dev/ttyS1: '/bin/bash' ### Application running ... bash-3.00# ] bash: ]: command not found bash-3.00# bash-3.00# bash-3.00# bash-3.00# bash-3.00# ftp 192.168.65.143 ftp: ftp/tcp: unknown service bash-3.00# telnet 192.168.65.143 telnet: telnet: bad port Starting pid 29, console /dev/ttyS1: '/bin/application' Starting pid 30, console /dev/ttyS1: '/bin/bash' ### Application running ... Starting pid 33, console /dev/ttyS1: '/bin/bash' Starting pid 32, console /dev/ttyS1: '/bin/application' ### Application running ... bash-3.00# Thanks! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060627/46130edf/attachment.htm
Help -- failed to boot up kernel on PPC40 5
Dear Denk, I use the linux 2.6.14 of your website, and compile it with the ELDK4.0 succesfully, but when I download it to my PPC405 board, it stopped after initialized the MMU, and encounter an exception in "_start_here". Logs: u-boot => tftpboot 0x600 uImage miiphy_register: non unique device name 'ppc_4xx_eth0' ENET Speed is 100 Mbps - FULL duplex connection TFTP from server 192.168.65.235; our IP address is 192.168.65.239 Filename 'uImage'. Load address: 0x600 Loading: # # done Bytes transferred = 521637 (7f5a5 hex) u-boot => bootm 0x600 ## Booting image at 0x0600 ... Image Name: Linux-2.6.14 Created: 2006-06-09 1:00:37 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:521573 Bytes = 509.3 kB Load Address: 0x0010 Entry Point: 0x0010 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Now starting to boot the kernel... ## Current stack ends at 0x07F81A90 => set upper limit to 0x0080 ## cmdline at 0x007FFF00 ... 0x007FFF00 memstart= 0x memsize = 0x0800 flashstart = 0xFFFA flashsize = 0x0108 flashoffset = 0x00029300 sramstart = 0x sramsize= 0x bootflags = 0xA000 procfreq=200 MHz plb_busfreq =100 MHz pci_busfreq = 33.333 MHz ethaddr = 00:01:02:54:12:47 IP addr = 192.168.65.239 baudrate= 9600 bps Ramdisk image not found, no initrd! ## Transferring control to Linux (at address 0x0010) ... booting kernel with FLAT_TREE... NIP: C000221C XER: 2000 LR: 00100018 REGS: 07f819a0 TRAP: 0700 DAR: 07FC31D0 MSR: 00021030 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11 GPR00: C0002218 07F81A90 C3C0 C000 007FFF00 007FFF00 GPR08: 07FAB560 0BEBC200 20BDE736 07FD0D00 007FFF00 GPR16: 0010 07FCF70C 0080 007FFF00 07FCAE20 0002 GPR24: 07F81B50 007FFE70 0078 007FFF00 007FFF00 007FFE70 ** Illegal Instruction ** Call backtrace: Program Check Exception U-Boot 1.1.4 (Jun 9 2006 - 09:36:28) ... ... My objdump file is as the following: ... c0002208: 7c 00 04 ac sync c000220c: 4c 00 00 64 rfi c0002210: 48 00 00 00 b c0002210 c0002214 : c0002214: 4e 80 00 20 blr c0002218 : c0002218: 3c 40 c0 0f lis r2,-16369 c000221c: 60 42 17 60 ori r2,r2,5984 c0002220: 3c 82 40 00 addis r4,r2,16384 c0002224: 38 84 01 c8 addi r4,r4,456 ... Best Regards! - Denny -- next part -- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060609/8bff30f2/attachment.htm