Ron Madrid | 9ff89b7 | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 1 | Sheldon Instruments SIMPC8313 Board |
| 2 | ----------------------------------------- |
| 3 | |
| 4 | 1. Board Switches and Jumpers |
| 5 | |
| 6 | S2 is used to set CFG_RESET_SOURCE. |
| 7 | |
| 8 | To boot the image in Large page NAND flash, use these DIP |
| 9 | switch settings for S2: |
| 10 | |
| 11 | +----------+ ON |
| 12 | | * * **** | |
| 13 | | * * | |
| 14 | +----------+ |
| 15 | 12345678 |
| 16 | |
| 17 | To boot the image in Small page NAND flash, use these DIP |
| 18 | switch settings for S2: |
| 19 | |
| 20 | +----------+ ON |
| 21 | | *** **** | |
| 22 | | * | |
| 23 | +----------+ |
| 24 | 12345678 |
| 25 | (where the '*' indicates the position of the tab of the switch.) |
| 26 | |
| 27 | 2. Memory Map |
| 28 | The memory map looks like this: |
| 29 | |
| 30 | 0x0000_0000 0x1fff_ffff DDR 512M |
| 31 | 0x8000_0000 0x8fff_ffff PCI MEM 256M |
| 32 | 0x9000_0000 0x9fff_ffff PCI_MMIO 256M |
| 33 | 0xe000_0000 0xe00f_ffff IMMR 1M |
| 34 | 0xe200_0000 0xe20f_ffff PCI IO 16M |
| 35 | 0xe280_0000 0xe280_7fff NAND FLASH (CS0) 32K |
| 36 | or |
| 37 | 0xe280_0000 0xe281_ffff NAND FLASH (CS0) 128K |
| 38 | 0xff00_0000 0xff00_7fff FPGA (CS1) 1M |
| 39 | |
| 40 | 3. Compilation |
| 41 | |
| 42 | Assuming you're using BASH (or similar) as your shell: |
| 43 | |
| 44 | export CROSS_COMPILE=your-cross-compiler-prefix- |
| 45 | make distclean |
| 46 | make SIMPC8313_LP_config |
| 47 | (or make SIMPC8313_SP_config, depending on the page size |
| 48 | of your NAND flash) |
| 49 | make |
| 50 | |
| 51 | 4. Downloading and Flashing Images |
| 52 | |
| 53 | 4.1 Reflash U-boot Image using U-boot |
| 54 | |
| 55 | =>run update_uboot |
| 56 | |
| 57 | You may want to try |
| 58 | =>tftp $loadaddr $uboot |
| 59 | first, to make sure that the TFTP load will succeed before it |
| 60 | goes ahead and wipes out your current firmware. And of course, |
| 61 | if the new u-boot doesn't boot, you can plug the board into |
| 62 | your PCI slot and with the supplied driver and sample app |
| 63 | you can reburn a working u-boot. |
| 64 | |
| 65 | 4.2 Downloading and Booting Linux Kernel |
| 66 | |
| 67 | Ensure that all networking-related environment variables are set |
| 68 | properly (including ipaddr, serverip, gatewayip (if needed), |
| 69 | netmask, ethaddr, eth1addr, fdtfile, and bootfile). |
| 70 | |
| 71 | =>tftp $loadaddr uImage |
| 72 | =>nand write $loadaddr kernel $filesize |
| 73 | =>tftp $loadaddr $fdtfile |
| 74 | =>nand write $loadaddr 7e0000 1800 |
| 75 | |
| 76 | =>boot |
| 77 | |
| 78 | 5 Notes |
| 79 | |
| 80 | The console baudrate for SIMPC8313 is 115200bps. |