[SOLVED] PPv4: Use ext3 and ext4 partitions

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

Re: PPv4: Use ext3 and ext4 partitions

Postby hydro » Fri Dec 07, 2012 1:48 pm

$this->bbcode_second_pass_quote('winestock', 'I') use the Sata port

I overlooked this. In that case I think best is to directly change alarm_args. A sata disk, if attached, seems to always be sda and $rootfstype is not used elsewhere
$this->bbcode_second_pass_code('', '
blparam alarm_args='setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootwait rootfstype=ext4'
')
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Fri Dec 07, 2012 2:37 pm

$this->bbcode_second_pass_quote('hydro', '')$this->bbcode_second_pass_quote('winestock', 'I') use the Sata port

I overlooked this. In that case I think best is to directly change alarm_args. A sata disk, if attached, seems to always be sda and $rootfstype is not used elsewhere
$this->bbcode_second_pass_code('', '
blparam alarm_args='setenv bootargs console=ttyS0,115200 root=/dev/sda2 rootwait rootfstype=ext4'
')


If I understand this correctly, that means I could plug a HD into the top USB port (no HD plugged into the Sata port) which I would create as a single ext3 partition and have that boot correctly. If that is the case, I really like this as an option.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: Use ext3 and ext4 partitions

Postby hydro » Fri Dec 07, 2012 3:36 pm

No, if alarm_args is modified as described, booting from USB will no longer work, because your root partition on USB HD is /dev/sda1, while in alarm_args it is now hard-coded to /dev/sda2. If you still want to be able to boot from single partition USB HD, you have to modify alarm_ide and keep the original alarm_args. However, SATA HD will then also use kernel option rootfstype=ext3. I am not sure if this is a problem, because usually the root partition is remounted during boot using the /etc/fstab options, so it will eventually be mounted as ext4.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Fri Dec 07, 2012 3:47 pm

$this->bbcode_second_pass_quote('hydro', 'N')o, if alarm_args is modified as described, booting from USB will no longer work, because your root partition on USB HD is /dev/sda1, while in alarm_args it is now hard-coded to /dev/sda2. If you still want to be able to boot from single partition USB HD, you have to modify alarm_ide and keep the original alarm_args. However, SATA HD will then also use kernel option rootfstype=ext3. I am not sure if this is a problem, because usually the root partition is remounted during boot using the /etc/fstab options, so it will eventually be mounted as ext4.


What about change this:
alarm_ide=if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda1; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi

To this:
alarm_ide=if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; rootfstype=ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: Use ext3 and ext4 partitions

Postby hydro » Fri Dec 07, 2012 4:07 pm

I think you have to use setenv rootfstype ext4. This will, however, not have any effect, because boot options are set by alarm_args, and alarm_args does not know about a variable $rootfstype. You would also have to change alarm_args to use that variable and create a default value for rootfstype.

$this->bbcode_second_pass_code('', '
blparam rootfstype=ext3
blparam alarm_args='setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype'
blparam alarm_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi'
')
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: PPv4: Use ext3 and ext4 partitions

Postby WarheadsSE » Fri Dec 07, 2012 5:22 pm

We might be splitting hairs over something un-needed. I am not 100% sure rootfstype is even required when booting from disks.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Fri Dec 07, 2012 5:25 pm

$this->bbcode_second_pass_quote('hydro', 'I') think you have to use setenv rootfstype ext4. This will, however, not have any effect, because boot options are set by alarm_args, and alarm_args does not know about a variable $rootfstype. You would also have to change alarm_args to use that variable and create a default value for rootfstype.

$this->bbcode_second_pass_code('', '
blparam rootfstype=ext3
blparam alarm_args='setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype'
blparam alarm_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi'
')


Is there any reason why fw_setenv could not be used in this case? Such as:
$this->bbcode_second_pass_code('', '
fw_setenv alarm_args='setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype'
fw_setenv alarm_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi'
')
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: Use ext3 and ext4 partitions

Postby hydro » Fri Dec 07, 2012 5:36 pm

I don't know. Are fw_setenv and fw_printenv commands available at all? I am only familiar with the DockStar, where they are installed while running install_uboot_mtd0.sh. I don't see anything like it in ppv4-install.sh.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Fri Dec 07, 2012 5:39 pm

$this->bbcode_second_pass_quote('hydro', 'I') don't know. Are fw_setenv and fw_printenv commands available at all? I am only familiar with the DockStar, where they are installed while running install_uboot_mtd0.sh. I don't see anything like it in ppv4-install.sh.


You have to install, via pacman, the uboot-env package then fw_printenv and fw_setenv are available. By the way, I am suggesting using fw_setenv after the arm linux has been installed. From what I understand people that tried to use the Pogoplug OS to create ext4 partitions have had issues. This is why I would perfer to modify the u-boot environment later and have the ability to use arm linux to create ext4 partitions.

The other option I guess would be to install the pogoplug-blparam package, which installs blparam, and then re-run the modified ppv4-install.sh script.

Thoughts on either?
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Re: PPv4: Use ext3 and ext4 partitions

Postby hydro » Fri Dec 07, 2012 6:00 pm

$this->bbcode_second_pass_quote('winestock', '
')You have to install, via pacman, the uboot-env package then fw_printenv and fw_setenv are available.

Okay, usually one does not have pacman at hand before installation...
$this->bbcode_second_pass_quote('winestock', '
')By the way, I am suggesting using fw_setenv after the arm linux has been installed.

Okay, fw_printenv will also give you a better overview over uBoot variables set on your device than I can guess from what is made in ppv4-install.sh.
$this->bbcode_second_pass_quote('winestock', '
')From what I understand people that tried to use the Pogoplug OS to create ext4 partitions have had issues.

Yes. its kernel has no ext4 support, so I created the partitions and filesystems on my Linux PC.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany
Top

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests

cron