FreeLink for the Kurobox Pro - Manual install
From NAS-Central Buffalo - The Linkstation Wiki
m (→Format all the Partitons) |
m (→Use Fdisk) |
||
| Line 45: | Line 45: | ||
====Use Fdisk==== | ====Use Fdisk==== | ||
| - | + | {| | |
| - | Device | + | ||Device||Partition Type || Size||fdisk Command |
| - | /dev/sda1 | + | |- |
| - | /dev/sda2 | + | ||/dev/sda1|| Linux [83] || 10 GB || n | p | 1 | <enter>|+10000M |
| - | /dev/sda6 | + | |- |
| - | + | ||/dev/sda2|| Linux Swap [82] || 512 MB || n | l | <enter> | +512M | t | 5 | 82 | |
| + | |- | ||
| + | ||/dev/sda6|| Linux [83] || Remainder || n | l | <enter> |<enter> | ||
| + | }| | ||
====Format all the Partitons==== | ====Format all the Partitons==== | ||
Revision as of 05:53, 20 April 2008
|
|
Contents |
FreeLink (Debian) on the KuroPro
Rather than using the automatic install method [1] you can partition the hard drive yourself (foregoing Buffalo's partition scheme) and use a custom kernel too[2]. You will need Serial port[3] access to have control over the Uboot settings [4].
Prerequisites:
- KuroboxPro (of course)
- SATA Hard Drive (bigger is better) installed[5]
- Serial port access
- FreeLink ARM[6]: http://downloads.nas-central.org/LSPro_ARM9/Distributions/Freelink/
- Custom Kernel: http://downloads.nas-central.org/Users/colchaodemola
Get it
- Download the FreeLink zip archive: http://downloads.nas-central.org/LSPro_ARM9/Distributions/Freelink/FreeLink_arm9-1.0rev2.zip
- Unzip it and find the hddrootfs.img file
- Rename it to have the .zip extension
- Unzip this file with the following password:
IeY8omJwGlGkIbJm2FH_MV4fLsXE8ieu0gNYwE6Ty
- Rename the resultant file to hddrootfs.tar.gz and copy it over to the Samba Share[7].
Partition Hard Drive
XFS support is still poor (especially in a custom kernel). So we'll use EXT3, and use a sane partition scheme. There are detailed instructions on partitioning in EM Mode[8] or using Parted on an external workstation[9].
Sample Partition scheme
| Partition | Path | Size | Filesystem |
|---|---|---|---|
| p1 | / | 10GB | EXT3 |
| p2 | swap | 512MB | SWAP |
| p3 | /mnt/disk1 | Remaining Space | EXT3 |
Use Fdisk
| Device | Partition Type | Size | fdisk Command |
| /dev/sda1 | Linux [83] | 10 GB | p | 1 | <enter>|+10000M |
| /dev/sda2 | Linux Swap [82] | 512 MB | l | <enter> | +512M | t | 5 | 82 |
| /dev/sda6 | Linux [83] | Remainder | l | <enter> |<enter>
}| Format all the Partitonsmkfs.ext3 /dev/sda1 mkswap /dev/sda2 mkfs.ext3 /dev/sda3 Get a newer Kernel and modulesI used this kernel image, big thanks to Colchaodemola rename it to the following:
Get the Modules: Copy these over to the samba share too. Extract everything over to the Hard DriveLog into the Kurobox using the default settings[10] and go to the directory that you transferred your files over to (likely /mnt/mtd) cd /mnt/mtd Mount Hard Drivemount /dev/sda1 /mnt/drive1 Move everything overmv hddrootfs.tar.gz /mnt/drive1 mv uImage-2.6.16.57-arm5_oabi /mnt/drive1 mv 2.6.16.57-arm5_oabi_modules.tgz /mnt/drive1 Untar the rootfscd /mnt/drive1 tar -xvzf hddrootfs.tar.gz Untar the kernel Modulescd /mnt/drive1 tar -xvzf 2.6.16.57-arm5_oabi_modules.tgz Move and link the kernel uimagemkdir /mnt/drive1/boot mv uImage-2.6.16.57-arm5_oabi /mnt/drive1/boot/ cd /mnt/drive1/boot ln -s uImage-2.6.16.57-arm5_oabi uImage Reboot and Change uboot settingsreboot The final step is to modify your uboot environment to boot into the rootfs (freelink). Interrupt uboot over the serial console[11] and type the following to configure your Kurobox Pro to boot from the hard disk with the new kernel: setenv bootcmd 'ide reset;ext2load ide 0:1 0x00100000 /boot/uImage;setenv bootargs console=ttyS0,115200 root=/dev/sda1 rw; bootm 0x00100000' saveenv boot
setenv default_kernel_addr 0x00100000 setenv bootargs_base console=ttyS0,115200 setenv bootargs_root root=/dev/mtdblock2 rw setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) setenv uImage_block 0 setenv uImage_offset 0x00020000 setenv bootcmd 'nboot $(default_kernel_addr) $(uImage_block) $(uImage_offset); bootm $(default_kernel_addr)' Post installLoginReboot and use ssh to login to your newly FreeLinked KuroBox Pro with an SSH session. In windows PuTTY is a good client
or
Change kernelmon script
cat /proc/driver/kernevnt to cat /proc/buffalo/kernevnt Enable root login on serial console
chmod 0744 /etc/securetty
Fix fstabRemember to change the /etc/fstab to reflect the location of linux swap and the share. Also remove the ,acl from the xfs declaration. My /etc/fstab looks like this after update: # /etc/fstab: static file system information. # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=20 0 0 tmpfs /tmp tmpfs size=10M,mode=1777 0 0 /dev/sda2 swap swap defaults 0 0 /dev/sda3 /mnt/disk1 ext3 defaults,noatime,nodiratime 0 0 MkswapFormat the swap partition mkswap /dev/sda2 References
|

