[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.

[SOLVED] PPv4: Use ext3 and ext4 partitions

Postby winestock » Wed Dec 05, 2012 2:51 pm

I would like to create a two partition install where the ext3 partition only contains /boot and the ext4 partition contains everything else. Can I use these instructions, in regard to the PPv4 u-boot: viewtopic.php?t=1325.

Or can I just use a ext4 partiton to boot off of for the PPv4?
Last edited by winestock on Fri Dec 07, 2012 11:20 pm, edited 1 time in total.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: Use ext3 and ext4 partitions

Postby moonman » Wed Dec 05, 2012 10:57 pm

Yes you can do dual partition. PPv4 likely doesn't have ext4 support, so you will have to use dual-partition setup.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Wed Dec 05, 2012 11:05 pm

$this->bbcode_second_pass_quote('moonman', 'Y')es you can do dual partition. PPv4 likely doesn't have ext4 support, so you will have to use dual-partition setup.


Will I need to modify the u-boot parameters per: viewtopic.php?t=1325. Also, will I need to create a symbolic link for /boot on the ext4 partition that points to /boot on the ext3 partition?
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: Use ext3 and ext4 partitions

Postby WarheadsSE » Wed Dec 05, 2012 11:11 pm

Doesn't work that way.

sda1 will need to be the boot partition, sda2 the rootfs.

sda2 mounted as /
sda1 mounted as /boot/
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 » Thu Dec 06, 2012 3:56 pm

Thanks, I really appreciate the feedback.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: PPv4: Use ext3 and ext4 partitions

Postby winestock » Fri Dec 07, 2012 2:26 am

Having an issue getting this working. Here is what I did:
$this->bbcode_list('6')
  • Created two partitions, the first ext3, the second partition ext4. Both primary linux type.
  • Format the first partiton using mke2fs -j, the second using mkfs.ext4 -j -t ext4. Both are journaled.
  • Install arm linux on ext4 partition. Left the hostname as alarm and DHCP.
  • Copy /boot/uImage from ext4 partition to ext3 partition.
  • Delete /boot/uImage from ext4 partition.
  • Added the following to /etc/fstab on ext4 partition:
    $this->bbcode_second_pass_code('', '
    /dev/sda1 /boot ext3 defaults,noatime 1 2
    /dev/sda2 / ext4 noatime 0 1
    ')

  • When I go to boot I get a green flashing light for a few seconds, the green light goes solid. When I go to look for the device on my router DHCP list, alarm is nowhere to be found. By the way, I tried both ways of listing /dev/sda1 and /dev/sd2 in /etc/fstab and I get the same result.

    What have I missed here?
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am

    Re: PPv4: Use ext3 and ext4 partitions

    Postby WarheadsSE » Fri Dec 07, 2012 2:44 am

    There are changes that needed to be made to the uboot as well, so that it knows the rootfs is not /dev/sda1
    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 2:51 am

    $this->bbcode_second_pass_quote('WarheadsSE', 'T')here are changes that needed to be made to the uboot as well, so that it knows the rootfs is not /dev/sda1


    Would this be the changes needed:
    $this->bbcode_second_pass_code('', '
    fw_setenv usb_scan_1 'usb=0:1 dev=sda2'
    fw_setenv usb_scan_2 'usb=1:1 dev=sdb2'
    fw_setenv usb_rootfstype ext4
    ')

    Now that I think of it I use the Sata port so what changes to the u-boot are needed so that I can boot from the Sata port?
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am

    Re: PPv4: Use ext3 and ext4 partitions

    Postby hydro » Fri Dec 07, 2012 9:00 am

    $this->bbcode_second_pass_quote('winestock', 'A')lso, will I need to create a symbolic link for /boot on the ext4 partition that points to /boot on the ext3 partition?

    Are you referring to the ln -s . boot command I wrote in the other thread? That would be a link in the root directory of the first partition that points to the /boot directory in the first partition. I use it to make uImage visible for uBoot, but it is not needed as long as you copy uImage in it's place manually (at install time and after every kernel update).

    $this->bbcode_second_pass_quote('winestock', '
    ')Would this be the changes needed:

    Looking at the last lines of ppv4-install.sh, I don't think so. It seems like you have to use blparam and maybe change alarm_which to include sda2 instead of sda1.
    VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
    hydro
     
    Posts: 210
    Joined: Wed Jun 15, 2011 2:03 pm
    Location: Germany
    Top

    Re: PPv4: Use ext3 and ext4 partitions

    Postby winestock » Fri Dec 07, 2012 12:14 pm

    $this->bbcode_second_pass_quote('hydro', '
    ')Looking at the last lines of ppv4-install.sh, I don't think so. It seems like you have to use blparam and maybe change alarm_which to include sda2 instead of sda1.


    Change this?

    rootfstype=ext3
    alarm_which=if test $isDisk = yes; then setenv device /dev/sdb1; else setenv device /dev/sda1; fi
    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 maybe this?

    rootfstype=ext4
    alarm_which=if test $isDisk = yes; then setenv device /dev/sdb1; else setenv device /dev/sda2; fi
    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
    Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
    winestock
     
    Posts: 134
    Joined: Mon Nov 05, 2012 12:03 am
    Top

    Next

    Return to Marvell Kirkwood

    Who is online

    Users browsing this forum: No registered users and 84 guests