diff options
author | Peter Robinson | 2018-06-10 00:17:46 -0500 |
---|---|---|
committer | Tom Warren | 2018-07-06 11:12:39 -0500 |
commit | 84996795c2f81cbfac210b6f2c168c5fb06a7a20 (patch) | |
tree | 685e02e67a7eb3939ede48a84eefdb179401db25 | |
parent | 4ac5df4b41ba46d7e635bdd8d500721c642b0a0d (diff) | |
download | u-boot-84996795c2f81cbfac210b6f2c168c5fb06a7a20.tar.gz u-boot-84996795c2f81cbfac210b6f2c168c5fb06a7a20.tar.xz u-boot-84996795c2f81cbfac210b6f2c168c5fb06a7a20.zip |
tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium
To build U-Boot on a Nyan Big Chromebook the docs outline adjusting the Tegra124
defined CONFIG_SYS_TEXT_BASE but this has since been moved to individual config
files. We should have the default required for U-Boot chain loading on the
chromebook as the default CONFIG_SYS_TEXT_BASE and update the docs to remove
this now non required step.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r-- | configs/nyan-big_defconfig | 2 | ||||
-rw-r--r-- | doc/README.chromium | 27 |
2 files changed, 8 insertions, 21 deletions
diff --git a/configs/nyan-big_defconfig b/configs/nyan-big_defconfig index 8868d1f9e1..3b64c64371 100644 --- a/configs/nyan-big_defconfig +++ b/configs/nyan-big_defconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | CONFIG_ARM=y | 1 | CONFIG_ARM=y |
2 | CONFIG_TEGRA=y | 2 | CONFIG_TEGRA=y |
3 | CONFIG_SYS_TEXT_BASE=0x80110000 | 3 | CONFIG_SYS_TEXT_BASE=0x81000100 |
4 | CONFIG_DEBUG_UART_BASE=0x70006000 | 4 | CONFIG_DEBUG_UART_BASE=0x70006000 |
5 | CONFIG_DEBUG_UART_CLOCK=408000000 | 5 | CONFIG_DEBUG_UART_CLOCK=408000000 |
6 | CONFIG_TEGRA124=y | 6 | CONFIG_TEGRA124=y |
diff --git a/doc/README.chromium b/doc/README.chromium index 7bf4d87447..45eaeced2d 100644 --- a/doc/README.chromium +++ b/doc/README.chromium | |||
@@ -43,26 +43,13 @@ https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big | |||
43 | https://lists.denx.de/pipermail/u-boot/2017-May/289491.html | 43 | https://lists.denx.de/pipermail/u-boot/2017-May/289491.html |
44 | https://github.com/chromeos-nvidia-androidtv/gnu-linux-on-acer-chromebook-13#copy-data-to-the-sd-card | 44 | https://github.com/chromeos-nvidia-androidtv/gnu-linux-on-acer-chromebook-13#copy-data-to-the-sd-card |
45 | 45 | ||
46 | 1. Patch U-Boot | 46 | 1. Build U-Boot |
47 | |||
48 | Open include/configs/tegra124-common.h | ||
49 | |||
50 | Change: | ||
51 | |||
52 | #define CONFIG_SYS_TEXT_BASE 0x80110000 | ||
53 | |||
54 | to: | ||
55 | |||
56 | #define CONFIG_SYS_TEXT_BASE 0x81000100 | ||
57 | |||
58 | |||
59 | 2. Build U-Boot | ||
60 | 47 | ||
61 | mkdir b | 48 | mkdir b |
62 | make -j8 O=b/nyan-big CROSS_COMPILE=arm-linux-gnueabi- nyan-big_defconfig all | 49 | make -j8 O=b/nyan-big CROSS_COMPILE=arm-linux-gnueabi- nyan-big_defconfig all |
63 | 50 | ||
64 | 51 | ||
65 | 3. Select a .its file | 52 | 2. Select a .its file |
66 | 53 | ||
67 | Select something from doc/chromium which matches your board, or create your | 54 | Select something from doc/chromium which matches your board, or create your |
68 | own. | 55 | own. |
@@ -72,7 +59,7 @@ used by U-Boot. This is because the Chromebook expects to pass it to the | |||
72 | kernel, and crashes if it is not present. | 59 | kernel, and crashes if it is not present. |
73 | 60 | ||
74 | 61 | ||
75 | 4. Build and sign an image | 62 | 3. Build and sign an image |
76 | 63 | ||
77 | ./b/nyan-big/tools/mkimage -f doc/chromium/nyan-big.its u-boot-chromium.fit | 64 | ./b/nyan-big/tools/mkimage -f doc/chromium/nyan-big.its u-boot-chromium.fit |
78 | echo test >dummy.txt | 65 | echo test >dummy.txt |
@@ -82,7 +69,7 @@ kernel, and crashes if it is not present. | |||
82 | --bootloader dummy.txt --pack u-boot.kpart | 69 | --bootloader dummy.txt --pack u-boot.kpart |
83 | 70 | ||
84 | 71 | ||
85 | 5. Prepare an SD card | 72 | 4. Prepare an SD card |
86 | 73 | ||
87 | DISK=/dev/sdc # Replace with your actual SD card device | 74 | DISK=/dev/sdc # Replace with your actual SD card device |
88 | sudo cgpt create $DISK | 75 | sudo cgpt create $DISK |
@@ -91,12 +78,12 @@ kernel, and crashes if it is not present. | |||
91 | sudo gdisk $DISK # Enter command 'w' to write a protective MBR to the disk | 78 | sudo gdisk $DISK # Enter command 'w' to write a protective MBR to the disk |
92 | 79 | ||
93 | 80 | ||
94 | 6. Write U-Boot to the SD card | 81 | 5. Write U-Boot to the SD card |
95 | 82 | ||
96 | sudo dd if=u-boot.kpart of=/dev/sdc1; sync | 83 | sudo dd if=u-boot.kpart of=/dev/sdc1; sync |
97 | 84 | ||
98 | 85 | ||
99 | 7. Start it up | 86 | 6. Start it up |
100 | 87 | ||
101 | Reboot the device in dev mode. Make sure that you have USB booting enabled. To | 88 | Reboot the device in dev mode. Make sure that you have USB booting enabled. To |
102 | do this, login as root (via Ctrl-Alt-forward_arrow) and type | 89 | do this, login as root (via Ctrl-Alt-forward_arrow) and type |
@@ -115,7 +102,7 @@ mode screen. It should show something like the following on the display: | |||
115 | Tegra124 (Nyan-big) # | 102 | Tegra124 (Nyan-big) # |
116 | 103 | ||
117 | 104 | ||
118 | 8. Known problems | 105 | 7. Known problems |
119 | 106 | ||
120 | On the serial console the word MMC is chopped at the start of the line: | 107 | On the serial console the word MMC is chopped at the start of the line: |
121 | 108 | ||