blob: 46fc63774229abe65e6b7d59252a5eae7932a635 [file] [log] [blame]
Macpaul Linafc1ce82011-10-19 20:41:11 +00001Andes Technology SoC AG101
2==========================
3
4AG101 is the first SoC produced by Andes Technology using N1213 CPU core.
5AG101 has integrated both AHB and APB bus and many periphals for application
6and product development.
7
8ADP-AG101
9=========
10
11ADP-AG101 is the SoC with AG101 hardcore CPU.
12
13Please check http://www.andestech.com/p2-4.htm for detail of this SoC.
14
15Configurations
16==============
17
18CONFIG_MEM_REMAP:
19 Doing memory remap is essential for preparing some non-OS or RTOS
20 applications.
21
22 This is also a must on ADP-AG101 board.
23 (While other boards may not have this problem).
24
25 The reason is because the ROM/FLASH circuit on PCB board.
26 AG101-A0 board has 2 jumpers MA17 and SW5 to configure which
27 ROM/FLASH is used to boot.
28
29 When SW5 = "0101", MA17 = LO, the ROM is connected to BANK0,
30 and the FLASH is connected to BANK1.
31 When SW5 = "1010", MA17 = HI, the ROM is disabled (still at BANK0),
32 and the FLASH is connected to BANK0.
33 It will occur problem when doing flash probing if the flash is at
34 BANK0 (0x00000000) while memory remapping was skipped.
35
36 Other board like ADP-AG101P may not enable this since there is only
37 a FLASH connected to bank0.
38
39CONFIG_SKIP_LOWLEVEL_INIT:
40 If you want to boot this system from FLASH and bypass e-bios (the
41 other boot loader on ROM). You should undefine CONFIG_SKIP_LOWLEVEL_INIT
42 in "include/configs/adp-ag101.h".
43
44Build and boot steps
45====================
46
47build:
481. Prepare the toolchains and make sure the $PATH to toolchains is correct.
492. Use `make adp-ag101` in u-boot root to build the image.
50
51burn u-boot to flash:
521. Make sure the MA17 (J16) is Lo.
532. Make sure the dip switch SW5 is set to "0101".
543. Power On. Press button "S1", then press button "SW1", then you will found the
55 debug LED show 67 means the system successfully booted into e-bios.
56 Now you can control the e-bios boot loader from your console.
574. Under "Command>>" prompt, enter "97" (CopyImageFromCard)
585. Under "Type Dir Name of [CF/SD] =>" promtp, enter "c".
596. Under "Enter Filename =>" prompt, enter the file name of u-boot image you
60 just build. It is usually "u-boot.bin".
617. Under "Enter Dest. Address =>" prompt, enter the memory address where you
62 want to put the binary from SD card to RAM.
63 Address "0x500000" is our suggestion.
648. Under "Command>>" prompt again, enter "55" (CLI) to use interactive command
65 environment.
669. Under "CLI>" prompt, enter "burn 0x500000 0x80400000 0x30000" to burn the
67 binary from RAM to FLASH.
6810. Under "CLI>" prompt, enter "exit" to finish the burn process.
69
70boot u-boot from flash:
711. Make sure the MA17 (J16) is Hi).
722. Make sure the dip switch SW5 is set to "1010".
733. Power On. Press button "S1", then you will see the debug LED count to 20.
744. Now you can use u-boot on ADP-AG101 board.