Withdrawal of UBIT NAND support until further notice

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Withdrawal of UBIT NAND support until further notice

Postby peaslaker » Thu Apr 21, 2011 10:04 am

The UBIT method of installing Arch Linux ARM to NAND is suffering from some low level issues in the AUFS2/UBIFS stacked filesystem. At the moment this results in fundamental problems where the stacked filesystem is just not playing by the rules and it renders basic, low level functions inoperable (there are problems with permissions).

NAND install has not been documented since UBIT version 0.5. There is no intent to provide support for NAND installs until these issues have been resolved, which may involve a complete refactoring of the filesystem arrangements. This issue has arisen somewhere in the advance of kernel versions since 2.6.36 with the matching AUFS 2.1 versions.

Installing Arch Linux ARM in a writeable NAND partition is still not recommended because the NAND memory eraseblocks are only rated for 1000 erase/write cycles, after which the Plug will become inoperable.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Withdrawal of UBIT NAND support until further notice

Postby leshan » Tue Apr 26, 2011 5:17 pm

Hi peaslaker,

Thank you for your great job.
Is it ok to install on NAND but boot from external hard drive?
Just consider the land installation as a rescue system?
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm

Re: Withdrawal of UBIT NAND support until further notice

Postby peaslaker » Wed Apr 27, 2011 9:35 am

There is some very strange behaviour in the way UBIT has been running the NAND installed version of Arch Linux ARM - some programs just object to the stacked root filesystem and don't function correctly.

My test case is trying to add a new user to the system and then switch to that user. This fails on the standard NAND install, but if you don't include the documentation, it doesn't fail. For me, that behaviour is too flaky to support so I am currently looking for a workaround. The culprit appears to be the AUFS2 stacked union filesystem, which is a rather fundamental part of the UBIT NAND solution.

The current situation is almost impossible to debug. The AUFS stacked filesystem contents is complete and has perfect integrity, verified by checksum and I have even been able to use the UBIT tarball command to transfer the NAND content back to hard disk where it runs perfectly. This appears to be an area where AUFS does not consistently respond to low level calls, depending on the currently configured stack of filesystems.

AUFS is also the only reason I am maintaining and distributing a UBIT kernel. If I stop using AUFS, I can start using the Arch Linux ARM kernel. This is also important as Arch Linux ARM runs a rolling upgrade on its packages, so new packages are compiled against the latest kernel headers, with no guarantee that they will operate correctly with an out of date kernel.

I've got something in the works, but obviously this is quite a radical change for UBIT.

$this->bbcode_second_pass_quote('leshan', 'I')s it ok to install on NAND but boot from external hard drive?
Just consider the land installation as a rescue system?


This is OK. The NAND system will work to some extent but have some flaky behaviour. It will probably be good enough for a rescue system.

Where are you getting the NAND install instructions from? I didn't intend there to be any current instructions in circulation because the instructions had fallen behind the v0.6 UBIT functionality.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: Withdrawal of UBIT NAND support until further notice

Postby kmihelich » Wed Apr 27, 2011 4:37 pm

There might be some leftovers on the wiki, I haven't checked for sure. We're also transitioning to a new site layout over the next few weeks, with better partitioning of devices and their appropriate installation instructions.

For the Arch Linux ARM kernel, we keep AUFS available, though only as a module. And it's really only those kernel modules (that I'm aware of) that are impacted by the rolling release. Each new kernel we need to rebuild aufs2, madwifi, and lirc, from what I can recall off the top of my head.

I know some people like the idea of NAND installs because it lets them have a power-tolerant device that is available quickly, a la routers/set top devices. But given the limited number of erase/write cycles that you pointed out, I think an appropriate method would be to maybe create a NAND-specific appliance-like image of PA. Something separately maintained from the standard base install images that contains applications configured in a sensible manner to provide the bulk of functionality that is commonly requested.. auto-mount/umount of drives, linked into samba/apple, even minidlna. Essentially making a system that doesn't need frequent updates, but performs the majority of operations autonomously in such a way that doesn't require modifying and saving config files for separate installations. Updates to this image could be provided on a monthly basis possibly, again applied using a method that just overwrites the instance and they're back running.

These are just some thoughts on how to get the benefits of NAND for those that want it, while eliminating the risk of burning out the flash.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Withdrawal of UBIT NAND support until further notice

Postby leshan » Thu Apr 28, 2011 1:57 am

$this->bbcode_second_pass_quote('peaslaker', 'W')here are you getting the NAND install instructions from? I didn't intend there to be any current instructions in circulation because the instructions had fallen behind the v0.6 UBIT functionality.


I used search to find Official, NAND and Hybrid installations.

By the way I thought the official installation need some correction.
1. chain_reverse is not necessary
2. Before ethaddr , we may need a reboot, or the MAC may change again. Reboot may need to run after 'tune2fs -L "rootfs" /dev/sda1'.
3.After reboot, we may need to run 'pacman -S cpio' to be able to run './ubit_start'

For NAND and Hybrid installation:
1. We may need to download the package before we enter the ubit environment.
2. ubiformat_mtd3 may need to be 'ubiformat /dev/mtd3'

Thank you peaslaker
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm

Re: Withdrawal of UBIT NAND support until further notice

Postby leshan » Thu Apr 28, 2011 2:01 am

$this->bbcode_second_pass_quote('peaslaker', 'T')his is OK. The NAND system will work to some extent but have some flaky behaviour. It will probably be good enough for a rescue system.


Maybe make the NAND installation system read-only to make it a good rescue system. For goflex net, I think it's better than jeff's rescure system. It supports SATA booting. I can use it to boot to Arch Linux ARM install or debian just by switching the sata hard drive.
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm
Top

Re: Withdrawal of UBIT NAND support until further notice

Postby leshan » Thu Apr 28, 2011 2:38 am

$this->bbcode_second_pass_quote('kmihelich', 'T')here might be some leftovers on the wiki, I haven't checked for sure. We're also transitioning to a new site layout over the next few weeks, with better partitioning of devices and their appropriate installation instructions.


It will be nice to make more instruction for package installation. Such as Asterisk, LAMP.
I still have problem to get mysql service running on Arch Linux ARM install. But no problem on debian. I read the arch wiki, still no success. Sometimes mysql service starts after I uncomment the InnoDB lines of /etc/mysql/my.cnf.
leshan
 
Posts: 18
Joined: Wed Apr 20, 2011 8:22 pm
Top

Re: Withdrawal of UBIT NAND support until further notice

Postby kmihelich » Thu Apr 28, 2011 3:56 am

Everything Arch applies to Arch Linux ARM, we only modify upstream packages in order to compile on ARM if necessary. MySQL has worked for everyone so far, including myself.

There are guides under the Applications section in the wiki for common tasks, and they also outline quirks people have found. Use the resources available on the internet, thousands of people have documented the procedures in many different ways.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests