The table below depicts the memory layout for the image and for the flash.
Memory layout
Item | Address |
---|---|
OS image loaded at: | 0x40100000 |
Flash base address | 0x10000000 |
2. Connect an RJ-45 ethernet cable between the ethernet port on the Fujitsu Jade-D EVB and your local network.
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.
1. On your host machine, start your favorite terminal program with these settings:
2. Make sure the host machine is capable of handling TFTP requests (see the inetd documentation for details).
3. Verify the serial link between the host machine and the target.
4. Verify that an Ethernet link exists between the host machine and the target.
5. Apply power to the target board. You should see output similar to the following:
U-Boot 1.3.0-jadeevalkit-0.8.3 (Sep 9 2009 - 14:34:17) DRAM: 128 MB Flash: 32 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0
Press any key to stop autobooting, and then you'll see the Fujitsu Jade-D EVB prompt:
xxsvideo>
On your target, type the following, filling in the appropriate IP addresses and ifs file:
xxsvideo> setenv netmask 255.255.240.0 xxsvideo> setenv ipaddr 10.42.101.242 xxsvideo> setenv gatewayip 10.42.96.1 xxsvideo> setenv serverip 10.42.98.211 xxsvideo> setenv 'bootcmd tftpboot 40100000;go 40100000' xxsvideo> saveenv
Restart your target. You should see output similar to the following:
Hit any key to stop autoboot: 0 LAN9x18 (0x118a0000) detected. start Auto negotiation... (take ~2sec) Auto negotiation complete, 100BaseTX, full duplex TFTP from server 10.42.98.211; our IP address is 10.42.101.242 Filename 'ifs-jade-d.bin'. Load address: 0x40100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####################### done Bytes transferred = 2111004 (20361c hex) ## Starting application at 0x40100000 ... Multiplex mode (CMUX_MD): 0x00090000 CPU0: Dcache: 512x32 WB CPU0: Icache: 512x32 CPU0: 41069265: arm926 rev 5 333MHz System page at phys:40010000 user:fc404000 kern:fc404000 Starting next program at vfe03d838 cpu_startnext: cpu0 -> fe03d838 Welcome to QNX Neutrino 6.4.0 on the Fujitsu JADE-D Board Starting on-board ethernet with TCP/IP stack... Starting I2C driver... Starting Display driver... Starting audio driver with cs4245 codec Starting CAN driver... #
1. Make a backup copy of the ifs-jade.bin image used for U-Boot.
2. Make sure the jade.build is for IPL image (according to the previous note), and then rebuild your image in order to produce a valid IPL file.
3. Once U-Boot is up and running, load an U-Boot ifs-jade.bin image (backed-up previously) onto the board.
4. Set up a shared network drive on your workstation.
In this example we are using a Windows Share folder to accomplish our work. You have to replace the following names with ones that match your configuration.
5. Ensure that the following utilities are present in your build file.
6. Execute the following commands in the Neutrino shell.
fs-cifs -l //WORKSTATION:WS_IP_ADDR:/SHARE_FOLDER/MOUNT_FOLDER USER_NAME PASSWORD
cp /MOUNT_FOLDER/ipl-ifs-jade-d.bin /dev/shmem/jaded.bin
slay io-pkt
flashctl -p /dev/fs0 -o 0m -l 4m -ve
dd if=/dev/shmem/jaded.bin of=/dev/fs0 bs=1k seek=0k
7. Boot OS images by IPL
QNX Neutrino Initial Program Loader for Fujitsu JADE Commands: Press 'D' for serial download, using the sendnto utility Press 'F' to boot an OS image in flash
send image now...
Use the sendnto utility to download the image.
You can test the OS simply by executing any shell builtin command or any command residing within the OS image (e.g. ls).
Once the initial image is running, you can update the OS image using the network and flash drivers. For sample command lines, please see the “Driver Command Summary” section.
1. Enter the following command to start the flash filesystem driver:
devf-generic -s0x10000000,32M
2. Unlock the entire flash, except for the first megabyte:
flashctl -p/dev/fs0 -o1M -l31M -U
3. Erase the flash, except for the first megabyte:
flashctl -p/dev/fs0 -o1M -l31M -ve
4. Format the partition:
flashctl -p/dev/fs0p0 -o1M -l31M -vf
5. Slay, then restart the driver to mount the new partition:
slay devf-generic
devf-generic -s0x10000000,32M
You should now have /fs0p1 directory automounted.
The driver command lines below are specific to the Fujitsu Jade-D Evaluation Board. See the online docs for each driver for additional command-line options and other details.
Component | Buildfile Command | Required Binaries | Required Libraries | Source Location |
---|---|---|---|---|
Startup | startup-jade-d | . | . | src/hardware/startup/boards/jade-d |
Serial | devc-ser8250 -e -F -S -b115200 -c41500000 0xfffe1000^2,24 | devc-ser8250 | . | src/hardware/devc/ser8250 |
Network | io-pkt-v4 -dsmc9118 ioport=0x02000000,irq=10,mac=662200021605,verbose -pqnet | io-pkt-v4 ifconfig | devn-smc9118.so devnp-shim.so libsocket.so lsm-qnet.so | src/hardware/devn/smc9118 |
Flash | devf-generic -s0x10000000,32M | devf-generic | . | /src/hardware/flash/boards/generic |
I2C | Channel 0: i2c-mb8x -p 0xfff56000
Channel 1: i2c-mb8x -p 0xfff57000 -i 44 --u 1 | i2c-mb8x | . | src/hardware/i2c/mb8x |
Audio | io-audio -v -d jade i2schn=0,noioexp,i2cdev=1,codecaddr=0x4e | io-audio | deva-ctrl-jade.so libasound.so deva-mixer-ac97.so deva-util-restore.so | src/hardware/deva/ctrl/jade |
Graphics | io-display -dvid=0,did=0 | io-display | devg-jade.so libm.so libGLES_CL.so.1 libffb.so.2 libgf.so.1 libdisputil.so | src/hardware/devg/jade |
SPI | spi-mb8x -k -x | spi-mb8x | . | src/hardware/spi/mb8x |
CAN | Channel 0: dev-can-jade can0
Channel 1: dev-can-jade can1 | dev-can-jade canctl | . | src/hardware/can/jade |
Some modules aren't enabled after boot up, so you need to use command-line options to startup to enable them. You must pass these options before any other startup options.
Command :
startup-jade-d options
A command-line option is required to startup to enable some modules.
-m 0xXXXX: Groups 2-4, 6-11 multiplex I/O configuration. Value can range from 0-0x1fff (default=0x0009).
The I2C channel 1 driver should be running before start the audio driver:
i2c-mb8x -p 0xfff57000 -i 44 --u 1
Then start the audio driver:
io-audio -vv -d jade i2schn=0,noioexp,i2cdev=1,codecaddr=0x4e
To start the drive:
io-display -dvid=0,did=0
Required config files:
The /etc/system/config/display.conf configuration file describes the graphics memory interface settings. It should contain the following for a 640x480 resolution:
device { drivername=jade vid=0 did=0 deviceindex=0 modeopts=/etc/system/config/jade.conf display { xres=640 yres=480 refresh=60 pixel_format=argb1555 } }