WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Add lrzsz to the repo?  (Read 8504 times)

Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Re: Add lrzsz to the repo?
« Reply #15 on: February 16, 2017, 02:54:20 AM »
Yes sudo gives same result.

Quote
tc@piCorePlayer:~$ ls -l /dev/ttyAMA0
crw-rw----    1 root     staff     204,  64 Feb 16 08:53 /dev/ttyAMA0


Quote
tc@piCorePlayer:~$ sudo sh -c 'lsz -X -k 1021filt_106diyaudio.skr > /dev/ttyAMA0 < /dev/ttyAMA0'
Sending 1021filt_106diyaudio.skr, 560 blocks: Give your local XMODEM receive command now.
Xmodem sectors/kbytes sent:   0/ 0kRetry 0: Timeout on sector ACK
Doesnt help I am afraid.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Add lrzsz to the repo?
« Reply #16 on: February 16, 2017, 03:26:20 AM »
Serial port on RPi3 is /dev/ttyS0 on other boards it is /dev/ttyAMA0
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 718
Re: Add lrzsz to the repo?
« Reply #17 on: February 16, 2017, 03:52:29 AM »
And the serial maybe occupied with the console.
In picore the startserialtty starts the serial console.

You may remove/remark the startserialtty from the file:

Code: (bash) [Select]
sudo nano /opt/bootlocal.sh
From:
Code: (bash) [Select]
/usr/sbin/startserialtty &
To:
Code: (bash) [Select]
# /usr/sbin/startserialtty &

And one more thing... is the serial port the uart initialized with the correct things like baudrate.
Can't find any settings of that in the lrzsz, it has to be done before running lrzsz.
« Last Edit: February 16, 2017, 04:04:37 AM by patrikg »

Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Re: Add lrzsz to the repo?
« Reply #18 on: February 16, 2017, 06:19:38 AM »
Hi and thanks for your effort.
I have rpi 2
No reference to startserialgetty in bootlocal.sh
Quote
#!/bin/sh
# put other system startup commands here
GREEN="$(echo -e '\033[1;32m')"
echo
echo "${GREEN}Running bootlocal.sh..."
#pCPstart------
/home/tc/www/cgi-bin/do_rebootstuff.sh 2>&1 | tee -a /var/log/pcp_boot.log
#pCPstop------
Regarding baudrate etc. I have set the right parameters in minicom serial programme (115200 8n1 - HW and Flow control =0)



« Last Edit: February 16, 2017, 06:38:24 AM by bambadoo »

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 718
Re: Add lrzsz to the repo?
« Reply #19 on: February 16, 2017, 01:56:27 PM »
I don't know if picoreplayer uses the original way of starting getty in the initttab file.
You could look at
Code: (bash) [Select]
sudo cat /etc/inittab
And maybe remark that line with your serial terminal starting...

Code: (bash) [Select]
sudo nano /etc/inittab

Saying something like this.
From:
Code: (bash) [Select]
ttyAMA0::respawn:/sbin/getty -L 115200 /dev/ttyAMA0 vt100

To:
Code: (bash) [Select]
# ttyAMA0::respawn:/sbin/getty -L 115200 /dev/ttyAMA0 vt100


Offline bambadoo

  • Newbie
  • *
  • Posts: 21
Re: Add lrzsz to the repo?
« Reply #20 on: February 16, 2017, 02:20:43 PM »
Just checked.
Quote
tc@piCorePlayer:/usr/bin$ sudo cat /etc/inittab
# /etc/inittab: init configuration for busybox init.
# Boot-time system configuration/initialization script.
#
::sysinit:/etc/init.d/rcS

# /sbin/getty respawn shell invocations for selected ttys.
tty1::respawn:/sbin/getty -nl /sbin/autologin 38400 tty1
#tty2::respawn:/sbin/getty 38400 tty2
#tty3::respawn:/sbin/getty 38400 tty3
#tty4::askfirst:/sbin/getty 38400 tty4
#tty5::askfirst:/sbin/getty 38400 tty5
#tty6::askfirst:/sbin/getty 38400 tty6

# Stuff to do when restarting the init
# process, or before rebooting.
::restart:/etc/init.d/rc.shutdown
::restart:/sbin/init
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rc.shutdown

However - maybe this is a clue?
Installing lrzsz from the repo should install the ymodem, xmodem and zmoden protocols
in
/usr/bin/sx
/usr/bin/rx
/usr/bin/zx

and so on.
However these "files" are not present. Could they be installed somewhere else by default in tiny core?

EDIT: Voila!!
In this lrzsz install these are installed in, and are called something else
Quote
usr/local/bin/lrx
usr/local/bin/lrb
usr/local/bin/lsx
usr/local/bin/lsb
usr/local/bin/lsz
usr/local/bin/lrz

Edited in minicom config and everything works.
So easy and still so difficult.

« Last Edit: February 16, 2017, 02:28:14 PM by bambadoo »