hooglshare.blogg.se

Dockstar nas
Dockstar nas











dockstar nas
  1. Dockstar nas install#
  2. Dockstar nas serial#

You can either plug a serial adapter on your Dockstar or configure uBoot to send the information by netconsole Now you need access to uBoot to test the TFTP/NFS boot. All the following commands create non-existing variables into uBoot.įw_setenv net_tftp_kernel 'nfs/dockstar/uImage'įw_setenv net_tftp_initrd 'nfs/dockstar/uInitrd'įw_setenv net_nfs_path '/srv/nfs/hosts/dockstar'įw_setenv net_bootcmd 'run net_check_dhcp_c run net_check_dhcp_s run net_set_bootargs run net_boot'įw_setenv net_boot 'tftp 0x800000 $net_tftp_kernel echo echo ** Kernel Boot Arguments: $bootargs echo if tftp 0xe00000 $net_tftp_initrd then bootm 0x800000 0xe00000 else bootm 0x800000 fi'įw_setenv net_set_bootargs 'setenv serverip $net_tftp_server setenv bootargs console=$console root=/dev/nfs rootfstype=nfs rootwait nfsroot=$net_nfs_server:$net_nfs_path ip=$ipaddr:$net_nfs_server:$gatewayip:$netmask:dockstar:eth0:off $mtdparts'įw_setenv net_check_dhcp_c 'if test $net_dhcp_c -eq 1 then run net_set_c_ip_dhcp else run net_set_c_ip_stat fi echo ** IP Address: $ipaddr echo ** Subnet Mask: $netmask echo ** Def Gateway: $gatewayip'įw_setenv net_set_c_ip_dhcp 'dhcp echo echo ** net_dhcp_c = 1 -> Getting IP Settings by DHCP'įw_setenv net_set_c_ip_stat 'setenv ipaddr $net_c_ipaddr setenv netmask $net_c_netmask setenv gatewayip $net_c_gatewayip echo echo ** net_dhcp_c = 0 -> Using static IP Settings'įw_setenv net_check_dhcp_s 'if test $net_dhcp_s -eq 1 & test $net_dhcp_c -eq 1 then run net_set_s_ip_dhcp else run net_set_s_ip_stat fi echo ** TFTP Boot Server: $net_tftp_server echo ** NFS Boot Server: $net_nfs_server echo'įw_setenv net_set_s_ip_dhcp 'setenv net_tftp_server $serverip setenv net_nfs_server $serverip echo echo ** net_dhcp_s and net_dhcp_c = 1 -> Getting TFTP and NFS Boot Server by DHCP'įw_setenv net_set_s_ip_stat 'echo echo ** net_dhcp_s or net_dhcp_c = 0 -> Using static TFTP and NFS Boot Server'Ĩ. This will not yet alter the Dockstar startup configuration. Create NetBoot variables in uboot on the Dockstar from the running Linux: Sed -i 's ^\(HOTPLUG_INTERFACES\)="all" \1="" ' $ROOTFS/etc/default/ifplugdħ. Sed -i 's ^\(INTERFACES\)="auto" \1="" ' $ROOTFS/etc/default/ifplugd Sed -i 's eth0 ' $ROOTFS/etc/default/ifplugd #Disable eth0 auto-configuration (ifplugd) Sed -i 's auto eth0 #auto eth0 ' $ROOTFS/etc/network/interfaces Sed -i 's ^/dev/root.* /dev/root / nfs noatime,errors=remount-ro 0 1 ' $ROOTFS/etc/fstab # Define Dockstar RootFS location on NFS Server Make changes onto the dockstar rootfs hosted on the NFS server to allow it to properly boot by NFS: If ! cat /etc/exports | grep /srv/nfs/hosts/dockstar >/dev/null then Add the dockstar folder as shared folder on the NFS server: Copy the dockstar boot files on the TFTP Server:Ĭp -av /mnt/usbdockstar/boot/u* /srv/tftp/nfs/dockstar/ĥ. Copy the dockstar rootfs on the NFS Server:Ĭp -av /mnt/usbdockstar/* /srv/nfs/hosts/dockstar/Ĥ.

dockstar nas

Dockstar nas install#

Install a fresh debian on the Dockstar using the well known Jeff's script, or try to use your existing dockstar installation.ģ. In my example, I'm running the TFTP and NFS server on a NAS running Debian, and the DHCP server on a router running OpenWRT.Ģ. This guide assumes that you already have a functionnal NFS, TFTP and DHCP server on your network. I tried this with a newly-installed debian wheezy distribution on my dockstar, the latest uboot, and a unmodified debian kernel. My deep gratitude to this fellow community who made it all possible by their numerous contributions ! I've left my dockstar on the side for a time, and I recently tried again successfully ! A few month ago, I was trying to boot my dockstar by TFTP & NFS.













Dockstar nas