On your host, run your terminal application with the following configuration:
You can build a BSP OS image from the source code or the binary components contained in a BSP package.
The startup-advantech-som6760 will add 1Gb of system memory by default. If needed edit the src/hardware/startup/boards/advantech-som6760/main.c file
for adding proper amount of system memory and set MTRR table (Poulsbo_MTRR_Region structure) with write-combining range for graphical driver, e.g. src/hardware/startup/lib/x86/poulsbo_mtrr_regions_512m.c for 512 Mb.
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 a Neutrino host, plug the USB key in a USB port (the following steps assume the USB key device name is /dev/hd1, but it may be /dev/umass0 for an unformatted key). At a command prompt:
2. fdisk /dev/hd1
3. Delete existing partitions (hit d, then s)
4. Create a new type 79 partition (hit c, then 79, then 0, then numCylinders-1, then s)
5. Make the partition bootable (hit b, then s)
6. Slay and restart devb-umass
7. dinit /dev/hd1t79
8. dloader /dev/hd1 pc1
9. dloader /dev/hd1t79 pc2
10. Slay and restart devb-umass
Note that steps 1-10 only need to be done once.
11. mount /dev/hd1t79 /stick
12. cp -V ifs-advantech-som6760-bios.raw /stick/.boot
1. Ensure your image is small enough to fit in EEPROM with the microcode (images/CMC.bin) at 0xD0000. If you have an EEPROM chip of 1MB,
that means the entire image must fit in the first 0xD0000 (832K). A larger EEPROM chip will allow you to have a larger image,
so long as the microcode is located at 0xD0000 and the IPL is at 0xF0000.
2. Go to the images subdirectory of the BSP and run:
3. make ifs-fastboot.raw
Note that this invokes the mkrom.sh script which was written for a 1MB EEPROM chip, you'll have to change it for larger chips. Its contents are as follows:
#!/bin/sh # This script assumes an EEPROM size of 1MB # Example usage: ./mkrom.sh ifs-advantech-som6760.fastboot.bin if [ "$1" == "" ]; then echo "Must specify the image file" exit 1; fi #pad it out to 0xD0000 mkrec -s832k -r -ffull $1 > tmp1.bin #tack on 64k microcode cat tmp1.bin CMC_advantech.bin > tmp2.bin #pad image out to 0xF0000 mkrec -s960k -ffull -r tmp2.bin > tmp3.bin #tack on 64k IPL cat tmp3.bin ../install/x86/boot/sys/ipl-advantech-som6760 > fastboot.rom rm tmp1.bin tmp2.bin tmp3.bin
5. Boot the ~Advantech ~SOM-6760 with the BIOS disabled
6. The IPL will ask you if you want to scan flash for an image or receive an image over the serial link.
6a. Select "f" to boot the image in EEPPROM
6b. Select "d" to receive an image over the serial link. Then run sendnto -d/dev/ser1 -b115200 ifs-fastboot.raw from the host connected to the target.
The driver command lines below are specific to the ~Advantech ~SOM-6760 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-advantech-som6760 | . | . | src/hardware/startup/boards/advantech-som6760 |
Serial | devc-ser8250 -F -e -b115200 -u1 3f8,4 -u2 2f8,3 | devc-ser8250 | . | QNX SPD 6.4.x (Binary Only) |
PCI | pci-poulsbo & | pci-poulsbo | . | src/hardware/pci/poulsbo |
Network | io-pkt-v4-hc -dspeedo -ptcpip | io-pkt-v4-hc ifconfig | devnp-speedo.so libsocket.so devnp-shim.so | QNX SPD 6.4.x (Binary Only) |
USB | io-usb -duhci -dehci | io-usb usb | devu-ohci.so devu-ehci.so libusbdi.so | QNX SPD 6.4.x (Binary Only) |
SD/MMC | devb-mmcsd blk cache=1M mmcsd vid=0x8086,did=0x811d | devb-mmcsd | libcam.so io-blk.so cam-disk.so fs-qnx4.so | src/hardware/devb/mmcsd |
Audio | io-audio -dintel_hda | io-audio mix_ctl wave waverec | libasound.so deva-ctrl-intel_hda.so deva-mixer-hda.so deva-util-restore.so | QNX SPD 6.4.x (Binary Only) |
Graphics | io-display -d vid=0x8086,did=0x8108 | io-display | devg-poulsbo.so libgf.so.1 libGLES_CM.so.1 libffb.so.2 libm.so.2 | prebuilt only |
EIDE | devb-eide | devb-eide | libcam.so.2 io-blk.so cam-disk.so fs-qnx4.so fs-dos.so | QNX SPD 6.4.x (Binary Only) |
SMbus resource manager | smb-poulsbo | smb-poulsbo read_smb write_smb | . | src/hardware/support/smb-poulsbo-pub |