[LinuxBIOS] power on via usb

Shaddam Corrino IV shaddamcorrinoiv at gmail.com
Fri Dec 22 20:15:39 CET 2006


On 12/22/06, Segher Boessenkool <segher at kernel.crashing.org> wrote:
>
> > So this means that at offset 0x4000 at IO space should be the PM
> > stuff that I could modify, but when I read space, I get all 0xFF's
> > so that's not working :-(
> >
> > # dd bs=1 skip=13500 if=/dev/port count=60 | od -t x1 -v
>
> 13500 isn't anywhere near 0x4000.  Try writing skip=$((0x4000))
> if you have problems with hexadecimal arithmetic -- computers
> can do it fine ;-)


Thanks a lot!

The problem was that I did

 # echo "ibase=F;4000" | bc -lq
instead of
# echo "ibase=16;5000" | bc -lq
bc can be nasty about this since format for ibase depends on what base you
set before.

either way your trick is far better, and now I get meaningfull data:

# dd bs=1 skip=$((0x4000)) if=/dev/port count=60 | od -t x1 -v
60+0 przeczytanych recordów
60+0 zapisanych recordów
skopiowane 60 bajtów (60 B), 0,00331573 sekund, 18,1 kB/s
0000000 11 00 20 04 01 00 00 00 03 fb 54 00 00 00 00 00
0000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000040 40 00 10 40 00 00 00 00 81 00 50 00 15 00 00 58
0000060 ff 03 00 00 1e 00 00 00 01 00 00 00
0000074

Once again thanks :-)

-- 
Thanks!
Shaddam IV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20061222/cdd1233d/attachment.html>


More information about the coreboot mailing list