Справочник Пользователя для Sony XCI-SX1

Скачать
Страница из 28
XCI-SX1  SDK  / SDK Technical Manual 
 
Environment
 
 
This chapter explains kernels, programs, settings and so on. 
The contents of this chapter have been applied to SDK. 
2.1 Patches to kernel 
 
Before kernel compilation, patches are first applied to the kernel.  The 
following sections lists the patches applied to the kernel. 
Note: All patches have already been applied to /usr/src/linux on 
SDK. The patch files are stored on 
/buildtree/src/kernel/patches.
 
2.1.1 BigPhysArea Patch 
 
Applying this patch allows the user to allocate a large area of contiguous 
memory during boot up time which can be allocated or deallocated by 
the kernel driver that needs it.   
BigPhysArea 
 
Patch Application: 
 
 
cd /usr/src/linux 
patch –p1 < [source]/bigphysarea.diff 
 
Where: 
  [source
] – path where the exploded patch is 
located 
 
2.1.2 Network Driver Patch 
 
The network driver has to be patched to enable a more stable Ethernet 
device driver for the target hardware (RTL8100C). 
Network Driver 
Upgrade 
 
Patch Application: 
 
cp 8139too.c 
/usr/src/linux/drivers/net/ 
 
NOTE: 
This command must overwrite the existing 
8139too.c in the MVL3.0 kernel tree. 
 
3