(GTA02) environment update problem in DM2, and solution

Werner Almesberger werner at openmoko.org
Mon Apr 28 11:26:38 CEST 2008

By the way, here's the sequence for updating the environment:

- build the envedit binary for the Neo:

  cd svn.openmoko.org/trunk/src/host/envedit
  make clean
  make CC=arm-angstrom-linux-gnueabi-gcc

- preprocess the environment changes:

  ./envcpp.pl -DGTA02 ../devirginator/environment.in >environment.prep

- copy everything to the GTA02:

  scp envedit environment.prep

- on the GTA02, run this:

  nanddump -b -o -f env.old $DEV
  envedit -s 0x40000 -i env.old -o env.new -n -f environment.prep
  flash_eraseall $DEV
  nandwrite -p $DEV env.new

envedit and environment.prep can be the same for all GTA02s.
(For GTA01, the process would be similar, only the -D and the
environment size changes.)

- Werner

More information about the openmoko-kernel mailing list