Turning on syslog logging
sudo sysctl -w sunrpc.nfs_debug=1023 sudo sysctl -w sunrpc.nfs_debug=1023 1. Connect the Cisco 2612 as follows:
The RJ45 connector of the serail cable from the PC goes to "Console" on 2612.
A CAT-5 cable goes from the "TokenRing0/0" port of the 2612 to the concentrator.
A Cat-5 cable goes from the "Ethernet0/0" port of the 2612 to your home network router.
dd if=./ApricotR4-NoGUI-1G-SDCARD.img of=/dev/sdh bs=4096There should be one partition named XCP-1.6.10 Base Pack. Copy the files initrd.gz, uzImage.bin, scriptcmd, mtd-utils (DEB package) there, replace the existing files (uzImage.bin and scriptcmd)
cat /proc/mtdYou should see this:
dev: size erasesize name mtd0: 00d00000 00010000 "filesystem-SF" mtd1: 00280000 00010000 "kernel-SF" mtd2: 00050000 00010000 "u-boot-SF" mtd3: 00010000 00010000 "u-boot env. cfg. 1-SF" mtd4: 00010000 00010000 "u-boot env. cfg. 2-SF" mtd5: 00010000 00010000 "w-load-SF" mtd6: 00a00000 00100000 "kernel" mtd7: 7f600000 00100000 "rootfs"
mkdir /mnt mount /dev/mmcblk0p1 /mnt cd /mnt/modKern dd if=uzImage.bin of=/dev/mtdblock6
setenv nandargs "setenv bootargs mem=460M ubi.mtd=7 root=/dev/mmcblk0p2 console=ttyS0,115200n8 console=tty0 mtdparts=WMT.nand:10m(kernel),-(rootfs)" setenv nandboot "nandrw r 0x0 0x1000000 0x400000; if iminfo 0x1000000; then run nandargs; bootm 0x1000000; fi"then
bootWhen the Kernel starts booting, insert the uSD card so it can find the rootfs. When the system is ready, you should be able to connect using SSH. Login: root, password: apricot. Use the physical screen and keyboard to find out the IP address
mount /dev/mmcblk0p1 /mnt dpkg -i /mnt/mtd-utils_1.5.0-1_armhf.deb umount /mnt ubidetach -d 0 ubiformat /dev/mtd7 ubiattach -p /dev/mtd7 ubimkvol /dev/ubi0 -m -N rootfs mount -t ubifs ubi0:rootfs /mntDebootstrap Time ! It ccan be quite long, so… once you've seen it's start correctly, go do something else, have a coffe, take a (short) nap, …
apt-get install -y debootstrap debootstrap --no-check-gpg wheezy /chroot http://mirrordirector.raspbian.org/raspbian/Once it's done, you can chroot in your new system !
mount -t proc none /mnt/proc mount -t sysfs none /mnt/sys mount -o bind /dev /mnt/dev chroot /mntYou should now be using the rootfs on NAND, time to setup the Raspbian distro
mount /dev/mmcblk0p1 /mnt cp -R /mnt/modKern/modules /lib/ depmodInstall uBoot tools to be able to change the uBoot parameters if/when you need
apt-get install u-boot-tools echo "/dev/mtd3 0x0000 0x10000 0x10000" > /etc/fw_env.config echo "/dev/mtd4 0x0000 0x10000 0x10000" >> /etc/fw_env.config fw_printenv ## Should print the uBoot envMake the previous setenv changes permanent:
fw_setenv nandargs "setenv bootargs mem=460M ubi.mtd=7 root=ubi0:rootfs rootfstype=ubifs console=ttyS0,115200n8 console=tty0 mtdparts=WMT.nand:10m(kernel),-(rootfs)" fw_setenv nandboot "nandrw r 0x0 0x1000000 0x400000; if iminfo 0x1000000; then run nandargs; bootm 0x1000000; fi"Setup you debian installation
passwd echo "proc /proc proc defaults 0 0" >> /etc/fstab echo "ubi0:rootfs / ubifs defaults 0 0" >> /etc/fstab echo "" >> /etc/network/interfaces echo "allow-hotplug eth0" >> /etc/network/interfaces echo "iface eth0 inet dhcp" >> /etc/network/interfacesInstall the SSH server
apt-get update apt-get install openssh-server tmuxEdit the inittab to enable a serial session, just in case…
nano /etc/inittabThat should be it, you can safely poweroff the board, unplug the uSD card, then reboot.
sudo nano -w /etc/udev/rules.d/51-android.rulesAnd entering the following line at the end of the file (be sure to use your user name at the end!):
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="<your-username>"Now install the tools and set a mount point by entering the following commands one line at a time
Plug your Galaxy Nexus in, and enter the next line in the same terminal window:
- sudo apt-get install mtpfs
- sudo mkdir /media/GNexus
- sudo chmod 775 /media/GNexus
sudo mtpfs -o allow_other /media/GNexusDrag and drop through Nautilus, and when you're done and need to unmount, enter the following:
sudo umount mtpfsThis will have to suffice until someone writes a couple scripts or a front end. You don't have to install mtpfs, make the mount point, or chmod it after the first time. You may have to mount the device manually each time, I'll know more when I get one to play with.