Macpaul Lin | afc1ce8 | 2011-10-19 20:41:11 +0000 | [diff] [blame] | 1 | Andes Technology SoC AG101 |
| 2 | ========================== |
| 3 | |
| 4 | AG101 is the first SoC produced by Andes Technology using N1213 CPU core. |
| 5 | AG101 has integrated both AHB and APB bus and many periphals for application |
| 6 | and product development. |
| 7 | |
| 8 | ADP-AG101 |
| 9 | ========= |
| 10 | |
| 11 | ADP-AG101 is the SoC with AG101 hardcore CPU. |
| 12 | |
| 13 | Please check http://www.andestech.com/p2-4.htm for detail of this SoC. |
| 14 | |
| 15 | Configurations |
| 16 | ============== |
| 17 | |
| 18 | CONFIG_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 | |
| 39 | CONFIG_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 | |
| 44 | Build and boot steps |
| 45 | ==================== |
| 46 | |
| 47 | build: |
| 48 | 1. Prepare the toolchains and make sure the $PATH to toolchains is correct. |
| 49 | 2. Use `make adp-ag101` in u-boot root to build the image. |
| 50 | |
| 51 | burn u-boot to flash: |
| 52 | 1. Make sure the MA17 (J16) is Lo. |
| 53 | 2. Make sure the dip switch SW5 is set to "0101". |
| 54 | 3. 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. |
| 57 | 4. Under "Command>>" prompt, enter "97" (CopyImageFromCard) |
| 58 | 5. Under "Type Dir Name of [CF/SD] =>" promtp, enter "c". |
| 59 | 6. Under "Enter Filename =>" prompt, enter the file name of u-boot image you |
| 60 | just build. It is usually "u-boot.bin". |
| 61 | 7. 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. |
| 64 | 8. Under "Command>>" prompt again, enter "55" (CLI) to use interactive command |
| 65 | environment. |
| 66 | 9. Under "CLI>" prompt, enter "burn 0x500000 0x80400000 0x30000" to burn the |
| 67 | binary from RAM to FLASH. |
| 68 | 10. Under "CLI>" prompt, enter "exit" to finish the burn process. |
| 69 | |
| 70 | boot u-boot from flash: |
| 71 | 1. Make sure the MA17 (J16) is Hi). |
| 72 | 2. Make sure the dip switch SW5 is set to "1010". |
| 73 | 3. Power On. Press button "S1", then you will see the debug LED count to 20. |
| 74 | 4. Now you can use u-boot on ADP-AG101 board. |