[beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Jason Lange
Hello All,

At one point I accidentally had the root filesystem mounting and perusable 
from my desktop file browser -- which was useful to me (unlike the fatfs).  
I am trying to duplicate this deliberately, but can't find where to 
configure this.  Any help with this is much appreciated...my google-fu is 
failing me.

Thanks in advance.

j.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Robert Nelson
On Tue, Nov 25, 2014 at 7:29 PM, Jason Lange j.b.la...@gmail.com wrote:
 Hello All,

 At one point I accidentally had the root filesystem mounting and perusable
 from my desktop file browser -- which was useful to me (unlike the fatfs).
 I am trying to duplicate this deliberately, but can't find where to
 configure this.  Any help with this is much appreciated...my google-fu is
 failing me.

There's an example here:

/opt/scripts/boot/am335x_evm.sh

(web)
https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L83

Just point the file=/dev/mmcblkXpY option in g_multi to the rootfs partition..

Regards,

-- 
Robert Nelson
http://www.rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Jason Lange
Thank you Robert.

Are there any caveats to erasing the fatfs and resizing rootfs ?  And if I
did that would your script mount rootfs without modification?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Robert Nelson
On Tue, Nov 25, 2014 at 8:43 PM, Jason Lange j.b.la...@gmail.com wrote:
 Thank you Robert.

 Are there any caveats to erasing the fatfs and resizing rootfs ?  And if I
 did that would your script mount rootfs without modification?

Well... in theory with the newer images that should still work.. The
big (and i mean big) issue, the u-boot (MLO/u-boot.img) files where
dd'ed below the 1Mb position.  So as long as you leave the 1MB hole at
the start of the drive alone, it 'should' work..

Regards,


-- 
Robert Nelson
http://www.rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Jason Lange
I took the risk.

Since it was on an sd card I popped it out and used gparted to erase the
fatfs and then resize rootfs (leaving that holiest of 1M holes).  I booted
fine except for:

[   15.517979] g_multi musb-hdrc.0.auto: failed to start g_multi: -2

'mount' shows:

/dev/mmcblk0p2 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)

...it's still calling itself partition 2, which is probably a good thing
since /etc/fstab is referring to it  by its /dev entry

So now I'm going to figure out how to re-enumerate the partition and change
the fstab entry accordingly.

But, I'm hoping to be able to use this card to flash eMMC and now I'm
wondering if all this is going to break your scripts?



On Tue, Nov 25, 2014 at 6:50 PM, Robert Nelson robertcnel...@gmail.com
wrote:

 On Tue, Nov 25, 2014 at 8:43 PM, Jason Lange j.b.la...@gmail.com wrote:
  Thank you Robert.
 
  Are there any caveats to erasing the fatfs and resizing rootfs ?  And if
 I
  did that would your script mount rootfs without modification?

 Well... in theory with the newer images that should still work.. The
 big (and i mean big) issue, the u-boot (MLO/u-boot.img) files where
 dd'ed below the 1Mb position.  So as long as you leave the 1MB hole at
 the start of the drive alone, it 'should' work..

 Regards,


 --
 Robert Nelson
 http://www.rcn-ee.com/

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to the Google Groups
 BeagleBoard group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] How do I mount rootfs instead of fatfs with g_multi?

2014-11-25 Thread Jason Lange
I managed to change the partition number
...and g_multi is serving up my rootfs as pretty as a peach.

The odd thing is that I forgot to modify /etc/fstab and it still mounted (?)

mount gives me:

/dev/mmcblk0p1 on / type ext4 (rw,noatime,errors=remount-ro,data=ordered)
  ^^^
cat /etc/fstab gives this line:

/dev/mmcblk0p2  /  ext4  noatime,errors=remount-ro  0  1
  ^^^
...odd.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.