Skip to contentSkip to conversation

How use FTP on serial port(COM1)?

DISCUSSION guo_zhenglin 3 participants 6 messages Mar 17, 2003 – Mar 18, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I have a question,I need your help.

1)my target board has not ethernet card, only has a serial port (COM1) .

2)in order to update or maintenance targetboard's linux system and application system,I want to use FTP or TFTP via COM1.

3)I had config linux kernel :
CONFIG_PPP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPPOE=y

4) I place "tftp" file in "/bin" directory and "services" file in "/etc" directory.
have "tftp 69/udp" in "services" file.

5) when I run "tftp" on target board, show
"tftp: udp/tftp: unknow service"
6) what are I still need to config or add ?
need "pppd"?

thanks in advance.

------------------------------
guo zhenglin
E-mail: guo_zl9 at hotmail.com
------------------------------

#1 lore raw
Quoted 3 lines · guo_zhenglin

1)my target board has not ethernet card, only has a serial port (COM1) .

Do you mean _one_ serial port? In that case, you can have either serial console or network over it, not both.

Quoted 7 lines

2)in order to update or maintenance targetboard's linux system and application system,I want to use FTP or TFTP via COM1.

3)I had config linux kernel :
CONFIG_PPP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPPOE=y

PPPOE is unnecessary. Maybe some more options are needed, will check that at work...

J?rn

Signature · 3 lines
Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth
#2 lore raw
Quoted 9 lines · J?rn Engel
Quoted 5 lines · guo_zhenglin

3)I had config linux kernel :
CONFIG_PPP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPPOE=y

PPPOE is unnecessary. Maybe some more options are needed, will check that at work...

We have the following options set for one of our boxes. MULTILINK, DEFLATE and BSDCOMP shouldn't be necessary, though.

CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_ASYNC=y
# CONFIG_PPP_SYNC_TTY is not set
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y

J?rn

Signature · 2 lines
Data expands to fill the space available for storage.
-- Parkinson's Law
#3 lore raw

I don't know how to config network (ftp) on MBX860 board,
please help me.

1) our finally product is ourself-design board.
the designer say no Ethernet port,
and only has ONE serial port used to maintenance and update system. this board has not manufactured.

2) Our company has a DEMO board , it is motorola's MBX860 board. MBX860 board has a Ethernet port (SCC1).
now I can test something about network on MBX860 board.

3) firstly I want to use ftp on MBX860 board via ethernet port(SCC1). if this success,then
secondly, I TRY to use ftp on MBX860 board via serial port (COM1). if must need TWO serial ports ,
I can advice the designer to add another serial port.
lastly ,I can use ftp on ourself-design board via serial port(COM1 or
COM2).

4) but I don't know how to config network (ftp) on MBX860 board, counld you help me ?
thank you very much.
could I need modify "/etc/sysconfig/network-scripts" ,"/sbin/ifuup" ?

5) my linux kernel :2.4.4.

    CROSS_COMPILE: ppc_8xx-gcc (v2.95)

6) linux can boot from MBX860 board ,and show messages :
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024) Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 192.168.1.252, my address is
192.168.1.1
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

------------------------------
guo zhenglin
E-mail: guo_zl9 at hotmail.com
------------------------------

#4 lore raw

tis 2003-03-18 klockan 10.40 skrev guo_zhenglin:

Quoted 7 lines

I don't know how to config network (ftp) on MBX860 board,
please help me.

1) our finally product is ourself-design board.
the designer say no Ethernet port,
and only has ONE serial port used to maintenance and update system. this board has not manufactured.

Then you should probably use a serial file transfer protocol such as Z-Modem. This would allow you to use the same serial port as both console and to transfer upgrades.

Quoted 3 lines

2) Our company has a DEMO board , it is motorola's MBX860 board. MBX860 board has a Ethernet port (SCC1).
now I can test something about network on MBX860 board.

The you need to figure our what kind of chipset is used for the ethernet port, and load the corresponding kernel driver. When this is done configure the interface with the ifconfig command or the ip command.

Quoted 9 lines

6) linux can boot from MBX860 board ,and show messages :
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024) Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 192.168.1.252, my address is
192.168.1.1
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

Then it seems your network driver is already configured on the board and you have set it up to use automatic IP configuration via BOOTP which was successful. All you need now is to talk to it over the network, and to start the needed network daemons on the board if you want to be able to connect to the board from your network.. (connecting from the board to your network should already work).

Signature · 2 lines
Henrik Nordstrom <[email protected]>
MARA Systems AB
#5 lore raw

thanks very much!
I try it .

----- Original Message -----
From: "Henrik Nordstrom" <[email protected]>
To: "guo_zhenglin" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, March 18, 2003 5:56 PM
Subject: Re: How use FTP on serial port(COM1)?

Quoted 43 lines

tis 2003-03-18 klockan 10.40 skrev guo_zhenglin:

Quoted 7 lines

I don't know how to config network (ftp) on MBX860 board,
please help me.

1) our finally product is ourself-design board.
the designer say no Ethernet port,
and only has ONE serial port used to maintenance and update system. this board has not manufactured.

Then you should probably use a serial file transfer protocol such as Z-Modem. This would allow you to use the same serial port as both console and to transfer upgrades.

Quoted 3 lines

2) Our company has a DEMO board , it is motorola's MBX860 board. MBX860 board has a Ethernet port (SCC1).
now I can test something about network on MBX860 board.

The you need to figure our what kind of chipset is used for the ethernet port, and load the corresponding kernel driver. When this is done configure the interface with the ifconfig command or the ip command.

Quoted 9 lines

6) linux can boot from MBX860 board ,and show messages :
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024) Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 192.168.1.252, my address is
192.168.1.1
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

Then it seems your network driver is already configured on the board and you have set it up to use automatic IP configuration via BOOTP which was successful. All you need now is to talk to it over the network, and to start the needed network daemons on the board if you want to be able to connect to the board from your network.. (connecting from the board to your network should already work).

Signature · 2 lines
Henrik Nordstrom <[email protected]>
MARA Systems AB