2008-05-14 07:19:40     Running application from Flash

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

2008-05-14 07:19:40     Running application from Flash

Appalayagari Sreedhar (INDIA)

Message: 55820   

 

Hi,

 

My custom board is having the BF533 and smsc9215 chip.

 

In my application dhcp enabled.

 

I builded the image placing my application file in the bin folder.

 

command i used for building: make

 

When i loaded the uImage using the tftp. it is working fine.

 

ethernet is up like some message is disaplaying.

 

eth0: SMSC911x MAC Address: 42:d4:bf:87:6f:c4

eth0: link down

Entered the INT_STS_PHY_INT_  STATUS CHECK

<6>Entered the INT_STS_PHY_INT_  STATUS CHECK

 

I burn the uimage into the flash. When i restart my board. i am seeing this message.

 

Jan 24 01:37:55 dhcpcd[81]: [truncated] m

 

Can anyone tell me what i am doing wrong.

 

The rc file commands are like this.

 

hostname blackfin

mount -t proc proc /proc

mount -t ramfs ramfs /var

mount -t sysfs sysfs /sys

mount -t devpts devpts /dev/pts

mount /dev/mtdblock1 ##Logu added

 

[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb

if [ -e /bin/mdev ] ; then

        echo /bin/mdev 2>/dev/null > /proc/sys/kernel/hotplug

        /bin/mdev -s 2> /dev/null

fi

mkdir /var/tmp

mkdir /var/log

mkdir /var/run

mkdir /var/lock

#dhcpcd &

#ifconfig eth0 10.100.4.251 up

#ifconfig lo 127.0.0.1

inetd &

#cat /etc/issue

cat /etc/motd

dhcpcd &

sleep 15        //This i placed for enabling dhcp to complete. is this necessary? if i dont keep sleep, it is directly starting to execute my application.

Ethsree

 

 

QuoteReplyEditDelete

 

 

2008-05-14 08:41:17     Re: Running application from Flash

Mike Frysinger (UNITED STATES)

Message: 55823   

 

rather than trying to debug something complicated, start simple

 

has your network ever worked under Linux ?

 

does the chip work under u-booot ?

 

if you use ifconfig to manually configure your network interface, does the network work ?

 

did you make sure your async memory settings are appropriate for the device ?

QuoteReplyEditDelete

 

 

2008-05-15 03:22:33     Re: Running application from Flash

Appalayagari Sreedhar (INDIA)

Message: 55834   

 

Thanks Mike,

 

u r suggestions are really helpful.

 

It worked, i missed resetting of my ethernet chip.

 

I am doing it in uboot but i am not doing it in kernel driver.

 

when i do tftp the uImage, the ethernet driver in uboot is getting invoked there the device is getting reset , then it is working.

 

since while running from flash,  ethernet driver chip is not initilaised since it is not invoked in uboot, it seems because since i did not do any ping or tftp etc related to network?

 

If we dont do any ping or tftp once uboot is up, ethernet driver is not at all called? is it correct Mike?

 

Since while running from flash, i am not doing the reset of chip so it created the problem.

 

Thanks Mike, Sreedhar.

QuoteReplyEditDelete

 

 

2008-05-15 10:17:09     Re: Running application from Flash

Mike Frysinger (UNITED STATES)

Message: 55861   

 

u-boot only initializes hardware that it uses.  if it does not do any network operations, it will not initialize any network devices.

QuoteReplyEditDelete

 

 

2008-05-16 05:33:54     Re: Running application from Flash

Appalayagari Sreedhar (INDIA)

Message: 55922   

 

Hi Mike,

 

Thankyou very much.

 

I am facing booting problem.

 

My custom board has BF533, BMODE pins are connected in mode 00.

 

I flashed the final binary into the Flash.

 

When i connect the debugging agent to my PC, then only booting is happening.

 

if i remove the debugging agent and reset the system then it is not booting.

 

Is i am missing anything or doing wrong with my booting.

 

I am attahing the trace when i connect the debugging agent as an attachment.

 

Thanks for the help.

 

Thanks and Regards,Sreedhar.

 

trace.txt

QuoteReplyEditDelete

 

 

2008-05-16 07:59:20     Re: Running application from Flash

Robin Getz (UNITED STATES)

Message: 55923   

 

Appalayagari:

 

Check that you have the correct pull ups/pull downs that are _required_ on the JTAG pins. If these pins are floating, it can cause the processor to hang.

 

this could be why it seems to work when the JTAG debugger is attached.

 

Robin

QuoteReplyEditDelete

 

 

2008-05-16 08:36:41     Re: Running application from Flash

Appalayagari Sreedhar (INDIA)

Message: 55925   

 

Hi Robin,

 

Sorry for misleading.

 

debugging agent i mean UART.

 

in my custom board,  there is one bridge circuit which is uart to usb bridge controller. i can conenct the usb cable to my pc and other end to this bridge circuit board which is conected to the BF533 uart.

 

I am able to boot from flash if i connect the usb cable to the pc.

 

Any clue or sugegstion?. Thanks for the help.

 

Best Regards,Sreedhar.

QuoteReplyEditDelete

 

 

2008-05-16 09:43:54     Re: Running application from Flash

Mike Frysinger (UNITED STATES)

Message: 55928   

 

if you dont have the uart hooked up, how do you know it isnt booting ?

 

otherwise if it involves USB, perhaps the power pins on it are routed incorrectly and the board isnt getting enough power without the USB hookedup

QuoteReplyEditDelete

 

 

2008-05-16 09:54:21     Re: Running application from Flash

Appalayagari Sreedhar (INDIA)

Message: 55930   

 

Hi Mike,

 

Thankyou very much.

 

That Small circuit was the problem, we could boot succesfully.

 

Once gain thanks for the help.

 

Best Regards,Sreedhar.

Attachments

    Outcomes