wiki:PcDuino

Hardware

  • PCDuino3 nano lite.
  • 1 4G+ microSD.

OS

armbian.

Post Install

apt install emacs24-nox vrms apt remove iozone3

  • Remove contrib and non-free from /etc/apt/sources.list.
  • Switch from jessie to unstable.
  • apt-get update && apt-get dist-upgrade
    • keep the vm swappiness in /etc/sysctl.conf.
    • allow the replacement of /etc/apt/apt.conf.d/50unattended-upgrades.
  • rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old

apt autoremove

kernel

4.5.1 mainline, with a gigabit ethernet driver fix.

Compiling

  • debuild -j4

Installing

Install the new kernel and it's dependencies.

  • apt install linux-kbuild-4.5 linux-compiler-gcc-5-arm
  • apt install linux-base initramfs-tools initramfs-tools-core klibc-utils libklibc
  • cd /usr/src/
    • dpkg -i linux-headers-4.5.0-1-common_4.5.1-1_armhf.deb
    • dpkg -i linux-headers-4.5.0-1-armmp_4.5.1-1_armhf.deb
    • dpkg -i linux-image-4.5.0-1-armmp_4.5.1-1_armhf.deb

Create a uInitrd from the initrd.

  • cd /boot
    • mkimage -A arm -T ramdisk -C none -n uInitrd -d initrd.img-4.5.0-1-armmp uInitrd-4.5.0-1-armmp

Edit /boot/boot.cmd

  • add a line in between the two lines starting with 'ext4load' in the 'sunxi' section of the file.
    • ext4load mmc 0 0x48000000 /boot/uInitrd || fatload mmc 0 0x48000000 uInitrd || ext4load mmc 0 0x48000000 uInitrd
  • change the corresponding bootz line, swapping out the '-' for our base, "0x48000000".

Convert /boot/boot.cmd to /boot/boot.scr.

  • cd /boot
    • mkimage -C none -A arm -T script -d boot.cmd boot.scr

Create a symlink from 'zImage' to your target kernel.

  • cd /boot
    • rm zImage
    • ln -s vmlinuz-4.5.0-1-armmp zImage

Create a symlink from 'uInitrd' to your target converted initramfs.

  • cd /boot
    • rm uInitrd
    • ln -s uInitrd-4.5.0-1-armmp uInitrd

If all went well, a reboot will now be successful.

Services

OpenSSH

apt install openssh-server

DistCC/CCache

apt install ccache distcc

ISCSI Client

apt install open-iscsi

Connecting:

iscsiadm -m discovery -t sendtargets -p 10.0.2.168:3260
iscsiadm --mode node --targetname iqn.2012-08.org.organleggers.pcduino1:faikvm -p 10.0.2.168:3260,1 --login

ISCSI Target

apt install iscsitarget iscsitarget-dkms

/etc/default/iscsitarget: change ISCSITARGET_ENABLE to true.

/etc/iet/ietd.conf:

Target iqn.2012-08.org.organleggers.pcduino1:faikvm
        Lun 0 Path=/dev/sdb,Type=blockio

Debugging

Serial Console

  • Change the boot args in /boot/boot.cmd
    • Change console to =ttyS0,115200
    • Change loglevel to =7

Convert /boot/boot.cmd to /boot/boot.scr.

  • cd /boot
    • mkimage -C none -A arm -T script -d boot.cmd boot.scr
Last modified 3 years ago Last modified on 05/07/16 21:12:09