View previous topic :: View next topic |
Author |
Message |
nascentmind n00b
Joined: 09 Aug 2010 Posts: 3
|
Posted: Mon Aug 09, 2010 7:12 pm Post subject: IBM 405gp boot problem. |
|
|
Hi,
I am using a IBM 405gp eval board having IBM openbios/openfirmware. I am able to bootup to the loader and then it gets stuck. I have also tried by passing serial console ttyS0 with baud rate of 9600 to it as kernel parameter.
Output:
Code: | EMAC Ethernet Test OK.
Serial Port 2 [S2] test complete - TEST PASSED
ENET Speed is 100 Mbs...
FULL duplex connection
Booting from [ENET] Ethernet ...
Sending bootp request ...
Loading file "treeimagewalnut" ...
Sending tftp boot request ...
Transfer Complete ...
Loaded successfully ...
Entry point at 0x4000360 ...
Memory <- <0x0 0x8000000> (128MB)
CPU clock-frequency <- 0xbeb73e0 (200MHz)
CPU timebase-frequency <- 0xbeb73e0 (200MHz)
/plb: clock-frequency <- 5f5b9f0 (100MHz)
/plb/opb: clock-frequency <- 2fadcf8 (50MHz)
/plb/ebc: clock-frequency <- 2fadcf8 (50MHz)
/plb/opb/serial@ef600300: clock-frequency <- a8c000 (11MHz)
/plb/opb/serial@ef600400: clock-frequency <- a8c000 (11MHz)
ethernet0: local-mac-address <- 00:04:ac:e3:0f:b0
zImage starting: loaded at 0x04000000 (sp: 0x046b0fa0)
Allocating 0x1099128 bytes for kernel ...
gunzipping (0x00000000 <- 0x0400f000:0x046af553)...done 0xdc7ac0 bytes
Linux/PowerPC load:
Finalizing device tree... flat tree at 0x46bd180 |
How can I fix this? |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Fri Aug 13, 2010 2:07 pm Post subject: |
|
|
It's hard to say what is actually going wrong. It could be the kernel locking up. It could be that your initial console isn't being set correctly. It could be that your device tree is wrong for your device and needs patching.
To start, which kernel are you using?
Can you setup ethernet kernel debugging? _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
nascentmind n00b
Joined: 09 Aug 2010 Posts: 3
|
Posted: Fri Aug 13, 2010 4:51 pm Post subject: |
|
|
I tried with the vanilla kernel and gentoo sources. Both get stuck. I have used the device tree as is present in the kernel source as well as AMCC's device tree blob(converted it to device tree source using the device tree compiler).
I have not setup ethernet kernel debugging yet.
What I have tried is connect a keyboard to the ps/2 port and click on numlock to see if it lights up. It doesn't. Second I tried to dump memory just before the console_ops.close() is called in boot/main.c to see if anything was written by the kernel to the RAM after a soft reboot(note: The bios doesn't have a memory dump option). I didn't find anything intelligible. I tried commenting the console_ops.close(). It still doesn't work. |
|
Back to top |
|
|
blob999 n00b
Joined: 07 Jun 2009 Posts: 64 Location: NATO area
|
Posted: Fri Aug 13, 2010 11:40 pm Post subject: |
|
|
Is it a DHT or an IBM eval board ?
Where did you get your own boot kernel?
Are you following the Flameman's wiki page?
see ya,
=== ===
ppc user: Gentoo PPC / CRUX PPC
=== === _________________ LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/ |
|
Back to top |
|
|
nascentmind n00b
Joined: 09 Aug 2010 Posts: 3
|
Posted: Sat Aug 14, 2010 8:10 am Post subject: |
|
|
Quote: | Is it a DHT or an IBM eval board ? |
Its an IBM eval board. Its written on the processor as evaluation.
Quote: | Where did you get your own boot kernel? |
I cross compiled the gentoo sources and vanilla kernel. I set up a cross compiler as given in the gentoo docs.
Flameman is using uboot. I have a rudimentary openbios/openfirmware and it shows a rom monitor. Debugging has to be done with a RISCWatch Debugger or JTAG both I wouldn't be able to get.
Is there any way for the kernel to prevent reinitializing the console and use what is initialized to show the initial loader messages? |
|
Back to top |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Tue Apr 26, 2011 12:12 pm Post subject: |
|
|
hello
i suggest you to hack the kernel in order to force a fixed configuration of the console
i did this modification in a board pretty similar to yours
p.s.
i also suggest ypu to replace the firmware with uboot
p.s.2
newer (>= 2.6.25) kernels also need a pretty wrapper in oder to be right configured in the early boot process
-> i suggest the kerne version i used in my dht-walnut project
(it is not so old, anyway it will be used as "production kernel"
in a NAS project which i am working during my free time
the NAS has 3 DHT-walnut boards and 1 IBM-walnut, all puted inside a big atx case
to control 2x3 sATA software raid mirrored hard drive
exporting a lot of services on demand
just to say "that old kernel is a pretty rock stage kernel")
Last edited by flameman on Tue Apr 26, 2011 12:22 pm; edited 1 time in total |
|
Back to top |
|
|
flameman n00b
Joined: 10 Apr 2011 Posts: 39
|
Posted: Tue Apr 26, 2011 12:17 pm Post subject: |
|
|
nascentmind wrote: | Quote: | Is it a DHT or an IBM eval board ? |
Its an IBM eval board. Its written on the processor as evaluation.
|
it should be the ibm walnut, pretty similar to my dht-walnut: that means that the -wiggle-jtag- i presented in my wiki is pretty working for your board
-> you could also replace the firmware just unplugging the flash and manually program it in a flash programmer (30 euro on ebay)
-> you could use the wiggle to replace the firmware (NOTE, the wiggle software i presented is only for windows XP/2000 and it is not able to backup ypur original firmware image ... so) |
|
Back to top |
|
|
|