~ubuntu-branches/ubuntu/feisty/apex/feisty

« back to all changes in this revision

Viewing changes to src/mach-ixp42x/env.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc Singer
  • Date: 2006-10-22 14:20:13 UTC
  • Revision ID: james.westby@ubuntu.com-20061022142013-zy5md2199ipggdxq
Tags: 1.4.7
* New command line starts RTC.
* Moved the environment to the same block as the loader.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* env.c
 
2
 
 
3
   written by Marc Singer
 
4
   7 Nov 2004
 
5
 
 
6
   Copyright (C) 2004 Marc Singer
 
7
 
 
8
   This program is free software; you can redistribute it and/or
 
9
   modify it under the terms of the GNU General Public License as
 
10
   published by the Free Software Foundation; either version 2 of the
 
11
   License, or (at your option) any later version.
 
12
 
 
13
   This program is distributed in the hope that it will be useful, but
 
14
   WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
   General Public License for more details.
 
17
 
 
18
   You should have received a copy of the GNU General Public License
 
19
   along with this program; if not, write to the Free Software
 
20
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 
21
   USA.
 
22
 
 
23
   -----------
 
24
   DESCRIPTION
 
25
   -----------
 
26
 
 
27
   Environment for the IXP42x.
 
28
 
 
29
*/
 
30
 
 
31
#include <config.h>
 
32
#include <environment.h>
 
33
#include <driver.h>
 
34
#include <service.h>
 
35
 
 
36
#define _s(v) #v
 
37
#define _t(v) _s(v)
 
38
 
 
39
#if defined (CONFIG_MACH_NSLU2) && !defined (CONFIG_ENV_DEFAULT_CMDLINE)
 
40
 
 
41
__env struct env_d e_cmdline = {
 
42
  .key = "cmdline",
 
43
  .default_value = "console=ttyS0,115200"
 
44
  /* Acording to dyoung, we need to use /dev/slug as the root device
 
45
     to get the slug to boot properly.  I hope this will change. */
 
46
                   " root=/dev/ram"
 
47
  //               " root=/dev/slug"
 
48
  //               " rootfstype=ext2,jffs2"
 
49
  //#if defined (CONFIG_RAMDISK_LMA)
 
50
  //               " initrd=" _t(CONFIG_RAMDISK_LMA) ",10m"
 
51
  //#endif
 
52
  ,
 
53
  .description = "Linux kernel command line",
 
54
};
 
55
 
 
56
#endif