Skip to contentSkip to conversation

Can ethernet be disabled?

U-Boot-Users David Miles 3 participants 3 messages Oct 2, 2003 – Oct 6, 2003

lore
Share & tools
lore
#0 lore raw

I'm porting u-boot to a custom PXA255 board. At present there is no network interface so I'm only interested in loading data over a serial port. Can I disable network support pre-compilation to cut down the size of u-boot?

ie. Is there an equivalent of
" #define CONFIG_LCD 0 "
to disable network support.?

So far builds fail unless I define at least one network controller.

Cheers

Signature · 2 lines
David Miles
Minerva Technology Inc.
#1 lore raw

David Miles <[email protected]> schreibt:

Quoted 11 lines

I'm porting u-boot to a custom PXA255 board. At present there is no network
interface so I'm only interested in loading data over a serial port. Can I
disable network support pre-compilation to cut down the size of u-boot?

ie. Is there an equivalent of
" #define CONFIG_LCD 0 "
to disable network support.?

So far builds fail unless I define at least one network controller.

Could you please be more specific?

- which version of u-boot?
- in what way does your build fail?

I've just been through the process of porting u-boot to a freshly developed PXA255-base board, and even though I didn't define any network controller I did't experience any such weird dependency problem.

Perhaps what you're seeing is a side-effect of some configuration error?

Cheers
Anders

#2 lore raw
In reply to David Miles
Quoted 7 lines · In message <[email protected]> you wrote:

I'm porting u-boot to a custom PXA255 board. At present there is no network interface so I'm only interested in loading data over a serial port. Can I disable network support pre-compilation to cut down the size of u-boot?

ie. Is there an equivalent of
" #define CONFIG_LCD 0 "
to disable network support.?

It doesn't work this way. "#define CONFIG_LCD 0" is extremely misleading. Don't ever do this. Either #define the option (which enables it, no matter which value the variable has, if any at all, or do NOT #define it.

Don't #define network options (including the network related
commands, and no network support will be included.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A little suffering is good for the soul.
	-- Kirk, "The Corbomite Maneuver", stardate 1514.0