1702e6014SWolfgang DenkFreescale MPC837xEMDS Board 2702e6014SWolfgang Denk----------------------------------------- 3702e6014SWolfgang Denk1. Board Switches and Jumpers 4702e6014SWolfgang Denk1.0 There are four Dual-In-Line Packages(DIP) Switches on MPC837xEMDS board 5702e6014SWolfgang Denk For some reason, the HW designers describe the switch settings 6702e6014SWolfgang Denk in terms of 0 and 1, and then map that to physical switches where 7702e6014SWolfgang Denk the label "On" refers to logic 0 and "Off" is logic 1. 8702e6014SWolfgang Denk 9702e6014SWolfgang Denk Switch bits are numbered 1 through, like, 4 6 8 or 10, but the 10702e6014SWolfgang Denk bits may contribute to signals that are numbered based at 0, 11702e6014SWolfgang Denk and some of those signals may be high-bit-number-0 too. Heed 12702e6014SWolfgang Denk well the names and labels and do not get confused. 13702e6014SWolfgang Denk 14702e6014SWolfgang Denk "Off" == 1 15702e6014SWolfgang Denk "On" == 0 16702e6014SWolfgang Denk 17702e6014SWolfgang Denk SW4[8] is the bit labeled 8 on Switch 4. 18702e6014SWolfgang Denk SW2[1:6] refers to bits labeled 1 through 6 in order on switch 2. 19702e6014SWolfgang Denk SW2[1:8]= 0000_0001 refers to bits labeled 1 through 7 is set as "On" 20702e6014SWolfgang Denk and bits labeled 8 is set as "Off". 21702e6014SWolfgang Denk 22702e6014SWolfgang Denk1.1 For the MPC837xEMDS Processor Board 23702e6014SWolfgang Denk 24702e6014SWolfgang Denk First, make sure the board default setting is consistent with the 25702e6014SWolfgang Denk document shipped with your board. Then apply the following setting: 26702e6014SWolfgang Denk SW3[1-8]= 0011_0000 (BOOTSEQ, ROMLOC setting) 27702e6014SWolfgang Denk SW4[1-8]= 0000_0110 (core PLL setting) 28702e6014SWolfgang Denk SW5[1-8]= 1001_1000 (system PLL, boot up from low end of flash) 29702e6014SWolfgang Denk SW6[1-8]= 0000_1000 (HRCW is read from NOR FLASH) 30702e6014SWolfgang Denk SW7[1-8]= 0110_1101 (TSEC1/2 interface setting - RGMII) 31702e6014SWolfgang Denk J3 2-3, TSEC1 LVDD1 with 2.5V 32702e6014SWolfgang Denk J6 2-3, TSEC2 LVDD2 with 2.5V 33702e6014SWolfgang Denk J9 2-3, CLKIN from osc on board 34702e6014SWolfgang Denk J10 removed, CS0 connect to NOR flash; when mounted, CS0 connect to NAND 35702e6014SWolfgang Denk J11 removed, Hardware Reset Configuration Word load from FLASH(NOR or NAND) 36702e6014SWolfgang Denk mounted, HRCW load from BCSR. 37702e6014SWolfgang Denk 38702e6014SWolfgang Denk on board Oscillator: 66M 39702e6014SWolfgang Denk 40702e6014SWolfgang Denk2. Memory Map 41702e6014SWolfgang Denk 42702e6014SWolfgang Denk2.1. The memory map should look pretty much like this: 43702e6014SWolfgang Denk 44702e6014SWolfgang Denk 0x0000_0000 0x7fff_ffff DDR 2G 45702e6014SWolfgang Denk 0x8000_0000 0x8fff_ffff PCI MEM prefetch 256M 46702e6014SWolfgang Denk 0x9000_0000 0x9fff_ffff PCI MEM non-prefetch 256M 47702e6014SWolfgang Denk 0xc000_0000 0xdfff_ffff Empty 512M 48702e6014SWolfgang Denk 0xe000_0000 0xe00f_ffff Int Mem Reg Space 1M 49702e6014SWolfgang Denk 0xe010_0000 0xe02f_ffff Empty 2M 50702e6014SWolfgang Denk 0xe030_0000 0xe03f_ffff PCI IO 1M 51702e6014SWolfgang Denk 0xe040_0000 0xe05f_ffff Empty 2M 52702e6014SWolfgang Denk 0xe060_0000 0xe060_7fff NAND Flash 32K 53702e6014SWolfgang Denk 0xf400_0000 0xf7ff_ffff Empty 64M 54702e6014SWolfgang Denk 0xf800_0000 0xf800_7fff BCSR on CS1 32K 55702e6014SWolfgang Denk 0xfe00_0000 0xffff_ffff NOR Flash on CS0 32M 56702e6014SWolfgang Denk 57702e6014SWolfgang Denk3. Definitions 58702e6014SWolfgang Denk 59702e6014SWolfgang Denk3.1 Explanation of NEW definitions in: 60702e6014SWolfgang Denk 61702e6014SWolfgang Denk include/configs/MPC837XEMDS.h 62702e6014SWolfgang Denk 63702e6014SWolfgang Denk CONFIG_MPC83xx MPC83xx family for both MPC837x and MPC8360 64702e6014SWolfgang Denk CONFIG_MPC837x MPC837x specific 65702e6014SWolfgang Denk CONFIG_MPC837XEMDS MPC837XEMDS board specific 66702e6014SWolfgang Denk 67702e6014SWolfgang Denk4. Compilation 68702e6014SWolfgang Denk 69702e6014SWolfgang Denk Assuming you're using BASH shell: 70702e6014SWolfgang Denk 71702e6014SWolfgang Denk export CROSS_COMPILE=your-cross-compile-prefix 72702e6014SWolfgang Denk cd u-boot 73702e6014SWolfgang Denk make distclean 74702e6014SWolfgang Denk make MPC837XEMDS_config 75702e6014SWolfgang Denk make 76702e6014SWolfgang Denk 77702e6014SWolfgang Denk5. Downloading and Flashing Images 78702e6014SWolfgang Denk 79702e6014SWolfgang Denk5.0 Download over serial line using Kermit: 80702e6014SWolfgang Denk 81702e6014SWolfgang Denk loadb 82702e6014SWolfgang Denk [Drop to kermit: 83702e6014SWolfgang Denk ^\c 84702e6014SWolfgang Denk send <u-boot-bin-image> 85702e6014SWolfgang Denk c 86702e6014SWolfgang Denk ] 87702e6014SWolfgang Denk 88702e6014SWolfgang Denk 89702e6014SWolfgang Denk Or via tftp: 90702e6014SWolfgang Denk 91702e6014SWolfgang Denk tftp 40000 u-boot.bin 92702e6014SWolfgang Denk 93*a187559eSBin Meng5.1 Reflash U-Boot Image using U-Boot 94702e6014SWolfgang Denk 95702e6014SWolfgang Denk tftp 40000 u-boot.bin 96702e6014SWolfgang Denk protect off fe000000 fe1fffff 97702e6014SWolfgang Denk erase fe000000 fe1fffff 98702e6014SWolfgang Denk 99702e6014SWolfgang Denk cp.b 40000 fe000000 xxxx 100702e6014SWolfgang Denk 101702e6014SWolfgang DenkYou have to supply the correct byte count with 'xxxx' from the TFTP result log. 102702e6014SWolfgang Denk 103702e6014SWolfgang Denk6. Notes 104702e6014SWolfgang Denk 1) The console baudrate for MPC837XEMDS is 115200bps. 105