| | 57 | |
| | 58 | == Beaglebone blue == |
| | 59 | |
| | 60 | We use a chrooted environment. As Debian already has a ssh server, the chrooted dropbear is running on port 1024. |
| | 61 | |
| | 62 | You can connect to it with: |
| | 63 | {{{ |
| | 64 | ssh root@192.168.7.2 -p 1024 |
| | 65 | }}} |
| | 66 | or copy files with: |
| | 67 | {{{ |
| | 68 | scp -P 1024 filename root@192.168.7.2: |
| | 69 | }}} |
| | 70 | === rootfs === |
| | 71 | |
| | 72 | |
| | 73 | |
| | 74 | === chroot script === |
| | 75 | |
| | 76 | chroot script (''/home/debian/chroot.sh''): |
| | 77 | |
| | 78 | {{{ |
| | 79 | #!/bin/sh |
| | 80 | |
| | 81 | mount -o bind /dev /home/debian/rootfs/dev/ |
| | 82 | mount -o bind /sys /home/debian/rootfs/sys/ |
| | 83 | mount -o bind /proc /home/debian/rootfs/proc/ |
| | 84 | |
| | 85 | mount -t tmpfs -o mode=0755,nodev,nosuid tmpfs /home/debian/rootfs/run |
| | 86 | mount -t devpts devpts /home/debian/rootfs/dev/pts |
| | 87 | |
| | 88 | chroot /home/debian/rootfs/ /etc/init.d/dropbear start |
| | 89 | }}} |