Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: include/configs/chromeos/tegra2/developer.h

Issue 6731090: Remove ChromeOS specific configs from the U-Boot repository. (Closed) Base URL: ssh://gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Rebase to TOT. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/configs/chromeos/tegra2/common.h ('k') | include/configs/chromeos/tegra2/flasher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef __configs_chromeos_tegra2_developer_h__
8 #define __configs_chromeos_tegra2_developer_h__
9
10 #include <configs/chromeos/developer.h>
11 #include <configs/chromeos/tegra2/common.h>
12
13 #include <configs/chromeos/tegra2/parts/nand.h>
14 #include <configs/chromeos/tegra2/parts/usb.h>
15
16 /*
17 * We expect all Tegra2 machines to have SPI flash as defined by the
18 * firmware_layout.h config file. The environment will go there.
19 */
20 #define CONFIG_ENV_IS_IN_SPI_FLASH 1
21
22 #define CONFIG_ENV_SECT_SIZE CONFIG_LENGTH_ENV
23 #define CONFIG_ENV_OFFSET CONFIG_OFFSET_ENV
24
25 /* Override the environment size, since we only need a small area */
26 #undef CONFIG_ENV_SIZE
27 #define CONFIG_ENV_SIZE CONFIG_LENGTH_ENV
28
29 #define CONFIG_SYS_MEMTEST_START 0x0000
30 #define CONFIG_SYS_MEMTEST_END 0x1000
31
32 /*
33 * Developer-friendly booting options:
34 *
35 * dhcp_boot: get IP address from DHCP, then boot with NFS root.
36 * keynfs_boot: get kernel from USB stick ext2 partition 1, then NFS root.
37 * usb_boot: boot from a USB image made with image_to_usb.sh.
38 * mmc_boot: boot from an image installed in eMMC,
39 *
40 * regen_all sets up the bootargs, so must be run after any change to
41 * environment variables.
42 *
43 * The network adapter must be available before starting an dhcp_boot. You
44 * may need to use 'usb start' first if you are using a USB ethernet adapter.
45 * The same applies for usb_boot.
46 */
47
48 #define CONFIG_EXTRA_ENV_SETTINGS_ARCH \
49 "console=ttyS0,115200n8\0"\
50 "cros_bootfile=/boot/vmlinux.uimg\0"\
51 "user=user\0"\
52 "board=arm\0"\
53 "serial#=1\0"\
54 "tftppath=/tftpboot/uImage\0"\
55 "tftpserverip=10.0.0.1\0"\
56 "nfsserverip=10.0.0.1\0"\
57 "mmcdev=0\0"\
58 "regen_all="\
59 "setenv common_bootargs console=${console} "\
60 "${platform_extras} noinitrd; "\
61 "setenv bootargs ${common_bootargs} ${extra_bootargs} "\
62 "${bootdev_bootargs}\0"\
63 "regen_net_bootargs=setenv bootdev_bootargs "\
64 "dev=/dev/nfs4 rw nfsroot=${nfsserverip}:${rootpath} "\
65 "ip=dhcp; "\
66 "run regen_all\0"\
67 \
68 "dhcp_setup=setenv tftppath "\
69 "/tftpboot/uImage-${user}-${board}-${serial#}; "\
70 "setenv rootpath " CONFIG_ROOTPATH "; "\
71 "setenv autoload n; "\
72 "run regen_net_bootargs\0"\
73 "dhcp_boot=run dhcp_setup; "\
74 "bootp; tftpboot ${loadaddr} ${tftpserverip}:${tftppath}; "\
75 "bootm ${loadaddr}\0"\
76 \
77 "keynfs_setup="\
78 "setenv rootpath " CONFIG_ROOTPATH "; "\
79 "run regen_net_bootargs\0" \
80 "keynfs_boot=run keynfs_setup; "\
81 "ext2load usb 0:1 ${loadaddr} uImage; "\
82 "bootm ${loadaddr}\0" \
83 \
84 "usb_setup=setenv bootdev_bootargs "\
85 "root=/dev/sda3 rootwait; "\
86 "run regen_all\0"\
87 "usb_boot=run usb_setup; "\
88 "ext2load usb 0:3 ${loadaddr} ${cros_bootfile}; "\
89 "bootm ${loadaddr}\0" \
90 \
91 "mmc_setup=mmc init ${mmcdev}; setenv bootdev_bootargs "\
92 "root=/dev/mmcblk0p3 rootwait; "\
93 "run regen_all\0"\
94 "mmc_boot=run mmc_setup; "\
95 "ext2load mmc ${mmcdev}:3 ${loadaddr} ${cros_bootfile}; "\
96 "bootm ${loadaddr}\0"
97
98 /*
99 * Our developer-friendly boot process tries a number of things in sequence
100 * until it finds a kernel. Network booting is tried first if we have Ethernet.
101 */
102 #define CONFIG_BOOTCOMMAND \
103 "usb start; "\
104 "if test ${ethact} != \"\"; then "\
105 "run dhcp_boot ; " \
106 "fi ; " \
107 "run keynfs_boot ; " \
108 "run usb_boot ; " \
109 "run mmc_boot"
110
111 #endif //__configs_chromeos_tegra2_developer_h__
OLDNEW
« no previous file with comments | « include/configs/chromeos/tegra2/common.h ('k') | include/configs/chromeos/tegra2/flasher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698