RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Apr 04, 2020 9:50 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jan 03, 2016 10:21 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
How to disable all the eth stuff (such it frees all the resources)?
I've commented out in the config
Code:
#pseudo-device   sl              1       # serial line IP interfaces (SLIP)
#pseudo-device   pty             4       # pseudo ptys
#pseudo-device   bpfilter        1       # packet filter ports
#pseudo-device   loop                    # network loopback interface
#pseudo-device   ether                   # generic Ethernet protocol
#pseudo-device   vn                      # block/character interface to a vnode

and getting errors:
Code:
/usr/local/mips-2014.05/bin/mips-sde-elf-gcc -mips32r2 -EL -nostdlib -T ../../mips/pic32/bootloader-chipkit.ld -Wl,-Map=vmunix.map ${SYSTEM_OBJ} vers.o -L../../libkern -lkern -o vmunix.elf
if.o: In function `if_attach':
../../net/if.c:(.text+0x320): undefined reference to `ether_output'
../../net/if.c:(.text+0x324): undefined reference to `ether_output'
../../net/if.c:(.text+0x330): undefined reference to `ether_ifattach'
igmp.o: In function `igmp_input':
../../netinet/igmp.c:(.text+0x304): undefined reference to `loif'
../../netinet/igmp.c:(.text+0x308): undefined reference to `loif'
../../netinet/igmp.c:(.text+0x480): undefined reference to `loif'
../../netinet/igmp.c:(.text+0x484): undefined reference to `loif'
igmp.o: In function `igmp_joingroup':
../../netinet/igmp.c:(.text+0x64c): undefined reference to `loif'
igmp.o:../../netinet/igmp.c:(.text+0x654): more undefined references to `loif' follow
in.o: In function `in_ifinit':
../../netinet/in.c:(.text+0x664): undefined reference to `ether_output'
../../netinet/in.c:(.text+0x668): undefined reference to `ether_output'
../../netinet/in.c:(.text+0x670): undefined reference to `arp_rtrequest'

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 12:02 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hi Pito,

You have to disable INET option as well:
Code:
#options         INET            # Internet protocols

There were some linking issues, fixed in the latest commit (ae49b2c).


Top
 Profile  
 
PostPosted: Mon Jan 04, 2016 5:55 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Thanks, I will try next weekend ..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Jan 08, 2016 8:00 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I compiled the kernel w/o inet. But I see no change (ie when running cc)..
Does it free the available sram for programs?
My intention is to get more free sram for running programs by removing all those inet related buffers.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Jan 08, 2016 8:13 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
No, it does not free any RAM memory, it only reduces the kernel code size. Buffers for network data are allocated dynamically, when needed. Until network is enabled, no space is wasted.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission