blob: b3a6b8bb0b71a7d77092402c9330a25e51d4df0b [file] [log] [blame]
wdenk4a551702003-10-08 23:26:14 +00001
2 Nios Development Kit
3 Cyclone Editions
4
wdenka3ad8e22003-10-19 23:22:11 +00005 Last Update: October 15, 2003
wdenk4a551702003-10-08 23:26:14 +00006====================================================================
7
8This file contains information regarding U-Boot and the Altera
9Nios Development Kit, Cyclone Edition (DK-1C20). For general Nios
10information see doc/README.nios.
11
12For those interested in contributing ... see HELP WANTED section
13in doc/README.nios.
14
15
16Files
17------
18 board/dk1c20/*
19 include/configs/DK1C20.h
20
21Memory 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
28Misc
29-----
30
31The hello_world example works fine.
32
33
34Programming U-Boot into FLASH with GERMS
35-----------------------------------------
36The current version of the DK-1C20 port occupies less than
wdenka3ad8e22003-10-19 23:22:11 +00003760 KByte with network support disabled. So everything will fit
38into a single flash sector. With network support (e.g. bootp,
39tftpboot, ping, etc) the flash footprint is about 77K.
40
wdenk4a551702003-10-08 23:26:14 +000041To program U-Boot into the DK-1C20 flash using GERMS do the
42following:
43
441. From the command line, download U-Boot using the nios-run:
45
46 $ nios-run -r u-boot.srec
47
48This takes about 45 seconds (GERMS is not very speedy here).
49After u-boot is downloaded it will be executed. You should
50see 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
632. Quit nios-run and start your terminal application (e.g. start
64Hyperterminal or minicom).
65
663. From the U-Boot command prompt, erase a sector of flash at 0x40000:
67
68 ==> erase 40000 4ffff
69
704. Download the u-boot code to RAM. When using Hyperterminal, do the
71following:
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
795. Copy the binary image from SRAM to flash:
80
81 ==> cp.b 800000 40000 10000
82
83U-Boot will now automatically start when the board is powered on or
84reset using the Standard-32 configuration. To start U-Boot with the
85Safe-32 configuration, enter the following GERMS command:
86
87 + g 40000