[BusyBox 0001260]: Fix httpd to run on MMU-less platforms

bugs at busybox.net bugs at busybox.net
Wed Mar 7 22:17:15 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1260 
====================================================================== 
Reported By:                landau
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1260
Category:                   Networking Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             03-06-2007 06:35 PST
Last Modified:              03-07-2007 14:17 PST
====================================================================== 
Summary:                    Fix httpd to run on MMU-less platforms
Description: 
The attached patch allows httpd to run on MMU-less platforms, such as
Blackfin.
All it does is calling vfork() instead of fork() (if BB_NOMMU is defined)
and explaining in a comment why this is correct despite the child process'
modifications to the address space.

The issue is present since at least version 1.2.
The patch is generated against svn rev 18015.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 03-06-07 15:23  
---------------------------------------------------------------------- 
Hi. No obvious problems with the patch. However, I am concerned that I
don't know nommu people needs and nommu environments in general.

Do you nave any nommu emulator or, say, qemu runnable image for nommu
processor so that I can run-test the change and generally play with nommu? 

---------------------------------------------------------------------- 
 landau - 03-07-07 01:38  
---------------------------------------------------------------------- 
Hi,

I'm using an actual Blackfin BF537-stamp board. The CPU has no MMU.
I haven't used any emulator for that, though the main Blackfin uClinux
community site blackfin.uclinux.org (that has the kernel sources,
toolchain, and everything one needs for a complete open-source build
environment) mentions SkyEye (http://gro.clinux.org/projects/skyeye/). I
haven't checked it.
Another option (not checked either) is trying to compile the kernel for
i386 and setting CONFIG_MMU=n in .config.

If you have some no-mmu patches that you'd like to get merged, but you
don't have the hardware to test it on, I'd be happy to test the patches on
Blackfin.

The busybox sources have some #ifdefs about BB_NOMMU, so I guess it was
tested somehow... The main applets that don't work on Blackfin are init
and inetd, so I have to use simpler external versions that came with the
Blackfin uClinux distribution. Speaking of that, I'd love to have them
merged (as optional components, of course!) into busybox, so that during
configuration I'll be able to choose which init and inetd I want, or
better, add a "CPU has MMU" option that preselects the right applet.
I can volunteer for that task.

Alex 

---------------------------------------------------------------------- 
 vda - 03-07-07 14:17  
---------------------------------------------------------------------- 
Applied in rev 18026, thanks. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-06-07 06:35  landau         New Issue                                    
03-06-07 06:35  landau         Status                   new => assigned     
03-06-07 06:35  landau         Assigned To               => BusyBox         
03-06-07 06:35  landau         File Added: httpd-nommu.patch                    
03-06-07 15:23  vda            Note Added: 0002212                          
03-07-07 01:38  landau         Note Added: 0002214                          
03-07-07 01:39  landau         Issue Monitored: landau                      
03-07-07 14:17  vda            Status                   assigned => closed  
03-07-07 14:17  vda            Note Added: 0002216                          
======================================================================




More information about the busybox-cvs mailing list