New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

B2 rev RD serial access

Got problems with your B2 or B3? Share and get helped!
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 rev RD serial access

Post by paulchany »

MouettE wrote:
paulchany wrote:And because of uboot that I have now on my Bubba 2, the newest kernels can't be installed on my Bubba2, right?
The u-boot bug that prevent newer kernel from booting does not affect the Bubba 2. You can boot it with newest kernel without upgrading u-boot.
So, I can to install the linux-image-3.2.0-4-powerpc package and can to boot with it?
I have now installed the bubba3-kernel version: 1:2.6.39.4-13.
Can I replace it with linux-image-3.2.0-4-powerpc?
Best, Pali
MouettE
Site admin
Posts: 345
Joined: 06 Oct 2011, 19:45

Re: B2 rev RD serial access

Post by MouettE »

paulchany wrote:So, I can to install the linux-image-3.2.0-4-powerpc package and can to boot with it?
I have now installed the bubba3-kernel version: 1:2.6.39.4-13.
Can I replace it with linux-image-3.2.0-4-powerpc?
No you must use an updated version of the bubba3-kernel package. There is one available here.
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 rev RD serial access

Post by paulchany »

MouettE wrote:
paulchany wrote:1. I shall test it as MouettE did ( contact the TX and the RX wires together on the cable, open a console and see if sent characters echo back ). Don't know only how to open a console on my Arch linux desktop system and how to send characters?
1. You can use screen or minicom to open a terminal on your serial console. screen is probably simpler to setup but I think that minicom offers better compatibility.
From there you can run minicom (your user must be in the uucp group to access the serial device) and try to type characters. They should be echoed back on the terminal. To exit minicom press Ctrl-A then q.
I have soldered now the FTDI USB Serial Device converter to my Bubba 2.
I can use minicom to connect to my Bubba.
In the status line of minicom I have:
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0
How can I use actually minicom to get command prompt on my Bubba so I can run programs like mc, to can install programs, etc.?
I trying to use GNU Screen too, but sometimes the command:

Code: Select all

screen /dev/ttyUSB0 115200
gives me no possibility to login to my Bubba.
Eg., when I just hit Enter after run the screen command abowe I can get login prompt and can login to my Bubba, but sometimes I just can't get the login prompt after hitting Enter. Why?
Should I set up somehow the upgraded Debian GNU/ Linux Jessie so I can use this serial connection?
Best, Pali
MouettE
Site admin
Posts: 345
Joined: 06 Oct 2011, 19:45

Re: B2 rev RD serial access

Post by MouettE »

Try to reboot your b2 from ssh or web admin with screen or minicom opened on you serial line and tell us what you see.
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 rev RD serial access

Post by paulchany »

MouettE wrote:Try to reboot your b2 from ssh or web admin with screen or minicom opened on you serial line and tell us what you see.
I reboot from ssh and in minicom window I see followings:
U-Boot 1.3.4-00056-gf6f51b1-dirty (Nov 4 2008 - 18:48:46) MPC83XX

Reset Status: Software Hard, Exnal Soft, External/Internal Hard

CPU: e300c3, MPC8313E, Rev: 1.0 at 333.333 MHz, CSB: 133.333 MH Excito BUBBA|TWO (rev 1)
I2C: ready
DRAM: 256 MB
FLASH: 512 kB
In: serial
Out: serial
Err: serial
Net: TSEC0, TSEC1 [PRIME]
SATA: Sata bus probe port: 0 result: 275
Sata bus probe port: 1 result: 0
Sata bus probe port: 2 result: 0
Sata bus probe port: 3 result: 0
Hit any key to stop autoboot: 0

2032238 bytes read

