[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Fwd: SREC File Upload Issues
Hi Matt,
>
> I think that work. Just console doesn't work.
> cat linux-2.6.x/System.map | grep __log_buf
> 0xXXXXXXXX __log_buf
>
> in U-boot md 0xXXXXXXXX
>
>
>
> The second test could be if you use emaclite or ll_temac -> try
> to connect
> through telnet.
>
> Regards,
> Michal
>
>
> I stopped auto boot, then I did the md command at the prompt for the
> address in the petalinux kernel:
>
> 24208e00: 9cad974f 481c571c c77f5693 eec190e9 ...OH.W...V.....
> 24208e10: 2acb16b6 74b57b98 80872178 d883900d *...t.{...!x....
> 24208e20: 6e4a0e1e 2491d683 87951dc3 1ef62074 nJ..$......... t
> 24208e30: 89db22ed daac664b a54809c5 430e11b5 .."...fK.H..C...
> 24208e40: 2d362d92 d054cbb2 2849ec25 07a1e29f -6-..T..(I.%....
> 24208e50: 60418949 47b78742 f730c9da 4cbfbf37 `A.IG..B.0..L..7
> 24208e60: 6f745613 129a1c06 76dfccfc deeffbf9 otV.....v.......
> 24208e70: 7ddfefbd 992152a6 ce5b56fe a4b5a8c5 }....!R..[V.....
> 24208e80: 2c6b7b93 68a79b02 3bf314dc d9a450b1 ,k{.h...;.....P.
> 24208e90: 8ad45bc7 c9a33550 93d6606d 3dc67d63 ..[...5P..`m=.}c
> 24208ea0: 8168fba8 559a26cb 9a2d595d 19c27f8c .h..U.&..-Y]....
> 24208eb0: cbe70278 6ef5c926 05bd0f11 fc5b227e ...xn..&.....["~
> 24208ec0: e7c93c05 ca5514f2 e2ddba37 89f06e79 ..<..U.....7..ny
> 24208ed0: b6644cf0 bbca32ae 5f709944 6f558b7b .dL...2._p.DoU.{
> 24208ee0: 1cb7c689 8b5c02c8 25885c42 720ed598 .....\..%.\Br...
> 24208ef0: 24fa7b9e 3cc6a055 cad7d059 2d6b59be $.{.<..U...Y-kY.
>
> Don't know how useful that dump is.
It is very useful but there are some rules.
1. What is your memory map? I mean mem base and size.
2. Do you use U-BOOT from Petalinux v0.30-rc1 right?
3. if yes, you don't have to turn off/on board because your memory will be messy.
4. And you don't have to rewrite memory where __log_buf is.
Some more recommendation:
1. Go to arch/microblaze/kernel/heartbeat.c -> remove #if 0, $endif - fill
proper address where LED gpio is (CONFIG_XILINX_LEDS_4BIT_BASEADDR). I hope you
don't use tri-state gpio. -> this gives you heartbeat on led where you can see
if kernel work or not.
2. go to arch/microblaze/kernel/early_printk.c
Replace setup_early_printk with this function. -> this gives you early console
which can print every printk messages.
int __init setup_early_printk(char *opt)
{
early_console_initialized = 1;
early_printk("early_printk_console is enabled at 0x%08x\n",
uart_base);
register_console(early_console);
}
3. Do you have linux xmd working?
Regards,,
Michal
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/