2410linux can finally use the File System

Source: Internet
Author: User
2410linux can finally use the File System-Linux Enterprise Application-Linux server application information. See the following for details. Original Author: sensen

Unconsciously bought a realarm-2410 Development Board almost a month, WinCE4.2 can be used, but Linux2.42 has been running can't, the more worried the more can't use. But I never gave up, so I don't know how many roads I 've taken.

In this case, the computer serial port is burned out. I went to Zhujiang Road to buy a pci-to-Dual-serial port card, but there was a driver in Windows, but I didn't know how to use it in the LIniux operating system, after several days of getting started on the internet, I can finally use PCI to switch to the serial port in the Liunx operating system. The steps for installing the driver and the displayed content are as follows:

[Root @ localhost root] # setserial/dev/ttyS0-
/Dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 500, divisor: 0
Closing_wait: 30000
Flags: spd_normal skip_test auto_irq

[Root @ localhost root] # setserial/dev/ttyS1-
/Dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 500, divisor: 0
Closing_wait: 30000
Flags: spd_normal skip_test auto_irq

[Root @ localhost root] # setserial/dev/ttyS2-
/Dev/ttyS2, Line 2, UART: unknown, Port: 0x03e8, IRQ: 4
Baud_base: 115200, close_delay: 500, divisor: 0
Closing_wait: 30000
Flags: spd_normal skip_test auto_irq

[Root @ localhost root] # more/proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Class 0600: PCI device 8086: 2560 (rev 3 ).
Prefetchable 32 bit memory at 0xe8000000 [0 xebffffff].
Bus 0, device 2, function 0:
Class 0300: PCI device 8086: 2562 (rev 3 ).
IRQ 5.
Prefetchable 32 bit memory at 0xe0000000 [0xe7ffffff].
Non-prefetchable 32 bit memory at 0xec100000 [0xec17ffff].
Bus 0, device 29, function 0:
Class 0c03: PCI device 8086: 24c2 (rev 2 ).
IRQ 5.
I/O at 0xd800 [0xd81f].
Bus 0, device 29, function 1:
Class 0c03: PCI device 8086: 24c4 (rev 2 ).
IRQ 11.
I/O at 0xd000 [0xd01f].
Bus 0, device 29, function 2:
Class 0c03: PCI device 8086: 24c7 (rev 2 ).
IRQ 9.
I/O at 0xd400 [0xd41f].
Bus 0, device 29, function 7:
Class 0c03: PCI device 8086: 24cd (rev 2 ).
IRQ 9.
Non-prefetchable 32 bit memory at 0xec180000 [0xec1803ff].
Bus 0, device 30, function 0:
Class 0604: PCI device 8086: 244e (rev 130 ).
Master Capable. No bursts. Min Gnt = 6.
Bus 0, device 31, function 0:
Class 0601: PCI device 8086: 24c0 (rev 2 ).
Bus 0, device 31, function 1:
Class 0101: PCI device 8086: 24cb (rev 2 ).
IRQ 9.
I/O at 0xf000 [0xf00f].
Non-prefetchable 32 bit memory at 0x1f800000 [0x1f8003ff].
Bus 0, device 31, function 3:
Class 0c05: PCI device 8086: 24c3 (rev 2 ).
IRQ 11.
I/O at 0x500 [0x51f].
Bus 0, device 31, function 5:
Class 0401: PCI device 8086: 24c5 (rev 2 ).
IRQ 11.
I/O at 0xe000 [0xe0ff].
I/O at 0xe400 [0xe43f].
Non-prefetchable 32 bit memory at 0xec181000 [0xec1811ff].
Non-prefetchable 32 bit memory at 0xec182000 [0xec1820ff].
Bus 1, device 9, function 0:
Class 0780: PCI device 9710: 9835 (rev 1 ).
IRQ 5.
Master Capable. Latency = 32.
I/O at 0xa000 [0xa007].
I/O at 0xa400 [0xa407].
I/O at 0xa800 [0xa807].
I/O at 0xac00 [0xac07].
I/O at 0xb000 [0xb007].
I/O at 0xb400 [0xb40f].
Bus 1, device 10, function 0:
Class 0200: PCI device 10ec: 8139 (rev 16 ).
IRQ 11.
Master Capable. Latency = 32. Min Gnt = 32.Max Lat = 64.
I/O at 0xb800 [0xb8ff].
Non-prefetchable 32 bit memory at 0xec010000 [0xec0100ff].
Bus 1, device 11, function 0:
Class 0401: PCI device 125d: 1969 (rev 1 ).
IRQ 9.
Master Capable. Latency = 32. Min Gnt = 2.Max Lat = 24.
I/O at 0xbc00 [0xbc3f].
I/O at 0xc000 [0xc00f].
I/O at 0xc400 [0xc40f].
I/O at 0xc800 [0xc803].
I/O at 0xcc00 [0xcc03].
[Root @ localhost root] #
[Root @ localhost root] # lspci-vv
. 0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G]/GE/pe dram Controller/Ho st-Hub Interface (rev 03)
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O-Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = fast> TAbort- SERR- Latency: 0
Region 0: Memory at e8000000 (32-bit, prefetchable)
Capabilities: [e4] #09 [1, 1105]

