The tables below depict the memory layout for the image and for the flash.
Item | Address |
---|---|
OS image loaded at: | 0x88010000 |
OS image begins execution at: | 0x88012ba0 |
Flash base address (Bank A SW4 - 1 ON) | 0x00000000 |
Flash base address (Bank B SW4 - 1 ON) | 0x04000000 |
Serial base address (SCIF 0) | 0xFFE00000 (IRQ: 0x2018) |
Serial base address (SCIF 1) | 0xFFE10000 (IRQ: 0x203C) |
Ethernet base address | 0x15800000 (IRQ: 6) |
Connect the serial cable to the serial port of the Renesas SH7785 EDOSK and to a free serial port on the host machine (e.g. ser1 on a Neutrino host).
Note: If you have a Neutrino host with a serial mouse, you may have to move the mouse to the second serial port on your host, because some terminal programs require the first serial port.
To program the combined IPL and OS image ipl-ifs-edosk7780.bin into flash, using the ETS Monitor, do the following:
1. Configure the ETS Monitor as follows, substituting your own IP addresses for server and board:
TFTP Bootloader Main Menu ------------------------- 1. Boot from network 2. Boot from flash 3. Boot from FAT32 format MMC card 4. Load program into flash 5. Display configuration 6. Change configuration Command:> 6 Setup TFTP Bootloader Configuration: At any prompt press 'Enter' to leave unchanged or 'Esc' key to quit Use DHCP to setup network? (default=Static IP) [y/n]: n Enter board IP address [10.42.106.251]: Enter server IP address [10.42.106.240]: Enter kernel (/xfer/ipl-ifs-edosk7780.bin) filename: Download to flash Bank B? (default=Bank A) [y/n]: y Download file format bin/srec? [b/s]: b Binary load address [default=H'40010000] : Load a disk image? [y/n]: n Setup kernel command line? [y/n]: n Boot option: TFTP, Flash, None(TFTP Menu)? [t/f/n]: t Is flash Bank A write protect switch SW4-4 = 'OFF'? [Y/N] : y Updating Boot Flash - Do not switch-off or disconnect until complete Please wait, saving the new Boot configuration... Successfully saved new TFTP Bootloader configuration. TFTP Bootloader Main Menu ------------------------- 1. Boot from network 2. Boot from flash 3. Boot from FAT32 format MMC card 4. Load program into flash 5. Display configuration 6. Change configuration Command:> 4 Board IP address: 10.42.106.251 Server IP address: 10.42.106.240 Downloading /xfer/ipl-ifs-edosk7780.bin to flash bank B 0020003 Downloaded 3432 bytes, crc 17 Is flash Bank B write protect switch SW4-5 = 'OFF'? [Y/N] : y Flash: AM29GL512N (67108864 bytes) Sectors: 256 (262144 bytes each) Writing Binary to flash... Is the BIN image Big or Little Endian? [b/l]: l b 2 add A4000000 Toggle flash bank select switch to boot from bank B
3. Once the IPL is loaded, you will be given two choices:
If you've followed the directions above, you can simply press any key (other than d) and the OS image in flash will boot.
If you wish to download the OS image serially, press the d key and use sendnto to download the image:
sendnto -b115200 -d/dev/ser1 ifs-edosk7780.bin
To download a QNX OS image directly to the board's memory, using the ETS TFTP loader, do the following:
1. Modify the OS image build file edosk7780.build to generate an ELF image.
Change the original line: [virtual=shle/binary +compress] .bootstrap = {
to: [virtual=shle/elf +compress] .bootstrap = {
2. Generate the ELF image as described in the previous section. Note: The name of the resultant image will remain ifs-edosk7780.bin.
3. Apply power to the EDOSK7780.
4. The following should display in the serial console:
========================================================== (c) Renesas Technology Europe Ltd.[www.Renesas.com] Embedded Test Suite (ETS) for SDK7780 ETS Version: 2.00 Oct 08 2004 FPGA Version: 2.00 Sep 16 2004 Ethernet MAC Address for this platform: H'0000.87D6.DE30 ========================================================== ETS MAIN MENU 0. Flash Programming Menu 1. Test Menu 2. Boot Configuration Menu 3. Upgrade FPGA Version 4. Display System Configuration ========================================================== Command:>
6. Setup the host system to accept tftp requests.
7. Using the instructions provided by Renesas for the TFTP Loader, load the ELF image.
1. Enter the following command to start the flash filesystem driver:
devf-edosk7780 -s0x0,64M
or:
devf-edosk7780 -s0x04000000,64M
2. Erase the flash, except for the first 2 megabytes:
flashctl -p/dev/fs0 -o2M -ev
3. Format the partition:
flashctl -p/dev/fs0p0 -o2M -f
4. Slay, then restart the driver:
slay devf-edosk7780
devf-edosk7780 -s0x0,64M &
or:
devf-edosk7780 -s0x04000000,64M
You should now have a /fs0p1 directory that you can copy files to.
The following table summarizes the commands to launch the various drivers.
Component | Buildfile Command | Required Binaries | Required Libraries | Source Location |
---|---|---|---|---|
Startup | startup-edosk7780 -Dscif..115200.1843200.16 -f400000000 -v | . | . | src/hardware/startup/boards/edosk7780 |
Serial | devc-sersci -e -F -x -b115200 -c1843200/16 scif0 scif1 & | devc-sersci | . | src/hardware/devc/sersci |
Flash (NOR) | First 64MB at 0x0 : devf-edosk7780 -s0x0,64M
Second 64MB at 0x04000000 : devf-edosk7780 -s0x04000000,64M Note: Bank A / B depends on SW4 - 1 position | devf-edosk7780 flashctl | . | src/hardware/flash/boards/edosk7780 |
PCI | pci-edosk7780 | pci-edosk7780 pci | . | src/hardware/pci/edosk7780 |
Network | io-pkt-v4 -dsmc9000 ioport=0x15800000,irq=6 -pttcpip if=en0:x.x.x.x | io-pkt-v4 ifconfig | devn-smc9000.so libsocket.so | src/hardware/devn/smc9000 |
ATA/ATAPI | devb-eide-edosk7780 | devb-eide-edosk7780 | . | src/hardware/devb/eide/sh/edosk7780.le |
Audio | io-audio -dedosk7780_ac97 | io-audio wave mix_ctl | deva-ctrl-edosk7780_ac97.so deva-mixer-ac97.so libasound.so | src/hardware/deva/ctrl/edosk7780_ac97 |
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.