Booting to ext2

This forum is for all other ARMv5 devices

Booting to ext2

Postby Socaltom » Sat Apr 07, 2012 5:22 pm

I'm not sure how I did it, but my P-Pro reports that the root drive is ext2. I've created a journal. how do I get it to boot as ext3? I've got ext3 running on my pink pogo now, but those same instructions don't work on the pro.
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Booting to ext2

Postby dinjo » Sun Apr 08, 2012 6:01 am

What does fdisk -l shows for the drive ? Did you try manually mounting as ext3 ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Booting to ext2

Postby Socaltom » Sun Apr 08, 2012 11:36 am

$this->bbcode_second_pass_code('', '[root@videobox ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcb4a3af2

Device Boot Start End Blocks Id System
/dev/sda1 2048 48830172 24414062+ 83 Linux
/dev/sda2 48830173 1953525167 952347497+ 83 Linux

[root@videobox ~]# mount -t ext3 /dev/sda1 /
mount: /dev/sda1 already mounted or / busy
mount: according to mtab, /dev/root is already mounted on /
[root@videobox ~]#

')
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Booting to ext2

Postby WarheadsSE » Sun Apr 08, 2012 2:46 pm

You'll need to adjust the u-boot parameter via blparam (if you are booting from NAND)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Booting to ext2

Postby Socaltom » Sun Apr 08, 2012 5:03 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'Y')ou'll need to adjust the u-boot parameter via blparam (if you are booting from NAND)

are there blparam instructions somewhere?
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Booting to ext2

Postby Socaltom » Wed Apr 11, 2012 1:22 pm

I did it!

Found instructions here http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1692 to get blparam from nand.

ran blparam to get the current paramaters
$this->bbcode_second_pass_code('', 'bootdelay=2
baudrate=115200
autoload=n
netmask=255.255.0.0
bootfile="uImage"
kernflmode=s
load_nand=nboot 60500000 0 200000
load_nand2=nboot 60500000 0 800000
boot=bootm 60500000
boot_nand=run load_nand boot || run load_nand2 boot
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:25:31:01:D7:03
cesvcid=LGTASR3K4YFY9DLDYSV7PP6G66
ceboardver=PPRO1
serverip=192.168.33.2
ipaddr=192.168.33.195
bootargs_stock=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
load_custom_nand=nboot 60500000 0 500000
load_custom_nand2=nboot 60500000 0 B00000
boot_custom=run load_custom_nand boot || run load_custom_nand2 boot
bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15
bootcmd=run boot_custom
')

changed ext2 to ext3 like this
$this->bbcode_second_pass_code('', '/blparam "bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15"
MTD: /dev/mtd0
type: 4
flags: 0x400
size: 134217728
erase size: 131072
write size: 2048
oob size: 64
-- Removing parameter 'bootargs' from 'root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15' because 'bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15'
-- Adding parameter 'bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15'
-- Writing parameter 'bootdelay=2'
-- Writing parameter 'baudrate=115200'
-- Writing parameter 'autoload=n'
-- Writing parameter 'netmask=255.255.0.0'
-- Writing parameter 'bootfile="uImage"'
-- Writing parameter 'kernflmode=s'
-- Writing parameter 'load_nand=nboot 60500000 0 200000'
-- Writing parameter 'load_nand2=nboot 60500000 0 800000'
-- Writing parameter 'boot=bootm 60500000'
-- Writing parameter 'boot_nand=run load_nand boot || run load_nand2 boot'
-- Writing parameter 'stdin=serial'
-- Writing parameter 'stdout=serial'
-- Writing parameter 'stderr=serial'
-- Writing parameter 'ethaddr=00:25:31:01:D7:03'
-- Writing parameter 'cesvcid=LGTASR3K4YFY9DLDYSV7PP6G66'
-- Writing parameter 'ceboardver=PPRO1'
-- Writing parameter 'serverip=192.168.33.2'
-- Writing parameter 'ipaddr=192.168.33.195'
-- Writing parameter 'bootargs_stock=root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes'
-- Writing parameter 'load_custom_nand=nboot 60500000 0 500000'
-- Writing parameter 'load_custom_nand2=nboot 60500000 0 B00000'
-- Writing parameter 'boot_custom=run load_custom_nand boot || run load_custom_nand2 boot'
-- Writing parameter 'bootcmd=run boot_custom'
-- Writing parameter 'bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15'
Erasing 128 kb @ 0xa0000
Writing 2048 kb @ 0xbf800
***
*** BOOT LOADER PARAMETERS CHANGED -- REBOOT NECESSARY TO TAKE EFFECT!
***
')

Reran blparam to check that nothing else changed... once I confirmed that I rebooted. If something else changed, I would have been PMing Warheads... but all went well.
Thanks again
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Booting to ext2

Postby bodhi » Mon Apr 16, 2012 4:52 am

$this->bbcode_second_pass_quote('Socaltom', 'I') did it!

Found instructions here http://archlinuxarm.org/forum/viewtopic.php?f=29&t=1692 to get blparam from nand.

ran blparam to get the current paramaters
Tom


Could you post the exact command using blparam?

so we can see how that related to this later command to set rootfstype?

$this->bbcode_second_pass_code('', '/blparam "bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootdelay=15"
')

Thanks.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Booting to ext2

Postby WarheadsSE » Mon Apr 16, 2012 12:17 pm

blparam bootargs="..."
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Booting to ext2

Postby Socaltom » Mon Apr 16, 2012 11:37 pm

$this->bbcode_second_pass_quote('bodhi', '
')
Could you post the exact command using blparam?


Thanks.


"blparam" will list the current set of parameters as they are.

Then I cut and pasted the line you copied above, and changed the ext2 to ext3, then hit enter.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side
Top

Re: Booting to ext2

Postby bodhi » Tue Apr 17, 2012 9:08 am

Thanks Tom! that's what I was looking for (I could not find any man page or tutorial for blparam) so just want to make sure that I use it correctly.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 10 guests