Jump to content


Photo

Move Acadia Root Filesystem to SATA


  • Please log in to reply
1 reply to this topic

#1 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 05 February 2015 - 03:20 AM

Tonight I was able to copy the root filesystem of the Acadia eMMC storage to a SATA HDD and modify the u-boot environment so the hdd would be used as root filesystem. I will do my best to show a step-by-step and then later come back and add screen captures for visual aid.

 

I will start off by actually loading the OS onto the Acadia's eMMC storage.

Following this tutorial.

 

First thing to do is to download the firmware updating software from here and unzip it on to your windows PC.

With the Acadia turned off make sure all of the boot configuration switched are set to OFF.

In the download folder of the firmware updater you should find a file named cfg.ini

Open this file in a text editor there should be "name=Acadia-eMMC". If not, make the change and save it.

Run the MfgTool2.exe program. Connect the Acadia OTG port to a usb port on the PC and power it up.

A few drivers should be automatically installed.

The MfgTool2 app should say, "HID-compliant device", in one of the top text boxes when its ready.

Click start. This will take some time to complete and it should say, "Done", when it is finished.

Click stop and exit. We should be done with this program for now.

Power down the Acadia and change the configuration switches to

1  ON

2  ON

3  OFF

4  ON

5  OFF

6  ON

7  ON

8  OFF

Configuration 1 in as shown here.

Attach SATA cable and power cable to Acadia.

Power it up and it should boot from the eMMC.

Open Disk Utility and create root partition and format. In my case it was /dev/sda1.

I used dd to copy the root system to the hdd with the command... 

 

>dd if=/dev/mmcbkl0p1 of=/dev/sda1 bs=1M conv=noerror,sync

 

This took some time.

Once completed unmount the partition using disk utility.

In a terminal window we are now going to convert the ext3 partition to ext4 by using these commands...

 

>sudo tune2fs -O extents,uninit_bg /dev/sda1

>sudo e2fsck -f /dev/sda1

 

These will take a little while as well. There were errors found on mine and they were corrected.

 

Next we must modify the u-boot environment variable to have /dev/sda1 mounted as root.

To do this we need to connect to the Acadia debug port.

For this I used PuTTY  and created a serial connection to that port with settings on 115200,N,8,1

From this terminal window I issue the "reboot now" command.

When the Acadia comes back up it will pause for a few seconds and ask you to hit enter to exit the boot routine. I will admit that it took me a couple of tries before I got it.

At the u-boot prompt type the command...

 

u-boot>pri

 

You should see a listing of the boot up script. Somewhere in there you should see a line that says something similar to, "bootargs_mmc=......". We are going to replace that line only changing the "root=" variable.

Yours may vary depending on video settings, etc. Duplicate your line and change it to read, "root=/dev/sda1".

So my command would be:

 

u-boot>setenv bootarg_mmc 'setenv bootargs ${bootargs} root=/dev/sda1 rootwait fec_mac=${ethaddr} video=mxcfb0:dev=hdmi,19200x1080M@60,if=RGB24,bpp=32 fbmem=28M'

 

Notice the single quotes. They are required.

Next we execute a command to save it.

 

u-boot>saveenv

 

Use the pri command again and look at the bootargs_mmc variable just to make sure. It will be at the bottom of the list now.

 

u-boot>pri

 

Power down Acadia. Then power it back up.

If all went well you should now have root filesystem on the hdd.

 

Enjoy.



#2 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 15 February 2015 - 08:14 PM

I post the tutorial here.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users