Booting Arch from /dev/sda2

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Booting Arch from /dev/sda2

Postby phireph0x » Sun Jul 19, 2015 1:53 pm

I have a TonidoPlug v1 and am trying to boot from the second partition on my USB HD. The first partition is also a Linux fs (ext3), but is data only and has no /boot or Linux OS. My partition table is MBR and the second partition is flagged as bootable and is ext4. How do I boot ALARM from /dev/sda2?
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby moonman » Mon Jul 20, 2015 4:13 am

You have to edit the uboot environment. It does not matter if it is flagged as active or not, you have to edit the wnvironment to point uboot where to load the kernel from, and then pass this partition to kernel as root
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: Booting Arch from /dev/sda2

Postby phireph0x » Tue Jul 21, 2015 2:32 pm

Thank you. I thought that was the case based on what I'd read (i.e. must modify U-boot vars to boot from a different partition), but wanted to confirm. The issue is I can't read the values from my U-boot, see viewtopic.php?f=53&t=9055 for my post regarding that. Any advice on that?
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby WarheadsSE » Tue Jul 21, 2015 3:11 pm

Do you have a serial interface to the TP1?

It should be similar to one either the PPV1 or the SheevaPlug
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 Arch from /dev/sda2

Postby phireph0x » Tue Jul 21, 2015 4:37 pm

I don't have a serial interface. Do you mean the /etc/fw_printenv.config file settings are similar? I've tried a number of different ones, as described here viewtopic.php?f=53&t=9055. It could be that my U-boot is corrupted and I need to reflash. How would I do that?
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby moonman » Wed Jul 22, 2015 7:16 am

It probably is not corrupt, but rather you need the tools from your version of uboot and not mainstream ones that we provide. With serial you should be able to edit the environment from within uboot itself.
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: Booting Arch from /dev/sda2

Postby phireph0x » Wed Jul 22, 2015 6:29 pm

I installed uboot-envtools in the stock TonidoPlug OS (Ubuntu 9.04). dpkg says the package version is 20080520-4. Manpage for fw_printenv is dated August 2008.

As an alternative, I have also compiled uboot-envtools from source from http://anonscm.debian.org/cgit/pkg-fso/ ... tools.git/. This version also produces the warning text:

$this->bbcode_second_pass_code('', 'Warning: Bad CRC, using default environment
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200')
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby phireph0x » Tue Jul 28, 2015 6:47 pm

So, since I'm using the tools that came with my version of u-boot and I still see the Warning CRC message, it appears that my U-boot is corrupted. Unless there are suggestions for trying something else.

I have compiled U-boot from source on my TPv1 and have an image to flash to my NAND. In the configure included support for ARM, Marvell Kirkwood, and the Sheevaplug. Is there a guide for flashing a U-boot image? I don't have serial so can't use kwboot.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby phireph0x » Thu Aug 13, 2015 3:02 pm

Is there a guide for flashing a U-boot image? I don't have serial so can't use kwboot.
phireph0x
 
Posts: 46
Joined: Tue Sep 06, 2011 5:40 am

Re: Booting Arch from /dev/sda2

Postby WarheadsSE » Thu Aug 13, 2015 3:26 pm

I strongly suggest getting the serial interface.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 8 guests