linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Simple module, but won't build
@ 2004-05-04 18:03 Richard Danter
  2004-05-04 19:10 ` Wolfgang Denk
  2004-05-04 19:38 ` Simple module, but won't build Joshua Lamorie
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Danter @ 2004-05-04 18:03 UTC (permalink / raw)
  To: linuxppc-embedded


Hi All,

I am trying to build a simple module which will let me write to a bank
of LED's on my board.

When I #include <asm/io.h> I get this error:

/opt/eldk3.0/ppc_82xx/usr/include/asm/io.h: In function `virt_to_bus':
/opt/eldk3.0/ppc_82xx/usr/include/asm/io.h:235: `CONFIG_KERNEL_START'
undeclared (first use in this function)

the error also occurs in several other functions. I also see errors when
I #include <asm/uaccess.h> as follows:

/opt/eldk3.0/ppc_82xx/usr/include/asm/uaccess.h: In function `verify_area':
/opt/eldk3.0/ppc_82xx/usr/include/asm/uaccess.h:37: `CONFIG_TASK_SIZE'
undeclared (first use in this function)

also in several functions.

I know I have used these with no problems with an older kernel and
compiler. Is there something I need to add to make these work??

I am using ELDK 3.0 with the 2.4.24-pre2 kernel on an 8260 target.

Many thanks,
Rich

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Next steps
@ 2004-05-06 11:48 Mark Chambers
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Chambers @ 2004-05-06 11:48 UTC (permalink / raw)
  To: bhawley; +Cc: linuxppc-embedded


Bob,

I would definitely recommend NFS.  As Bob White pointed out, you can get a
directory structure all set up from eldk.  The thing about NFS is you have a
PC with visual tools and all to mess with the same files that your embedded
system is accessing.  Plus of course you have much more file space.  And if
you're new to Linux it's a whole lot easier to get up to speed on the PC.

dhcp & bootp are really different things from NFS, although I think you have
to enable them in the [embedded] kernel for nfsboot to work.  But you
probably want to set your board up with a fixed IP and compressed kernel (or
tftp it in) from u-boot, just feeding a command line to the kernel that
tells it the root is nfs something.  No sense adding more complexity than
you need!

When it comes to stand-alone booting of an embedded system you can also
consider jffs2 or cramfs instead of initrd.  (I can tell you more if you're
interested).

Mark Chambers
WV Computronics


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-05-06 11:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04 18:03 Simple module, but won't build Richard Danter
2004-05-04 19:10 ` Wolfgang Denk
2004-05-04 19:46   ` Richard Danter
2004-05-04 20:19     ` Wolfgang Denk
2004-05-04 21:15     ` Sam Ravnborg
2004-05-04 21:46       ` Wolfgang Denk
2004-05-04 23:50         ` Next steps Brian Hawley
2004-05-05 12:19           ` Bob White
2004-05-04 19:38 ` Simple module, but won't build Joshua Lamorie
  -- strict thread matches above, loose matches on Subject: below --
2004-05-06 11:48 Next steps Mark Chambers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).