. 0 VGA compatible controller: Intel Corp. 82845G/GL [Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03) (prog-if 00 [VGA])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = fast> TAbort- SERR- Latency: 0
Interrupt: pin A routed to IRQ 5
Region 0: Memory at e0000000 (32-bit, prefetchable)
Region 1: Memory at ec100000 (32-bit, non-prefetchable)
Capabilities: [d0] Power Management version 1
Flags: PMEClk-DSI + D1-D2-AuxCurrent = 0mA PME (D0-, D1-, D2-, D3hot-, D3cold -)
Status: D0 PME-Enable-DSel = 0 DScale = 0 PME-

00: 1d. 0 USB Controller: Intel Corp. 82801DB (ICH4) usb uhci #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem-BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin A routed to IRQ 5
Region 4: I/O ports at d800

00: 1d. 1 USB Controller: Intel Corp. 82801DB (ICH4) usb uhci #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem-BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at d000

00: 1d. 2 USB Controller: Intel Corp. 82801DB (ICH4) usb uhci #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem-BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin C routed to IRQ 9
Region 4: I/O ports at d400

00: 1d. 7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O-Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin D routed to IRQ 9
Region 0: Memory at ec180000 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk-DSI-D1-D2-AuxCurrent = 375mA PME (D0 +, D1-, D2-, D3h ot +, D3cold +)
Status: D0 PME-Enable-DSel = 0 DScale = 0 PME-

00: 1e. 0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev 82) (prog-if 00 [Normal decode])
Control: I/O + Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR + FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = fast> TAbort- SERR- Latency: 0
Bus: primary = 00, secondary = 01, subordinate = 01, sec-latency = 32
I/O behind bridge: effeca000-effeccfff
Memory behind bridge: ec000000-ec0fffff
BridgeCtl: Parity-SERR + NoISA + VGA-MAbort-> Reset-FastB2B-

00: 1f. 0 ISA bridge: Intel Corp. 82801DB (ICH4) LPC Bridge (rev 02)
Control: I/O + Mem + BusMaster + SpecCycle + MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0

00: 1f. 1 IDE interface: Intel Corp. 82801DB (ICH4) Ultra ATA 100 Storage Controll er (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports
Region 1: I/O ports
Region 2: I/O ports
Region 3: I/O ports
Region 4: I/O ports at f000
Region 5: Memory at 1f800000 (32-bit, non-prefetchable)

00: 1f. 3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 02)
Subsystem: PC Partner Limited: Unknown device 174b
Control: I/O + Mem-BusMaster-SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Interrupt: pin B routed to IRQ 11
Region 4: I/O ports at 0500

00: 1f. 5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) ac'97 Audio Cont roller (rev 02)
Subsystem: Unknown device 414c: 4730
Control: I/O + Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 0
Interrupt: pin B routed to IRQ 11
Region 0: I/O ports at e000
Region 1: I/O ports at e400
Region 2: Memory at ec181000 (32-bit, non-prefetchable)
Region 3: Memory at ec182000 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk-DSI-D1-D2-AuxCurrent = 375mA PME (D0 +, D1-, D2-, D3h ot +, D3cold +)
Status: D0 PME-Enable-DSel = 0 DScale = 0 PME-

0. 0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controlle r (rev 01)
Subsystem: LSI Logic/Symbios Logic 1P2S
Control: I/O + Mem + BusMaster-SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap-66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at a000
Region 1: I/O ports at a400
Region 2: I/O ports at a800
Region 3: I/O ports at ac00
Region 4: I/O ports at b000
Region 5: I/O ports at b400

