BeagleBoard U-Boot
From Crashcourse Wiki
Not really critical but, before you even try booting your BeagleBoard to some version of Linux, it wouldn't hurt to just come up to the onboard U-Boot boot loader and look around -- it can be fairly educational.
Contents |
The boot information
Just booting to U-Boot tells you a little something:
Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24) Loading u-boot.bin from nand U-Boot 2009.01-dirty (Feb 19 2009 - 12:22:31) I2C: ready OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz OMAP3 Beagle board + LPDDR/NAND DRAM: 256 MB NAND: 256 MiB MUSB: using high speed In: serial Out: serial Err: serial Board revision C Serial #59c000030000000004013f8a17014002 Hit any key to stop autoboot: 0 OMAP3 beagleboard.org #
What version of U-Boot? (version)
OMAP3 beagleboard.org # version U-Boot 2009.01-dirty (Feb 19 2009 - 12:22:31) OMAP3 beagleboard.org #
Print your board info structure (bdinfo)
OMAP3 beagleboard.org # bdinfo arch_number = 0x0000060A env_t = 0x00000000 boot_params = 0x80000100 DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x08000000 DRAM bank = 0x00000001 -> start = 0x88000000 -> size = 0x08000000 baudrate = 115200 bps OMAP3 beagleboard.org #
Displaying your current environment (printenv)
OMAP3 beagleboard.org # printenv
bootcmd=if mmcinit; then if run loadbootscript; then run bootscript; else if run loaduimage; then if run loadramdisk; i
baudrate=115200
loadaddr=0x80200000
rdaddr=0x81600000
console=ttyS2,115200n8
optargs=
mmcargs=setenv bootargs console=${console} ${optargs} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
ramargs=setenv bootargs console=${console} ${optargs} root=/dev/ram0 rw ramdisk_size=32768 initrd=${rdaddr},32M
ubifsargs=setenv bootargs console=${console} ${optargs} root=ubi0:beagleroot ubi.mtd=4 rw rootfstype=ubifs
jffs2args=setenv bootargs console=${console} ${optargs} root=/dev/mtdblock4 rw rootfstype=jffs2
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; autoscr ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage.bin
loadramdisk=fatload mmc 0 ${rdaddr} ramdisk.gz
ramboot=echo Booting from ramdisk.gz ...; run ramargs; bootm ${loadaddr}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run jffs2args; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}
stdin=serial
stdout=serial
stderr=serial
serial=59c000030000000004013f8a17014002
bootdelay=5
OMAP3 beagleboard.org #
Or be selective:
OMAP3 beagleboard.org # printenv stdin stdout stderr stdin=serial stdout=serial stderr=serial OMAP3 beagleboard.org #
Console information (coninfo)
Print your console devices and information (which, below, includes a usbtty device).
OMAP3 beagleboard.org # coninfo List of available devices: serial 80000003 SIO stdin stdout stderr usbtty 00000003 .IO OMAP3 beagleboard.org #
NAND flash information (nand)
OMAP3 beagleboard.org # nand info Device 0: NAND 256MiB 1,8V 16-bit, sector size 128 KiB
Further, select a given device:
OMAP3 beagleboard.org # nand device 0 Device 0: NAND 256MiB 1,8V 16-bit... is now current device OMAP3 beagleboard.org #
Print information about flash filesystems (fsinfo)
Not sure what all this means yet, but I'll figure it out.
OMAP3 beagleboard.org # fsinfo
### filesystem type is JFFS2
Scanning JFFS2 FS: read_nand_cached: error reading nand off 0xffffe00 size 8192 bytes
done.
Compression: NONE
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: ZERO
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: RTIME
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: RUBINMIPS
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: COPY
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: DYNRUBIN
frag count: 0
compressed sum: 0
uncompressed sum: 0
Compression: ZLIB
frag count: 0
compressed sum: 0
uncompressed sum: 0
OMAP3 beagleboard.org #
I2C information (iprobe)
Probe for valid I2C chip addresses.
OMAP3 beagleboard.org # iprobe Valid chip addresses: 48 49 4A 4B OMAP3 beagleboard.org #
Anything else I should add here?
Return to main BeagleBoard page.

