Installation using the NAND and SATA

This forum is for Marvell Armada 310 based devices including the TonidoPlug 2 and the TopKick.

Installation using the NAND and SATA

Postby edruro » Sun Aug 03, 2014 12:53 pm

Hi! After messing around with my Tonidoplug2 uBoot and the NAND I finally understood how to flash a kernel and the RootFS in the NAND and boot from there. I'm thinking it would be cool to take advantage of the internal 512 MB NAND to place there the most essential boot resources and use the SATA as a secondary filesystem for the user space applications. The current RootFS of the base system fits perfectly in the NAND and there's even some spare room.

However, it doesn't seem to be an easy task to separate essential boot files from the user space applications, specially since /bin and /sbin no longer exists. The most obvious solutions is to separate the whole /usr and put it into the SATA, but I think I need to mess around with the initramfs so the kernel can mount it at the boot time, and I never did this before...

What could be a good solution for this kind of split filesystem?
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm

Re: Installation using the NAND and SATA

Postby edruro » Thu Aug 14, 2014 12:42 pm

By the way, I can confirm that ALARM does boot from NAND even with the mainlineLinux=yes parameter on uBoot. I thought the TonidoPlug2 was unable to boot from NAND with that parameter on.

Code: Select all
Arch Linux 3.1.10-33-ARCH (ttyS0)

alarm login: root
Password:
[root@alarm ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          450M  249M  196M  57% /
ubi0:rootfs     450M  249M  196M  57% /
devtmpfs        250M     0  250M   0% /dev
tmpfs           250M     0  250M   0% /dev/shm
tmpfs           250M  264K  250M   1% /run
tmpfs           250M     0  250M   0% /sys/fs/cgroup
tmpfs           250M     0  250M   0% /tmp
tmpfs            50M     0   50M   0% /run/user/0


Even if you don't use it as the regular boot, it is incredible useful to have it here to have an emergency backup of the OS to fix an unbootable system (in my case, because of the WIFI module causing a kernel panic).
edruro
 
Posts: 8
Joined: Sat Jul 20, 2013 11:51 pm


Return to Marvell Armada 310

Who is online

Users browsing this forum: No registered users and 1 guest