wiki3119: Nto640FreescaleI.mx353dsTrunkReleasenotes (Version 9) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Release Notes for the QNX Neutrino 6.4.0 BSP for Freescale i.MX35 3DS 1.0.0#System requirements#Target system
Host development system
System Layout#The tables below depict the memory layout for the image and for the flash.Memory layout
The interrupt vector table can be found in the buildfile located at src/hardware/startup/boards/3dsmx35/build
Getting Started#Starting Neutrino#Step 1: Build the BSP Copy or transfer the IFS image into your tftp server's directory.
Step 2: Connect your hardware
On your host machine, start your favorite terminal program with these settings:
Then, apply power to the target. You should see output similar to the following: ++... Read from 0x07ee0000-0x07f00000 at 0xa3fe0000: . ... Read from 0x07ed3000-0x07ed4000 at 0xa3fff000: . **Warning** FLASH configuration checksum error or invalid key Use 'fconfig -i' to [re]initialize database PMIC ID: 0x00000010 [Rev: 1.0] Ethernet FEC MAC address: is not set hardware reset by POR Clock input is 24 MHz Booting from [NOR flash] Ringo Chip is working in auto mode LAN92xx Driver version 1.1 SMSC LAN9217: ID = 0x117a REV = 0x0 [Warning] FEC not connect right PHY: ID=fffffc FEC: [ FULL_DUPLEX ] [ connected ] [ 100M bps ]: ... waiting for BOOTP information Ethernet eth0: MAC address 00:04:9f:00:94:fa IP: 192.168.1.202/255.255.255.0, Gateway: 192.168.1.1 Default server: 192.168.1.15 RedBoot(tm) bootstrap and debug environment [ROMRAM] Non-certified release, version FSL 200814 - built 16:47:08, May 19 2008 Platform: Freescale (i.MX35 ) PASS 1.0 [x32 DDR] Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. RAM: 0x00000000-0x07f00000, [0x00025680-0x07ed1000] available FLASH: 0xa0000000 - 0xa4000000, 512 blocks of 0x00020000 bytes each. RedBoot> # Step 3: Setup the environment At the RedBoot prompt, issue the fconfig command to change the current environment. The current configurations will be displayed; change the configuration if you want. Run script at boot: false Use BOOTP for network configuration: false Gateway IP address: 192.168.1.1 Local IP address: 192.168.1.202 Local IP address mask: 255.255.255.0 Default server IP address: 192.168.1.15 Board specifics: 0 Console baud rate: 115200 Set eth0 network hardware address [MAC]: false GDB connection port: 9000 Force console for special debug messages: false Network debug at boot time: false Step 4: Boot the IFS image Once the above setup is complete, you can run the load command at the RedBoot prompt to download the image: load -r -b 0x00100000 -h 192.168.1.15 /tftpboot/ifs-3dsmx35.bin Replace 192.168.1.15 with the IP address of your TFTP server and /tftpboot/ifs-3dsmx35.bin with the path of the image on the TFTP server. RedBoot will display the follow message and start downloading the boot image: Using default protocol (TFTP) If the image is successfully loaded RedBoot will display: Raw file loaded 0x00100000-0x000c9124, assumed entry at 0x00100000 Type run to jump to startup and boot the IFS image. You should see QNX Neutrino boot, followed by the welcome message on your terminal screen: CPU0: Dcache: 512x32 WB CPU0: Icache: 512x32 CPU0: VFP 410120b3 CPU0: 4117b363: arm1136 rev 3 399MHz System page at phys:80010000 user:fc404000 kern:fc404000 Starting next program at vfe03edf0 cpu_startnext: cpu0 -> fe03edf0 coproc_attach(10): replacing fe060044 with fe05f928 coproc_attach(11): replacing fe060044 with fe05f928 Welcome to Neutrino 6.4 on the Freescale i.MX35 3DS (ARM 1136 core) Board # You can test the OS simply by executing any shell builtin command or any command residing within the OS image (e.g. ls). Step 5: Replace the ~Redboot bootloader with a native QNX IPL and OS image in flash At some point, you may wish to replace the ~Redboot bootloader with the native QNX IPL code. This may be desirable once you've tweaked the OS image exactly the way you want it, and you want the board to boot the image automatically, immediately on power up. To replace the ~Redboot bootloader: 1.Modify your buildfile to generate a binary image. The mkflashimage script:
Here is the mkflashimage script: #!/bin/sh # # script to build a binary IPL image for Freescale i.MX35 3DS board and # combine with the binary OS image # set -v rm -f ipl-3dsmx35.bin ipl-ifs-3dsmx35.bin # convert IPL into BINARY format ${QNX_HOST}/usr/bin/ntoarm-objcopy --input-format=elf32-littlearm --output-format=binary -R.data ../install/armle/boot/sys/ipl-3dsmx35 ipl-tmp-3dsmx35.bin # pad BINARY IPL mkrec -r -ffull -s16k ipl-tmp-3dsmx35.bin > ipl-3dsmx35.bin # create a combined IPL and IFS image cat ipl-3dsmx35.bin ifs-3dsmx35.bin > ipl-ifs-3dsmx35.bin # clean up temporary files rm -f *tmp* Instead of starting the image, we'll now transfer the bootable flash image (IPL/OS) to the board. The bootloader can convert to binary format the last image it downloaded and then write it to flash. 3.Boot the board as described above, using ~Redboot to TFTP-download the ifs-3dsmx35.bin boot image. 4.If it's not already started, start the network driver as follows, substituting your own IP address for x.x.x.x: io-pkt-v4-hc -dmx35 mac=00e02991234e -ptcpip ifconfig en0 x.x.x.x 5.Start fs-nfs2, establishing an NFS connection to the host machine where your ipl-ifs-3dsmx35.bin image resides: fs-nfs2 y.y.y.y:/mount_dir/nfs 6.Start the flash filesystem driver and erase the first 4MB of flash as follows (erase a larger area if the size of your combined image exceeds 4MB): devf-generic -s0xA0000000,64M flashctl -p/dev/fs0 -o0M -l4M -ve 7.Copy ipl-ifs-3dsmx35.bin to the flash, as follows: dd if=/nfs/ipl-ifs-3dsmx35.bin of=/dev/fs0 bs=1k seek=0k When the copy is complete, you can reboot; it should now boot from the native QNX IPL. You should see output as follows: QNX Neutrino IPL for 3DSMX35 board Commands: d: download image to RAM f: scan flash for image ipl> 8.Enter f or F, and the board should boot from the OS image in flash. You'll see the familiar Neutrino welcome message on your terminal screen: Welcome to Neutrino 6.4 on the Freescale i.MX35 3DS (ARM 1136 core) Board # If desired, the IPL code can be modified to eliminate the prompt and automatically boot from the flash without user intervention. To do this, modify the <main.c> file of the IPL source, located under: $BSP_PATH/src/hardware/ipl/boards/3dsmx35/
Creating a flash partition#1. Start the NOR flash filesystem driver by issuing the devf-generic -s0xA0000000,64M command at the ksh prompt, or in the startup script.2. Prepare the area for the partition. Because the ROM monitor and IPL/OS image are in the first 4MB of flash, you will not want to erase them. Use the -l (length) and -o (offset) options to avoid these areas. Assuming that the ROM monitor and IPL/OS image have a maximum size of 4 MB and we want to create a 16 MB partition: flashctl -p/dev/fs0 -o4M -l16M -ve 3. Format the partition: flashctl -p/dev/fs0p0 -o4M -l16M -vf 4. Slay, then restart the driver: slay devf-generic devf-generic -s0xA0000000,64M In this example, you have a 16 MB flash partition starting at the end of the OS image (4 MB offset). You should now have a /fs0p1 mount on the target to which you can copy files.
Driver Command Summary#The following table summarizes the commands to launch the various drivers.
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. Startup and USB have additional details: Startup#startup-3dsmx35 [startup-options] Some modules aren't enabled after boot up, so you need to use command line options to startup to enable them. These options must be passed before any other startup options.
USB#Running the USB driver requires the following hardware modifications to be performed on the i.MX35 3DS board:
Note:
This hardware modification will disable the access to BT by USB host. You will want to include class drivers, such as devb-umass in order to make use of attached USB devices.
Known Issues for This BSP#
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | Versions | ![]() | Associations | ![]() | Attachments | ![]() | Back Links | ![]() |
||