Linux2.6.22 network support

Source: Internet
Author: User
Linux2.6.22 supports Network-Linux general technology-Linux programming and kernel information. The following is a detailed description. 1: The kernel supports ramdisk:
Three items are modified as follows:
① Modify Bootoptions
The Default kernel command string item is set to null and passed in by bootloader (u-boot, vivi.

② Select Float point emulation->
[*] NWFE math emnulaiton

③ Modify Driver device->
Block device->
(4096) Default RAM disk size (kbytes)
Change 4096 to 8192

2: net
Copy cs8900.c. h to/driver/net
Change make file to add obj-$ (CONFIG_CS8900) + = cs8900.o
Kconfig File
Config CS8900
Tristate "CS8900 support"
Depends on NET_PCI & (ISA | MACH_IXDP2351 | ARCH_IXDP2X01 | ARCH_PNX010X | MACH_F2410)
--- Help ---
Support for CS8900 chipset based Ethernet cards. If you have
Network (Ethernet) card of this type, say Y and read
Ethernet-HOWTO, available from
As well
.

To compile this driver as a module, choose M here and read
. The module will be
Called cs8900.

Config NET_PCI
Depends on NET_ETHERNET & (ISA | EISA | PCI | MACH_F2410)

New File asm-arm/arch-s3c2410/mach-f2410.h
/* CS8900 */
# Define S3C24XX_VA_CS8900 0xE0000000
# Define S3C2410_PA_CS8900 _ phys_to_pfn (0x19000000)
# Define S3C24XX_SZ_CS8900 SZ_1M
# Define S3C24XX_PA_CS8900 S3C2410_PA_CS8900

# Define SMDK2410_ETH_IRQ IRQ_EINT9


Add an arch/arm/mach-s3c2410/mach-f2410.c (copy a mach-smdk.c file)

Add # include "arch/arm/mach-f2410.h"
Static struct map_desc f2410_iodesc [] _ initdata = {
/* Nothing here yet */
/* Map the ethernet controller CS8900A */
{S3C24XX_VA_CS8900, S3C2410_PA_CS8900, S3C24XX_SZ_CS8900, MT_DEVICE}
};
Modify the partition information that is equal to that of vivi.
Edit arch/arm/tools/mach-types to add the board type.
Modify the arch/arm/mach-s3c2410/kconfig and Makefile files to add support for f2410.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.