This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| installdebian2big [2011/02/23 15:19] – typo 78.145.124.167 | installdebian2big [2012/02/21 15:03] (current) – 93.104.155.24 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Boot custom installer ===== | ===== Boot custom installer ===== | ||
| + | In the following process, you should replace ${NAS_IP} with correct IP regarding your network configuration. | ||
| + | ${ipaddr} and ${serverip} are automatically set by clunc. | ||
| + | |||
| + | ====2Big Network 2==== | ||
| + | * Connect to U-Boot using network console with [[CLUNC|clunc]]: | ||
| + | |||
| + | As a preliminary step, you must export the installer [[ftp:// | ||
| + | |||
| + | $ ./clunc -i ${NAS_IP} | ||
| + | |||
| + | Marvell>> | ||
| + | setenv ipaddr ${ipaddr}; setenv serverip ${serverip}; | ||
| + | Using egiga0 device | ||
| + | TFTP from server ${serverip}; | ||
| + | Filename ' | ||
| + | Load address: 0x800000 | ||
| + | Loading: ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ####### | ||
| + | done | ||
| + | Bytes transferred = 2031132 (1efe1c hex) | ||
| + | |||
| + | * Boot installer: | ||
| + | |||
| + | Marvell>> | ||
| + | setenv bootargs ip=dhcp console=ttyS0, | ||
| + | Marvell>> | ||
| + | bootm 0x800000 | ||
| + | ## Booting image at 00800000 ... | ||
| + | Image Name: | ||
| + | | ||
| + | Image Type: ARM Linux Kernel Image (uncompressed) | ||
| + | Data Size: 2031068 Bytes = 1.9 MB | ||
| + | Load Address: 00008000 | ||
| + | Entry Point: | ||
| + | | ||
| + | OK | ||
| + | | ||
| + | Starting kernel ... | ||
| + | | ||
| + | [ 0.000000] Linux version 2.6.38-rc4-09710-g31481ad-svn-dirty (simon@X31) (gcc version 4.4.2 (crosstool NG-hg_default@1665_60a47ac6cae1) ) #7 PREEMPT Sun Feb 20 16:16:24 CET 2011 | ||
| + | [ 0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 | ||
| + | [ 0.000000] CPU: VIVT data cache, VIVT instruction cache | ||
| + | [ 0.000000] Machine: LaCie 2Big Network | ||
| + | [ 0.000000] Clearing invalid memory bank 0KB@0x00000000 | ||
| + | [ 0.000000] Clearing invalid memory bank 0KB@0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x41000403 | ||
| + | [ 0.000000] Memory policy: ECC disabled, Data cache writeback | ||
| + | [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 | ||
| + | [ 0.000000] Kernel command line: ip=dhcp console=ttyS0, | ||
| + | [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) | ||
| + | [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) | ||
| + | [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) | ||
| + | [ 0.000000] Memory: 64MB = 64MB total | ||
| + | [ 0.000000] Memory: 59008k/ | ||
| + | [ 0.000000] Virtual kernel memory layout: | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | | ||
| + | [ snip ] | ||
| + | |||
| + | ====2Big Network==== | ||
| + | A minimal system can be used to prepare disks and to install Debian distribution. A such sytem (kernel+initramfs) is available [[ftp:// | ||
| - | A minimal system can be used to prepare disks and to install Debian distribution. A such sytem (kernel+initramfs) is available [[http:// | ||
| - | In the following process, you should replace ${NAS_IP} and ${SERVER_IP} with correct IPs regarding your network configuration. | ||
| * Connect to U-Boot using network console with [[CLUNC|clunc]]: | * Connect to U-Boot using network console with [[CLUNC|clunc]]: | ||
| Line 13: | Line 88: | ||
| $ ./clunc -i ${NAS_IP} | $ ./clunc -i ${NAS_IP} | ||
| - | * Fix machine ID: | + | * Edit U-Boot env variables (don't do this if you use the fix_id kernel): |
| Marvell>> | Marvell>> | ||
| Line 35: | Line 110: | ||
| * Load installer image: | * Load installer image: | ||
| - | As a preliminary step, you must export the installer [[http:// | + | As a preliminary step, you must export the installer [[ftp:// |
| $ ./clunc -i ${NAS_IP} | $ ./clunc -i ${NAS_IP} | ||
| Line 41: | Line 116: | ||
| Waiting for LUMP (0) | Waiting for LUMP (0) | ||
| no lump receive; continuing | no lump receive; continuing | ||
| - | Marvell>> | + | Marvell>> |
| - | setenv ipaddr ${NAS_IP}; setenv serverip ${SERVER_IP}; tftpboot 0x400000 uImage | + | setenv ipaddr ${ipaddr}; setenv serverip ${serverip}; tftpboot 0x400000 uImage |
| Using egiga0 device | Using egiga0 device | ||
| - | TFTP from server ${SERVER_IP}; our IP address is ${NAS_IP} | + | TFTP from server ${serverip}; our IP address is ${ipaddr} |
| Filename ' | Filename ' | ||
| Load address: 0x400000 | Load address: 0x400000 | ||
| Line 106: | Line 181: | ||
| [ snip ] | [ snip ] | ||
| - | * Log into the installer: | + | ====Log into the installer==== |
| First, you need to guess the installer address IP (delivred by a DHCP server). You could use tools like **dhcpdump**. Example: | First, you need to guess the installer address IP (delivred by a DHCP server). You could use tools like **dhcpdump**. Example: | ||
| Line 131: | Line 206: | ||
| Linux miniroot 2.6.38-rc4-09710-g31481ad-svn-dirty #6 PREEMPT Sun Feb 20 15:37:16 CET 2011 armv5tel GNU/Linux | Linux miniroot 2.6.38-rc4-09710-g31481ad-svn-dirty #6 PREEMPT Sun Feb 20 15:37:16 CET 2011 armv5tel GNU/Linux | ||
| miniroot ~ # | miniroot ~ # | ||
| + | |||
| ===== Partition Disks ===== | ===== Partition Disks ===== | ||
| Using a custom debian installation on the 2BigNetwork allows great flexibility with the partition structure. | Using a custom debian installation on the 2BigNetwork allows great flexibility with the partition structure. | ||
| + | |||
| + | If you didn't change the // | ||
| Use the supplied **fdisk** to partition the disk. An example scheme is below | Use the supplied **fdisk** to partition the disk. An example scheme is below | ||
| + | |||
| ==== Running on a single 500GB disk with no RAID === | ==== Running on a single 500GB disk with no RAID === | ||
| Line 162: | Line 241: | ||
| ===== Install kernel ===== | ===== Install kernel ===== | ||
| Providing that an internet connection is available, installation of the kernel is as simple as: | Providing that an internet connection is available, installation of the kernel is as simple as: | ||
| + | |||
| + | ==== 2Big Network 2 ==== | ||
| + | |||
| + | wget ftp:// | ||
| + | wget ftp:// | ||
| + | |||
| + | ==== 2Big Network ==== | ||
| * If using the regular kernel | * If using the regular kernel | ||
| - | wget ftp:// | + | wget ftp:// |
| - | wget ftp:// | + | wget ftp:// |
| * If using the kernel with fixed id | * If using the kernel with fixed id | ||
| - | wget ftp:// | + | wget ftp:// |
| - | wget ftp:// | + | wget ftp:// |
| ===== Install rootfs ===== | ===== Install rootfs ===== | ||
| After the basic rootfs is installed, the system can be booted and used as a regular debian system. | After the basic rootfs is installed, the system can be booted and used as a regular debian system. | ||
| Line 333: | Line 420: | ||
| chown ftpuser.ftpuser /data | chown ftpuser.ftpuser /data | ||
| | | ||
| - | |||
| ==== MediaTomb UPNP AV Server ==== | ==== MediaTomb UPNP AV Server ==== | ||
| + | |||
| + | At the time of installation, | ||
| + | |||
| + | wget http:// | ||
| + | dpkg -i libavutil49_0.5.2-6_armel.deb | ||
| + | | ||
| + | Then, install the Mediatomb package | ||
| + | |||
| + | apt-get install mediatomb | ||
| + | |||
| + | And set it to startup automatically | ||
| + | |||
| + | update-rc.d mediatomb defaults | ||
| + | |||
| + | Configure the default parameters for the mediatomb server. | ||
| + | |||
| + | # Defaults for MediaTomb initscript | ||
| + | # sourced by / | ||
| + | # installed at / | ||
| + | | ||
| + | # | ||
| + | # This is a POSIX shell fragment | ||
| + | # | ||
| + | | ||
| + | # Set whether the daemon should be started. Set this value to anything | ||
| + | # but ' | ||
| + | NO_START=" | ||
| + | | ||
| + | # Additional options that are passed to the daemon. | ||
| + | OPTIONS="" | ||
| + | | ||
| + | # The network interface for MediaTomb to bind to and for which the multicast | ||
| + | # routing entry should be added; "" | ||
| + | # For example: INTERFACE=" | ||
| + | INTERFACE=" | ||
| + | | ||
| + | # The route command and arguments to be used if INTERFACE is defined. | ||
| + | # These variables should normally be left unmodified. | ||
| + | ROUTE_ADD="/ | ||
| + | ROUTE_DEL="/ | ||
| + | | ||
| + | # The user and group that MediaTomb should be run as. | ||
| + | USER=" | ||
| + | GROUP=" | ||
| + | |||
| + | Create a directory for the mediatomb database | ||
| + | |||
| + | mkdir / | ||
| + | |||
| + | And configure mediatomb to use it and to start the web interface by editing / | ||
| + | |||
| + | < | ||
| + | <ui enabled=" | ||
| + | < | ||
| + | <account user=" | ||
| + | </ | ||
| + | </ui> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | |||
| + | The address of the mediatomb webserver can be seen in the log | ||
| + | |||
| + | cat / | ||
| + | 2011-02-23 13: | ||
| + | 2011-02-23 13: | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| * Depending the LaCie U-Boot version, the **savenv** command could fail: as a solution you can use a [[ftp:// | * Depending the LaCie U-Boot version, the **savenv** command could fail: as a solution you can use a [[ftp:// | ||
| + | * If you are having problems with fix ID or made a mistake in the environment run | ||
| + | resetenv | ||