WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Ser2net  (Read 13700 times)

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #45 on: February 02, 2022, 04:36:18 AM »
Please confirm potential typos.

Code: [Select]
3.9 Add the ser2net conf file

sudo touch /etc/ser2net.conf
sudo echo protocol,src_ip,port_to_reach_onRpi:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT >> ser2net.conf

Missing directory. Should be ">>/etc/ser2net.conf"

Code: [Select]
3.10 We have to tell piCorePlayer to save these setting for future reboots :

sudo echo /etc/ser2name.conf >> /opt/.filetool.lst

Extra / and ser2name should be ser2net. Should be "etc/ser2net.conf"

Ready for review: https://docs.picoreplayer.org/projects/using-ser2net/

you are right Greg! I have to wear glasses...or sleep a little bit more..

Just one mistake. the last comand is "pcp bu" not "pcp br".

Many thanks !
« Last Edit: February 02, 2022, 04:54:48 AM by olivier.com »

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #46 on: February 02, 2022, 04:46:01 AM »
Hi olivier.com
A couple of minor points:
You misspelled export:
Code: [Select]
xport CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
I was under the (possibly mistaken) impression that  piCorePlayer  like  piCore  compiled 32 bit apps to be
armv6 compatible:
Code: [Select]
export CFLAGS="-O2 -pipe -march=native -mfpu=vfp"
export CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=native -mfpu=vfp"

You are certainly right.
I done my idea with this article : https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu
Quote
...As long as you’re not cross compiling, the simplest and easiest way to get the best performance on Arm with both GNU compilers and LLVM-compilers is to use only -mcpu=native and actively avoid using -mtune or -march....

So in my mind, compiling with armv6 flag is the best way if you want to share you compiled extension. In our case, everyone can build the extension using their own Rpi spec (ie: native). I agree with you, if i build the extension with native option on Rpi4, the result would give certainly strange result on a Rpi2. Tell me if I mistaken.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: Ser2net
« Reply #47 on: February 02, 2022, 10:41:24 AM »
Hi olivier.com
No, you are not mistaken. As long as everyone builds their own version, then  -march=native  is fine.

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #48 on: February 02, 2022, 12:41:57 PM »
OK. Thank you.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Ser2net
« Reply #49 on: February 02, 2022, 02:39:50 PM »
Just one mistake. the last comand is "pcp bu" not "pcp br".

The last command does a backup and reboot. I combined your last 2 commands.

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #50 on: February 02, 2022, 03:05:53 PM »
Perfect!