Preparation
Make sure to connect an Ethernet cable to the GbE 0 port of your OpenRD (if you haven't already) because the installer will download files from the Internet for the installation.Starting the Installer
First of all, you have to download the installer. Download the uImage and uInitrd and store them either on a USB stick or an TFTP server.Now connect a mini-USB connector to System Debug in order to access the serial console. If you're running the Linux kernel 2.6.30.5 or higher or Debian's 2.6.26-20 kernel (or higher), the serial device will be recognized automatically. If you're using an older kernel, you have to pass some parameters when loading the ftdi_sio module:
rmmod ftdi_sio modprobe ftdi_sio vendor=0x0403 product=0x9e90
When you get serial output, press a key to interrupt the boot process. First of all, you have to change a setting so the device will boot the kernel which is used by Debian.
If you have an OpenRD-Base, please issue the following commands:
setenv mainlineLinux yes setenv arcNumber 2325 saveenv reset
setenv mainlineLinux yes setenv arcNumber 2361 saveenv reset
setenv mainlineLinux yes setenv arcNumber 2884 saveenv reset
Now you can load the installer. The instructions will depend on where you want to load the installer from. Also note that you may have to replace fatload with ext2load in case you used the ext2 or ext3 filesystem on your USB stick.
- USB: If you stored the installer on a USB stick, please use:
usb start fatload usb 0:1 0x01100000 /uInitrd fatload usb 0:1 0x00800000 /uImage
- TFTP: if you want to load the installer via the network from a TFTP
server, use this:
setenv serverip 192.168.1.2 setenv ipaddr 192.168.1.147 tftpboot 0x01100000 uInitrd tftpboot 0x00800000 uImage
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most bootm 0x00800000 0x01100000
The Installation
The installation itself should be pretty standard and you can follow the installation guide. The installer knows about the OpenRD and will create a bootable kernel and ramdisk at the end of the installation. The installer will also offer a partition layout that is known to work. If you want to choose a different layout, make sure that you create a small (ca. 150 MB) /boot partition with the ext2 filesystem.When the installation is done, you have to configure u-boot so it will automatically boot Debian. Interrupt the boot process of u-boot and enter the following commands.
If you're using a SATA disk, use these commands:
setenv bootargs_console console=ttyS0,115200 setenv bootcmd_sata 'ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage' setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_sata; bootm 0x00800000 0x01100000' saveenv
setenv bootargs_console console=ttyS0,115200 setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x01100000 /uInitrd; ext2load usb 0:1 0x00800000 /uImage' setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000' saveenv
For MMC/SD, use this:
setenv bootargs_console console=ttyS0,115200 setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x01100000 /uInitrd; ext2load mmc 0:1 0x00800000 /uImage' setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000' saveenv
Your OpenRD is now ready to boot Debian from the USB stick, MMC/SD card or SATA disk and it will automatically do so whenever you turn on your device. You can now type the following command to boot:
run bootcmd
Success
You should now have a complete Debian system running on your OpenRD. You can use apt-get and other tools to install additional software. The OpenRD is an ARM based device and the armel architecture is fully supported by Debian.Finally, make sure to read the tips and tricks about running Debian on the OpenRD.
Go back to my Debian on OpenRD page.
0 komentar:
Posting Komentar
Terima Kasih Atas Coment nya :D