12288 bytes read
## Booting kernel from Legacy Image at 00400000 ...
Image Name.2.62-1
Created: 2014-08-25 4:24:52 UTC
Image Type: PowerPC Linux Kernel Image (gzip com Data Size: 2032174 Bytes = 1.9 MB
Load Address: 00000000
Entry Point: 00000000
Verify ... OK
Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at 00600000
Booting using the fdt blob at 0x600000
Using MPC831x RDB machine descriptieserve gpages without hugetlb enabled
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpusion 3.2.62-1 (charles@transmission) (gcc version 4.6.3 (Debian 4.6.3-14d
setup_arch: bootmem
mpc831x_rdb_setup_arch()
Found FSL PCI host bridge at 0x0000. Firmware bus number: 0->0
PCI host bridge /sleep-nexus/pci@e0008500 (primary) ranges:
MEM 0x00000000x000000009fffffff -> 0x0000000090000000
MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000h
IO 0x00000000e2000000..0x00000000e20fffff -> 0x0000000000000000
arch: exit
Zone PFN ranges:
D000000 -> 0x00010000
Normal empty
Movable zone start PFN for each node
early_node_map[1] active P 0: 0x00000000 -> 0x00010000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65command line: root=/dev/sda1 co=
PID haries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
ode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 255604k/262144k available (3928k, 6540k reserved, 200k data, 75k bss, 156k init)
Kernel virtual memory layout:
* 0xfffdf000..0xfffffap
* 0xfdefb000..0xfe000000 : early ioremap
* 0xd1000000..0xfdefb000 : vmalloc & ioremap
NRIPIC (128 IRQ sources) at d1000700
clocksource: timebase mult[7800001] shift[22] registered
pid_max: defaunimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys cpuacct
Initializing cgroup su
Initializing cgroup subsys freezer
devtmpfs: initialized
NET: Registered protocol family 16
00:10.0: BAR 6: assigned [mem 0x80000000-0x8007ffff pref]
bio: create slab <bio-0> at 0
Freescale Elo DMA driver
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clmebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (o768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash t: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered prly 1
fsl-elo-dma e00082a8.dma: #0 (fsl,elo-dma-channel), irq 71
fsl-elo-dma e00082a8.dma: #1 (fsl,elo-dma-cha71
fsl-elo-dma e00082a8.dma: #2 (fsl,elo-dma-channel), irq 71
fsl-elo-dma e00082a8.dma: #3 (fsl,elo), irq 71
BUBBATWO: driver ver 0.2 (build Aug 24 2014 21:52:41) loaded
msgmni has been set to 499
cheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 17) is a 16550A
brd: module loaded
loop: module loadedsata_sil 0000:00:10.0: Applying R_ERR on DMA activate FIS errata fix
scsi0 : sata_sil
scsi1 : sata_sil
scsi2 : sata_sil
scsi3 : sata_sil
ata1: SATA max UDMA/100 mmio m1024@0x90000000 tf 0x90000080 irq 20
ax UDMA/100 mmio m1024@0x90000000 tf 0x900000c0 irq 20
ata3: SATA max UDMA/100 mmio m1024@0x90000000 tf irq 20
ata4: SATA max UDMA/100 mmio m1024@0x90000000 tf 0x900002c0 irq 20
physmap platform flash device: 0e000000
Found: AMD AM29LV400BB
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
number of JEDECFreescale PowerQUICC MII Bus: probed
fsl-gianfar e0024000.ethernet: enabled errata workarounds, flags: 0xefsl-gianfar e0024000.ethernet: etc
fsl-gianfar e0024000.ethernet: eth0: Running with d
fsl-gianfar e0024000.ethernet: eth0: RX BD ring size for Q[0]: 256
fsl-gianfar e0024000.ethernet: ring size for Q[0]: 256
fsl-gianfar e0025000.ethernet: enabled errata workarounds, flags: 0xe
fsl-gianfar eernet: eth1: mac: 00:22:02:00:07:3d
fsl-gianfar e0025000.ethernet: eth1: Running with NAPI enabled
f0025000.ethernet: eth1: RX BD ring size for Q[0]: 256
fsl-gianfar e0025000.ethernet: eth1: TX BD ring 0]: 256
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
/soc8313@e0000000/usb@23000: Invde' property, fallback to host mode
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-eh0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io mem 0xe0023000
fsl-ehci fsl 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
re: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
egistered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: reginterface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new inter ums-usbat
i2c /dev entries driver
mpc-i2c e0003000.i2c: timeout 1000000 us
rtc-isl1208 0-006f: chiver version 0.3
rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0
rtc-isl1208 0-006f: Aatwo rtc fix
mpc-i2c e0003100.i2c: timeout 1000000 us
personality registered for level 1r level 0
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-d.com
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Rrotocol family 15
Registering the dns_resolver key type
registered taskstats version 1
rtc-isl1208 0-006ystem clock to 2015-06-03 09:04:54 UTC (1433322294)
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl ata1.00: ATA-8: WDC WD5000AACS-00G8B1, 05.04C05, max3
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ
ata1.00: configured for UDMA/100
scsi 0:0:0:0: Direct-Access ATA WDC WD5000AACS-0 05.0 PQ: 0 sd 0:0:0:0: [sda] 976773168 512-b)
sd 0:0:0:0: Attached scsi gene 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enableupport DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
usb 1-1: new high-speed number 2 using fsl-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
ata2: SATA link down (ontrol 310)
ata3: SATA link down (SStatus 0 SControl 310)
ata4: SATA link down (SStatus 0 SControl 310)
md: Waiting for all devices to be available before autodetect
don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 deviutorun ...
md: ... autorun DONE.
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda1): mounted file writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
Freeing unused ketemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LI)
systemd[1]: Detected architecture 'ppc'.

