• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 2 [3]
Author Topic: uboot-envtools  (Read 27701 times)
radael
Jr. Member
**

Karma: 1
Posts: 57


View Profile
« Reply #30 on: January 17, 2011, 10:57:38 AM »

Does anyone know what offset the U-Boot env config lives at for a GuruPlug?

I don't see anything obvious at 0xa0000 in my nanddump of /dev/mtd0.

In Flash:

  0x0          to  0xa0000       UBoot

  0xa0000   to  0x100000    Reserved for U-Boot variables

  0x100000 to  0x500000    (4 MB) uImage

  0x500000 to  0x1fb00000 (507 MB) Root file system
Logged

two9er
Jr. Member
**

Karma: 10
Posts: 51


View Profile
« Reply #31 on: January 17, 2011, 11:46:18 AM »

Here's what works for me:

Code:
guruplug:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 1fb00000 00020000 "root"

Code:
guruplug:~# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name       Device offset   Env. size       Flash sector size
/dev/mtd0               0x40000         0x20000         0x20000

Code:
guruplug:~# fw_printenv
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootdelay=3
baudrate=115200
x_bootcmd_usb=usb start
x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000
x_bootargs=console=ttyS0,115200
ethact=egiga0
ethaddr=00:50:43:01:5F:E8
eth1addr=00:50:43:01:5F:E9
x_bootarg_root=ubi.mtd=2 root=/dev/sdc1 rootdelay=10
stdin=serial
stdout=serial
stderr=serial
x_bootcmd_ethernet=ping 192.168.0.1
x_bootargs_root=ubi.mtd=2 root=0821 rootdelay=10
guruplug:~#

HTH, Jim
Logged

Just plugging away! GuruPlug Server Plus, 1TB esata hd, 8GB microSD (rfs)

Pages: 1 2 [3]
Print
Jump to: