Difference between revisions of "Setting up an SD card to boot from"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is the complete, accurate guide to getting a TS-7260 to boot debian etch with a nice large  
+
This is the complete, accurate guide to getting a TS-7260 to boot debian etch with a nice large root
  
Get a 512mb image from technologic, such as 512mbsd-7400-linux26-etch-oabi.dd. feynman.unh.edu has one on it's data drive.
+
Get a 512mb image from technologic, such as 512mbsd-7400-linux26-etch-oabi.dd. ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7400-linux/binaries/ts-images/ has these images.
  
dd it to disk: <code>dd if=512mbsd-7400-linux26-etch-oabi.dd of=/dev/mmcblk0</code>
+
dd it to disk:
 +
dd if=512mbsd-7400-linux26-etch-oabi.dd of=/dev/mmcblk0
  
 
Eject the disk, and re-insert it. If your computer automounts it, umount it. This is to make sure the partition table we're looking at is sane.
 
Eject the disk, and re-insert it. If your computer automounts it, umount it. This is to make sure the partition table we're looking at is sane.
Line 13: Line 14:
 
Enter <code>ln -sf /linuxrc-sdroot /linuxrc; save</code> to make the arm board boot into the full environment on the sdcard.
 
Enter <code>ln -sf /linuxrc-sdroot /linuxrc; save</code> to make the arm board boot into the full environment on the sdcard.
  
enter <code>reboot</code>
+
<code>reboot</code> the arm board.
  
 
log in as root
 
log in as root
Line 20: Line 21:
  
 
set up /etc/network/interfaces:
 
set up /etc/network/interfaces:
<code>
+
auto lo
auto lo
+
iface lo inet loopback
iface lo inet loopback
+
 
+
auto eth0
auto eth0
+
iface eth0 inet static
iface eth0 inet static
+
address 132.177.88.xxx
address 132.177.88.208
+
netmask 255.255.252.0
netmask 255.255.252.0
+
gateway 132.177.88.1
gateway 132.177.88.1
+
</code>
 
  
 
set up /etc/resolv.conf:
 
set up /etc/resolv.conf:
<code>
+
nameserver 132.177.88.52
nameserver 132.177.88.52
 
</code>
 
  
 
run <code>/etc/init.d/networking restart</code>
 
run <code>/etc/init.d/networking restart</code>
 +
 
run <code>/etc/init.d/ssh restart</code>
 
run <code>/etc/init.d/ssh restart</code>
  
 
disable weird services from starting and shut them off, like apache and x:
 
disable weird services from starting and shut them off, like apache and x:
<code>
+
update-rc.d -f apache2 remove
update-rc.d -f apache2 remove
+
update-rc.d -f startx remove
update-rc.d -f startx remove
+
update-rc.d -f x11-common remove
update-rc.d -f x11-common remove
 
</code>
 
 
 
 
 
 
 
  
  
lenny needs this:
+
Their lenny image seems to have serious issues with devpts. As a workaround, you can "mount -v -t devpts none /dev/pts" to be able to SSH and other fun stuff.
set up the system to mount devpts properly by running <code>mount -v -t devpts none /dev/pts</code>. Otherwise, sshing in will fail.
 

Latest revision as of 08:51, 8 September 2009

This is the complete, accurate guide to getting a TS-7260 to boot debian etch with a nice large root

Get a 512mb image from technologic, such as 512mbsd-7400-linux26-etch-oabi.dd. ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7400-linux/binaries/ts-images/ has these images.

dd it to disk:

dd if=512mbsd-7400-linux26-etch-oabi.dd of=/dev/mmcblk0

Eject the disk, and re-insert it. If your computer automounts it, umount it. This is to make sure the partition table we're looking at is sane.

With devio, mtd-utils, and jfsutils installed (these may be different for non-ubuntu systems), fire up gparted and resize the partition, click-and-drag style. Uncheck "round to cylinders". If it fails the first time, fsck it, it'll probably be clean, and just try to resize again, it'll work. We use gparted for this because it's the cleanest, easiest way to handle the nonstandard geometry while still making sure that the filesystem is not destroyed.

Boot it on the arm board

Enter ln -sf /linuxrc-sdroot /linuxrc; save to make the arm board boot into the full environment on the sdcard.

reboot the arm board.

log in as root

set a password

set up /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 132.177.88.xxx
	netmask 255.255.252.0
	gateway 132.177.88.1

set up /etc/resolv.conf:

nameserver 132.177.88.52

run /etc/init.d/networking restart

run /etc/init.d/ssh restart

disable weird services from starting and shut them off, like apache and x:

update-rc.d -f apache2 remove
update-rc.d -f startx remove
update-rc.d -f x11-common remove


Their lenny image seems to have serious issues with devpts. As a workaround, you can "mount -v -t devpts none /dev/pts" to be able to SSH and other fun stuff.