No command prompt on STK1000

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I upgraded U-Boot (U-Boot 1.1.4-at0) to correct the arch number so that I could run a later kernel. I've copied the STK1000 Linux image supplied with the BSP 2.0 CD onto the SD card and managed to get it to boot.
The STK1000 is not connected to a network and I've got the serial output displayed on a PC. The board boots and gets past the S99bootsplash script as it displays the correct image in the LCD. It seems to hang at the S10dhcp script.
I then commented out the network scripts in rcS and now the board gets to the point of displaying the LCD image loaded with S99splash but fails to give me a command prompt on the serial consol.
printenv yields:
bootargs=console=ttyUS0 root=/dev/mmcblk0p1 fbmem=600k
bootdelay=2
baudrate=115200
ethact=macb0
ethaddr=00:04:25:19:0A:12
eth1addr=00:04:25:19:0A:13
bootcmd=mmcinit; ext2load mmc 0:1 0x90400000 /uImage; bootm 0x90400000
stdin=serial
stdout=serial
stderr=serial

Environment size: 261/65532 bytes

and booting Linux displays:
Booting image at 90400000 ...
Image Name: Linux-2.6.18-at1
Image Type: AVR32 Linux Kernel Image (gzip compressed)
Data Size: 879298 Bytes = 858.7 kB
Load Address: 10000000
Entry Point: 90000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel at 90000000 (params at 10780040)...

but nothing further after that no matter how long I wait when using the network scripts.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

newer kernels name their serial ports ttySx not ttyUSx, you just need to change your uboot bootargs to reflect this.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I knew one of the experts would be able to point me in the right direction.
I've issued set bootargs console=ttyS0 root=/dev/mmcblk0p1 fbmem=600k and then done a saveenv.
I'm probably a step closer to the solution but I still don't get anything printed after Starting kernel ...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had a typo, consol instead of console and realised it after doing the above post, everything is working once again.

Thanks for the great forum provided to support people like me and wonderful development boards Atmel has produced.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Since the STK1000 was not plugged into a network and could not obtain an address via DHCP the S10dhcp script would never return.
I modified the line which calls udhcpc to include the -n switch which returns when no DHCP server is found. This causes to script to assign a static address after a few seconds and continue running the remaining scripts.
The line now reads if ${UDHCPC} -n -i eth0 > /dev/null 2> /dev/null; then

Hopes this helps someone else in the future.