wdenk | 4a55170 | 2003-10-08 23:26:14 +0000 | [diff] [blame] | 1 | |
| 2 | Nios Development Kit |
| 3 | Cyclone Editions |
| 4 | |
wdenk | a3ad8e2 | 2003-10-19 23:22:11 +0000 | [diff] [blame^] | 5 | Last Update: October 15, 2003 |
wdenk | 4a55170 | 2003-10-08 23:26:14 +0000 | [diff] [blame] | 6 | ==================================================================== |
| 7 | |
| 8 | This file contains information regarding U-Boot and the Altera |
| 9 | Nios Development Kit, Cyclone Edition (DK-1C20). For general Nios |
| 10 | information see doc/README.nios. |
| 11 | |
| 12 | For those interested in contributing ... see HELP WANTED section |
| 13 | in doc/README.nios. |
| 14 | |
| 15 | |
| 16 | Files |
| 17 | ------ |
| 18 | board/dk1c20/* |
| 19 | include/configs/DK1C20.h |
| 20 | |
| 21 | Memory Organization |
| 22 | -------------------- |
| 23 | |
| 24 | -The heap is placed below the monitor (U-Boot code). |
| 25 | -Global data is placed below the heap. |
| 26 | -The stack is placed below global data (&grows down). |
| 27 | |
| 28 | Misc |
| 29 | ----- |
| 30 | |
| 31 | The hello_world example works fine. |
| 32 | |
| 33 | |
| 34 | Programming U-Boot into FLASH with GERMS |
| 35 | ----------------------------------------- |
| 36 | The current version of the DK-1C20 port occupies less than |
wdenk | a3ad8e2 | 2003-10-19 23:22:11 +0000 | [diff] [blame^] | 37 | 60 KByte with network support disabled. So everything will fit |
| 38 | into a single flash sector. With network support (e.g. bootp, |
| 39 | tftpboot, ping, etc) the flash footprint is about 77K. |
| 40 | |
wdenk | 4a55170 | 2003-10-08 23:26:14 +0000 | [diff] [blame] | 41 | To program U-Boot into the DK-1C20 flash using GERMS do the |
| 42 | following: |
| 43 | |
| 44 | 1. From the command line, download U-Boot using the nios-run: |
| 45 | |
| 46 | $ nios-run -r u-boot.srec |
| 47 | |
| 48 | This takes about 45 seconds (GERMS is not very speedy here). |
| 49 | After u-boot is downloaded it will be executed. You should |
| 50 | see the following: |
| 51 | |
| 52 | U-Boot 1.0.0-pre (Oct 4 2003 - 07:39:24) |
| 53 | |
| 54 | CPU: Nios-32 Rev. 3.08 (0x3018) |
| 55 | Reg file size: 256 LO_LIMIT/HI_LIMIT: 2/14 |
| 56 | Board: Altera Nios 1C20 Development Kit |
| 57 | In: serial |
| 58 | Out: serial |
| 59 | Err: serial |
| 60 | ==> |
| 61 | |
| 62 | |
| 63 | 2. Quit nios-run and start your terminal application (e.g. start |
| 64 | Hyperterminal or minicom). |
| 65 | |
| 66 | 3. From the U-Boot command prompt, erase a sector of flash at 0x40000: |
| 67 | |
| 68 | ==> erase 40000 4ffff |
| 69 | |
| 70 | 4. Download the u-boot code to RAM. When using Hyperterminal, do the |
| 71 | following: |
| 72 | |
| 73 | --From the u-boot command prompt start a binary download to SRAM: |
| 74 | |
| 75 | ==> loadb 800000 |
| 76 | |
| 77 | --Download u-boot.bin using kermit. |
| 78 | |
| 79 | 5. Copy the binary image from SRAM to flash: |
| 80 | |
| 81 | ==> cp.b 800000 40000 10000 |
| 82 | |
| 83 | U-Boot will now automatically start when the board is powered on or |
| 84 | reset using the Standard-32 configuration. To start U-Boot with the |
| 85 | Safe-32 configuration, enter the following GERMS command: |
| 86 | |
| 87 | + g 40000 |