Beagleboard xM / Angstrom / S-Video

Hello,

I want Angstrom demo image installed on my to draw the X screen on S-
Video output by default. I figured it can be done by doing a "setenv
defaultdisplay tv" on the boot prompt. However as the xM board does
not have an onboard flash memory I guess I have to generate a boot.scr
file to make it permament. Here is the problem: Angstrom demo image
does not include boot.cmd or boot.scr file. So I guess it is just
using the default from u-boot.

I tried to get it working by putting this in boot.cmd:

setenv defaultdisplay tv
boot

and then making boot.scr with the command:

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Angstrom/
2.6.32/beagleboard' -d boot.cmd boot.scr

However with this boot.scr image beagleboard does not boot up. Any
help appreciated.

Here is the boot log:

Texas Instruments X-Loader 1.4.4ss (Feb 20 2011 - 20:16:03)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2010.03 (Feb 20 2011 - 20:15:58)

OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz,
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MB
NAND: 0 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial

Probing for expansion boards, if none are connected you'll see a
harmless I2C error.

No EEPROM on expansion board
Beagle xM Rev A
Die ID #491e00011ff00000015739eb09002016
Hit any key to stop autoboot: 0
mmc1 is available
The user button is currently NOT pressed.
reading boot.scr

415 bytes read
Running bootscript from mmc ...
## Executing script at 80200000
mmc1 is available
reading uImage

3195484 bytes read
reading uInitrd

** Unable to read "uInitrd" from mmc 0:1 **
## Booting kernel from Legacy Image at 80300000 ...
   Image Name: Angstrom/2.6.32/beagleboard
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3195420 Bytes = 3 MB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
mmc1 is available
reading uImage

3195484 bytes read
reading uInitrd

** Unable to read "uInitrd" from mmc 0:1 **
## Booting kernel from Legacy Image at 80300000 ...
   Image Name: Angstrom/2.6.32/beagleboard
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3195420 Bytes = 3 MB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

I've done this once for my xm as well. Kinda forgot what i wrote.

setenv defaultdisplay tv
setenv omapfb.mode tv:ntsc

I think only these two lines.

Looks like you are loading the demo image.
Your console output is confusing.
Only those two lines of boot script. And reading 415 bytes of
boot.scr!?

Don't mess with the original user.scr
Keep it as it is.
Make the boot.scr
and just copy it to the boot partition.

An update on the issue:

I updated my boot.cmd and renegerated the boot.scr file:

setenv defaultdisplay tv
fatload mmc 0 80200000 uImage
bootm 80200000
run mmcboot

This time I get the Starting kernel and Uncompressing kernel messages
and a lines worth of dots. But the kernel never comes live and boot
process hangs. Led D6 makes a double flash, and D7 is off.

Any help appreciated. Thank you.

Thank you very much for your reply. This worked:

setenv defaultdisplay tv
setenv omapfb.mode tv:pal
run loaduimage
run mmcboot