Installing debian to guruplug SD card

Before installing debian, You need to prepare tftp server and connect to guruplug via serial console.

Also You’ll need UTP cable for network connection and SD card for installing the base system.

Lets prepare debian install.
Download uImage and uInitrd images from debian site:

So, put those files to tftp server directory (on your pc).
I put to /tftproot/install/* directory.

Put SD card flash to guruplug, connect UTP cable and connect to it via serial cable.

Press any key, when you get:

Hit any key to stop autoboot: 3

Network configuration before transferring files:

Marvell>> setenv ipaddr
Marvell>> setenv serverip

tftp server and “serverip” IP must be the same!
so, on tftp server:

sudo ifconfig eth0

Lets get the files:

tftpboot 0x0400000 install/uImage
tftpboot 0x0900000 install/uInitrd

Boot arguments for install:

setenv bootargs console=ttyS0,115200 base-installer/initramfs-tools/driver-policy=most
bootm 0x0400000 0x0900000 

On first window (before choosing language), press “Go back”
Choose menu item “change debconf priority” and press “low”.
Come back to main menu and go to part where you have to choose language.
All installation can go with default installation.
Just before last step (after “make system bootable”) choose “execute shell”

Then in shell:

chroot /target
scp /boot/uI* root@{server_ip}:/tftpd/boot

Then finish installation and go to marvel shell (press any key at booting prompt)

Debian Installation:

After successful install and copying images to tftp dir, lets burn new kernel to guruplug.

As always, network first:

setenv ipaddr
setenv serverip

Bruning images to kernel:

tftp 0x1000000 boot/uImage
nand erase 0x100000 0x400000
nand write.e 0x1000000 0x100000 0x400000
tftp 0x1000000 boot/uInitrd
nand erase 0x400000 0xa00000
nand write.e 0x1000000 0x400000 0xa00000

And the last one – set boot parameters.

setenv bootargs_deb 'setenv bootargs console=ttyS0,115200 root=/dev/sdb2'
setenv bt_n 'nand start; nand read.e 0x0a00000 0x100000 0x400000'
setenv bt_n2 'nand read.e 0x0e00000 0x400000 0xa00000'
setenv lets_boot 'bootm 0x0a00000 0x0e00000'
setenv bootcmd 'run bootargs_deb; run bt_n; run bt_n2; run lets_boot'

And That’s it :)
just press


You’re all done. Fresh debian install.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.