Bin Meng | d25afed | 2019-07-18 00:34:21 -0700 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | R0P7752C00000RZ board |
| 4 | ===================== |
| 5 | |
| 6 | This board specification |
| 7 | ------------------------ |
| 8 | |
| 9 | The R0P7752C00000RZ(board config name:sh7752evb) has the following device: |
| 10 | |
| 11 | - SH7752 (SH-4A) |
| 12 | - DDR3-SDRAM 512MB |
| 13 | - SPI ROM 8MB |
| 14 | - Gigabit Ethernet controllers |
| 15 | - eMMC 4GB |
| 16 | |
| 17 | |
| 18 | Configuration for This board |
| 19 | ---------------------------- |
| 20 | |
| 21 | You can select the configuration as follows: |
| 22 | |
| 23 | - make sh7752evb_config |
| 24 | |
| 25 | |
| 26 | This board specific command |
| 27 | --------------------------- |
| 28 | |
| 29 | This board has the following its specific command: |
| 30 | |
| 31 | write_mac: |
| 32 | You can write MAC address to SPI ROM. |
| 33 | |
| 34 | Usage 1: Write MAC address |
| 35 | |
| 36 | .. code-block:: none |
| 37 | |
| 38 | write_mac [GETHERC ch0] [GETHERC ch1] |
| 39 | |
| 40 | For example: |
| 41 | => write_mac 74:90:50:00:33:9e 74:90:50:00:33:9f |
| 42 | |
| 43 | * We have to input the command as a single line (without carriage return) |
| 44 | * We have to reset after input the command. |
| 45 | |
| 46 | Usage 2: Show current data |
| 47 | |
| 48 | .. code-block:: none |
| 49 | |
| 50 | write_mac |
| 51 | |
| 52 | For example: |
| 53 | => write_mac |
| 54 | GETHERC ch0 = 74:90:50:00:33:9e |
| 55 | GETHERC ch1 = 74:90:50:00:33:9f |
| 56 | |
| 57 | |
| 58 | Update SPI ROM |
| 59 | -------------- |
| 60 | |
| 61 | 1. Copy u-boot image to RAM area. |
| 62 | 2. Probe SPI device. |
| 63 | |
| 64 | .. code-block:: none |
| 65 | |
| 66 | => sf probe 0 |
| 67 | SF: Detected MX25L6405D with page size 64KiB, total 8 MiB |
| 68 | |
| 69 | 3. Erase SPI ROM. |
| 70 | |
| 71 | .. code-block:: none |
| 72 | |
| 73 | => sf erase 0 80000 |
| 74 | |
| 75 | 4. Write u-boot image to SPI ROM. |
| 76 | |
| 77 | .. code-block:: none |
| 78 | |
| 79 | => sf write 0x48000000 0 80000 |