Installing Debian Wheezy (snapshot) as of 20120828 to Kuro Sheeva

Two machines of Kuro Sheeva got broken this summer (by power supply unit problem ).

For new machine (which bought in 2010), I installed Debian Wheezy (snapshot).

I use 32GB SD card for secondary storage and use USB memory for installer.

Basically, it went well (except /etc/inittab entry).

Update U-boot (1.1.4 + 3.4.27 + alpha)

Since the U-boot on the flash ROM is too old, I replaced it. I used the image I built last year and it was done with OpenOCD.

For detail of this procesure see Sheeva1 server installation.

U-boot settings (part 1)

After writing U-boot to flash ROM, reset Kuro Sheeva.

Connect Kuro Sheeva's serial line (I'm using cu command of UUCP):

$ cu -l /dev/ttyUSB0 -s 115200

Stop U-boot process by typing Enter, and invoke following commands:

setenv mainlineLinux yes
setenv arcNumber 2678
saveenv
reset

Get Debian installer and save to USB memory

I used wget and got two files (and saved to USB memory):

ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/20120828/images/kirkwood/netboot/marvell/sheevaplug/uImage

ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/20120828/images/kirkwood/netboot/marvell/sheevaplug/uInitrd

Then, at U-boot prompt, I entered following commands:

mmcinit
usb start
fatload usb 0:1 0x00800000 /uImage
fatload usb 0:1 0x01100000 /uInitrd

Then:

setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most
bootm 0x00800000 0x01100000

Install Debian onto SD card

I installed Debian onto SD. I setup three partitions

  • /boot

    ext2

  • / ext4 but ^has_journal

  • /home

    ext4 but ^has_journal

I selected following tasks.

  • SSH server
  • Standard system utilities

After installation, I needed to power off Kuro Sheeva, to remove SD card, and to insert SD card to my PC to fix /etc/inittab. We need a getty entry for ttyS0 (and don't need entries for tty1-5).

U-boot setting (part 2)

Boot from SD card:

setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv

Let's boot:

boot

Removing unneeded packages

By 'apt-get remove --purge' command, I removed following packages.

  • dc
  • discover
  • mutt
  • nano
  • nfs-common
  • rpcbind
  • tcpd
  • whois
  • xauth
  • texinfo
  • ftp

Then, by 'apt-get autoremove --purge' command, we can remove following packages.

  • libpth20
  • libdiscover2
  • libx11-data
  • libxmuu1
  • libxcb1
  • libxau6
  • libxdmcp6
  • libx11-6
  • libgpgme11
  • discover-data
  • libxext6
  • dmsetup
  • libdevmapper1.02.1
  • libevent-2.0-5
  • libnfsidmap2
  • libtokyocabinet9

Install other packages

By 'apt-get install' command, install following packages.

  • mtd-utils
  • ntpdate
  • sudo

Sudo setup

Edit /etc/group and add me to 'sudo' group.

Clock setup

Using ntpdate, setup curren time. With correct time, invoke hwclock -w.

/etc/ssh/sshd_config setup

I don't allow password authentication for SSH:

PasswordAuthentication no