where is fw_printenv and fw_setenv under Archlinux?

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

where is fw_printenv and fw_setenv under Archlinux?

Postby hwang » Sat Sep 10, 2011 10:34 pm

Hi,

I installed uboot 2010.09 from Jeff's "install_uboot_mtd0.sh" on my pink pogoplug v2.

If it boots from the pogolinux, I can find fw_printenv and fw_setenv in /usr/sbin.

Now I have install arch linux on it. If pink pogoplug boots into arch, I cannot find these files in /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin. Where are they? Do I need to install some packages like uboot-env or uboot-mkimage?

Thank you.
hwang
 
Posts: 3
Joined: Sat Sep 10, 2011 10:23 pm

Re: where is fw_printenv and fw_setenv under Archlinux?

Postby hydro » Sun Sep 11, 2011 8:09 am

See FAQ on the bottom of the install guide.
Would you like to reset the uBoot environment? [N/y] n
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: where is fw_printenv and fw_setenv under Archlinux?

Postby pepedog » Sun Sep 11, 2011 9:39 am

mkdir /media/nand
mount /dev/mtdblock2 /media/nand -t jffs2 -o noatime

File is on /media/nand somewhere
/media/nand/usr/bin/fw_printenv
fw_setenv is symlinked to fw_printenv

Don't be tempted to see what commands work (with fw_printenv --help), when blparam was used like that it corrupts things, and unmount after
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: where is fw_printenv and fw_setenv under Archlinux?

Postby hwang » Mon Sep 12, 2011 1:37 am

Thanks. I get it done by re-running the install script in Arch environment.

The main purpose of this is to set arcNumber. I found if it boots to pogolinux from uboot, the arcNumber is 2998. While if it boots to ArchARM from uboot, the arcNumber is 2097 (sheevaplug).

I changed arcNumber to 2998 for ArchARM after have fw_setenv installed in ArchARM. But I did not see any difference. Maybe the arcNumber is not that important...
hwang
 
Posts: 3
Joined: Sat Sep 10, 2011 10:23 pm

Re: where is fw_printenv and fw_setenv under Archlinux?

Postby kmihelich » Mon Sep 12, 2011 9:25 pm

The arcNumber is important to identify the specific machine initialization code in the kernel at boot. This sets up NAND partitioning and LED enumeration, among other things. For the v2 you should be using 2097, as that is the closest relative for the v2. 2998 is for Dockstar, which has different configurations.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests