wiki4027: Nto641TiOmap3530BeagleTrunkReleasenotes (Version 6) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release Notes for the QNX Neutrino 6.4.1 BSP for OMAP3530 Beagle Board#System requirements#Target system#
Host development system#
System Layout#The tables below depict the memory layout for the image and for the flash.
The interrupt vector table can be found in the buildfile located at src/hardware/startup/boards/omap3530/beagle.build Getting Started#Step 1: Connect your hardware#
Step 2: Build the BSP#You can build a BSP OS image from the source code or the binary components contained in a BSP package. For instructions about building a BSP OS image, please refer to the chapter Working with a BSP in the Building Embedded Systems manual.Step 3: Transfer the OS image to the target using the ROM monitor#On your host machine, start your favorite terminal program with these settings:
Setting up the environment#For OMAP3530 Beagle Board#Apply power to the target board. You should see output on your terminal console, similar to the following: Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24) Reading boot sector Loading u-boot.bin from nand U-Boot 1.3.3 (Jul 10 2008 - 16:33:09) 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 usbtty Out: serial usbtty Err: serial usbtty Board revision C Serial #7842000300000000040323090b017014 Hit any key to stop autoboot: 0 OMAP3 beagleboard.org # SD card download#OMAP3 beagleboard.org # mmcinit; fatload mmc 0 0x80100000 ifs-omap3530-beagle.bin; go 80100000 At this point you should see the ROM monitor download the boot image, indicated by a series of number signs. You'll also see output similar to this when it completes downloading: reading ifs-omap3530-beagle.bin 1633308 bytes read ## Starting application at 0x80100000 ... CPU0: L1 Icache: 256x64 CPU0: L1 Dcache: 256x64 WB CPU0: L2 Dcache: 4096x64 WB CPU0: VFP 410330c1 CPU0: 411fc083: Cortex A8 rev 3 500MHz System page at phys:80010000 user:fc404000 kern:fc404000 Starting next program at vfe046f9c cpu_startnext: cpu0 -> fe046f9c VFPv3: fpsid=410330c1 coproc_attach(10): replacing fe0748e4 with fe074130 coproc_attach(11): replacing fe0748e4 with fe074130 Welcome to QNX Neutrino 6.4.1 on the Texas Instruments OMAP3530 (ARMv7 Cortex-A8 core) - Beagle Board Now you can test the OS, simply by executing any shell builtin command or any command residing within the OS image (e.g. ls).
Flashing the IPL on to the target#Step A: Creat the IPL image#
Note:
For further information on how to use the combination of UART ~Downloader tool and .
Run the mkflashimage script, inside the /images directory of the BSP. The output file from this script is a binary IPL image called ipl-omap3530beagle.bin and nand-ipl-omap3530beagle.bin.
First, you'll download ipl-omap3530beagle.bin file to the board's memory using the pserial tools, and then you can burn the ifs image ifs-omap3530-beagle.bin and NAND IPL image nand-ipl-omap3530beagle.bin into the board's NAND flash. The IPL is padded to 24K. The following steps describes how to generate the ipl-omap3530evm.bin and nand-ipl-omap3530beagle.bin:
Here is the mkflashimage script: #!/bin/sh # script to build a binary IPL and boot image for the OMAP3530 Beagle board set -v # Convert IPL header into Binary format ${QNX_HOST}/usr/bin/ntoarm-objcopy --input-format=elf32-littlearm --output-format=binary ../src/hardware/ipl/boards/omap3530beagle/arm/le/boot_header.o ./tmp-boot-header.bin # Convert IPL into Binary format ${QNX_HOST}/usr/bin/ntoarm-objcopy --input-format=elf32-littlearm --output-format=binary ../src/hardware/ipl/boards/omap3530beagle/arm/le/ipl-omap3530beagle ./tmp-ipl-omap3530beagle.bin # Cat boot header and ipl together cat ./tmp-boot-header.bin ./tmp-ipl-omap3530beagle.bin > ./tmp-header-ipl-omap3530beagle.bin # Pad Binary IPL to 24K image, this is the image used by boot from UART mkrec -s24k -ffull -r ./tmp-ipl-omap3530beagle.bin > ./ipl-omap3530beagle.bin # Pad Binary IPL with Header to 24K image, this is the image to put on NAND and boot from NAND mkrec -s24k -ffull -r ./tmp-header-ipl-omap3530beagle.bin > ./nand-ipl-omap3530beagle.bin # clean up temporary files rm -f tmp*.bin echo "done!!!!!!!" Step B: Booting an IPL image: ipl-omap3530beagle.bin using the pserial tools.#The following procedure describes how to booting an IPL image using the pserial tool. The working directory is C:/omap3530-beagle/. 1. Dowload the pserial tool to c:/tools. 2. Turn OFF the Omap3530 Beagle Board by unplugging the power adapter, and close any open serial terminal programs. Connect a RS232 null modem cable between the host and the RS232 connector (UART3 Debug/Boot) on the OMAP35x Beagle Board base board. 3.In Windows Command Prompt console, c:\tools>pserial.exe -p COM1 -f /omap3530-beagle/ipl-omap3530beagle.bin Waiting For Device ASIC ID: Press Ctrl+C to stop 4. Push the user button, and plug in the power adapter. In Windows Command Prompt console, c:\tools>pserial.exe -p COM1 -f /omap3530-beagle/ipl-omap3530beagle.bin Waiting For Device ASIC ID: Press Ctrl+C to stop ASIC ID Detected. Sending 2ndFile: Downloading file: 100.000% completed(24576/24576 bytes) File download completed. 5. Open a serial terminal program, the following message will display: QNX Neutrino Initial Program Loader for Texas Instruments OMAP3530 Beagle Board Commands: Press 'D' for serial download, using the 'sendnto' utility Press 'F' to boot an OS image from NAND flash Press 'U' to Copy an OS image to NAND flash Press 'I' to Update the IPL Step C: Download NAND IPL image and OS image #1. Start the QNX Momentics IDE on the host. 2. Open a terminal server window. See the IDE documentation for details. 3.Type I to update the IPL in the NAND flash. 6. In the terminal server window, click the "send file" button in the upper left corner. A popup window will open. Type or browse the correct image file name (nand-ipl-omap3530beagle.bin) in the "Filename" box and sendto as the proctocol. Click OK to start the download on the host side. or using the QNX 'sendnto' utility: sendnto -d/dev/ser1 -b115200 ./nand-ipl-omap3530beagle.bin to download image 7. After the download process finishes, You should see output similar to the following: Press 'D' for serial download, using the 'sendnto' utility Press 'F' to boot an OS image from NAND flash Press 'U' to Copy an OS image to NAND flash Press 'I' to Update the IPL Send the IPL image, using the 'sendnto' utility... Download OK... Writing IPL to NAND flash @ blk0 ...... Update IPL OK Commands: Press 'D' for serial download, using the 'sendnto' utility Press 'F' to boot an OS image from NAND flash Press 'U' to Copy an OS image to NAND flash Press 'I' to Update the IPL 8.Type U to copy the OS image to the NAND flash. 9. In the terminal server window, click the "send file" button in the upper left corner. A popup window will open. Type or browse the correct image file name (ifs-omap3530-beagle.bin) in the "Filename" box and sendto as the proctocol. Click OK to start the download on the host side. or using the QNX 'sendnto' utility: sendnto -d/dev/ser1 -b115200 ./ifs-omap3530-beagle.bin to download image 10. After the download process finishes, You should see output similar to the following: Press 'D' for serial download, using the 'sendnto' utility Press 'F' to boot an OS image from NAND flash Press 'U' to Copy an OS image to NAND flash Press 'I' to Update the IPL send the ifs now... download OK... Writing IFS image to NAND flash from block 4 ...... Upgrade IFS OK... Commands: Press 'D' for serial download, using the 'sendnto' utility Press 'F' to boot an OS image from NAND flash Press 'U' to Copy an OS image to NAND flash Press 'I' to Update the IPL 11.Type F ' to boot an OS image from NAND flash. You should see output similar to the following: reading from NAND flash ........ Found image @ 0x84000008 Jumping to startup @ 0x80100480 CPU0: L1 Icache: 256x64 CPU0: L1 Dcache: 256x64 WB CPU0: L2 Dcache: 4096x64 WB CPU0: VFP 410330c1 CPU0: 411fc083: Cortex A8 rev 3 500MHz EHCI_ViewPort_write timeout 82870090 EHCI_ViewPort_write timeout 82870090 System page at phys:80010000 user:fc404000 kern:fc404000 Starting next program at vfe047f9c cpu_startnext: cpu0 -> fe047f9c VFPv3: fpsid=410330c1 coproc_attach(10): replacing fe0758e4 with fe075130 coproc_attach(11): replacing fe0758e4 with fe075130 Welcome to QNX Neutrino 6.4.1 on the Texas Instruments OMAP3530 (ARMv7 Cortex-A8 core) - Beagle Board Creating a new flash partition#
You should now have a /fs/etfs directory which you can copy files to.
Summary of driver commands#The following tables summarize the commands to launch the various drivers. For the OMAP3530 Beagle board #
Some of the drivers are commented out in the default buildfile. To use the drivers in the target hardware, you'll need to uncomment them in your buildfile, rebuild the image, and load the image into the board. SD card #Command:i2c-omap35xx pmic_tw4030_cfg devb-mmcsd-omap3 cam quiet blk cache=2mNote: To start the audio system, you'll need to execute the I2C driver and pmic_tw4030_cfg utility first Audio#Command:i2c-omap35xx pmic_tw4030_cfg io-audio -d omap35xevm wave testfile.wavNote: To start the audio system, you'll need to execute the I2C driver and pmic_tw4030_cfg utility first Graphics#Command: i2c-omap35xx pmic_tw4030_cfg io-display -dvid=0,did=0Note: To start the audio system, you'll need to execute the I2C driver and pmic_tw4030_cfg utility first USB OTG Host Controller driver#Command: io-usb -domap3530-mg ioport=0x480ab000,irq=92 -dehci-omap3 ioport=0x48064800,irq=77,verbose=5 Note: 1. Connect to the micro usb adapter as we do not support the larger one yet. 2. Press the S1 button until the beagle board boot up. 3.Start io-usb with the stock options from the bsp build file. WiFI driver #Command: ## WIFI start ram filesystem devb-ram ram capacity=16384,nodinit,cache=0m waitfor /dev/hd0 fdisk /dev/hd0 add -t 6 mount -e /dev/hd0 mkdosfs /dev/hd0t6 mount -t dos /dev/hd0t6 /fsram ## SDIO WIFI driver ## Note: please insert SDIO WIFI card. and then run ". ./root/wifi.sh" /root/wifi.sh io-pkt-v4 -d /proc/boot/devnp-mv8686.so dir=/root/io-pkt,verbose=1,poll=0 -p tcpip mclbytes=4096,stacksize=65000 random ifconfig mv0 up wpa_supplicant -Dwext -imv0 -C /fsram/tmpfs & wpa_cli -i mv0 -p /fsram/tmpfs Note: please refer to WIFI_HOW_TO_RUN.txt which is included in the BSP SGX Graphics Accelerator driver#Command:pvrsrvd Note: 1. io-display have to run first 2. The Composition_Manager patch:patch-641-1672-CompositionMgr.tar need be install first.
# cd beagle_workdir # tar -xvf patch-641-1672-CompositionMgr.tar # cd patches/641-1672/target/qnx6 # cp -r armle ../../../../prebuilt/ # cd beagle_workdir/prebuilt/armle/usr/lib/graphics # cp * ../../../lib/dll # cd beagle_workdir # make clean all 3. For the detailed documents about the composition_manager and SGX Graphics Accelerator, you can refer to
Known issues for this BSP#
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||