|
BeagleboardRevCValidationv3
#Beagle Board Diagnostic Tools and Procedure If you have suggestions for this page, drop us a note: khasim@beagleboard.org rpjday@crashcourse.ca What's this all about?This page discusses the process of "validating" your Revision B/C2/C3/C4 BeagleBoard. In essence, it describes the steps you might want to take after unwrapping a brand new board, holding it up (carefully, by its edges, of course) and thinking, "Um, OK, now what?" This process is meant to be completely non-destructive in that it shows you how to test the various components of your board without changing any of its contents or settings. Whether you subsequently want to re-flash any of it to bring it up to date is entirely up to you. While there is more than one way to power up and connect to your board, I prefer to use a 5V power supply, and connect to the standard serial port via a USB/serial adapter using minicom, but you can use whatever variation works for you. The setupFormatting the MMC/SD cardFor these validation tests, you'll want a MMC/SD card with a single, empty VFAT/FAT32-formatted partition. If you already know how to do that, you can skip the rest of this section. To format your card under Windows, you can do the following:
http://www.pcworld.com/downloads/file/fid,64963-page,1/description.html http://files.extremeoverclocking.com/file.php?f=197 http://hp-usb-disk-storage-format-tool.software.informer.com/
If you're doing this under Linux, then just:
In either case, you should now have an MMC/SD card with a single, VFAT-format, mountable partition that you have to fill with files. Onward ... NOTE: There is some discussion as to whether you need to make that new partition bootable. I haven't needed to do that, others report that they did. It might be related to whether you have one or more than one partition on the card. In any event, keep that in mind. Populating the MMC/SD cardBecause we want our validation to be non-destructive, we can keep the contents of our MMC/SD card to a minimum, but there's one critical point we need to address. The U-Boot loader that ships with the C2 and C3 versions of the BeagleBoard is simply too old, and you must copy a much newer version to your SD card for proper validation. To that end, once you format your card, copy to it the following (in exactly this order and with these destination names):
SourcesSources for above listed binaries can be found here,
Some notes about the above:
In short, for our validation, the above is all you should need. Personally, I keep all of the relevant files in a single directory and use the following shell script to clear and repopulate my card whenever I need to: #!/bin/sh
SD=$1
if [ $# = 0 ] ; then
echo "No SD directory specified, exiting."
exit
fi
echo "Clearing files from ${SD}."
rm -rf ${SD}/*
echo "Copying files to ${SD} ..."
cp u-boot-angstrom.bin ${SD}/u-boot.bin
cp ramdisk_revc_v3.gz ${SD}/ramdisk.gz
cp uImage_revc_v3.bin ${SD}/uImage.bin
cp normal_revc_v3.scr ${SD}/boot.scr
cp -a files ${SD}You can probably tell that the single argument to pass to that script is the mount point of the SD card. Any other files you should copy to your MMC/SD card?Technically, you don't need to populate your MMC/CD card with anything but what's listed above, but you're free to add any other files after copying the essential ones if you want access to them after booting. Those extra files should have no effect on the boot process, but you'll be able to see them after booting once you mount the MMC/SD card. So if you want to add a few extra audio or video files that you'd like to test, feel free. For example, here's a .wav file 911.wav that I've verified will play with aplay. Board and peripheral setupDepending on what you want to test and what peripherals you have at hand, do as much of the following as possible.
Validation at the U-Boot levelRegardless of what OS you plan on booting into, you can interrupt the boot process to stop in the U-Boot loader and take a look around to verify that everything looks sane, at least with respect to U-Boot. If you're interested in what's happening at the U-Boot level, here are a few things you can check. versionFirst, there's the version of U-Boot you're loading (corresponding to the current version that's downloadable from the Angstrom distribution): OMAP3 beagleboard.org # version
U-Boot 2009.08 (Oct 20 2009 - 13:09:07)
OMAP3 beagleboard.org # bdinfoNext, you can examine the board information: 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 # The RAM bank information should be self-explanatory, while the architecture number represents the official ARM designation of this particular board, as listed here. Converting hex '60A' to decimal gives 1546, which you can see is, in fact, the BeagleBoard in that list. If that arch_number value shows anything other than 0x60A, something has gone horribly wrong. coninfoNext, print out the console information: OMAP3 beagleboard.org # coninfo List of available devices: serial 80000003 SIO stdin stdout stderr OMAP3 beagleboard.org # nandList the NAND flash information with: OMAP3 beagleboard.org # nand info Device 0: nand0, sector size 128 KiB Curiously, the older version of U-Boot was slightly more informative: OMAP3 beagleboard.org # nand info
Device 0: NAND 256MiB 1,8V 16-bit, sector size 128 KiB
OMAP3 beagleboard.org #How odd. mtdpartsYou can see the partition breakdown of flash with: OMAP3 beagleboard.org # mtdparts mtdparts variable not set, see 'help mtdparts' no partitions defined defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) See the output of help mtdparts to see what else you can do here in terms of setting environment variables. i2cThe i2c command has a number of subcommands, but to simply see the I2C information, run: OMAP3 beagleboard.org # i2c probe Valid chip addresses: 48 49 4A 4B OMAP3 beagleboard.org # At the moment, I'm not sure what else you can do with i2c to display more I2C information, so I'm open to suggestions. There's supposed to be a way to probe the EDID information of an attached display. If you know what that is, let me know. mmcTo initialize your MMC/SD card, run: OMAP3 beagleboard.org # mmc init mmc1 is available OMAP3 beagleboard.org # Once that's done, you can examine the contents of your FAT partition: OMAP3 beagleboard.org # fatls mmc 1 (default / directory)
20392 mlo
184316 u-boot.bin
7999649 ramdisk.gz
2578044 uimage.bin
603 boot.scr
files/
5 file(s), 1 dir(s)
OMAP3 beagleboard.org # fatls mmc 1 files
./
../
186860 911.wav
1 file(s), 2 dir(s)
OMAP3 beagleboard.org # mtestIf you want to read/write test your RAM: OMAP3 beagleboard.org # help mtest mtest - simple RAM read/write test Usage: mtest [start [end [pattern [iterations]]]] OMAP3 beagleboard.org # mtest 0x80000000 0x81000000 0xdeadbeef 1 Pattern DEADBEEF Writing... ... be patient ... Booting into LinuxWhile I'm leaving the remainder of the original page below as is (for now) because of its detail, I'll summarize what you can do once you're done with messing around in U-Boot and now want to let your BeagleBoard boot to Linux. These tests are based on the original (Arago-based) root filesystem that is used for validation, but a lot of it should still be relevant for other versions of Linux. Checking your mounted filesystemsFor the standard validation, this is the output of the mount command immediately after booting: root@beagleboard:/# mount rootfs on / type rootfs (rw) /dev/root on / type ext2 (rw,errors=continue) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) none on /dev type tmpfs (rw,mode=755) devpts on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw) tmpfs on /var/volatile type tmpfs (rw) tmpfs on /dev/shm type tmpfs (rw,mode=777) tmpfs on /media/ram type tmpfs (rw) /dev/mmcblk0p1 on /media/mmcblk0p1 type vfat (rw,sync,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso) root@beagleboard:/# Note that last entry, representing the VFAT partition on the MMC/SD card, from which you can access any files you placed there when you initially populated that partition. Testing the USER buttonRun # evtest /dev/input/event1 and press the USER button until you get tired of pressing the USER button. Then BREAK out of the evtest command. Beagle validationPress the "User" switch/button on the Beagle Board. While it’s still pressed, give power to (turn ON) the Beagle Board, by inserting the USB A connector side of the USB cable to HOST machine, then release the switch. This should bring up u-boot and the following Board Diagnostic tests will be performed:
40V Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24) Reading boot sector Loading u-boot.bin from mmc U-Boot 2009.01-dirty (Feb 19 2009 - 12:23:21) I2C: ready OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz OMAP3 Beagle board + LPDDR/NAND DRAM: 256 MB NAND: 256 MiB Using default environment MUSB: using high speed In: serial usbtty Out: serial usbtty Err: serial usbtty Board revision C Serial #7f6800030000000004013f780601a005 Hit any key to stop autoboot: 0 reading boot.scr DRAM: 256 MB Board revision C Running bootscript from mmc ... ## Executing script at 82000000 reading x-load.bin.ift 20392 bytes read ***** NAND will be Flashed with new x-loader and u-boot ***** ***** Replacing x-load ***** device 0 whole chip HW ECC selected NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK NAND write: device 0 offset 0x0, size 0x20000 131072 bytes written: OK NAND write: device 0 offset 0x20000, size 0x20000 131072 bytes written: OK NAND write: device 0 offset 0x40000, size 0x20000 131072 bytes written: OK NAND write: device 0 offset 0x60000, size 0x20000 131072 bytes written: OK ***** Replacing u-boot ***** reading u-boot.bin 727684 bytes read device 0 whole chip SW ECC selected NAND erase: device 0 offset 0x80000, size 0x160000 Erasing at 0x1c0000 -- 100% complete. OK NAND write: device 0 offset 0x80000, size 0x160000 1441792 bytes written: OK ***** Erasing environment settings ***** device 0 whole chip NAND erase: device 0 offset 0x160000, size 0x20000 Erasing at 0x160000 -- 100% complete. OK reading uImage.bin 2578012 bytes read ***** Kernel: /dev/mmcblk0p1/uImage.bin ***** reading ramdisk.gz 33554432 bytes read ***** RootFS: /dev/mmcblk0p1/ramdisk.gz ***** Other tests will continue after Kernel booting, If uImage.bin and ramdisk.gz are on MMC card then kernel will boot as shown below ....
## Booting kernel from Legacy Image at 80200000 ... Image Name: Linux-2.6.28-omap1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2577980 Bytes = 2.5 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux............................................................. ................................................................................ ........................ done, booting the kernel. Linux version 2.6.28-omap1 (root@tiioss) (gcc version 4.2.1 (CodeSourcery Source ry G++ Lite 2007q3-51)) #2 Thu Feb 19 12:45:34 IST 2009 CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: OMAP3 Beagle Board Memory policy: ECC disabled, Data cache writeback OMAP3430 ES3.0 SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 Reserving 15728640 bytes SDRAM for VRAM Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyS2,115200n8 console=tty0 root=/dev/ram0 rw ramdi sk_size=32768 initrd=0x81600000,32M < followed by other messages till it reaches console ...>
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution beagleboard ttyS2
Angstrom 2008.1-test-20090127 beagleboard ttyS2
beagleboard login:
Type root and <hit a ENTER Key> Continue Board Validation
1. Select the Linux.inf as the driver, if you don't find it automatically, then you can copy one from Linux Kernel Source folder (2.6_kernel_revb-v2.tar.gz), from the path "2.6_kernel/Documentation/usb/linux.inf" 2. On the Windows PC, bring up Network Connections and look for the Device Name: Linux USB Ethernet/RNDIS Gadget. Right-mouse click for Properties. Scroll down to Internet Protocol (TCP/IP), select it, and press the Properties button. 3. Select an IP address close to the one selected for the Beagle Board. This example uses an IP address of 192.168.1.5 and a Subnet mask of 255.255.255.0. 4. Configure a static IP address for Beagle Board with the ifconfig command. The example below configures an IP address of 192.168.1.1 with a subnet mask of 255.255.255.0. [root@beagleboard mmc]# ifconfig usb0 192.168.1.1 netmask 255.255.255.0 5. On the terminal emulator connected to the Beagle Board use ping to test the connection. Press the Ctrl-C buttons to terminate ping. [root@beagleboard mmc]# ping 192.168.1.5 PING 192.168.1.5 (192.168.1.5): 56 data bytes 64 bytes from 192.168.1.5: seq=0 ttl=128 time=0.885 ms 64 bytes from 192.168.1.5: seq=1 ttl=128 time=0.977 ms 64 bytes from 192.168.1.5: seq=2 ttl=128 time=0.977 ms do a [root@beagleboard mmc]#ifconfig usb0 down [root@beagleboard mmc]# svideo [root@beagleboard mmc]# mplayer /sample_video.avi NOTE: The Video sample has been downloaded from https://garage.maemo.org/tracker/download.php/54/269/2380/258/bug.avi Should display a cartoon video on DVI and S-Video, Audio will be on audio-out (speakers) [root@beagleboard /]# mount -t vfat /dev/mmcblk0p1 /mnt [root@beagleboard /]# cd /mnt Make Sure your player is running and Audio Line in is connected to board. [root@beagleboard mmc]# arecord -t wav -c 2 -r 44100 -f S16_LE -v k Following output is expected on Console Recording WAVE 'k' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 32768 period_size : 2048 period_time : 46439 tick_time : 7812 tstamp_mode : NONE period_step : 1 sleep_min : 0 avail_min : 2048 xfer_align : 2048 start_threshold : 1 stop_threshold : 32768 silence_threshold: 0 silence_size : 0 boundary : 1073741824 When ever you think you want to stop just press CONTRL+C [root@beagleboard mmc]# aplay -t wav -c 2 -r 44100 -f S16_LE -v k Audio should be heard on Speakers, Following output is expected on console Playing WAVE 'k' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 32768 period_size : 2048 period_time : 46439 tick_time : 7812 tstamp_mode : NONE period_step : 1 sleep_min : 0 avail_min : 2048 xfer_align : 2048 start_threshold : 32768 stop_threshold : 32768 silence_threshold: 0 silence_size : 0 boundary : 1073741824 This tests validates read/write to MMC/SD card as the audio data is being written and read from MMC.
[root@beagleboard mmc]# cd /
[root@beagleboard mmc]# umount /mnt[root@beagleboard mmc]# evtest /dev/input/event2 Press a Key on USB KeyBoard, Example if "a" is pressed the following output is seen on Console: Event: time 1657.754638, type 1 (Key), code 30 (A), value 1 Event: time 1657.754638, -------------- Report Sync ------------ Event: time 1657.964599, type 1 (Key), code 30 (A), value 0 Event: time 1657.964599, -------------- Report Sync ------------ Press CONTROL+C to come out of this test [root@beagleboard mmc]# evtest /dev/input/event4 Press the Mouse button and observe the screen, Example if Left button is pressed and released the following lines should get displayed on console Event: time 1871.724792, -------------- Report Sync ------------ Event: time 1873.804687, type 1 (Key), code 272 (LeftBtn), value 1 Event: time 1873.804687, -------------- Report Sync ------------ Event: time 1873.964660, type 1 (Key), code 272 (LeftBtn), value 0 Event: time 1873.964660, -------------- Report Sync ------------ Moving the Mouse also results in Console messages Event: time 1959.120635, -------------- Report Sync ------------ Event: time 1959.130676, type 2 (Relative), code 0 (X), value -21 Event: time 1959.130676, -------------- Report Sync ------------ Event: time 1959.140625, type 2 (Relative), code 0 (X), value -16 Press CONTROL+C to come out of this test # root@beagleboard:~# reboot
While kernel boots:
- Connect a HUSB HUB with Mini A connector to USB OTG port on beagleboard
- Connect a USB Keyboard, Mouse to USB HUB
*Kernel boots*[root@beagleboard mmc]# evtest /dev/input/event2 Press a Key on USB KeyBoard, Example if "a" is pressed the following output is seen on Console: Event: time 1657.754638, type 1 (Key), code 30 (A), value 1 Event: time 1657.754638, -------------- Report Sync ------------ Event: time 1657.964599, type 1 (Key), code 30 (A), value 0 Event: time 1657.964599, -------------- Report Sync ------------ Press CONTROL+C to come out of this test [root@beagleboard mmc]# evtest /dev/input/event4 Press the Mouse button and observe the screen, Example if Left button is pressed and released the following lines should get displayed on console Event: time 1871.724792, -------------- Report Sync ------------ Event: time 1873.804687, type 1 (Key), code 272 (LeftBtn), value 1 Event: time 1873.804687, -------------- Report Sync ------------ Event: time 1873.964660, type 1 (Key), code 272 (LeftBtn), value 0 Event: time 1873.964660, -------------- Report Sync ------------ Moving the Mouse also results in Console messages Event: time 1959.120635, -------------- Report Sync ------------ Event: time 1959.130676, type 2 (Relative), code 0 (X), value -21 Event: time 1959.130676, -------------- Report Sync ------------ Event: time 1959.140625, type 2 (Relative), code 0 (X), value -16 Press CONTROL+C to come out of this test [root@beagleboard mmc]# ifconfig eth0 <ipaddress> Example: [root@beagleboard mmc]# ifconfig eth0 172.24.191.49 up <6>eth0: link up, 10Mbps, half-duplex, lpa 0x0020 eth0: link up, 10Mbps, half-duplex, lpa 0x0020 [root@beagleboard mmc]# ping 172.24.191.1 PING 172.24.191.1 (172.24.191.1): 56 data bytes 64 bytes from 172.24.191.1: seq=0 ttl=64 time=2.136 ms 64 bytes from 172.24.191.1: seq=1 ttl=64 time=1.068 ms 64 bytes from 172.24.191.1: seq=2 ttl=64 time=1.038 ms Other Tests
OMAP3 beagleboard.org # ibus 2 0x64 OMAP3 beagleboard.org # imd 0x50 0 100 Should get some thing similar header: 0000: 00 ff ff ff ff ff ff 00 10 ac 24 40 5a 39 41 41 ..........$@Z9AA 0010: 1f 11 01 03 80 22 1b 78 ee ae a5 a6 54 4c 99 26 .....".x....TL.& 0020: 14 50 54 a5 4b 00 71 4f 81 80 01 01 01 01 01 01 .PT.K.qO........ 0030: 01 01 01 01 01 01 30 2a 00 98 51 00 2a 40 30 70 ......0*..Q.*@0p 0040: 13 00 52 0e 11 00 00 1e 00 00 00 ff 00 50 4d 30 ..R..........PM0 0050: 36 31 37 38 32 41 41 39 5a 0a 00 00 00 fc 00 44 61782AA9Z......D 0060: 45 4c 4c 20 31 37 30 38 46 50 0a 20 00 00 00 fd ELL 1708FP. .... 0070: 00 38 4c 1e 51 0e 00 0a 20 20 20 20 20 20 00 36 .8L.Q... .6 Note the words "DELL 1708FP" which is the ID of the monitor.
OMAP3 beagleboard.org # nand unlock OMAP3 beagleboard.org # nand erase Will delete complete NAND
NOTE: Copy x-load.bin.ift and u-boot.bin onto MMC as mentioned above
Boot the Board with MMC/SD card (should use MLO and u-boot.bin)
Power the board by pressing the user buttonfatload mmc 0 80200000 x-load.bin.ift nand unlock nandecc hw nand erase 0 80000 nand write 80200000 0 20000 nand write 80200000 20000 20000 nand write 80200000 40000 20000 nand write 80200000 60000 20000 fatload mmc 0 80200000 u-boot.bin nand unlock nandecc sw nand erase 80000 160000 nand write 80200000 80000 160000
arecord -t wav -c 2 -r 8000 -f S16_LE -v /mnt/mmc/rec_8000.dat arecord -t wav -c 2 -r 11025 -f S16_LE -v /mnt/mmc/rec_11025.dat arecord -t wav -c 2 -r 12000 -f S16_LE -v /mnt/mmc/rec_12000.dat arecord -t wav -c 2 -r 16000 -f S16_LE -v /mnt/mmc/rec_16000.dat arecord -t wav -c 2 -r 22050 -f S16_LE -v /mnt/mmc/rec_22050.dat arecord -t wav -c 2 -r 24000 -f S16_LE -v /mnt/mmc/rec_24000.dat arecord -t wav -c 2 -r 32000 -f S16_LE -v /mnt/mmc/rec_32000.dat arecord -t wav -c 2 -r 44100 -f S16_LE -v /mnt/mmc/rec_44100.dat arecord -t wav -c 2 -r 48000 -f S16_LE -v /mnt/mmc/rec_48000.dat aplay -t wav -c 2 -r 8000 -f S16_LE -v /mnt/mmc/rec_8000.dat aplay -t wav -c 2 -r 11025 -f S16_LE -v /mnt/mmc/rec_11025.dat aplay -t wav -c 2 -r 12000 -f S16_LE -v /mnt/mmc/rec_12000.dat aplay -t wav -c 2 -r 16000 -f S16_LE -v /mnt/mmc/rec_16000.dat aplay -t wav -c 2 -r 22050 -f S16_LE -v /mnt/mmc/rec_22050.dat <so on>
setenv bootargs console=ttyS2,115200n8 ramdisk_size=32768 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,32M omapfb.video_mode=1280x720MR-48@60 mmcinit;fatload mmc 0 0x80300000 uImage.bin;fatload mmc 0 0x81600000 ramdisk.gz;bootm 0x80300000; These might work as well, setenv bootargs console=ttyS2,115200n8 ramdisk_size=32768 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,32M omapfb.video_mode=720x480MR-16@60 setenv bootargs console=ttyS2,115200n8 ramdisk_size=32768 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,32M omapfb.video_mode=720x576MR-12@60 setenv bootargs console=ttyS2,115200n8 ramdisk_size=32768 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,32M omapfb.video_mode=1280x720MR-110@60 |
Anybody can tell me, how to enable UART2 on the expansion header from u-boot?
When I do the audio-in and audio-out tests my board prints out the expected lines but I can't hear any sound. Any idea about the problem?
Should I configure alsa?
thanks
There was no real problem:
I was doing the input to the board with a common microphone. I tried with the output of my mp3 player and works fine!
I'm having problems with starting system(board rev C3). I have followed closely above guidelines, but i get no prompt "OMAP3 beagleboard.org #" as mentioned above.
Initial messages are displayed like above(X-Loader, U-Boot), processor is recognized ok, board is detecting correctly whether I'm trying to boot from SD card or from NAND. But then after part:
In: serial Out: serial Err: serial Board revision C1/C2/C3
whole process starts over again(looped, no prompt...) Any ideas?
Hi all,
The procedure given for booting the beagle board worked for me.I use Rev C4.I got the Angstrom prompt.
regards Pravin Devi
UBoot for revision C4 is not available at http://git.gitorious.org/beagleboard-default-u-boot/beagle_uboot_revc4.git.
Newer versions of u-boot no longer support the old i2c commands. For instance when trying to retrieve EDID information from the monitor, this is what happens:
The following commands are updated to use the 'i2c' replacement command. They are confirmed to work with U-Boot 2009.11-rc1.
The monitor is connected to i2c3, so choose the third bus (they're indexed from 0):
Verify that the monitor is communicating at the DDC address (0x50):
Read the first 256 (0x100) bytes of the EDID info:
The above info is for a Planar PX171M LCD.
I could not get u-boot source codes from Git server:
Initialized empty Git repository in /home/hykwok/felabs/sysdev/u-boot-omap/beagle_uboot/.git/ remote: Counting objects: 105712, done. remote: Compressing objects: 100% (18537/18537), done. remote: Total 105712 (delta 86565), reused 105712 (delta 86565) Receiving objects: 100% (105712/105712), 30.41 MiB | 169 KiB/s, done. Resolving deltas: 100% (86565/86565), done. warning: remote HEAD refers to nonexistent ref, unable to checkout.
Today I tried again to get uboot source codes but I still could not get it:
hykwok@ubuntu:~/felabs/sysdev/u-boot-omap$ git clone git://gitorious.org/beagleboard-default-u-boot/beagle_uboot_revc4.git beagle_uboot Initialized empty Git repository in /home/hykwok/felabs/sysdev/u-boot-omap/beagle_uboot/.git/ remote: Counting objects: 105712, done. remote: Compressing objects: 100% (18537/18537), done. remote: Total 105712 (delta 86565), reused 105712 (delta 86565) Receiving objects: 100% (105712/105712), 30.41 MiB | 165 KiB/s, done. Resolving deltas: 100% (86565/86565), done. warning: remote HEAD refers to nonexistent ref, unable to checkout.
Then I tried:
hykwok@ubuntu:~/felabs/sysdev/u-boot-omap$ git clone git://gitorious.org/beagleboard-default-u-boot/mainline.git beagle_uboot Initialized empty Git repository in /home/hykwok/felabs/sysdev/u-boot-omap/beagle_uboot/.git/ remote: Counting objects: 85528, done. remote: Compressing objects: 100% (15660/15660), done. remote: Total 85528 (delta 70309), reused 84583 (delta 69364) Receiving objects: 100% (85528/85528), 28.50 MiB | 103 KiB/s, done. Resolving deltas: 100% (70309/70309), done. Checking out files: 100% (5863/5863), done. hykwok@ubuntu:~/felabs/sysdev/u-boot-omap$ cd beagle_uboot/ hykwok@ubuntu:~/felabs/sysdev/u-boot-omap/beagle_uboot$ git branch -a master
I think there is no "newbranch" in the Git repo.
Why I got this when I tried to boot my beagle board with the files in this page?
Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24) Reading boot sector Loading u-boot.bin from mmc
U-Boot 2009.11 (Feb 23 2010 - 15:33:48)
OMAP3530-GP ES3.1, CPU-OPP2 L3-165MHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MB NAND: 256 MiB In: serial Out: serial Err: serial Board revision C4 Die ID #157a00040000000004037