* RE: Linuxppc-embedded Digest, Vol 8, Issue 56
@ 2005-04-21 5:52 Atit_Shah
2005-04-21 7:19 ` MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing Sam Song
2005-04-21 22:53 ` Kishore Devireddy
0 siblings, 2 replies; 17+ messages in thread
From: Atit_Shah @ 2005-04-21 5:52 UTC (permalink / raw)
To: kishorekrd; +Cc: linuxppc-embedded
Hi Kishore,
There are various things you can try.
1. Check your log buffer...your console may not be initialized yet so
all your printk are logged at a particular memory location. Checkout the
System.map file in the Linux folder for "log_buf". The address that you
have there subtract it with the kernel base address. Then in view your
memory at that location. We used U-Boot so we gave the command
=09
md <log_buff address>
2. We used a tool called Code Warrior which helped us single step debug
the code, it didn't help us much though.
3. We had a problem with the RAM in burst mode. WolfGang would suggest
you check out if your RAM is operational. In our case we had to set some
flag in the U-Boot code for RAM in burst mode. We changed this flag and
it boots fine. Well almost.
Atit
Message: 5
Date: Wed, 20 Apr 2005 18:00:46 -0700
From: Kishore Devireddy <kishorekrd@gmail.com>
Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
uncompressing
To: linuxppc-embedded@ozlabs.org
Message-ID: <2cf2641f0504201800556805d2@mail.gmail.com>
Content-Type: text/plain; charset=3DISO-8859-1
Hi
I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
powerpc board,
which is similar to Artis A3000 board. This board has
mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
U-boot for A3000 borad. U-boot worked on my board also. Next I
compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
linux hangs after uncompressing
U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
CPU: MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
Board: A3000 Local Bus at 99.999 MHz
I2C: ready
DRAM: 16 MB
FLASH: Get flash bank 0 @ 0xffc00000
Manuf. ID @ 0xff800000: 0x00000089
Device ID @ 0xff800001: 0x00000016
## Flash bank 0 at 0xffc00000 sizes: 0x00400000
protect monitor fff00000 @ 40000
protect environtment fffc0000 @ 20000
## Final Flash bank sizes: 00400000
4 MB
00 13 100b 0020 0200 ff
In: serial
Out: serial
Err: serial
Net: natsemi: EEPROM contents:
ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
dp83815#0
Warning: dp83815#0 MAC addresses don't match:
Address in SROM is FF:FF:FF:FF:FF:FF
Address in environment is 00:40:05:B0:F1:BA
A3000> tftpboot 400000 uImage.eldk
Using dp83815#0 device
TFTP from server 192.168.1.124; our IP address is 192.168.1.54
Filename 'uImage.eldk'.
Load address: 0x400000
Loading:
#################################################################
#################################################################
###################
done
Bytes transferred =3D 757926 (b90a6 hex)
A3000> bootm
## Booting image at 00400000 ...
Image Name: Linux-2.4.25
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 757862 Bytes =3D 740.1 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
nothing happens after this until I reboot the board. I read u-boot FAQ
and configured bd_info structure same for both u-boot and Linux. I
found that CFG_IMMR is not applicable to MPC8245. I also used
clocks_in_mhz variable also before loading Linux. I am stuck here.
Could you please let me know what should I do next?
Thanks
Kishore
------------------------------
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
End of Linuxppc-embedded Digest, Vol 8, Issue 56
************************************************
DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-21 5:52 Linuxppc-embedded Digest, Vol 8, Issue 56 Atit_Shah
@ 2005-04-21 7:19 ` Sam Song
2005-04-21 7:46 ` Eugene Surovegin
2005-04-21 10:23 ` Wolfgang Denk
2005-04-21 22:53 ` Kishore Devireddy
1 sibling, 2 replies; 17+ messages in thread
From: Sam Song @ 2005-04-21 7:19 UTC (permalink / raw)
To: Atit_Shah, kishorekrd; +Cc: linuxppc-embedded
Atit_Shah <Atit_Shah@satyam.com> wrote:
> 1. Check your log buffer...your console may not be
> initialized yet so all your printk are logged at a
> particular memory location. Checkout the
> System.map file in the Linux folder for "log_buf".
> The address that you have there subtract it with
> the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave
> the command
>
> md <log_buff address>
Interesting to me as well. I also have such a similar
problem. But I wanna to know how I can return to
u-boot with software workaround after kernel hanging.
At least, I must power-off and power-on my target to
get back to u-boot console. If so, the last kernel
printk message would lost IMHO.
Thanks,
Sam
P.S. Atit_Shah, if possibel, pls set your subscribing
setting "...daily digest" as "no" to avoid reply
inconvenience on the title:)
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-21 7:19 ` MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing Sam Song
@ 2005-04-21 7:46 ` Eugene Surovegin
2005-04-21 10:23 ` Wolfgang Denk
1 sibling, 0 replies; 17+ messages in thread
From: Eugene Surovegin @ 2005-04-21 7:46 UTC (permalink / raw)
To: Sam Song; +Cc: Atit_Shah, linuxppc-embedded, kishorekrd
On Thu, Apr 21, 2005 at 03:19:10PM +0800, Sam Song wrote:
> Interesting to me as well. I also have such a similar
> problem. But I wanna to know how I can return to
> u-boot with software workaround after kernel hanging.
> At least, I must power-off and power-on my target to
> get back to u-boot console. If so, the last kernel
> printk message would lost IMHO.
Easy, use BDI (or any other hw debugger) and reset target when it
hangs.
--
Eugene
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-21 7:19 ` MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing Sam Song
2005-04-21 7:46 ` Eugene Surovegin
@ 2005-04-21 10:23 ` Wolfgang Denk
1 sibling, 0 replies; 17+ messages in thread
From: Wolfgang Denk @ 2005-04-21 10:23 UTC (permalink / raw)
To: Sam Song; +Cc: linuxppc-embedded
In message <20050421071910.46237.qmail@web15808.mail.cnb.yahoo.com> you wrote:
>
> Interesting to me as well. I also have such a similar
> problem. But I wanna to know how I can return to
> u-boot with software workaround after kernel hanging.
Press the reset button?
> At least, I must power-off and power-on my target to
> get back to u-boot console. If so, the last kernel
> printk message would lost IMHO.
Isn't there a way to perform a hardware reset (by pressing the reset
button, or through a JTAG debugger) ?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
You see things; and you say ``Why?'' But I dream things that never
were; and I say ``Why not?''
- George Bernard Shaw _Back to Methuselah_ (1921) pt. 1, act 1
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-21 5:52 Linuxppc-embedded Digest, Vol 8, Issue 56 Atit_Shah
2005-04-21 7:19 ` MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing Sam Song
@ 2005-04-21 22:53 ` Kishore Devireddy
1 sibling, 0 replies; 17+ messages in thread
From: Kishore Devireddy @ 2005-04-21 22:53 UTC (permalink / raw)
To: Atit_Shah; +Cc: linuxppc-embedded
Hi
As you mentioned I checked my System.map file and found
c0199614 b log_buf
and checked the location 0x00199614 using BDI2000
BDI>md 0x000199600
00199600 : 00000000 00000000 00000000 00000000 ................
00199610 : 00000000 3c363e4d 656d6f72 79204241 ....<6>Memory BA
00199620 : 54206d61 7070696e 673a2042 4154323d T mapping: BAT2=3D
00199630 : 31364d62 2c204241 54333d30 4d622c20 16Mb, BAT3=3D0Mb,
00199640 : 72657369 6475616c 3a20304d 620a3c34 residual: 0Mb.<4
00199650 : 3e4c696e 75782076 65727369 6f6e2032 >Linux version 2
00199660 : 2e342e32 35202872 6f6f7440 4d616e64 .4.25 (root@Mand
00199670 : 72616b65 29202867 63632076 65727369 rake) (gcc versi
00199680 : 6f6e2033 2e332e33 20284445 4e582045 on 3.3.3 (DENX E
00199690 : 4c444b20 332e3120 332e332e 332d3829 LDK 3.1 3.3.3-8)
001996a0 : 29202337 20576564 20417072 20323020 ) #7 Wed Apr 20
001996b0 : 30313a33 393a3437 20504454 20323030 01:39:47 PDT 200
001996c0 : 350a3c36 3e4d6f74 6f726f6c 61205350 5.<6>Motorola SP
001996d0 : 53205361 6e64706f 696e7420 54657374 S Sandpoint Test
001996e0 : 20506c61 74666f72 6d0a3c36 3e506f72 Platform.<6>Por
001996f0 : 74206279 204d6f6e 74615669 73746120 t by MontaVista
BDI>md
00199700 : 536f6674 77617265 2c20496e 632e2028 Software, Inc. (
00199710 : 736f7572 6365406d 76697374 612e636f source@mvista.co
00199720 : 6d290a3c 343e4f6e 206e6f64 65203020 m).<4>On node 0
00199730 : 746f7461 6c706167 65733a20 34303936 totalpages: 4096
00199740 : 0a3c343e 7a6f6e65 2830293a 20343039 .<4>zone(0): 409
00199750 : 36207061 6765732e 0a000000 00000000 6 pages.........
00199760 : 00000000 00000000 00000000 00000000 ................
00199770 : 00000000 00000000 00000000 00000000 ................
00199780 : 00000000 00000000 00000000 00000000 ................
00199790 : 00000000 00000000 00000000 00000000 ................
001997a0 : 70656e50 49432056 65727369 6f6e2031 penPIC Version 1
001997b0 : 2e322028 31204350 55732061 6e642031 .2 (1 CPUs and 1
001997c0 : 31204952 5120736f 75726365 73292061 1 IRQ sources) a
001997d0 : 74206664 66643030 30300a00 00000000 t fdfd0000......
001997e0 : 00000000 00000000 00000000 00000000 ................
001997f0 : 00000000 00000000 00000000 00000000 ................
But it does not say much here. Any help on this???????????
I also enabled CONFIG_SERIAL_TEXT_DEBUG, but I did not see any text
after uncompressing the linux.
As mentioned in your 3rd point "some flag in the U-Boot code for RAM
in burst mode.". What is that flag actually? Coulnd you let me know?
Thanks
Kishore
On 4/20/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
>=20
> Hi Kishore,
>=20
> There are various things you can try.
>=20
> 1. Check your log buffer...your console may not be initialized yet so
> all your printk are logged at a particular memory location. Checkout the
> System.map file in the Linux folder for "log_buf". The address that you
> have there subtract it with the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave the command
>=20
> md <log_buff address>
>=20
> 2. We used a tool called Code Warrior which helped us single step debug
> the code, it didn't help us much though.
>=20
> 3. We had a problem with the RAM in burst mode. WolfGang would suggest
> you check out if your RAM is operational. In our case we had to set some
> flag in the U-Boot code for RAM in burst mode. We changed this flag and
> it boots fine. Well almost.
>=20
> Atit
>=20
>=20
> Message: 5
> Date: Wed, 20 Apr 2005 18:00:46 -0700
> From: Kishore Devireddy <kishorekrd@gmail.com>
> Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
> uncompressing
> To: linuxppc-embedded@ozlabs.org
> Message-ID: <2cf2641f0504201800556805d2@mail.gmail.com>
> Content-Type: text/plain; charset=3DISO-8859-1
>=20
> Hi
>=20
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
> powerpc board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
>=20
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
>=20
> CPU: MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
> Board: A3000 Local Bus at 99.999 MHz
> I2C: ready
> DRAM: 16 MB
> FLASH: Get flash bank 0 @ 0xffc00000
> Manuf. ID @ 0xff800000: 0x00000089
> Device ID @ 0xff800001: 0x00000016
> ## Flash bank 0 at 0xffc00000 sizes: 0x00400000
> protect monitor fff00000 @ 40000
> protect environtment fffc0000 @ 20000
> ## Final Flash bank sizes: 00400000
> 4 MB
> 00 13 100b 0020 0200 ff
> In: serial
> Out: serial
> Err: serial
> Net: natsemi: EEPROM contents:
> ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
> dp83815#0
> Warning: dp83815#0 MAC addresses don't match:
> Address in SROM is FF:FF:FF:FF:FF:FF
> Address in environment is 00:40:05:B0:F1:BA
>=20
> A3000> tftpboot 400000 uImage.eldk
> Using dp83815#0 device
> TFTP from server 192.168.1.124; our IP address is 192.168.1.54
> Filename 'uImage.eldk'.
> Load address: 0x400000
> Loading:
> #################################################################
> #################################################################
> ###################
> done
> Bytes transferred =3D 757926 (b90a6 hex)
> A3000> bootm
> ## Booting image at 00400000 ...
> Image Name: Linux-2.4.25
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 757862 Bytes =3D 740.1 kB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
>=20
> nothing happens after this until I reboot the board. I read u-boot FAQ
> and configured bd_info structure same for both u-boot and Linux. I
> found that CFG_IMMR is not applicable to MPC8245. I also used
> clocks_in_mhz variable also before loading Linux. I am stuck here.
> Could you please let me know what should I do next?
>=20
> Thanks
> Kishore
>=20
> ------------------------------
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
> End of Linuxppc-embedded Digest, Vol 8, Issue 56
> ************************************************
>=20
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of th=
e intended recipient/s and may contain material that is CONFIDENTIAL AND PR=
IVATE COMPANY INFORMATION. Any review or reliance by others or copying or d=
istribution or forwarding of any or all of the contents in this message is =
STRICTLY PROHIBITED. If you are not the intended recipient, please contact =
the sender by email and delete all copies; your cooperation in this regard =
is appreciated.
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-22 6:49 Sam Song
0 siblings, 0 replies; 17+ messages in thread
From: Sam Song @ 2005-04-22 6:49 UTC (permalink / raw)
To: Atit_Shah, Kishore Devireddy; +Cc: linuxppc-embedded
Atit_Shah <Atit_Shah@satyam.com> wrote:
> All I know is PSDMR is for 8260 and it pertains to
> burst mode operation. I don’t know MCCR :)
OK, get it. Your experience is about 8260 not for
824x.
Thanks,
Sam
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-22 6:20 Atit_Shah
0 siblings, 0 replies; 17+ messages in thread
From: Atit_Shah @ 2005-04-22 6:20 UTC (permalink / raw)
To: Sam Song, Kishore Devireddy; +Cc: linuxppc-embedded
All I know is PSDMR is for 8260 and it pertains to burst mode operation. =
I don=A1=AFt know MCCR :)
-----Original Message-----
From: Sam Song [mailto:samlinuxppc@yahoo.com.cn]=20
Sent: Friday, April 22, 2005 11:05 AM
To: Atit_Shah; Kishore Devireddy
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: MPC8245 custom board, Linux 2.4 kernel hangs after =
uncompressing
Atit_Shah <Atit_Shah@satyam.com> wrote=A3=BA
> What we did was verified the value of PSDMR register
> value found in your board specific header file in
> include/configs/<boardname.h>
Ummm, PSDMR register is for 8260 perhaps? I even=20
didn't find it in 8245UM. Do you mean MCCR of 8245?
Thanks,
Sam
_________________________________________________________
Do You Yahoo!?
150=CD=F2=C7=FAMP3=B7=E8=BF=F1=CB=D1=A3=AC=B4=F8=C4=FA=B4=B3=C8=EB=D2=F4=C0=
=D6=B5=EE=CC=C3
http://music.yisou.com/
=C3=C0=C5=AE=C3=F7=D0=C7=D3=A6=D3=D0=BE=A1=D3=D0=A3=AC=CB=D1=B1=E9=C3=C0=CD=
=BC=A1=A2=D1=DE=CD=BC=BA=CD=BF=E1=CD=BC
http://image.yisou.com
1G=BE=CD=CA=C71000=D5=D7=A3=AC=D1=C5=BB=A2=B5=E7=D3=CA=D7=D4=D6=FA=C0=A9=C8=
=DD=A3=A1
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mai=
l_1g/
DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-22 4:28 Atit_Shah
2005-04-22 5:35 ` Sam Song
0 siblings, 1 reply; 17+ messages in thread
From: Atit_Shah @ 2005-04-22 4:28 UTC (permalink / raw)
To: Kishore Devireddy; +Cc: linuxppc-embedded
>From the log I gather that there is no exception. That's good news
What we did was verified the value of PSDMR register value found in your
board specific header file in include/configs/<boardname.h>
We changed this value and it worked fine. Its worth a try.
Atit
-----Original Message-----
From: Kishore Devireddy [mailto:kishorekrd@gmail.com]=20
Sent: Friday, April 22, 2005 4:23 AM
To: Atit_Shah
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8245 custom board, Linux 2.4 kernel hangs after
uncompressing
Hi
As you mentioned I checked my System.map file and found
c0199614 b log_buf
and checked the location 0x00199614 using BDI2000
BDI>md 0x000199600
00199600 : 00000000 00000000 00000000 00000000 ................
00199610 : 00000000 3c363e4d 656d6f72 79204241 ....<6>Memory BA
00199620 : 54206d61 7070696e 673a2042 4154323d T mapping: BAT2=3D
00199630 : 31364d62 2c204241 54333d30 4d622c20 16Mb, BAT3=3D0Mb,
00199640 : 72657369 6475616c 3a20304d 620a3c34 residual: 0Mb.<4
00199650 : 3e4c696e 75782076 65727369 6f6e2032 >Linux version 2
00199660 : 2e342e32 35202872 6f6f7440 4d616e64 .4.25 (root@Mand
00199670 : 72616b65 29202867 63632076 65727369 rake) (gcc versi
00199680 : 6f6e2033 2e332e33 20284445 4e582045 on 3.3.3 (DENX E
00199690 : 4c444b20 332e3120 332e332e 332d3829 LDK 3.1 3.3.3-8)
001996a0 : 29202337 20576564 20417072 20323020 ) #7 Wed Apr 20
001996b0 : 30313a33 393a3437 20504454 20323030 01:39:47 PDT 200
001996c0 : 350a3c36 3e4d6f74 6f726f6c 61205350 5.<6>Motorola SP
001996d0 : 53205361 6e64706f 696e7420 54657374 S Sandpoint Test
001996e0 : 20506c61 74666f72 6d0a3c36 3e506f72 Platform.<6>Por
001996f0 : 74206279 204d6f6e 74615669 73746120 t by MontaVista
BDI>md
00199700 : 536f6674 77617265 2c20496e 632e2028 Software, Inc. (
00199710 : 736f7572 6365406d 76697374 612e636f source@mvista.co
00199720 : 6d290a3c 343e4f6e 206e6f64 65203020 m).<4>On node 0
00199730 : 746f7461 6c706167 65733a20 34303936 totalpages: 4096
00199740 : 0a3c343e 7a6f6e65 2830293a 20343039 .<4>zone(0): 409
00199750 : 36207061 6765732e 0a000000 00000000 6 pages.........
00199760 : 00000000 00000000 00000000 00000000 ................
00199770 : 00000000 00000000 00000000 00000000 ................
00199780 : 00000000 00000000 00000000 00000000 ................
00199790 : 00000000 00000000 00000000 00000000 ................
001997a0 : 70656e50 49432056 65727369 6f6e2031 penPIC Version 1
001997b0 : 2e322028 31204350 55732061 6e642031 .2 (1 CPUs and 1
001997c0 : 31204952 5120736f 75726365 73292061 1 IRQ sources) a
001997d0 : 74206664 66643030 30300a00 00000000 t fdfd0000......
001997e0 : 00000000 00000000 00000000 00000000 ................
001997f0 : 00000000 00000000 00000000 00000000 ................
But it does not say much here. Any help on this???????????
I also enabled CONFIG_SERIAL_TEXT_DEBUG, but I did not see any text
after uncompressing the linux.
As mentioned in your 3rd point "some flag in the U-Boot code for RAM
in burst mode.". What is that flag actually? Coulnd you let me know?
Thanks
Kishore
On 4/20/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
>=20
> Hi Kishore,
>=20
> There are various things you can try.
>=20
> 1. Check your log buffer...your console may not be initialized yet so
> all your printk are logged at a particular memory location. Checkout
the
> System.map file in the Linux folder for "log_buf". The address that
you
> have there subtract it with the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave the command
>=20
> md <log_buff address>
>=20
> 2. We used a tool called Code Warrior which helped us single step
debug
> the code, it didn't help us much though.
>=20
> 3. We had a problem with the RAM in burst mode. WolfGang would suggest
> you check out if your RAM is operational. In our case we had to set
some
> flag in the U-Boot code for RAM in burst mode. We changed this flag
and
> it boots fine. Well almost.
>=20
> Atit
>=20
>=20
> Message: 5
> Date: Wed, 20 Apr 2005 18:00:46 -0700
> From: Kishore Devireddy <kishorekrd@gmail.com>
> Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
> uncompressing
> To: linuxppc-embedded@ozlabs.org
> Message-ID: <2cf2641f0504201800556805d2@mail.gmail.com>
> Content-Type: text/plain; charset=3DISO-8859-1
>=20
> Hi
>=20
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
> powerpc board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
>=20
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
>=20
> CPU: MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB
D-Cache
> Board: A3000 Local Bus at 99.999 MHz
> I2C: ready
> DRAM: 16 MB
> FLASH: Get flash bank 0 @ 0xffc00000
> Manuf. ID @ 0xff800000: 0x00000089
> Device ID @ 0xff800001: 0x00000016
> ## Flash bank 0 at 0xffc00000 sizes: 0x00400000
> protect monitor fff00000 @ 40000
> protect environtment fffc0000 @ 20000
> ## Final Flash bank sizes: 00400000
> 4 MB
> 00 13 100b 0020 0200 ff
> In: serial
> Out: serial
> Err: serial
> Net: natsemi: EEPROM contents:
> ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
> dp83815#0
> Warning: dp83815#0 MAC addresses don't match:
> Address in SROM is FF:FF:FF:FF:FF:FF
> Address in environment is 00:40:05:B0:F1:BA
>=20
> A3000> tftpboot 400000 uImage.eldk
> Using dp83815#0 device
> TFTP from server 192.168.1.124; our IP address is 192.168.1.54
> Filename 'uImage.eldk'.
> Load address: 0x400000
> Loading:
> #################################################################
>
#################################################################
> ###################
> done
> Bytes transferred =3D 757926 (b90a6 hex)
> A3000> bootm
> ## Booting image at 00400000 ...
> Image Name: Linux-2.4.25
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 757862 Bytes =3D 740.1 kB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
>=20
> nothing happens after this until I reboot the board. I read u-boot FAQ
> and configured bd_info structure same for both u-boot and Linux. I
> found that CFG_IMMR is not applicable to MPC8245. I also used
> clocks_in_mhz variable also before loading Linux. I am stuck here.
> Could you please let me know what should I do next?
>=20
> Thanks
> Kishore
>=20
> ------------------------------
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
> End of Linuxppc-embedded Digest, Vol 8, Issue 56
> ************************************************
>=20
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of
the intended recipient/s and may contain material that is CONFIDENTIAL
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or distribution or forwarding of any or all of the contents in
this message is STRICTLY PROHIBITED. If you are not the intended
recipient, please contact the sender by email and delete all copies;
your cooperation in this regard is appreciated.
>
DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-22 4:28 Atit_Shah
@ 2005-04-22 5:35 ` Sam Song
2005-04-29 20:54 ` Kishore Devireddy
0 siblings, 1 reply; 17+ messages in thread
From: Sam Song @ 2005-04-22 5:35 UTC (permalink / raw)
To: Atit_Shah, Kishore Devireddy; +Cc: linuxppc-embedded
Atit_Shah <Atit_Shah@satyam.com> wrote:
> What we did was verified the value of PSDMR register
> value found in your board specific header file in
> include/configs/<boardname.h>
Ummm, PSDMR register is for 8260 perhaps? I even
didn't find it in 8245UM. Do you mean MCCR of 8245?
Thanks,
Sam
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-22 5:35 ` Sam Song
@ 2005-04-29 20:54 ` Kishore Devireddy
0 siblings, 0 replies; 17+ messages in thread
From: Kishore Devireddy @ 2005-04-29 20:54 UTC (permalink / raw)
To: Sam Song; +Cc: Atit_Shah, linuxppc-embedded
SGkKCldoYXQgc2hvdWxkIEkgY2hhbmdlIHJlbGF0ZWQgdG8gTUNDUiB0byBkaXNhYmxlIFNEUkFN
IGJ1cnN0IG1vZGU/CgpUaGFua3MKS2lzaG9yZQoKT24gNC8yMS8wNSwgU2FtIFNvbmcgPHNhbWxp
bnV4cHBjQHlhaG9vLmNvbS5jbj4gd3JvdGU6Cj4gQXRpdF9TaGFoIDxBdGl0X1NoYWhAc2F0eWFt
LmNvbT4gd3JvdGWjugo+ID4gV2hhdCB3ZSBkaWQgd2FzIHZlcmlmaWVkIHRoZSB2YWx1ZSBvZiBQ
U0RNUiByZWdpc3Rlcgo+ID4gdmFsdWUgZm91bmQgaW4geW91ciBib2FyZCBzcGVjaWZpYyBoZWFk
ZXIgZmlsZSBpbgo+ID4gaW5jbHVkZS9jb25maWdzLzxib2FyZG5hbWUuaD4KPiAKPiBVbW1tLCBQ
U0RNUiByZWdpc3RlciBpcyBmb3IgODI2MCBwZXJoYXBzPyBJIGV2ZW4KPiBkaWRuJ3QgZmluZCBp
dCBpbiA4MjQ1VU0uIERvIHlvdSBtZWFuIE1DQ1Igb2YgODI0NT8KPiAKPiBUaGFua3MsCj4gCj4g
U2FtCj4gCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fCj4gRG8gWW91IFlhaG9vIT8KPiAxNTDN8sf6TVAzt+i/8cvRo6y0+MT6tLPI69L0
wNa17szDCj4gaHR0cDovL211c2ljLnlpc291LmNvbS8KPiDDwMWuw/fQx9Om09C+odPQo6zL0bHp
w8DNvKGi0d7NvLrNv+HNvAo+IGh0dHA6Ly9pbWFnZS55aXNvdS5jb20KPiAxR77NyscxMDAw1dej
rNHFu6K159PK19TW+sCpyN2joQo+IGh0dHA6Ly9jbi5yZC55YWhvby5jb20vbWFpbF9jbi90YWcv
MWcvKmh0dHA6Ly9jbi5tYWlsLnlhaG9vLmNvbS9ldmVudC9tYWlsXzFnLwo+Cg==
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-22 2:30 Sam Song
2005-04-22 15:36 ` Mark A. Greer
0 siblings, 1 reply; 17+ messages in thread
From: Sam Song @ 2005-04-22 2:30 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
Wolfgang Denk <wd@denx.de> wrote:
> > Interesting to me as well. I also have such a
> > similar problem. But I wanna to know how I can
> > return to u-boot with software workaround after
> > kernel hanging.
>
> Press the reset button?
>
The pity is that hardware reset doesn't work on my
board. Sadly... Well, just to confirm this case. If
had, is it possible to flush the content of __log_buf
after reset?
Thanks a lot,
Sam
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-21 10:03 Sam Song
0 siblings, 0 replies; 17+ messages in thread
From: Sam Song @ 2005-04-21 10:03 UTC (permalink / raw)
To: Eugene Surovegin; +Cc: linuxppc-embedded
Eugene Surovegin <ebs@ebshome.net> wrote:
> On Thu, Apr 21, 2005 at 03:19:10PM +0800, Sam Song
> wrote:
> > Interesting to me as well. I also have such a
> > similar problem. But I wanna to know how I can
> > return to u-boot with software workaround after
> > kernel hanging.
>
> Easy, use BDI (or any other hw debugger) and reset
> target when it hangs.
Thanks, Eugene. This one should work. It seems that
I must use a HW tool to deal with my trouble.
Sam
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-21 9:58 Sam Song
0 siblings, 0 replies; 17+ messages in thread
From: Sam Song @ 2005-04-21 9:58 UTC (permalink / raw)
To: Atit_Shah, kishorekrd; +Cc: linuxppc-embedded
--- Atit_Shah <Atit_Shah@satyam.com> wrote:
> I forgot to mention this...u should do a soft reset.
> If you go about powering off and on your board your
> buffer will be flushed. But for a soft reset the
> contents will be retained.
Ummm, in my experience, if kernel hangs, either it
could reboot automatically or it will stop there
and doesn't respone any input from serial console. My
situation is the second. So soft reset couldn't work
at all:)
Thanks,
Sam
_________________________________________________________
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/
^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-21 8:45 Atit_Shah
0 siblings, 0 replies; 17+ messages in thread
From: Atit_Shah @ 2005-04-21 8:45 UTC (permalink / raw)
To: Sam Song, kishorekrd; +Cc: linuxppc-embedded
I forgot to mention this...u should do a soft reset. If you go about =
powering off and on your board your buffer will be flushed. But for a =
soft reset the contents will be retained.
-----Original Message-----
From: Sam Song [mailto:samlinuxppc@yahoo.com.cn]=20
Sent: Thursday, April 21, 2005 12:49 PM
To: Atit_Shah; kishorekrd@gmail.com
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: MPC8245 custom board, Linux 2.4 kernel hangs after =
uncompressing=20
Atit_Shah <Atit_Shah@satyam.com> wrote=A3=BA
> 1. Check your log buffer...your console may not be
> initialized yet so all your printk are logged at a=20
> particular memory location. Checkout the
> System.map file in the Linux folder for "log_buf".
> The address that you have there subtract it with=20
> the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave
> the command
> =09
> md <log_buff address>
Interesting to me as well. I also have such a similar
problem. But I wanna to know how I can return to=20
u-boot with software workaround after kernel hanging.
At least, I must power-off and power-on my target to
get back to u-boot console. If so, the last kernel=20
printk message would lost IMHO.
Thanks,
Sam
P.S. Atit_Shah, if possibel, pls set your subscribing
setting "...daily digest" as "no" to avoid reply
inconvenience on the title:)
_________________________________________________________
Do You Yahoo!?
150=CD=F2=C7=FAMP3=B7=E8=BF=F1=CB=D1=A3=AC=B4=F8=C4=FA=B4=B3=C8=EB=D2=F4=C0=
=D6=B5=EE=CC=C3
http://music.yisou.com/
=C3=C0=C5=AE=C3=F7=D0=C7=D3=A6=D3=D0=BE=A1=D3=D0=A3=AC=CB=D1=B1=E9=C3=C0=CD=
=BC=A1=A2=D1=DE=CD=BC=BA=CD=BF=E1=CD=BC
http://image.yisou.com
1G=BE=CD=CA=C71000=D5=D7=A3=AC=D1=C5=BB=A2=B5=E7=D3=CA=D7=D4=D6=FA=C0=A9=C8=
=DD=A3=A1
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mai=
l_1g/
DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.
^ permalink raw reply [flat|nested] 17+ messages in thread
* MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
@ 2005-04-21 1:00 Kishore Devireddy
2005-04-22 14:03 ` Grant Likely
0 siblings, 1 reply; 17+ messages in thread
From: Kishore Devireddy @ 2005-04-21 1:00 UTC (permalink / raw)
To: linuxppc-embedded
Hi
I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom powerpc b=
oard,
which is similar to Artis A3000 board. This board has
mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
U-boot for A3000 borad. U-boot worked on my board also. Next I
compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
linux hangs after uncompressing
U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
CPU: MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
Board: A3000 Local Bus at 99.999 MHz
I2C: ready
DRAM: 16 MB
FLASH: Get flash bank 0 @ 0xffc00000
Manuf. ID @ 0xff800000: 0x00000089
Device ID @ 0xff800001: 0x00000016
## Flash bank 0 at 0xffc00000 sizes: 0x00400000
protect monitor fff00000 @ 40000
protect environtment fffc0000 @ 20000
## Final Flash bank sizes: 00400000
4 MB
00 13 100b 0020 0200 ff
In: serial
Out: serial
Err: serial
Net: natsemi: EEPROM contents:
ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
dp83815#0
Warning: dp83815#0 MAC addresses don't match:
Address in SROM is FF:FF:FF:FF:FF:FF
Address in environment is 00:40:05:B0:F1:BA
A3000> tftpboot 400000 uImage.eldk
Using dp83815#0 device
TFTP from server 192.168.1.124; our IP address is 192.168.1.54
Filename 'uImage.eldk'.
Load address: 0x400000
Loading: #################################################################
#################################################################
###################
done
Bytes transferred =3D 757926 (b90a6 hex)
A3000> bootm
## Booting image at 00400000 ...
Image Name: Linux-2.4.25
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 757862 Bytes =3D 740.1 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
nothing happens after this until I reboot the board. I read u-boot FAQ
and configured bd_info structure same for both u-boot and Linux. I
found that CFG_IMMR is not applicable to MPC8245. I also used
clocks_in_mhz variable also before loading Linux. I am stuck here.
Could you please let me know what should I do next?
Thanks
Kishore
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
2005-04-21 1:00 Kishore Devireddy
@ 2005-04-22 14:03 ` Grant Likely
0 siblings, 0 replies; 17+ messages in thread
From: Grant Likely @ 2005-04-22 14:03 UTC (permalink / raw)
To: Kishore Devireddy; +Cc: linuxppc-embedded
On 4/20/05, Kishore Devireddy <kishorekrd@gmail.com> wrote:
> Hi
>=20
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom powerpc=
board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
>=20
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
>=20
> CPU: MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
> Board: A3000 Local Bus at 99.999 MHz
> I2C: ready
> DRAM: 16 MB
> FLASH: Get flash bank 0 @ 0xffc00000
> Manuf. ID @ 0xff800000: 0x00000089
> Device ID @ 0xff800001: 0x00000016
> ## Flash bank 0 at 0xffc00000 sizes: 0x00400000
> protect monitor fff00000 @ 40000
> protect environtment fffc0000 @ 20000
> ## Final Flash bank sizes: 00400000
> 4 MB
> 00 13 100b 0020 0200 ff
> In: serial
> Out: serial
> Err: serial
> Net: natsemi: EEPROM contents:
> ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
> dp83815#0
> Warning: dp83815#0 MAC addresses don't match:
> Address in SROM is FF:FF:FF:FF:FF:FF
> Address in environment is 00:40:05:B0:F1:BA
>=20
> A3000> tftpboot 400000 uImage.eldk
> Using dp83815#0 device
> TFTP from server 192.168.1.124; our IP address is 192.168.1.54
> Filename 'uImage.eldk'.
> Load address: 0x400000
> Loading: ################################################################=
#
> #################################################################
> ###################
> done
> Bytes transferred =3D 757926 (b90a6 hex)
> A3000> bootm
> ## Booting image at 00400000 ...
> Image Name: Linux-2.4.25
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 757862 Bytes =3D 740.1 kB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
>=20
> nothing happens after this until I reboot the board. I read u-boot FAQ
> and configured bd_info structure same for both u-boot and Linux. I
> found that CFG_IMMR is not applicable to MPC8245. I also used
> clocks_in_mhz variable also before loading Linux. I am stuck here.
> Could you please let me know what should I do next?
Quick check; Try 'printenv' in u-boot. Make sure that 'bootargs'
specifies a console. ie "bootargs=3Dconsole=3DttyS0,115200 root=3D/dev/nfs
..."
g.
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2005-04-29 20:54 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-21 5:52 Linuxppc-embedded Digest, Vol 8, Issue 56 Atit_Shah
2005-04-21 7:19 ` MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing Sam Song
2005-04-21 7:46 ` Eugene Surovegin
2005-04-21 10:23 ` Wolfgang Denk
2005-04-21 22:53 ` Kishore Devireddy
-- strict thread matches above, loose matches on Subject: below --
2005-04-22 6:49 Sam Song
2005-04-22 6:20 Atit_Shah
2005-04-22 4:28 Atit_Shah
2005-04-22 5:35 ` Sam Song
2005-04-29 20:54 ` Kishore Devireddy
2005-04-22 2:30 Sam Song
2005-04-22 15:36 ` Mark A. Greer
2005-04-21 10:03 Sam Song
2005-04-21 9:58 Sam Song
2005-04-21 8:45 Atit_Shah
2005-04-21 1:00 Kishore Devireddy
2005-04-22 14:03 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).