Skip to contentSkip to conversation

ser2net package

Buildroot Leonardo Giordano 4 participants 10 messages Aug 6, 2008 – Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I am trying to access a serial port from network. I found ser2net and works fine on my desktop linux.
Has anybody written the ser2net.mk? I am having trouble to do it. Any other suggestion will be appreciated.

Regards,

#1 lore raw
Quoted 5 lines

I am trying to access a serial port from network. I found ser2net and works fine on my desktop linux.
Has anybody written the ser2net.mk? I am having trouble to do it. Any other suggestion will be appreciated.

I'll do it for $30US. Shall I send you my PayPal email?

-Steve

#6 lore raw
Quoted 2 lines · Leonardo Giordano

Yes, but I am having trouble in writing the ser2net.mk file. I mean, I am reading the ser2net makefile to write the ser2net.mk.

The ser2net makefile that comes with the package is not that much of an importance, unless it is not standard. Skimming at the ser2net archive tells me it is a classic GNU automake compatible source package.

... and what is the problem.. what have you done so far? Can you share the effort here?

Thanks,
Hinko

Signature · 7 lines
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
#8 lore raw
Quoted 3 lines · Leonardo Giordano

Well, I have not done so much. I am a newbie on this.
Basically, I copied the "wget" package dir to write the "ser2net" package. Then I just made some renames (wget -> ser2net). My ser2net.mk is attached.

great!

Quoted 4 lines

The when executing make, it says:

dataxfer.c:2007: error: 'B230400' undeclared here (not in a function) make[1]: *** [dataxfer.o] Error 1

Yes, I see it too on i386 arch. The missing 'B230400' definition should probably be in termios.h uClibc header. For i386 there is a comment in /buildroot/build_i386/staging_dir/usr/include/bits/termios.h saying:

#if 0 /* limited on uClibc, keep in sync w/ cfsetspeed.c */

#define  B230400  0010003
#define  B460800  0010004
#define  B500000  0010005
#define  B576000  0010006
#define  B921600  0010007
#define  B1000000 0010010
#define  B1152000 0010011
#define  B1500000 0010012
#define  B2000000 0010013
#define  B2500000 0010014
#define  B3000000 0010015
#define  B3500000 0010016
#define  B4000000 0010017

#define __MAX_BAUD B4000000
#else
#define __MAX_BAUD B115200
#endif

On cris arch this is not the case... the package compiles without a glitch!

I don't have a nice fix for this, but completely removing the 2007 line in dataxfer.c works for me (at least it compiles all the way through), but I haven't tested it on real hardware.

HTH,
Hinko

Signature · 7 lines
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
#3 lore raw
In reply to Leonardo Giordano

Leonardo,

Quoted 7 lines · Leonardo Giordano

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">

Please do not send HTML mail.
TIA,