Author: rsmith
Date: Wed Nov 28 17:56:41 2012
New Revision: 3466
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3466
Log:
OLPC: Fix battery temperature calculation error
Multiplier was not qualified with d# so on 1.5 (and probably 1.0) it
was using 125 hex rather than 125 decimal.
Modified:
dev/olpc/kb3700/batstat.fth
Modified: dev/olpc/kb3700/batstat.fth
==============================================================================
--- dev/olpc/kb3700/batstat.fth Mon Nov 26 06:10:44 2012 (r3465)
+++ dev/olpc/kb3700/batstat.fth Wed Nov 28 17:56:41 2012 (r3466)
@@ -1,6 +1,6 @@
: wextend ( w -- n ) dup h# 8000 and if h# ffff.0000 or then ;
\ Base unit for temperature is .125 degrees C
-: >milli-degrees-c 125 * 5 rshift ;
+: >milli-degrees-c d# 125 * 5 rshift ;
: uvolt@ bat-voltage@ d# 9760 d# 32 */ ;
: cur@ bat-current@ wextend d# 15625 d# 120 */ ;
\ : pcb-temp ambient-temp@ >milli-degrees-c ;
Author: quozl
Date: Mon Nov 26 00:30:04 2012
New Revision: 3464
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3464
Log:
Q4D24
(was based on Q4D21 svn 3069, with backports of svn 3310 and 3463, and CForth head bbdf8572)
Modified:
cpu/arm/olpc/1.75/fw-version.fth
Modified: cpu/arm/olpc/1.75/fw-version.fth
==============================================================================
--- cpu/arm/olpc/1.75/fw-version.fth Sun Nov 25 23:36:48 2012 (r3463)
+++ cpu/arm/olpc/1.75/fw-version.fth Mon Nov 26 00:30:04 2012 (r3464)
@@ -1,7 +1,7 @@
\ The overall firmware revision
macro: FW_PREFIX Q4
macro: FW_MAJOR D
-macro: FW_MINOR 23
+macro: FW_MINOR 24
\ Create a 2-character build/fw-suffix file to personalize your test builds
" fw-suffix" $file-exists? [if]
Do a "svn update" to pick up my latest changes and try the "BIOS"
version again. Let me know if you have any problems. I fixed a
regression caused by some changes that I made several months ago.
By the way, you can see OFW's early startup progress if you add "-serial
/dev/tty" to the qeme command line. That's how I debugged the problem.
- Mitch
On 11/22/2012 3:22 AM, aditya siram wrote:
> Hi all,
> I was trying to get OFW running on Qemu to play with it and have been
> unsuccessful so far. My OFW is the latest Subversion as of yesterday.
> When I follow the instructions for creating a BIOS [1] or a floppy [2] I
> get a black non-responsive screen. Running `strace qemu-system-i386 -L
> /usr/local/share/qemu -boot a -fda floppy.img` I can see that it's stuck
> in some loop [3] but I can't tell what it is or how to fix it. I think
> that Qemu itself works because I booted it with one of the linux test
> images available for download from their site and it works fine. I'm
> using a Thinkpad X200 with Ubuntu 12.04 and kernel version
> 3.5.0-18-generic and Qemu version 1.2.1.
>
> Appreciate your help!
> -deech
>
> [1] http://www.openfirmware.info/Building_OFW_for_QEMU
> [2] http://www.openfirmware.info/Building_OFW_to_Load_from_BIOS
> [3]
> execve("/usr/local/bin/qemu-system-i386", ["qemu-system-i386", "-L",
> "/usr/local/share/qemu", "-boot", "a", "-fda", "floppy.img"], [/* 55
> vars */]) = 0
> brk(0) = 0xb98f3000
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
> directory)
> mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7484000
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=60418, ...}) = 0
> mmap2(NULL, 60418, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7475000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
> directory)
> open("/lib/i386-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\30\0\0004\0\0\0"..., 512)
> = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=30684, ...}) = 0
> mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
> = 0xb746c000
> mmap2(0xb7473000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7473000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
> directory)
> open("/lib/i386-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@O\1\0004\0\0\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1026920, ...}) = 0
> mmap2(NULL, 1027232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0xb7371000
> mmap2(0xb746a000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf9) = 0xb746a000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
> directory)
> open("/lib/i386-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0
> \n\0\0004\0\0\0"..., 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=9808, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7370000
> mmap2(NULL, 12432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
> = 0xb736c000
> mmap2(0xb736e000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb736e000
> close(3) = 0
> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
> directory)
> open("/lib/i386-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000D\0\0004\0\0\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=173588, ...}) = 0
> mmap2(NULL, 176272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0xb7340000
> mmap2(0xb736a000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0xb736a000
> close(3) = 0
>
>
>
> _______________________________________________
> openfirmware mailing list
> openfirmware(a)openfirmware.info
> https://openfirmware.info/mailman/listinfo/openfirmware
>