1702e6014SWolfgang DenkKeymile kmeter1 Board 2702e6014SWolfgang Denk----------------------------------------- 3702e6014SWolfgang Denk1. Alternative Boot EEPROM 4702e6014SWolfgang Denk 5702e6014SWolfgang Denk Upon the kmeter1 startup the I2C_1 controller is used to fetch the boot 6702e6014SWolfgang Denk configuration from a serial EEPROM. During the development and debugging 7702e6014SWolfgang Denk phase it might be helpful to apply an alternative boot configuration in 8702e6014SWolfgang Denk a simple way. Therefore it is an alternative boot eeprom on the PIGGY, 9702e6014SWolfgang Denk which can be activated by setting the "ST" jumper on the PIGGY board. 10702e6014SWolfgang Denk 11702e6014SWolfgang Denk2. Memory Map 12702e6014SWolfgang Denk 13702e6014SWolfgang Denk BaseAddr PortSz Size Device 14702e6014SWolfgang Denk ----------- ------ ----- ------ 15702e6014SWolfgang Denk 0x0000_0000 64 bit 256MB DDR 16702e6014SWolfgang Denk 0x8000_0000 8 bit 256KB GPIO/PIGGY on CS1 17702e6014SWolfgang Denk 0xa000_0000 8 bit 256MB PAXE on CS3 18702e6014SWolfgang Denk 0xe000_0000 2MB Int Mem Reg Space 19702e6014SWolfgang Denk 0xf000_0000 16 bit 256MB FLASH on CS0 20702e6014SWolfgang Denk 21702e6014SWolfgang Denk 22702e6014SWolfgang Denk DDR-SDRAM: 23702e6014SWolfgang Denk The current realization is made with four 16-bits memory devices. 24702e6014SWolfgang Denk Mounting options have been foreseen for device architectures from 25702e6014SWolfgang Denk 4Mx16 to 512Mx16. The kmeter1 is equipped with four 32Mx16 devices 26702e6014SWolfgang Denk thus resulting in a total capacity of 256MBytes. 27702e6014SWolfgang Denk 28702e6014SWolfgang Denk3. Compilation 29702e6014SWolfgang Denk 30702e6014SWolfgang Denk Assuming you're using BASH shell: 31702e6014SWolfgang Denk 32702e6014SWolfgang Denk export CROSS_COMPILE=your-cross-compile-prefix 33702e6014SWolfgang Denk cd u-boot 34702e6014SWolfgang Denk make distclean 35702e6014SWolfgang Denk make kmeter1_config 36702e6014SWolfgang Denk make 37702e6014SWolfgang Denk 38702e6014SWolfgang Denk4. Downloading and Flashing Images 39702e6014SWolfgang Denk 40702e6014SWolfgang Denk4.0 Download over serial line using Kermit: 41702e6014SWolfgang Denk 42702e6014SWolfgang Denk loadb 43702e6014SWolfgang Denk [Drop to kermit: 44702e6014SWolfgang Denk ^\c 45702e6014SWolfgang Denk send <u-boot-bin-image> 46702e6014SWolfgang Denk c 47702e6014SWolfgang Denk ] 48702e6014SWolfgang Denk 49702e6014SWolfgang Denk 50702e6014SWolfgang Denk Or via tftp: 51702e6014SWolfgang Denk 52702e6014SWolfgang Denk tftp 10000 u-boot.bin 53702e6014SWolfgang Denk => run load 54702e6014SWolfgang Denk Using UEC0 device 55702e6014SWolfgang Denk TFTP from server 192.168.1.1; our IP address is 192.168.205.4 56702e6014SWolfgang Denk Filename '/tftpboot/kmeter1/u-boot.bin'. 57702e6014SWolfgang Denk Load address: 0x200000 58702e6014SWolfgang Denk Loading: ############## 59702e6014SWolfgang Denk done 60702e6014SWolfgang Denk Bytes transferred = 204204 (31dac hex) 61702e6014SWolfgang Denk => 62702e6014SWolfgang Denk 63*a187559eSBin Meng4.1 Reflash U-Boot Image using U-Boot 64702e6014SWolfgang Denk 65702e6014SWolfgang Denk => run update 66702e6014SWolfgang Denk ..... done 67702e6014SWolfgang Denk Un-Protected 5 sectors 68702e6014SWolfgang Denk 69702e6014SWolfgang Denk ..... done 70702e6014SWolfgang Denk Erased 5 sectors 71702e6014SWolfgang Denk Copy to Flash... done 72702e6014SWolfgang Denk ..... done 73702e6014SWolfgang Denk Protected 5 sectors 74702e6014SWolfgang Denk Total of 204204 bytes were the same 75702e6014SWolfgang Denk Saving Environment to Flash... 76702e6014SWolfgang Denk . done 77702e6014SWolfgang Denk Un-Protected 1 sectors 78702e6014SWolfgang Denk . done 79702e6014SWolfgang Denk Un-Protected 1 sectors 80702e6014SWolfgang Denk Erasing Flash... 81702e6014SWolfgang Denk . done 82702e6014SWolfgang Denk Erased 1 sectors 83702e6014SWolfgang Denk Writing to Flash... done 84702e6014SWolfgang Denk . done 85702e6014SWolfgang Denk Protected 1 sectors 86702e6014SWolfgang Denk . done 87702e6014SWolfgang Denk Protected 1 sectors 88702e6014SWolfgang Denk => 89702e6014SWolfgang Denk 90702e6014SWolfgang Denk5. Notes 91702e6014SWolfgang Denk 1) The console baudrate for kmeter1 is 115200bps. 92