Welcome to Debian GNU/Linux 8 (jessiNET: Registered protocol family 10
systemd[1]: Inserted module 'ipv6'
systemd[1]: Set hostname to <b2>.
systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.
systemd[1]: Expecting device dev-ttyS0.device...
Expecting device vice...
systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Ford Requests to Wall Directory Watch.
systemd[1]: Starting Remote File Systems (Pre).
[ OK target Remote File Systems (Pre).
systemd[1]: Reached target Remote File Systems (Pre).
systemd[1]: Set upArbitrary Executable File Formats File System Automount Point.
systemd[1]: Starting Dispatch Passwo to Console Directory Watch.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
]: Expecting device dev-sda3.device...
Expecting device dev-sda3.device...
systemd[1]: Expectingmapper-bubba\x2dstorage.device...
Expecting device dev-mapper-bubba\x2dstorage.device...
systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
systemd[1]: Created slce.
systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice.
systemd[1]: Created slice User and Session Slice.
systemd[1]: Starting /dev/initctl Compatibility Named Pipe.[ OK ] Listening on /dev/initctl Compatib.
systemd[1]: Listening on /dev/inibility Named Pipe.
systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shut
systemd[1]: Listening on Delayed Shutdown Socket.
[ OK ] Listening on Journal Socket (/dev/log).
systemd[1]: Listening on Journal Socket (/devsystemd[1]: Starting Device-mapper event daemon FIFOs.
[ OK ] Listening on Device-mapper event da
systemd[1]: Listening on Device-mapper event daemon FIFOs.
systemd[1]: Starting LVM2 metadata daem
[ OK ] Listening on LVM2 metadata daemon socket.
systemd[1]: Listening on LVM2 metadata daemonsystemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket.
systemd[1]on udev Control Socket.
systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernelsystemd[1]: Listening on udev Kernel Socket.
systemd[1]: Starting Journal Socket.
[ OK ] Lisurnal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting System Slice.
[ OK slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Starting File System Check on R.
Starting File System Check on Root Device...
systemd[1]: Starting system-systemd\x2dfsck.sl] Created slice system-systemd\x2dfsck.slice.
systemd[1]: Created slice system-systemd\x2dfsck.slicesystemd[1]: Starting system-getty.slice.
[ OK ] Created slice system-getty.slice.
systemd[ slice system-getty.slice.
systemd[1]: Starting system-serial\x2dgetty.slice.
[ OK systemd slice system-serial\x2dgetty.slice.
] Created slice systemd[1]: Starting system-postgresql.slice.
sl\x2dgetty.slice.
systemd[1]: Created slice system-postgresql.slice.
[ OK systemd[1]: Start datagram queue length...
] Created slice system-postgresql.slice.
Starting Increase datagramth...
systemd[1]: Mounted Huge Pages File System.
systemd[1]: Starting Load Kernel Modules...
ing Load Kernel Modules...
systemd[1]: Started Set Up Additional Binary Formats.
systemd[1]: Mountissage Queue File System...
Mounting POSIX Message Queue File System...
systemd[1]: Starting Create uired static device nodes for the current kernel...
Starting Create list of required static deviceent kernel...
systemd[1]: Mounted Debug File System.
systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices...
systemd[1]: Starting LSB: controls configuration of serial pog LSB: controls configuration of serial p.
systemd[1]: Starting Slices.
[ OK systemd[1]:rget Slices.
] Reached target Slices.
[ OK systemd[1]: Started Increase datagram queue Started Increase datagram queue length.
[ OK systemd[1]: Mounted POSIX Message Queue File System. POSIX Message Queue File System.
[ OK systemd[1]: Started Create list of required static defor the current kernel.
] Started Create list of required static device nodes ...current kernel.
fuse initon 7.17)
systemd[1]: Starting Create Static Device Nodes in /dev...
Starting Create Static Den /dev...
systemd[1]: Starting Syslog Socket.
[ OK systemd[1]: Listening on Syslog Socket.
] Ssystemd[1]: Starting Journal Service...
yslog Socket.
Starting Journal Service...
[ OK 1]: Started Journal Service.
] Started Journal Service.
[FAILED] Failed to start Load KerneSee 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started LSB: controtion of serial ports.
Mounting FUSE Control File System...
Mounting Configuratioem...
Starting Apply Kernel Variables...
[ OK ] Mounted FUSE Control File Syste[ OK ] Mounted Configuration File System.
[ OK ] Started File System Check on Root Device.
[ OK ] Started Apply Kernel V[ OK ] Started Create Static Device Nodes in /dev.
systemd-fsck[889]: Bubba_root: clean, 184155es, 1465835/2443880 blocks
Starting udev Kernel Device Manager...
[ OK ] Started udev Kernel Device Manage Starting LSB: MD array assembly...
Starting LSB: Tune IDE hard disks...
Startinreliminary keymap...
[ OK ] Started LSB: Set preliminary keymap.
Starting Remount Rnel File Systems...
[ OK ] Started Remount Root and Kernel File Systems.
Starting Load/Save Random [ OK ] Reached target Local File Systems (Pre).
[ OK ] Started Load/Save Random Seed.[ OK ] Started LSB: Tune IDE hard disks.
[ OK ] Started LSB: MD array assembly[ OK ] Started udev Coldplug all Devices.
Starting udev Wait for Complete Device Initiali[ OK ] Found device /dev/ttyS0.
[ OK ] Found device WDC_WD5000AACS-00G8B1 3.
[ OK ] Created slice system-ifup.slice.
Activating swap /dev/sda3...
[ OK ice system-lvm2\x2dpvscan.slice.
Starting LVM2 PV scan on device 8:2...
[ OK ] Activated swap /dev/sda3.
[ OK ] Reached target Swap.
[ OK ] Started LVM2 PV scan on device 8:2.
[ OK ] Started udev Wait for Complete Device Initialization.
Starting Activation of LVM2 logical volumes...
Starting Copy rules generated whiles ro...
[ OK ] Started Copy rules generated while the root was ro.
[ OK ] Started Activation of LVM2 logical volumes.
[ OK ] Reached target Encrys.
Starting Activation of LVM2 logical volumes...
[ OK ] Found device /dev/mapper/bubba- Starting File System Check on /dev/mapper/bubba-stora.
[ OK ] Started Activation of LVM2 logical volumes.
Starting Monitoring of LVM2 mirros etc. ...ress polling...
systemd-fsck[1771]: Bubba_home: clean, 172759/59703296 files, 9845043/119386112 b[ OK ] Started File.
Mounting /home...
[ OK ] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress p[ OK ] Mounted /home.
[ OK ] Reached target Local File Systems.
Starting Cree Files and Directories...
Starting LSB: Raise network interfaces....
[ OK ] Reached targile Systems.
Starting Trigger Flushing of Journal to Persistent Storage...
Starting s configuration of serial ports...
Starting LSB: Set console font and keymap...
[ OK ]: Set console font and keymap.
[ OK ] Started Trigger Flushing of Journal to Persistent Storage.[ OK ] Started Create Volatile Fi.
OK ] Started LSB: controls configuration of serial ports.
Starting Update UTMP about System Bo...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started LSB: Raise network interfaces..
Starting ifup for eth0...
[ OK 0.
Starting ifup for eth1...
[ OK ] Started ifup for eth1.
[ OK ] ReacNetwork.
[ OK ] Reached target Network is Online.
Starting LSB: Configure the firewall a..
[ OK ] Started LSB: Configure the firewall at boot time.
[ OK ] Reached tarnitialization.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] LiUUID daemon activation socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ Listening on CUPS Printing Service Sockets.
[ OK ] Reached target Sockets.
[ OK arget Timers.
Starting Console System Startup Logging...
[ OK ] Reached target Pat[ OK ] Reached target Basic System.
Starting Entropy daemon using the HAVEGE algo[ OK ] Started Entropy daemon using the HAVEGE.
Starting LSB: Blinking le Starting Kerberos 5 Admin Server...
[ OK ] Started Kerberos 5 Admin Server.
Startin Key Distribution Center...
Starting Regular background program processing daemon...
[ Oarted Regular background program processing daemon.
Starting Deferred execution scheduler..[ OK ] Started Deferred execution scheduler.
Starting Internet superserver...
[ OK ] Started Internet superserver.
Starting OpenBSD Secure Shell server...
[ Oarted OpenBSD Secure Shell server.
Starting Restore /etc/resolv.conf if the system cras...s shut dowarting /etc/rc.local Compati.
Starting Login Service...
Starting LSB: Opelone server (Lightweigh...ss Protocol)...
Starting LSB: Load kernel modules needed to enabscaling...
Starting LSB: Start and stop the mysql database server daemon...
Starting LSB: aemon...
Starting LSB: Start minidlna at boot time...
Starting LSB: ez-ipupdate client for services...
Starting LSB: Update dynamic domain name service entries...
Starting Lower button interceptor...
Starting LSB: Start or stop the polipo web cache...
S: Brings up/down network automatically...
Starting PostgreSQL Cluster 9.4-main...
StgreSQL Cluster 9.1-main...
Starting dnsmasq - A lightweight DHCP and caching DNS server...
Starting LSB: Advanced IEEE 802.11 management daemon...
Starting Avahi mDNS/DNS-SD Stack...
Starting D-Bus System Message Bus...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
Starting (null)...
Starting LSB: SANE ner server...
Starting System Logging Service...
Starting Permit User Sessions...
Starting CUPS Printing Service...
[ OK ] Started CUPS Printing Service.
S remote CUPS printers available locally...
[ OK ] Started Make remote CUPS printers availab
[ OK ] Started Console System Startup Logging.
[ OK ] Started LSB: Blinking led.
[ OK ] Started Kerberos 5 Key Distribution Center.
[ OK ] Started Restore /etc/rf the system crash...was shut down..
[ OK ] Started /etc/rc.local Compatibility.
[ OK ed LSB: Load kernel modules needed to enable cpufreq scaling.
[ OK ] Started LSB: Start NTP da[ OK ] Started LSB: ez-ipupdate client for dynamic DNS services.
[ OK ] Started LSB: Bubtton interceptor.
[ OK ] Started LSB: Start or stop the polipo web cache.
[ OK ] Starngs up/down network automatically.
K ] Started LSB: Advanced IEEE 802.11 management daemon.
[ OK ] Started LSB: SANE ner server.
[ OK ] Started Permit User Sessions.
[ OK ] Started System Logging Service.
[ OK ] Started LSB: Start minidlna at boot time.
[ OK ] Started (null).
[ OK ] Started dnsmasq - A lightweight DHCP and caching DNS server.
[ OK ] Started LSB: OpenLDAP standalone server (Lightweight...cess Protocol).
[ OK ] Reached target Host and Network Name Lookups.
Starting LSB: Starts The Onion Routeocesses...
Starting LSB: DHCP server...
Starting LSB: Apache2 web server...
S: set CPUFreq kernel parameters...
Starting Serial Getty on ttyS0...
[ OK ] Staretty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
[ OK ] Started LSB: set CPUFreq kernel parameters.

Debian GNU/Linux 8 b2 ttyS0

b2 login:
Now I can login and can use shell commands.
The serial connection works well now with following command:

Code: Select all

screen -h 5000 /dev/ttyUSB0 115200
just do not like how Midnight Commander ( mc ) is narrower than the screen window, or a command line length is shorter than the width of the screen window; can I setup this behavior so the mc or a command line is wide as secreen window?
Furthermore, when using mc, function keys F5-F10 doesn't works.
I must use eg. Esc+0 for F10.
Best, Pali
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 rev RD serial access

Post by paulchany »

Can one uses this serial connection to boot Bubba 2 into single user mode?
Best, Pali
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 rev RD serial access

Post by paulchany »

Still can't use serial connection to login to my Bubba 2 every time.
Eg. at this moment I just boor my Arch linux desktop system and try to open the serial console with:

Code: Select all

xterm -e screen -h 5000 /dev/ttyUSB0 115200
I get the screen window in a xterm window and the blinking cursor but nothing else.
I'm trying to hit Enter key to get the login prompt but nothing happen.
Then I close this screen session with 'C-a \' and try to use minicom in another xterm window. Minicom can connect to Bubba 2; in the status line I have:
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0
but there I can't login to my Bubba 2 because I haven't the login prompt out there. I'm trying to get login prompt with hitting the Enter key but nothing happen.
What can cause this problem?
However, I can to ssh into my Bubba 2.
If I want, I could reboot from there Bubba 2, and then can I use serial connection to login to my Bubba. Why?
I think I found the solution. I did followings on my Bubba 2 on which I have running Debian GNU/Linux Jessie:

Code: Select all

systemctl start getty@ttyS0.service
systemctl status serial-getty@ttyS0.service
systemctl enable serial-getty@ttyS0.service
Furthermore, when the connection is established, in xterm window I just run command:

Code: Select all

resize
and get resized the width and hight of the screen window.
As regards the use minicom, I must to setup in minicom the Hardware Flowcontrol to No.
Actually, I found a working minicom setup that I copy into /etc/minirc.dfl:

Code: Select all

pu port             /dev/ttyUSB0
pu baudrate         115200
pu bits             8
pu parity           N
pu stopbits         1
pu minit
pu rtscts           No
so now I can get the login prompt in minicom.
Best, Pali
Post Reply