uboot fw_env.config

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

uboot fw_env.config

Postby bz31 » Tue Aug 14, 2012 8:14 am

I want to use fw_printenv of the package uboot-env.
How I can configure /etc/fw_env.config on my GoFlex Home ? Thanks.
$this->bbcode_second_pass_code('', '# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00600000 00020000 "uImage"
mtd2: 0f900000 00020000 "root"
')
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: uboot fw_env.config

Postby moonman » Tue Aug 14, 2012 8:39 am

That's what I have in mine: $this->bbcode_second_pass_code('', '# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000')

I do have the new U-Boot and not U-BIT 0.6
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: uboot fw_env.config

Postby bz31 » Tue Aug 14, 2012 10:31 am

I don't have the new U-Boot.
It doesn't work using "/dev/mtd0 0xc0000 0x20000 0x20000"
$this->bbcode_second_pass_code('', '# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200')
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: uboot fw_env.config

Postby moonman » Tue Aug 14, 2012 11:48 am

In my pogoplug I have a little different file contents:
$this->bbcode_second_pass_code('', '# 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/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
/dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000
')

try the first one
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: uboot fw_env.config

Postby bz31 » Tue Aug 14, 2012 12:24 pm

The third one works ! It's $this->bbcode_second_pass_code('', '/dev/mtd0 0xa0000 0x20000 0x20000') for my GoFlex Home. Thanks.
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests