![]() ![]() Setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/sda2įingers crossed you are now at a login prompt again. Now change bootargs from /dev/sde1 to /dev/sda2 and load the kernel again: $this->bbcode_second_pass_code('', '# reboot Once complete, reboot and stop uboot from autobooting dev/sda2 / ext4 noatime,errors=remount-ro 0 0 $this->bbcode_second_pass_code('', '/dev/sda1 /boot ext4 defaults 0 1 Remove the existing line in fstab and add: $this->bbcode_second_pass_code('', '# rsync -av / /mnt/root -exclude 'mnt' $this->bbcode_second_pass_code('', '# mkdir -p /mnt/Ĭopy over the rootfs from the usb to root mount and some housekeeping: $this->bbcode_second_pass_code('', '# mkfs.ext2 /dev/sda1 We have to use ext2 for /boot as uboot only supports ext2load on the rn104. (press enter twice to accept default start/end sectors) (press enter to accept default end sector) **calculate 1.5gb less from max capacty enter here** (press enter to accept default partition type (press enter to accept default start sector) $this->bbcode_second_pass_code('', '# fdisk /dev/sda You can either divide your /sys /proc /usr partitions or KISS with /boot / and swap as I did: $this->bbcode_second_pass_code('', '# ls /dev/sd* Don't panic if errors are thrown, the process is simple. Some commands are just to check your config and may need to be adjusted. It shouldn't return any text, but if it throws a File not found error, you're not in arch! Go through the steps above again and check spellings or commandsĮnter the following commands. $this->bbcode_second_pass_code('', '# cat /etc/arch-release') Let's do a sanity check before we do anything destructive: Go ahead and login as root, password is root. If all goes well, you should see a login prompt on the terminal. You may have to watch the kernel output on boot to see what it's mapped to if it throws a no root device kernel error. Note /dev/sde1 should be your usb device. bootm $load_addr - commands uboot to boot from memory at the specified address.It only saves some commands, others are always defaulted on reset saveenv - saves the current uboot environment.setenv bootargs - what boot parameters are passed to the kernel on boot.ftfpboot - loads the specified image at the ram address.setenv serverip - changes the uboot environment server parameter to your laptop/pc where it will fetch files.dhcp - establishes link with router or networking device and assigns an IP.Setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/sde1 **copy and paste the outputs of both into the next relevant commands: $this->bbcode_second_pass_code('', 'Marvell >') You should now see the following, if not power off the device again and try again. Power on your rn104 and you will see the output of u-boot. We only need the rootfs on the usb drive as the kernel is loaded from uboot. ll/mirabox but use sdX1 as the partition NOT sdX2 as that guide gives. Turn the ReadyNas 104 off.įollow steps 2, 3, 4c, 4d, 6, 7 and 9 from here. If you use method 1, you can skip section 02, but refer to it for setting up your HDD.īefore proceeding, ensure you have connected the UART cable both to the serial port on the rn104 and a USB port on your pc/laptop and have a terminal session up ( screen /dev/ttyUSB0 115200 ). I will be using the 2nd method in this guide. Use a usb device to hold a temp archlinux rootfs to rsync to sda and also requires editing bootargs in u-boot.Swap in a HDD in pre-partitioned with the rootfs extracted on it.There are several ways you can achieve the end result. Know what your IP address is for your pc/laptop you will need this for passing the kernel and ramdisk later. If you have another, disconnect it, or swap it to the top port. ![]() Only connect 1 ethernet cable to the TOP port. Have atftpd installed on your pc/laptop, also run # mkdir /srv/atftpĤ.4.1 Generic Bootable Kernel for RN104 move this to /srv/atftp as aboveģ.3v Serial UART usb cable (ebay/amazon £4) for the kernel image and various commandsīackup, Backup, Backup! - This process is destructive to your data on sda and / or any X-RAID array (obviously) The aim of this guide is to convert from ReadyNAS OS to a self-contained Arch Linux install that boots from a /boot partition on the first drive. I am posting this for archival reasons and hopefully someone somewhere can make us of this guide to go from ReadyNas OS to a complete Arch Linux install. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |