i not found file viewer
suggest:
: sourceprint source type cr
['] interpret >data token@ >r
interpret_save is interpret
exit? if 777 throw then
r> is interpret ;
: fileprint ( adr len -- )
['] interpret >data token@ to interpret_save
['] sourceprint is interpret
['] included catch
interpret_save is interpret
dup 777 = if drop 0 then
throw ;
: fp ( "name" -- )
safe-parse-word fileprint ;
--
Hi,
I´m considering the possibility of using OpenFirmware in our processor module. Is there a list
of supported processors ? We are using Intel® AtomTM Processor E680T !
Krds,
Paulo Roberto F. de A. Luz
Technology Engineer - Embedded Platform
paulo.luz(a)padtec.com.br
luz,paulo +55 19 2104-0426 9191 1402
http://www.padtec.com.br
Ok. I finally got things running.
To get OpenBIOS to compile, I had to go back to an older Linux system. I
installed Ubuntu Lucid (10.04). This has gcc-4.4.3 for the host compiler.
I was able to get OpenBIOS to compile with gcc-4.7.0 for sparc-elf, but
it just hangs with no text output to the terminal. I downgraded to
gcc-4.6.3 and things work great again.
By the way, the openbios-sparc32 that is part of the git HEAD for qemu
does not work for me either (same hang as noted above). I suspect some
kind of library clash.
Thanks for your help along the way!
Respectfully,
Paul.
What I found looks to be a difference between libc6-dev packages on the
lucid version of ubunutu and libc6-dev on the oneiric version of ubuntu. Is
there specific c library I should be using for the host compile? Or should
I go to an older version of gcc? It is 4.4 on lucid and 4.6 on oneiric.
Respectfully,
Paul
On Wed, Jun 6, 2012 at 11:23 AM, Paul Wilhelm <bearcat.pilot(a)gmail.com>wrote:
> On the machine that does compile, the following file is used:
> /usr/include/bits/sigcontext.h
> This file has a copyright of 2002 from FSF.
> This file does not try to use __u32, etc, and does not include other files
> that do.
>
> On the machine that fails to compile, the following file is used:
> /usr/include/i386-linux-gnu/bits/sigcontext.h
> This file has a copyright of 1998 from FSF. This includes asm/sigcontext.h
> which in turn includes linux/types.h before using __u32, etc. linux/types.h
> includes asm/types.h (which in other other circumstance would include other
> files that include the definition for __u32, etc.). With the asm/types.h in
> target/include, things get broken.
>
> I did some googling to find out how the /usr/include/bits directory gets
> filled, what package might set that up, but, I did not find anything useful.
>
> Any suggestions?
>
>
On Jun 4, 2012, at 7:53 PM, openbios-request(a)openbios.org wrote:
> On 2012-Jun-3 18:48 , Programmingkid wrote:
>> What word can be used in OpenBIOS to dynamically allocate memory? I have tried ALLOCATE, but that word doesn't exist in the dictionary.
>
> Alloc-mem is the one I'm most likely to use, unless I need dma-able
> memory, in whch case dma-alloc will be defined by the io nexus.
>
> There's also always "," to allocate from the heap, depending on how much
> you need and where.
I couldn't find any documentation on alloc-mem, but I think this is how it works. It pops the top number on the stack and tries to allocate that amount of memory. If it succeeds it returns the address of the memory. If it fails, it returns 0. I think I would release the memory using free-mem. Does this sound about right?
Am 05.06.2012 01:15, schrieb Paul Wilhelm:
> Thanks for your kind help / suggestions.
>
> Here is a more verbose version of the compile error output.
>
> paul@linux-jkcx:~/src/openbios-devel> env V=1 make build-verbose
> Building...
> make[1]: Entering directory `/home/paul/src/openbios-devel/obj-sparc32'
> true
> true
> gcc -O2 -g -DFCOMPILER -DBOOTSTRAP -DSWAP_ENDIANNESS
> -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -Wall -Wredundant-decls -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wundef
> -Wendif-labels -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
> -Wnested-externs -W -MMD -MP -MT host/kernel/dict.o -MF
> 'host/kernel/dict.d' -I../include -I../kernel -I../kernel/include
> -I./target/include -c -o host/kernel/dict.o ../kernel/dict.c
> gcc -O2 -g -DFCOMPILER -DBOOTSTRAP -DSWAP_ENDIANNESS
> -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -Wall -Wredundant-decls -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wundef
> -Wendif-labels -Wstrict-aliasing -Wwrite-strings -Wmissing-prototypes
> -Wnested-externs -W -MMD -MP -MT host/kernel/bootstrap.o -MF
> 'host/kernel/bootstrap.d' -I../include -I../kernel -I../kernel/include
> -I./target/include -c -o host/kernel/bootstrap.o ../kernel/bootstrap.c
Now that's a problem with the host compilation environment, it says gcc,
not sparc-elf-gcc.
> In file included from /usr/include/asm/sigcontext.h:5:0,
> from /usr/include/bits/sigcontext.h:28,
> from /usr/include/signal.h:339,
> from ../kernel/bootstrap.c:13:
> /usr/include/linux/types.h:27:1: error: unknown type name ‘__u16’
> /usr/include/linux/types.h:28:1: error: unknown type name ‘__u16’
> /usr/include/linux/types.h:29:1: error: unknown type name ‘__u32’
> /usr/include/linux/types.h:30:1: error: unknown type name ‘__u32’
> /usr/include/linux/types.h:31:1: error: unknown type name ‘__u64’
> /usr/include/linux/types.h:32:1: error: unknown type name ‘__u64’
> /usr/include/linux/types.h:34:1: error: unknown type name ‘__u16’
> /usr/include/linux/types.h:35:1: error: unknown type name ‘__u32’
> In file included from /usr/include/bits/sigcontext.h:28:0,
> from /usr/include/signal.h:339,
> from ../kernel/bootstrap.c:13:
> /usr/include/asm/sigcontext.h:24:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:25:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:28:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:33:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:38:2: error: unknown type name ‘__u32’
> /usr/include/asm/sigcontext.h:191:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:192:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:193:2: error: unknown type name ‘__u64’
> /usr/include/asm/sigcontext.h:198:2: error: unknown type name ‘__u32’
> make[1]: *** [host/kernel/bootstrap.o] Error 1
> make[1]: Leaving directory `/home/paul/src/openbios-devel/obj-sparc32'
> make: *** [build-verbose] Error 1
On my system those typedefs are in /usr/include/asm-generic/int-ll64.h.
Could some package be missing?
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
These types are defined in either asm/types.h or sys/types.h, depending
on your compiler, if you want to use these instead of the C99 standard,
portable, fixed length type values defined in stdint.h. These values are
the uint8_t set.
Dave
On 6/4/2012 6:15 PM, Paul Wilhelm wrote:
> Thanks for your kind help / suggestions.
>
> Here is a more verbose version of the compile error output.
>
> paul@linux-jkcx:~/src/openbios-devel> env V=1 make build-verbose
> Building...
> make[1]: Entering directory `/home/paul/src/openbios-devel/obj-sparc32'
> true
> true
> gcc -O2 -g -DFCOMPILER -DBOOTSTRAP -DSWAP_ENDIANNESS
> -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -Wall -Wredundant-decls
> -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
> -Wundef -Wendif-labels -Wstrict-aliasing -Wwrite-strings
> -Wmissing-prototypes -Wnested-externs -W -MMD -MP -MT
> host/kernel/dict.o -MF 'host/kernel/dict.d' -I../include -I../kernel
> -I../kernel/include -I./target/include -c -o host/kernel/dict.o
> ../kernel/dict.c
> gcc -O2 -g -DFCOMPILER -DBOOTSTRAP -DSWAP_ENDIANNESS
> -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -Wall -Wredundant-decls
> -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
> -Wundef -Wendif-labels -Wstrict-aliasing -Wwrite-strings
> -Wmissing-prototypes -Wnested-externs -W -MMD -MP -MT
> host/kernel/bootstrap.o -MF 'host/kernel/bootstrap.d' -I../include
> -I../kernel -I../kernel/include -I./target/include -c -o
> host/kernel/bootstrap.o ../kernel/bootstrap.c
> In file included from /usr/include/asm/sigcontext.h:5:0,
> from /usr/include/bits/sigcontext.h:28,
> from /usr/include/signal.h:339,
> from ../kernel/bootstrap.c:13:
> /usr/include/linux/types.h:27:1: error: unknown type name '__u16'
> /usr/include/linux/types.h:28:1: error: unknown type name '__u16'
> /usr/include/linux/types.h:29:1: error: unknown type name '__u32'
> /usr/include/linux/types.h:30:1: error: unknown type name '__u32'
> /usr/include/linux/types.h:31:1: error: unknown type name '__u64'
> /usr/include/linux/types.h:32:1: error: unknown type name '__u64'
> /usr/include/linux/types.h:34:1: error: unknown type name '__u16'
> /usr/include/linux/types.h:35:1: error: unknown type name '__u32'
> In file included from /usr/include/bits/sigcontext.h:28:0,
> from /usr/include/signal.h:339,
> from ../kernel/bootstrap.c:13:
> /usr/include/asm/sigcontext.h:24:2: error: unknown type name '__u32'
> /usr/include/asm/sigcontext.h:25:2: error: unknown type name '__u32'
> /usr/include/asm/sigcontext.h:28:2: error: unknown type name '__u64'
> /usr/include/asm/sigcontext.h:33:2: error: unknown type name '__u32'
> /usr/include/asm/sigcontext.h:38:2: error: unknown type name '__u32'
> /usr/include/asm/sigcontext.h:191:2: error: unknown type name '__u64'
> /usr/include/asm/sigcontext.h:192:2: error: unknown type name '__u64'
> /usr/include/asm/sigcontext.h:193:2: error: unknown type name '__u64'
> /usr/include/asm/sigcontext.h:198:2: error: unknown type name '__u32'
> make[1]: *** [host/kernel/bootstrap.o] Error 1
> make[1]: Leaving directory `/home/paul/src/openbios-devel/obj-sparc32'
> make: *** [build-verbose] Error 1
>
>
>