<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://arm.mini-box.com/index.php?action=history&amp;feed=atom&amp;title=Debian</id>
	<title>Debian - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://arm.mini-box.com/index.php?action=history&amp;feed=atom&amp;title=Debian"/>
	<link rel="alternate" type="text/html" href="https://arm.mini-box.com/index.php?title=Debian&amp;action=history"/>
	<updated>2026-07-06T03:15:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://arm.mini-box.com/index.php?title=Debian&amp;diff=92&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=Prep= 1. Get two SD cards (A USB drive should also work with the Angstrom kernel, I haven't tested)&lt;br&gt; 2. Install the precompiled Angstrom image on to one of the SD cards an...&quot;</title>
		<link rel="alternate" type="text/html" href="https://arm.mini-box.com/index.php?title=Debian&amp;diff=92&amp;oldid=prev"/>
		<updated>2020-10-20T06:34:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Prep= 1. Get two SD cards (A USB drive should also work with the Angstrom kernel, I haven&amp;#039;t tested)&amp;lt;br&amp;gt; 2. Install the precompiled Angstrom image on to one of the SD cards an...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Prep=&lt;br /&gt;
1. Get two SD cards (A USB drive should also work with the Angstrom kernel, I haven't tested)&amp;lt;br&amp;gt;&lt;br /&gt;
2. Install the precompiled Angstrom image on to one of the SD cards and insert it into the MicroSD slot&amp;lt;br&amp;gt;&lt;br /&gt;
3. Format the other SD card (Or USB drive) with mkfs.ext3&lt;br /&gt;
&lt;br /&gt;
=Creating a Debian environment=&lt;br /&gt;
This stage creates your Debian root fs.&lt;br /&gt;
&lt;br /&gt;
===On your Debian machine===&lt;br /&gt;
1. use the command:&lt;br /&gt;
 apt-get install debootstrap&lt;br /&gt;
2. then&lt;br /&gt;
 debootstrap --arch=armel --foreign [stable|testing|unstable] &amp;lt;targetdirectory&amp;gt;&lt;br /&gt;
3. Copy the resulting chroot directory to your empty SD card&lt;br /&gt;
&lt;br /&gt;
===On your Pico board===&lt;br /&gt;
4. Mount the SD card in the reader slot on the pico board (The card should be auto mounted to ''/media/mmcblk1p1'')&amp;lt;br&amp;gt;&lt;br /&gt;
5. then type:&lt;br /&gt;
 chroot /path/to/chrootdir&lt;br /&gt;
6. then&lt;br /&gt;
 /debootstrap/debootstrap --second-stage&lt;br /&gt;
&lt;br /&gt;
You should install any apps you might need to access the board, and do any configuration.&amp;lt;br&amp;gt;&lt;br /&gt;
I couldn't get the serial console to work at this point so I installed ''openssh-server'' and configured my network and users so that when I booted Debian for the first time I could ssh into it.&lt;br /&gt;
&lt;br /&gt;
=Building a new kernel=&lt;br /&gt;
&lt;br /&gt;
Debian doesn't include a kernel that's workable so you will need to build your own (the pre-compiled image I think will work with squeeze, but I haven't tried).&lt;br /&gt;
I suggest compiling 3.1rc? if you want to run testing or unstable. 3.0.4 has issues in the atmel-mci driver and 3.1rc? should get some new features soon like a driver for the hardware random number generator.&lt;br /&gt;
&lt;br /&gt;
'''Required Packages'''&lt;br /&gt;
&lt;br /&gt;
*build-essential -- GCC etc&lt;br /&gt;
*uboot-mkimage -- uboot's mkimage&lt;br /&gt;
&lt;br /&gt;
'''Patched Kernel'''&lt;br /&gt;
&lt;br /&gt;
You can find a mini-box.com pre-patched 3.x kernel tree [https://gitorious.org/picopc-kernel/kernel/commits/minibox-picopc-3.1 here]. &lt;br /&gt;
&lt;br /&gt;
Daniel Palmer keeps a &amp;quot;bleeding edge&amp;quot; 3.x version [http://code.google.com/p/linux-picosam9g45/ here].&lt;br /&gt;
&lt;br /&gt;
=Switching rootfs=&lt;br /&gt;
&lt;br /&gt;
1. using fdisk or similar remove the root partition from Angstrom and create a new root partition with the size you want.&amp;lt;br&amp;gt;&lt;br /&gt;
2. format it with mkfs.ext3&amp;lt;br&amp;gt;&lt;br /&gt;
3. copy the debian chroot into the new root partition&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
You should be ready to boot into Debian now :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Post install configuration=&lt;br /&gt;
&lt;br /&gt;
=== Fix up /etc/fstab ===&lt;br /&gt;
&lt;br /&gt;
debootstrap creates an empty fstab. You can boot with this but you should configure it at some point. The example below defines root and mounts the bootloader/kernel partition to /boot for easy kernel upgrades.&lt;br /&gt;
&lt;br /&gt;
 # &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
 /dev/mmcblk0p2  /               ext3    defaults        0       0&lt;br /&gt;
 /dev/mmcblk0p1  /boot/          vfat    defaults        0       0&lt;br /&gt;
&lt;br /&gt;
=== Disable LCD backlight ===&lt;br /&gt;
If you don't have an LCD you should turn the backlight off. Add this to your /etc/rc.local&lt;br /&gt;
&lt;br /&gt;
 echo 0 &amp;gt; /sys/class/backlight/backlight/brightness&lt;br /&gt;
&lt;br /&gt;
=== Fix MAC address ===&lt;br /&gt;
&lt;br /&gt;
The board doesn't seem to have anywhere to store it's MAC address so the kernel generates a bogus one on boot up.. this causes issues if you want to have fixed IP allocations over DHCP etc. You can fix this by configuring a MAC address for the interface by inserting something like the following in your /etc/network/interfaces file;&lt;br /&gt;
&lt;br /&gt;
 auto eth0&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
 '''hwaddress ether 00:04:14:C0:FF:EE'''&lt;br /&gt;
&lt;br /&gt;
MAC addresses need to be unique on your network!&lt;br /&gt;
&lt;br /&gt;
=== Fix/add loopback device ===&lt;br /&gt;
&lt;br /&gt;
You should add a loopback device. Some server daemons that need to bind to the loopback device will fail to install or start (such as mysql). You can fix this by configuring a loopback device by inserting something like the following in your /etc/network/interfaces file;&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
&lt;br /&gt;
=== Serial Console ===&lt;br /&gt;
&lt;br /&gt;
Enabling a serial console is easy and will allow you to login via one of the UARTs. I have used ttyS0 (RXD0 and TXD0) on J7. The other UART should also work but I haven't checked. A serial console on ttyS0 can be enabled by finding the line that starts with #T0:23.. in your /etc/inittab, un-commenting it and if you want changing the baud rate.&lt;br /&gt;
&lt;br /&gt;
Mine looks like this;&lt;br /&gt;
&lt;br /&gt;
 S0:23:respawn:/sbin/getty -L ttyS0 115200 vt100&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>