2009-02-25 07:55:13     Problem to run svn trunk on bf537-STAMP

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-02-25 07:55:13     Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 69883   

 

Hi!

 

I have succesfully build the latest svn trunk, "uclinux-dist-trunk-svn-7780", with the latest toolchain. I am using a bf537-stamp board. But I am not able to boot the bord with this dist. During the boot I get this:

 

        #################################################################

         ######################################################################$

         ################################################################

         #################################################################

         #################################################################

         ################################################################

         ###################################

done

Bytes transferred = 5503050 (53f84a hex)

Loading .text @ 0x00001000 (1282800 bytes)

Loading .rodata @ 0x0013a2f0 (290912 bytes)

Loading .init.rodata @ 0x00181350 (80 bytes)

Loading __ksymtab @ 0x001813a0 (19256 bytes)

Loading __ksymtab_gpl @ 0x00185ed8 (5224 bytes)

Loading __ksymtab_strings @ 0x00187340 (55348 bytes)

Loading __init_rodata @ 0x00194b74 (172 bytes)

Loading __param @ 0x00194c20 (600 bytes)

Clearing .bss @ 0x00194e80 (143532 bytes)

Loading .data @ 0x001b7f2c (73940 bytes)

Loading .init.text @ 0x001ca000 (104544 bytes)

Loading .init.data @ 0x001e3860 (13840 bytes)

Loading .init.setup @ 0x001e6e70 (624 bytes)

Loading .initcall.init @ 0x001e70e0 (612 bytes)

Loading .con_initcall.init @ 0x001e7344 (4 bytes)

Loading .init.ramfs @ 0x001e7348 (2951436 bytes)

Loading .text_l1 @ 0xffa00000 (7400 bytes)

sh_addr: FFA00000, p_paddr: 004B7C54

Loading from: 01495000 to 004B7C54, size: 7400

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 004B993C

Loading from: 01497000 to 004B993C, size: 192

## Starting application at 0x001d8384 ...

p^Rnn��^B����r^Rnnn��b�b^\��b�n^B�^Rln�^L^Ll��lbb�^B^Lbpp^Rrrn��|^Bb�n�^Nrn��|�$

 

 

 

And the it crach. Any ine who knows why this happen?

 

best regards leifi leif

QuoteReplyEditDelete

 

 

2009-02-25 08:03:53     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 69884   

 

I have unchecked the choice "JFS filesystem support" in menuconfig->File systems, which default is built as a module. Otherwise I was not able to build the dist. Can this have someting to do with the boot crash?

QuoteReplyEditDelete

 

 

2009-02-25 15:26:13     Re: Problem to run svn trunk on bf537-STAMP

Mike Frysinger (UNITED STATES)

Message: 69908   

 

are you using different baud rates in u-boot and the kernel ?  all ADI boards default to 57600

QuoteReplyEditDelete

 

 

2009-02-26 03:16:34     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 69942   

 

Thank you for your answer!

 

The baud rate of u-boot is set to 57600. I can boot the 2008R1.5 release with this u-boot without any problem. I have also tested the newest svn-trunk u-boot and the same thing happen.

 

Is it possible to change the baud rate in the kernal or is it always default set to 57600?

 

I need to run the new svn-trunk release of uClinux because there is a bug fixed which set several spidev chip select at the same time.

QuoteReplyEditDelete

 

 

2009-02-26 03:32:36     Re: Problem to run svn trunk on bf537-STAMP

Mike Frysinger (UNITED STATES)

Message: 69943   

 

the baud rate is controlled by you via your kernel command line in your u-boot env settings

 

i noticed you're booting an ELF ... dont do that.  boot the uImage.

 

if it still fails, try this:

docs.blackfin.uclinux.org/doku.php?id=linux-kernel:debug:post_mortem

QuoteReplyEditDelete

 

 

2009-02-26 08:14:13     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 70001   

 

I can now boot the uClinux svn trunk, if I use the u-boot2009.01 and the uImage for uClinux. I still get some strange characters during the boot but the system seems to boot correct. The problem now and this is that only the spi chip select 5 is working in the board. My spi configuration is the same as on the 2008 release. In stamp.c:

 

#if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)

    {

        .modalias = "spidev",

        .max_speed_hz = 1000000,     /* max spi clock (SCK) speed in HZ */

        .bus_num = 0,

        .chip_select = 1,

        .controller_data = &spidev_chip_info,

        .mode = SPI_MODE_3,

    },

    {

        .modalias = "spidev",

        .max_speed_hz = 1000000,     /* max spi clock (SCK) speed in HZ */

        .bus_num = 0,

        .chip_select = 5,

        .controller_data = &spidev_chip_info,

        .mode = SPI_MODE_2,

    },

#endif

 

The reason why I run the svn trunk is that the spi chip select bug should be fixed there, but I can not get it to work here either. My spi devices is shown in /dev/ as expected but only the chip select 1 is working. Any one how know a what I am doing wrong or a sloution on this problem?

QuoteReplyEditDelete

 

 

2009-02-26 08:16:15     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 70002   

 

One error in the above post, it is only the chip select 5 which is working

QuoteReplyEditDelete

 

 

2009-02-26 10:58:19     Re: Problem to run svn trunk on bf537-STAMP

Mike Frysinger (UNITED STATES)

Message: 70013   

 

what exactly do you mean by "not working"

QuoteReplyEditDelete

 

 

2009-02-26 13:04:58     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 70026   

 

sorry I was a bit unclear. With "not working" I mean when I put a oscilloscope on the chip select pins out from the stamp-board the only pin which has a visible chip select signal is the chip select 5. When I try to send and receive data on a nother spidev the scope do not show a chip select siganl on the corresponding CS pin on the board. But the clock and data siganls lookes fine on the scope.

 

I have two spi devices(use CS1 and CS5) and on the 2008R1.5 release the work with the cooresponding CS pin. But I could only use one at a time because when I was sending data to one of them the other devices CS also was activated. Then I was reading on the forum that this CS problem was solved in the svn-trunk.

 

I hope this was clarify the my problem. Thank you for your help.

QuoteReplyEditDelete

 

 

2009-02-26 13:36:52     Re: Problem to run svn trunk on bf537-STAMP

Mike Frysinger (UNITED STATES)

Message: 70028   

 

yes, that sounds like enough info for people to look at, thanks

 

blackfin.uclinux.org/gf/tracker/4945

QuoteReplyEditDelete

 

 

2009-02-26 23:38:00     Re: Problem to run svn trunk on bf537-STAMP

Sonic Zhang (CHINA)

Message: 70060   

 

Did you dissable the PIN 4 on SW5, which connects with SPI ssel 5 PIN?

 

 

QuoteReplyEditDelete

 

 

2009-02-27 02:57:19     Re: Problem to run svn trunk on bf537-STAMP

leifi leif (SWEDEN)

Message: 70063   

 

Yes pin 4 on SW5 is disabled.

QuoteReplyEditDelete

Attachments

    Outcomes