Hi - my weekend experiment was to build a Debian Jessie with 4.1.0-rc3-bone1.2 kernel image to play with; sadly, while it appears to be running, I have no way to communicate with it. Pings to its IP address are responded to promptly, but SSH login attempts are rejected immediately, and there is no apparent serial path either.
I checked the SSH entries in /etc/init on the SD image; they appear to be set to enable the sshd server.
Anyone able to coax the beast out of its shell?
debian@192.168.7.2’s password: Last login: Tue May 12 16:34:45 2015 from 192.168.7.1 debian@beaglebone:~$ uname -r 4.1.0-rc3-bone0
Slightly older kernel here, but it should be the same. Well actually, I’m running SYSV init daemon, so I suppose that could be systemd giving you “problems”. e.g. A systemd service may need to be enabled to get your ssh server running at boot ? Knowing the process you went through to get a working image would be helpful in nailing down what your issue is . . .
You would need to add “g_serial” to the file located at /etc/modules, assuming systemd does not stand in your way. Which supposedly systemd is supposed to be backwards compatible with SYSV LSB init scripts, etc.
You would possibly also have to either setup a systemd service to start up an agetty or similar connection. or modify /etc/inittab to reflect that change. Which ever works for your use case.
Yes, I was running Robert’s BBB instructions. I agree it’s probably a systemd startup issue, but haven’t been able to find setup instructions that merely altered file contents - which I can do while burning the SD - rather than using systemctl on a running system. Can’t start SSH without SSH… although the full openssh-server package seems to have been installed in the debian-8.0-minimal… rootfs.
@Robert, does systemd get in the way when trying to enable either of those gadget drivers ? I know for me it was pretty easy, but don’t think I dd’d over a Jessie image. Wheezy 7.8 I’m thinking, and all I did in preparation was comment out the systemd init line in uEnv.txt
systemd actually does the right thing, even when it has to wait for us
to decide g_multi vs g_ether....
btw, here's how the systemd serial-getty service was enabled for
ttyGS0 (without systemctr).. (when we modprobe g_multi and the
usb-slave device starts: usb flash, usb ether, & usb serial)
Yeah Wheezy 7.8 is was. Pretty sure this would not work on Jessie. As Jessie needs SYSV packages installed in order to use SYSV( uses systemd as default ). However, systemd is supposed to be backwards compatible with SYSV, so if you do not comment out the line i suggest below in uEnv.txt, it may just work.
william@eee-pc:~/downloads/linux-images$ sudo dd if=/dev/zero of=/dev/sdb bs=1024 count=22+0 records in
2+0 records out
2048 bytes (2.0 kB) copied, 0.255138 s, 8.0 kB/s
william@eee-pc:~/downloads/linux-images$ sudo dd if=/home/william/downloads/linux-images/bone-debian-7.8-console-armhf-2015-03-01-2gb.img of=/dev/sdb
3481600+0 records in
3481600+0 records out
1782579200 bytes (1.8 GB) copied, 560.021 s, 3.2 MB/s
OPTIONAL:
If like me you wish to disable systemd . . .period.
@Robert, ah cool, but the idea was to help this person enable one of the USB gadget devices via his / her dev machine. As it does not seem as though he/she has access to a serial debug cable.
With sysv, I’ve done this, and know how to go about it, but with systemd . . . yeah no idea.