01: 0a. 0 Ethernet controller: Realtek semiconduco., Ltd. RTL-8139/8139C/8139 C + (rev 10)
Subsystem: Realtek semiconduco., Ltd. RT8139
Control: I/O + Mem + BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 32 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at b800
Region 1: Memory at ec010000 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk-DSI-D1 + D2 + AuxCurrent = 375mA PME (D0-, D1 +, D2 +, D3h ot +, D3cold +)
Status: D0 PME-Enable-DSel = 0 DScale = 0 PME-

01: 0b. 0 Multimedia audio controller: ESS Technology ES1969 Solo-1 Audiodrive (re v 01)
Subsystem: ESS Technology Solo-1 Audio Adapter
Control: I/O + Mem-BusMaster + SpecCycle-MemWINV-VGASnoop-ParErr-Step ping-SERR-FastB2B-
Status: Cap + 66 Mhz-UDF-FastB2B + ParErr-DEVSEL = medium> TAbort- SERR- Latency: 32 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at bc00
Region 1: I/O ports at c000
Region 2: I/O ports at c400
Region 3: I/O ports at c800
Region 4: I/O ports at cc00
Capabilities: [c0] Power Management version 1
Flags: PMEClk-DSI + D1 + D2 + AuxCurrent = 0mA PME (D0-, D1-, D2-, D3hot-, D3cold -)
Status: D0 PME-Enable-DSel = 0 DScale = 0 PME-

[Root @ localhost root] # setserial/dev/ttyS2 port 0xa400 UART 16550A irq 5 baud_base 115200
[Root @ localhost root] # setserial/dev/ttyS3 port 0xa800 UART 16550A irq 5 baud_base 115200
[Root @ localhost root] # setserial/dev/ttyS2-
/Dev/ttyS2, Line 2, UART: 16550A, Port: 0xa400, IRQ: 5
Baud_base: 115200, close_delay: 5000, divisor: 0
Closing_wait: 37856
Flags: spd_normal skip_test auto_irq

[Root @ localhost root] # setserial/dev/ttyS3-
/Dev/ttyS3, Line 3, UART: 16550A, Port: 0xa800, IRQ: 5
Baud_base: 115200, close_delay: 5000, divisor: 0
Closing_wait: 37856
Flags: spd_normal auto_irq

[Root @ localhost root] #


Note the following when enabling nfs:

Here is the original command:

# Root from nfs
Param set linux_cmd_line "console = ttyS0 root =/dev/nfs nfsroot = 192.168.253.1:/real2410/root_nfs ip = 192.168.253.8: 192.168.253.1: 192.168.253.1: 255.255.255.0: www.realembed.com: eth0: off"

Because I use the serial port converted from pci to ttyS2, I changed console = ttyS0 to console = ttyS2.

Param set linux_cmd_line "console = ttyS2 root =/dev/nfs nfsroot = 192.168.253.1:/real2410/root_nfs ip = 192.168.253.8: 192.168.253.1: 192.168.253.1: 255.255.255.0: www.realembed.com: eth0: off"

The result remains incorrect. This evening, we found that console = ttyS0 indicates the serial port of the Development Board. The operation is still incorrect. The prompt message in minicom should be "Incorrect root configuration", so I will add the following statement in the original etc/exports according to the instructions:

/Real2410/root_nfs * (rw, sync, no_root_squash)

Change

/Usr/local/arm/real2410/root_nfs * (rw, sync, no_root_squash)

At the same time, the vivi parameter command is also changed to the following full directory:

# Root from nfs
Param set linux_cmd_line "console = ttyS0 root =/dev/nfs nfsroot = 192.168.1.17:/usr/local/arm/real2410/root_nfs ip = 192.168.1.100: 192.168.1.17: 192.168.1.17: 255.255.255.0: www.realembed.com: eth0: off"

# Root from mtd
Param set linux_cmd_line "noinitrd root =/dev/mtdblock/2 init =/linuxrc console = ttyS0"


/Home/pengsen/rootnfs * (rw, sync)
/Usr/local/arm/real2410/root_nfs shi * (rw, sync, no_root_squash)

After this modification, you can run 2410 to run linux.

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.