[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apex-nslu2-1.4.14



* Marc Singer <elf@buici.com> [2007-01-30 20:08]:
> a new application for writing the environment from user-mode.

Interesting.  Unfortunately it doesn't seem to work for me.  It can
read the environment but not set it:

foobar:~# apex-env
bootaddr *= 0x00008000
cmdline *= console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
cmdline-alt *= console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
fis-drv *= nor:0x7e0000+4k
kernelsrc *= fis://kernel
kernelsrc-alt *= fis://kernel
ramdiskaddr *= 0x01000000
ramdisksrc *= fis://ramdisk
ramdisksrc-alt *= fis://ramdisk
startup *= copy -s $kernelsrc $bootaddr; copy -s $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
foobar:~# apex-env printenv cmdline
cmdline *= console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
foobar:~# apex-env setenv cmdline "console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug root=/dev/sda1"
error: environment region contents unrecognized and unwritable
Try `apex-env --help' or `apex-env --usage' for more information.

apex-env dump only shows zeros:

foobar:~# more dump  | head -3
00000000: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
00000010: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
00000020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
foobar:~# more dump | tail -3
00003bd0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
00003be0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
00003bf0: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ........ ........
foobar:~#

I got this problem before I upgraded APEX in flash but also now that
I've written 1.4.14 to flash and booted with it.
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: